diff --git a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.cpp b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.cpp index b6a8b236..e8bd804a 100644 --- a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.cpp +++ b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBKasaSmartSettingsEntry.cpp | +| | +| User interface for OpenRGB Kasa Smart settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBKasaSmartSettingsEntry.h" #include "ui_OpenRGBKasaSmartSettingsEntry.h" diff --git a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.h b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.h index 49d789dc..02dd946e 100644 --- a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.h +++ b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBKASASMARTSETTINGSENTRY_H -#define OPENRGBKASASMARTSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBKasaSmartSettingsEntry.h | +| | +| User interface for OpenRGB Kasa Smart settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBKasaSmartSettingsEntry.h" #include +#include "ui_OpenRGBKasaSmartSettingsEntry.h" -namespace Ui { -class OpenRGBKasaSmartSettingsEntry; +namespace Ui +{ + class OpenRGBKasaSmartSettingsEntry; } class Ui::OpenRGBKasaSmartSettingsEntry : public QWidget @@ -20,5 +29,3 @@ public: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBKASASMARTSETTINGSENTRY_H diff --git a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.cpp b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.cpp index 36cd73fa..560ba576 100644 --- a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.cpp +++ b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBKasaSmartSettingsPage.cpp | +| | +| User interface for OpenRGB Kasa Smart settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBKasaSmartSettingsPage.h" #include "ui_OpenRGBKasaSmartSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.h b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.h index 9d9b8cce..0af9d33c 100644 --- a/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.h +++ b/qt/OpenRGBKasaSmartSettingsPage/OpenRGBKasaSmartSettingsPage.h @@ -1,13 +1,19 @@ -#ifndef OPENRGBKASASMARTSETTINGSPAGE_H -#define OPENRGBKASASMARTSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBKasaSmartSettingsPage.h | +| | +| User interface for OpenRGB Kasa Smart settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "ui_OpenRGBKasaSmartSettingsPage.h" #include - +#include "ui_OpenRGBKasaSmartSettingsPage.h" #include "OpenRGBKasaSmartSettingsEntry.h" -namespace Ui { -class OpenRGBKasaSmartSettingsPage; +namespace Ui +{ + class OpenRGBKasaSmartSettingsPage; } class Ui::OpenRGBKasaSmartSettingsPage : public QWidget @@ -31,5 +37,3 @@ private: std::vector entries; }; - -#endif // OPENRGBKASASMARTSETTINGSPAGE_H diff --git a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.cpp b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.cpp index 6fee7973..936c4344 100644 --- a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.cpp +++ b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBLIFXSettingsEntry.cpp | +| | +| User interface for OpenRGB LIFX settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBLIFXSettingsEntry.h" #include "ui_OpenRGBLIFXSettingsEntry.h" diff --git a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.h b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.h index 091bde96..58ce2a88 100644 --- a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.h +++ b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsEntry.h @@ -1,11 +1,18 @@ -#ifndef OPENRGBLIFXSETTINGSENTRY_H -#define OPENRGBLIFXSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBLIFXSettingsEntry.h | +| | +| User interface for OpenRGB LIFX settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "ui_OpenRGBLIFXSettingsEntry.h" #include +#include "ui_OpenRGBLIFXSettingsEntry.h" -namespace Ui { -class OpenRGBLIFXSettingsEntry; +namespace Ui +{ + class OpenRGBLIFXSettingsEntry; } class Ui::OpenRGBLIFXSettingsEntry : public QWidget @@ -20,5 +27,3 @@ public: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBLIFXSETTINGSENTRY_H diff --git a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.cpp b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.cpp index 1980c656..c47622f0 100644 --- a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.cpp +++ b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBLIFXSettingsPage.cpp | +| | +| User interface for OpenRGB LIFX settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBLIFXSettingsPage.h" #include "ui_OpenRGBLIFXSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.h b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.h index 73edbf5b..37fd45c5 100644 --- a/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.h +++ b/qt/OpenRGBLIFXSettingsPage/OpenRGBLIFXSettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBLIFXSETTINGSPAGE_H -#define OPENRGBLIFXSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBLIFXSettingsPage.h | +| | +| User interface for OpenRGB LIFX settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBLIFXSettingsPage.h" #include - +#include "ui_OpenRGBLIFXSettingsPage.h" #include "OpenRGBLIFXSettingsEntry.h" -namespace Ui { -class OpenRGBLIFXSettingsPage; +namespace Ui +{ + class OpenRGBLIFXSettingsPage; } class Ui::OpenRGBLIFXSettingsPage : public QWidget @@ -31,5 +39,3 @@ private: std::vector entries; }; - -#endif // OPENRGBLIFXSETTINGSPAGE_H diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.cpp b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.cpp index 557268dd..540d2ad9 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.cpp +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBNanoleafNewDeviceDialog.cpp | +| | +| User interface for OpenRGB Nanoleaf dialog | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include #include "ResourceManager.h" #include "OpenRGBNanoleafNewDeviceDialog.h" diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.h b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.h index 32c96b95..04a71223 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.h +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafNewDeviceDialog.h @@ -1,5 +1,11 @@ -#ifndef OPENRGBNANOLEAFNEWDEVICEDIALOG_H -#define OPENRGBNANOLEAFNEWDEVICEDIALOG_H +/*---------------------------------------------------------*\ +| OpenRGBNanoleafNewDeviceDialog.h | +| | +| User interface for OpenRGB Nanoleaf dialog | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include #include "ui_OpenRGBNanoleafNewDeviceDialog.h" @@ -32,5 +38,3 @@ private: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBNANOLEAFNEWDEVICEDIALOG_H diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp index 55ed5fca..29ff889e 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBNanoleafScanningThread.cpp | +| | +| OpenRGB Nanoleaf scanning thread | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #ifdef _WIN32 #define _CRT_SECURE_NO_WARNINGS 1 #endif @@ -43,7 +52,7 @@ static mdns_string_t ipv4_address_to_string(char* buffer, size_t capacity, const mdns_string_t str; str.str = buffer; str.length = len; - + return str; } @@ -136,7 +145,7 @@ static int open_client_sockets(int* sockets, int max_sockets, int port) { continue; } - + for(IP_ADAPTER_UNICAST_ADDRESS* unicast = adapter->FirstUnicastAddress; unicast; unicast = unicast->Next) { if(unicast->Address.lpSockaddr->sa_family == AF_INET) @@ -465,4 +474,4 @@ int OpenRGBNanoleafScanningThread::SendMDNSQuery() void OpenRGBNanoleafScanningThread::run() { SendMDNSQuery(); -} \ No newline at end of file +} diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.h b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.h index 0666816d..ac89da2a 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.h +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafScanningThread.h @@ -1,5 +1,11 @@ -#ifndef OPENRGBNanoleafScanningThread_H -#define OPENRGBNanoleafScanningThread_H +/*---------------------------------------------------------*\ +| OpenRGBNanoleafScanningThread.h | +| | +| OpenRGB Nanoleaf scanning thread | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include @@ -17,5 +23,3 @@ signals: public: void EmitDeviceFound(QString address, int port); }; - -#endif // OPENRGBNanoleafScanningThread_H diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.cpp b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.cpp index f3e8f119..9293e034 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.cpp +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBNanoleafSettingsEntry.cpp | +| | +| User interface for OpenRGB Nanoleaf settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBNanoleafSettingsEntry.h" #include "ui_OpenRGBNanoleafSettingsEntry.h" #include "ResourceManager.h" @@ -97,4 +106,3 @@ void OpenRGBNanoleafSettingsEntry::on_UnpairButton_clicked() ui->PairButton->show(); ui->UnpairButton->hide(); } - diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.h b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.h index 7cfd6a6d..9505e1c1 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.h +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsEntry.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBNanoleafSETTINGSENTRY_H -#define OPENRGBNanoleafSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBNanoleafSettingsEntry.h | +| | +| User interface for OpenRGB Nanoleaf settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ +#pragma once + +#include #include "ui_OpenRGBNanoleafSettingsEntry.h" #include "OpenRGBNanoleafScanningThread.h" -#include namespace Ui { -class OpenRGBNanoleafSettingsEntry; + class OpenRGBNanoleafSettingsEntry; } class Ui::OpenRGBNanoleafSettingsEntry : public QWidget @@ -31,5 +39,3 @@ private: std::string auth_token; bool paired; }; - -#endif // OPENRGBNanoleafSETTINGSENTRY_H diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.cpp b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.cpp index 865ffb71..729aeea9 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.cpp +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBNanoleafSettingsPage.cpp | +| | +| User interface for OpenRGB Nanoleaf settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBNanoleafSettingsPage.h" #include "ui_OpenRGBNanoleafSettingsPage.h" #include "OpenRGBNanoleafNewDeviceDialog.h" diff --git a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.h b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.h index aea7dc4c..2efeef92 100644 --- a/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.h +++ b/qt/OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.h @@ -1,14 +1,21 @@ -#ifndef OPENRGBNanoleafSETTINGSPAGE_H -#define OPENRGBNanoleafSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBNanoleafSettingsPage.h | +| | +| User interface for OpenRGB Nanoleaf settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBNanoleafSettingsPage.h" #include - +#include "ui_OpenRGBNanoleafSettingsPage.h" #include "OpenRGBNanoleafSettingsEntry.h" namespace Ui { -class OpenRGBNanoleafSettingsPage; + class OpenRGBNanoleafSettingsPage; } class Ui::OpenRGBNanoleafSettingsPage : public QWidget @@ -30,5 +37,3 @@ private: Ui::OpenRGBNanoleafSettingsPageUi *ui; std::map entries; }; - -#endif // OPENRGBNanoleafSETTINGSPAGE_H diff --git a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.cpp b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.cpp index 449eb65e..d38a07fd 100644 --- a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.cpp +++ b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBPhilipsHueSettingsEntry.cpp | +| | +| User interface for OpenRGB Philips Hue settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBPhilipsHueSettingsEntry.h" #include "ui_OpenRGBPhilipsHueSettingsEntry.h" @@ -28,4 +37,3 @@ void Ui::OpenRGBPhilipsHueSettingsEntry::on_UnpairButton_clicked() ui->UsernameValue->setText(""); ui->ClientKeyValue->setText(""); } - diff --git a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.h b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.h index d8d31535..841a956b 100644 --- a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.h +++ b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBPHILIPSHUESETTINGSENTRY_H -#define OPENRGBPHILIPSHUESETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBPhilipsHueSettingsEntry.h | +| | +| User interface for OpenRGB Philips Hue settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include "ui_OpenRGBPhilipsHueSettingsEntry.h" #include -namespace Ui { -class OpenRGBPhilipsHueSettingsEntry; +namespace Ui +{ + class OpenRGBPhilipsHueSettingsEntry; } class Ui::OpenRGBPhilipsHueSettingsEntry : public QWidget @@ -20,5 +29,3 @@ private slots: void changeEvent(QEvent *event); void on_UnpairButton_clicked(); }; - -#endif // OPENRGBPHILIPSHUESETTINGSENTRY_H diff --git a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.cpp b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.cpp index 2fea93fb..268cf559 100644 --- a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.cpp +++ b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBPhilipsHueSettingsPage.cpp | +| | +| User interface for OpenRGB Philips Hue settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBPhilipsHueSettingsPage.h" #include "ui_OpenRGBPhilipsHueSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.h b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.h index 990eb8d8..453a1590 100644 --- a/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.h +++ b/qt/OpenRGBPhilipsHueSettingsPage/OpenRGBPhilipsHueSettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBPHILIPSHUESETTINGSPAGE_H -#define OPENRGBPHILIPSHUESETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBPhilipsHueSettingsPage.h | +| | +| User interface for OpenRGB Philips Hue settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBPhilipsHueSettingsPage.h" #include - +#include "ui_OpenRGBPhilipsHueSettingsPage.h" #include "OpenRGBPhilipsHueSettingsEntry.h" -namespace Ui { -class OpenRGBPhilipsHueSettingsPage; +namespace Ui +{ + class OpenRGBPhilipsHueSettingsPage; } class Ui::OpenRGBPhilipsHueSettingsPage : public QWidget @@ -29,7 +37,4 @@ private slots: private: Ui::OpenRGBPhilipsHueSettingsPageUi *ui; std::vector entries; - }; - -#endif // OPENRGBPHILIPSHUESETTINGSPAGE_H diff --git a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.cpp b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.cpp index c81f3c9f..0117f90a 100644 --- a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.cpp +++ b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBPhilipsWizSettingsEntry.cpp | +| | +| User interface for OpenRGB Philips Wiz settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBPhilipsWizSettingsEntry.h" #include "ui_OpenRGBPhilipsWizSettingsEntry.h" diff --git a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.h b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.h index 246a0083..0ec997bb 100644 --- a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.h +++ b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBPHILIPSWIZSETTINGSENTRY_H -#define OPENRGBPHILIPSWIZSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBPhilipsWizSettingsEntry.h | +| | +| User interface for OpenRGB Philips Wiz settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBPhilipsWizSettingsEntry.h" #include +#include "ui_OpenRGBPhilipsWizSettingsEntry.h" -namespace Ui { -class OpenRGBPhilipsWizSettingsEntry; +namespace Ui +{ + class OpenRGBPhilipsWizSettingsEntry; } class Ui::OpenRGBPhilipsWizSettingsEntry : public QWidget @@ -20,5 +29,3 @@ public: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBPHILIPSWIZSETTINGSENTRY_H diff --git a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.cpp b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.cpp index b788ed9e..57e9c841 100644 --- a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.cpp +++ b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBPhilipsWizSettingsPage.cpp | +| | +| User interface for OpenRGB Philips Wiz settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBPhilipsWizSettingsPage.h" #include "ui_OpenRGBPhilipsWizSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.h b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.h index e51d707a..03b68518 100644 --- a/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.h +++ b/qt/OpenRGBPhilipsWizSettingsPage/OpenRGBPhilipsWizSettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBPHILIPSWIZSETTINGSPAGE_H -#define OPENRGBPHILIPSWIZSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBPhilipsWizSettingsPage.h | +| | +| User interface for OpenRGB Philips Wiz settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBPhilipsWizSettingsPage.h" #include - +#include "ui_OpenRGBPhilipsWizSettingsPage.h" #include "OpenRGBPhilipsWizSettingsEntry.h" -namespace Ui { -class OpenRGBPhilipsWizSettingsPage; +namespace Ui +{ + class OpenRGBPhilipsWizSettingsPage; } class Ui::OpenRGBPhilipsWizSettingsPage : public QWidget @@ -31,5 +39,3 @@ private: std::vector entries; }; - -#endif // OPENRGBPHILIPSWIZSETTINGSPAGE_H diff --git a/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.cpp b/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.cpp index 8a54d763..866e5b3a 100644 --- a/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.cpp +++ b/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBPluginContainer.h | +| | +| User interface entry for OpenRGB plugin container widget| +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBPluginContainer.h" #include "ui_OpenRGBPluginContainer.h" diff --git a/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.h b/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.h index 932d8fb1..a9dc68c6 100644 --- a/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.h +++ b/qt/OpenRGBPluginContainer/OpenRGBPluginContainer.h @@ -1,9 +1,16 @@ -#ifndef OPENRGBPLUGINCONTAINER_H -#define OPENRGBPLUGINCONTAINER_H +/*---------------------------------------------------------*\ +| OpenRGBPluginContainer.h | +| | +| User interface entry for OpenRGB plugin container widget| +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "ui_OpenRGBPluginContainer.h" +#pragma once #include +#include "ui_OpenRGBPluginContainer.h" namespace Ui { @@ -28,5 +35,3 @@ private: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBPLUGINCONTAINER_H diff --git a/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.cpp b/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.cpp index 1cfa21d6..db44785b 100644 --- a/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.cpp +++ b/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBPluginsEntry.cpp | +| | +| User interface entry for OpenRGB plugin entry widget | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBPluginsEntry.h" #include "ui_OpenRGBPluginsEntry.h" @@ -42,4 +51,3 @@ void Ui::OpenRGBPluginsEntry::on_EnabledCheckBox_stateChanged(int /*checked*/) EnableClickCallbackVal(EnableClickCallbackArg, this); } } - diff --git a/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.h b/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.h index b21c8209..5d120930 100644 --- a/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.h +++ b/qt/OpenRGBPluginsPage/OpenRGBPluginsEntry.h @@ -1,8 +1,16 @@ -#ifndef OPENRGBPLUGINSENTRY_H -#define OPENRGBPLUGINSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBPluginsEntry.h | +| | +| User interface entry for OpenRGB plugin entry widget | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBPluginsEntry.h" #include +#include "ui_OpenRGBPluginsEntry.h" namespace Ui { @@ -30,5 +38,3 @@ private: EnableClickCallback EnableClickCallbackVal; void * EnableClickCallbackArg; }; - -#endif // OPENRGBPLUGINSENTRY_H diff --git a/qt/OpenRGBPluginsPage/OpenRGBPluginsList.cpp b/qt/OpenRGBPluginsPage/OpenRGBPluginsList.cpp index 52cd9459..e7255618 100644 --- a/qt/OpenRGBPluginsPage/OpenRGBPluginsList.cpp +++ b/qt/OpenRGBPluginsPage/OpenRGBPluginsList.cpp @@ -1,6 +1,15 @@ -#include "OpenRGBPluginsList.h" +/*---------------------------------------------------------*\ +| OpenRGBPluginsList.cpp | +| | +| User interface entry for OpenRGB plugin list widget | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include #include +#include "OpenRGBPluginsList.h" OpenRGBPluginsList::OpenRGBPluginsList(QWidget *parent) : QListWidget (parent) { @@ -24,7 +33,6 @@ void OpenRGBPluginsList::dropEvent(QDropEvent *event) emit PluginsDropped(path_list); } - } void OpenRGBPluginsList::dragEnterEvent(QDragEnterEvent *event) diff --git a/qt/OpenRGBPluginsPage/OpenRGBPluginsList.h b/qt/OpenRGBPluginsPage/OpenRGBPluginsList.h index 2e1b8cdd..d9244ce6 100644 --- a/qt/OpenRGBPluginsPage/OpenRGBPluginsList.h +++ b/qt/OpenRGBPluginsPage/OpenRGBPluginsList.h @@ -1,5 +1,13 @@ -#ifndef OPENRGBPLUGINSLIST_H -#define OPENRGBPLUGINSLIST_H +/*---------------------------------------------------------*\ +| OpenRGBPluginsList.h | +| | +| User interface entry for OpenRGB plugin list widget | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include @@ -20,5 +28,3 @@ protected: void dragEnterEvent(QDragEnterEvent *event) override; void dragMoveEvent(QDragMoveEvent *event) override; }; - -#endif // OPENRGBPLUGINSLIST_H diff --git a/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.cpp b/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.cpp index 51b7f7a5..150ed76a 100644 --- a/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.cpp +++ b/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.cpp @@ -1,8 +1,16 @@ +/*---------------------------------------------------------*\ +| OpenRGBPluginsPage.cpp | +| | +| User interface entry for OpenRGB plugin settings | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include #include #include #include - #include "filesystem.h" #include "LogManager.h" #include "SettingsManager.h" diff --git a/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h b/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h index 879bd11a..b6d61489 100644 --- a/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h +++ b/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.h @@ -1,5 +1,13 @@ -#ifndef OPENRGBPLUGINSPAGE_H -#define OPENRGBPLUGINSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBPluginsPage.h | +| | +| User interface entry for OpenRGB plugin settings | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "OpenRGBPluginsEntry.h" @@ -8,7 +16,7 @@ namespace Ui { -class OpenRGBPluginsPage; + class OpenRGBPluginsPage; } class Ui::OpenRGBPluginsPage : public QWidget @@ -39,5 +47,3 @@ private: bool InstallPlugin(std::string path); void RefreshList(); }; - -#endif // OPENRGBPLUGINSPAGE_H diff --git a/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.cpp b/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.cpp index 54ff052b..3bda9123 100644 --- a/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.cpp +++ b/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBProfileSaveDialog.cpp | +| | +| User interface entry for OpenRGB profile save dialog | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include #include "ResourceManager.h" #include "OpenRGBDialog2.h" diff --git a/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.h b/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.h index b194d7a9..e0a38c10 100644 --- a/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.h +++ b/qt/OpenRGBProfileSaveDialog/OpenRGBProfileSaveDialog.h @@ -1,5 +1,13 @@ -#ifndef OPENRGBPROFILESAVEDIALOG_H -#define OPENRGBPROFILESAVEDIALOG_H +/*---------------------------------------------------------*\ +| OpenRGBProfileSaveDialog.h | +| | +| User interface entry for OpenRGB profile save dialog | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "ui_OpenRGBProfileSaveDialog.h" @@ -7,7 +15,7 @@ namespace Ui { -class OpenRGBProfileSaveDialog; + class OpenRGBProfileSaveDialog; } class Ui::OpenRGBProfileSaveDialog : public QDialog @@ -26,5 +34,3 @@ private: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBPROFILESAVEDIALOG_H diff --git a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.cpp b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.cpp index 590436ba..825103cd 100644 --- a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.cpp +++ b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBQMKORGBSettingsEntry.cpp | +| | +| User interface entry for OpenRGB QMK configuration | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBQMKORGBSettingsEntry.h" #include "ui_OpenRGBQMKORGBSettingsEntry.h" diff --git a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.h b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.h index e8775719..fbe96bdc 100644 --- a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.h +++ b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBQMKORGBSETTINGSENTRY_H -#define OPENRGBQMKORGBSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBQMKORGBSettingsEntry.h | +| | +| User interface entry for OpenRGB QMK configuration | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBQMKORGBSettingsEntry.h" #include +#include "ui_OpenRGBQMKORGBSettingsEntry.h" -namespace Ui { -class OpenRGBQMKORGBSettingsEntry; +namespace Ui +{ + class OpenRGBQMKORGBSettingsEntry; } class Ui::OpenRGBQMKORGBSettingsEntry : public QWidget @@ -20,5 +29,3 @@ public: ~OpenRGBQMKORGBSettingsEntry(); Ui::OpenRGBQMKORGBSettingsEntryUi *ui; }; - -#endif // OPENRGBQMKORGBSETTINGSENTRY_H diff --git a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.cpp b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.cpp index 577ca9ad..467654a6 100644 --- a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.cpp +++ b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBQMKORGBSettingsPage.cpp | +| | +| User interface for OpenRGB QMK device configuration page| +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBQMKORGBSettingsPage.h" #include "ui_OpenRGBQMKORGBSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.h b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.h index 81e51307..3b03749a 100644 --- a/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.h +++ b/qt/OpenRGBQMKORGBSettingsPage/OpenRGBQMKORGBSettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBQMKORGBSETTINGSPAGE_H -#define OPENRGBQMKORGBSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBQMKORGBSettingsPage.h | +| | +| User interface for OpenRGB QMK device configuration page| +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBQMKORGBSettingsPage.h" #include - +#include "ui_OpenRGBQMKORGBSettingsPage.h" #include "OpenRGBQMKORGBSettingsEntry.h" -namespace Ui { -class OpenRGBQMKORGBSettingsPage; +namespace Ui +{ + class OpenRGBQMKORGBSettingsPage; } class Ui::OpenRGBQMKORGBSettingsPage : public QWidget @@ -31,5 +39,3 @@ private: std::vector entries; }; - -#endif // OPENRGBQMKORGBSETTINGSPAGE_H diff --git a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.cpp b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.cpp index cbd36e10..4154adf2 100644 --- a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.cpp +++ b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBSerialSettingsEntry.cpp | +| | +| User interface entry for serial device configuration | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBSerialSettingsEntry.h" #include "ui_OpenRGBSerialSettingsEntry.h" @@ -39,4 +48,3 @@ void Ui::OpenRGBSerialSettingsEntry::on_ProtocolComboBox_currentIndexChanged(int ui->BaudLabel->setText("Baud:"); } } - diff --git a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.h b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.h index 69e8c629..3e6be8d8 100644 --- a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.h +++ b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBSERIALSETTINGSENTRY_H -#define OPENRGBSERIALSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBSerialSettingsEntry.h | +| | +| User interface entry for serial device configuration | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBSerialSettingsEntry.h" #include +#include "ui_OpenRGBSerialSettingsEntry.h" -namespace Ui { -class OpenRGBSerialSettingsEntry; +namespace Ui +{ + class OpenRGBSerialSettingsEntry; } class Ui::OpenRGBSerialSettingsEntry : public QWidget @@ -22,5 +31,3 @@ public: ~OpenRGBSerialSettingsEntry(); Ui::OpenRGBSerialSettingsEntryUi *ui; }; - -#endif // OPENRGBSERIALSETTINGSENTRY_H diff --git a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.cpp b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.cpp index 8ec689c1..e07126b5 100644 --- a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.cpp +++ b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBSerialSettingsPage.cpp | +| | +| User interface for serial device configuration page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBSerialSettingsPage.h" #include "ui_OpenRGBSerialSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.h b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.h index 98f15b48..8817acd3 100644 --- a/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.h +++ b/qt/OpenRGBSerialSettingsPage/OpenRGBSerialSettingsPage.h @@ -1,13 +1,22 @@ -#ifndef OPENRGBSERIALSETTINGSPAGE_H -#define OPENRGBSERIALSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBSerialSettingsPage.h | +| | +| User interface for serial device configuration page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBSerialSettingsPage.h" #include +#include "ui_OpenRGBSerialSettingsPage.h" #include "OpenRGBSerialSettingsEntry.h" -namespace Ui { -class OpenRGBSerialSettingsPage; +namespace Ui +{ + class OpenRGBSerialSettingsPage; } class Ui::OpenRGBSerialSettingsPage : public QWidget @@ -31,5 +40,3 @@ private: std::vector entries; }; - -#endif // OPENRGBSERIALSETTINGSPAGE_H diff --git a/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.cpp b/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.cpp index 2580c8a9..508dc2d9 100644 --- a/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.cpp +++ b/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBServerInfoPage.cpp | +| | +| User interface for server information page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBServerInfoPage.h" using namespace Ui; diff --git a/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.h b/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.h index 8fd7555c..a78aaded 100644 --- a/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.h +++ b/qt/OpenRGBServerInfoPage/OpenRGBServerInfoPage.h @@ -1,13 +1,22 @@ -#ifndef OPENRGBSERVERINFOPAGE_H -#define OPENRGBSERVERINFOPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBServerInfoPage.h | +| | +| User interface for server information page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "RGBController.h" #include "ui_OpenRGBServerInfoPage.h" #include "NetworkServer.h" -namespace Ui { -class OpenRGBServerInfoPage; +namespace Ui +{ + class OpenRGBServerInfoPage; } class Ui::OpenRGBServerInfoPage : public QFrame @@ -31,5 +40,3 @@ private: NetworkServer* network_server; }; - -#endif // OPENRGBSERVERINFOPAGE_H diff --git a/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp b/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp index af0387d8..ece3e7f8 100644 --- a/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp +++ b/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.cpp @@ -1,3 +1,14 @@ +/*---------------------------------------------------------*\ +| OpenRGBSettingsPage.cpp | +| | +| User interface for general settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include +#include #include "AutoStart.h" #include "OpenRGBSettingsPage.h" #include "ui_OpenRGBSettingsPage.h" @@ -5,8 +16,6 @@ #include "ResourceManager.h" #include "SettingsManager.h" #include "ProfileManager.h" -#include -#include using namespace Ui; diff --git a/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.h b/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.h index 46a8c44c..5f1d085d 100644 --- a/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.h +++ b/qt/OpenRGBSettingsPage/OpenRGBSettingsPage.h @@ -1,17 +1,26 @@ -#ifndef SETTINGSPAGE_H -#define SETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBSettingsPage.h | +| | +| User interface for general settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBSettingsPage.h" #include #include #include #include - #include +#include "ui_OpenRGBSettingsPage.h" + using json = nlohmann::json; -namespace Ui { -class OpenRGBSettingsPage; +namespace Ui +{ + class OpenRGBSettingsPage; } class Ui::OpenRGBSettingsPage : public QWidget @@ -74,5 +83,3 @@ private slots: void on_ComboBoxExitProfile_currentTextChanged(const QString exit_profile_name); void on_CheckboxDisableKeyExpansion_clicked(); }; - -#endif // OPENRGBSETTINGSPAGE_H diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp index f9866ec4..4e98e5b9 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBSoftwareInfoPage.cpp | +| | +| User interface for software information page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBSoftwareInfoPage.h" #include "OpenRGBPluginInterface.h" #include "NetworkProtocol.h" diff --git a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h index baff9b78..c4475003 100644 --- a/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h +++ b/qt/OpenRGBSoftwareInfoPage/OpenRGBSoftwareInfoPage.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBSOFTWAREINFOPAGE_H -#define OPENRGBSOFTWAREINFOPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBSoftwareInfoPage.h | +| | +| User interface for software information page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "ui_OpenRGBSoftwareInfoPage.h" -namespace Ui { -class OpenRGBSoftwareInfoPage; +namespace Ui +{ + class OpenRGBSoftwareInfoPage; } class Ui::OpenRGBSoftwareInfoPage : public QFrame @@ -22,5 +31,3 @@ private: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBSOFTWAREINFOPAGE_H diff --git a/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.cpp b/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.cpp index 9156a160..62dc01ae 100644 --- a/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.cpp +++ b/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBSupportedDevicePage.cpp | +| | +| User interface for enabling and disabling devices | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBSupportedDevicesPage.h" #include "ui_OpenRGBSupportedDevicesPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.h b/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.h index 8480a487..8ba07e22 100644 --- a/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.h +++ b/qt/OpenRGBSupportedDevicesPage/OpenRGBSupportedDevicesPage.h @@ -1,13 +1,22 @@ -#ifndef SUPPORTEDDEVICESPAGE_H -#define SUPPORTEDDEVICESPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBSupportedDevicePage.h | +| | +| User interface for enabling and disabling devices | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "DetectorTableModel.h" -#include "ui_OpenRGBSupportedDevicesPage.h" #include #include +#include "DetectorTableModel.h" +#include "ui_OpenRGBSupportedDevicesPage.h" -namespace Ui { -class OpenRGBSupportedDevicesPage; +namespace Ui +{ + class OpenRGBSupportedDevicesPage; } class Ui::OpenRGBSupportedDevicesPage : public QWidget @@ -32,5 +41,3 @@ private slots: private: Ui::OpenRGBSupportedDevicesPageUi *ui; }; - -#endif // SUPPORTEDDEVICESPAGE_H diff --git a/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.cpp b/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.cpp index 442231a9..da1ab0fa 100644 --- a/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.cpp +++ b/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBSystemInfoPage.cpp | +| | +| User interface entry for OpenRGB system information page| +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBSystemInfoPage.h" #include "ResourceManager.h" #include "i2c_tools.h" diff --git a/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.h b/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.h index 12c222a4..6b4ef94e 100644 --- a/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.h +++ b/qt/OpenRGBSystemInfoPage/OpenRGBSystemInfoPage.h @@ -1,12 +1,21 @@ -#ifndef OPENRGBSYSTEMINFOPAGE_H -#define OPENRGBSYSTEMINFOPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBSystemInfoPage.h | +| | +| User interface entry for OpenRGB system information page| +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "ui_OpenRGBSystemInfoPage.h" #include "i2c_smbus.h" -namespace Ui { -class OpenRGBSystemInfoPage; +namespace Ui +{ + class OpenRGBSystemInfoPage; } class Ui::OpenRGBSystemInfoPage : public QFrame @@ -32,5 +41,3 @@ private: Ui::OpenRGBSystemInfoPageUi *ui; std::vector& busses; }; - -#endif // OPENRGBSYSTEMINFOPAGE_H diff --git a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.cpp b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.cpp index d54307c3..df4305b5 100644 --- a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.cpp +++ b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.cpp @@ -1,7 +1,16 @@ +/*---------------------------------------------------------*\ +| OpenRGBYeelightSettingsEntry.cpp | +| | +| User interface for Yeelight settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include #include "OpenRGBYeelightSettingsEntry.h" #include "ui_OpenRGBYeelightSettingsEntry.h" #include "net_port.h" -#include using namespace Ui; diff --git a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.h b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.h index c2912093..d52a0fda 100644 --- a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.h +++ b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBYEELIGHTSETTINGSENTRY_H -#define OPENRGBYEELIGHTSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBYeelightSettingsEntry.h | +| | +| User interface for Yeelight settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBYeelightSettingsEntry.h" #include +#include "ui_OpenRGBYeelightSettingsEntry.h" -namespace Ui { -class OpenRGBYeelightSettingsEntry; +namespace Ui +{ + class OpenRGBYeelightSettingsEntry; } class Ui::OpenRGBYeelightSettingsEntry : public QWidget @@ -20,7 +29,4 @@ public: private slots: void changeEvent(QEvent *event); void on_HostIPChooserButton_clicked(); - }; - -#endif // OPENRGBYeelightSETTINGSENTRY_H diff --git a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.cpp b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.cpp index f7e9bea2..a0bb6a6b 100644 --- a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.cpp +++ b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBYeelightSettingsPage.cpp | +| | +| User interface for configuring Yeelight settings | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBYeelightSettingsPage.h" #include "ui_OpenRGBYeelightSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.h b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.h index a6ccfe46..8cfc3347 100644 --- a/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.h +++ b/qt/OpenRGBYeelightSettingsPage/OpenRGBYeelightSettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBYEELIGHTSETTINGSPAGE_H -#define OPENRGBYEELIGHTSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBYeelightSettingsPage.h | +| | +| User interface for configuring Yeelight settings | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBYeelightSettingsPage.h" #include - +#include "ui_OpenRGBYeelightSettingsPage.h" #include "OpenRGBYeelightSettingsEntry.h" -namespace Ui { -class OpenRGBYeelightSettingsPage; +namespace Ui +{ + class OpenRGBYeelightSettingsPage; } class Ui::OpenRGBYeelightSettingsPage : public QWidget @@ -29,7 +37,4 @@ private slots: private: Ui::OpenRGBYeelightSettingsPageUi *ui; std::vector entries; - }; - -#endif // OPENRGBYEELIGHTSETTINGSPAGE_H diff --git a/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.cpp b/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.cpp index 77c00c49..290078d6 100644 --- a/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.cpp +++ b/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.cpp @@ -1,6 +1,14 @@ -#include "OpenRGBZoneResizeDialog.h" +/*---------------------------------------------------------*\ +| OpenRGBZoneResizeDialog.cpp | +| | +| User interface for resizing zones | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ #include +#include "OpenRGBZoneResizeDialog.h" using namespace Ui; diff --git a/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.h b/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.h index 05dbdbbd..065c666b 100644 --- a/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.h +++ b/qt/OpenRGBZoneResizeDialog/OpenRGBZoneResizeDialog.h @@ -1,13 +1,22 @@ -#ifndef OPENRGBZONERESIZEDIALOG_H -#define OPENRGBZONERESIZEDIALOG_H +/*---------------------------------------------------------*\ +| OpenRGBZoneResizeDialog.h | +| | +| User interface for resizing zones | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "ui_OpenRGBZoneResizeDialog.h" #include "RGBController.h" -namespace Ui { -class OpenRGBZoneResizeDialog; +namespace Ui +{ + class OpenRGBZoneResizeDialog; } class Ui::OpenRGBZoneResizeDialog : public QDialog @@ -42,5 +51,3 @@ private: void CheckSegmentsValidity(); }; - -#endif // OPENRGBZONERESIZEDIALOG_H diff --git a/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.cpp b/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.cpp index f2f5110f..6fb7477e 100644 --- a/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.cpp +++ b/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.cpp @@ -1,11 +1,20 @@ +/*---------------------------------------------------------*\ +| OpenRGBZonesBulkResizer.cpp | +| | +| User interface for bulk resizing zones | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include +#include #include "OpenRGBZonesBulkResizer.h" #include "ui_OpenRGBZonesBulkResizer.h" #include "ResourceManager.h" #include "SettingsManager.h" #include "LogManager.h" #include "OpenRGBDialog2.h" -#include -#include using namespace Ui; diff --git a/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.h b/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.h index 9b79134a..54ab468e 100644 --- a/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.h +++ b/qt/OpenRGBZonesBulkResizer/OpenRGBZonesBulkResizer.h @@ -1,12 +1,21 @@ -#ifndef OPENRGBZONESBULKRESIZER_H -#define OPENRGBZONESBULKRESIZER_H +/*---------------------------------------------------------*\ +| OpenRGBZonesBulkResizer.h | +| | +| User interface for bulk resizing zones | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ +#pragma once + +#include #include "ui_OpenRGBZonesBulkResizer.h" #include "RGBController.h" -#include -namespace Ui { -class OpenRGBZonesBulkResizer; +namespace Ui +{ + class OpenRGBZonesBulkResizer; } class Ui::OpenRGBZonesBulkResizer : public QWidget @@ -37,5 +46,3 @@ private slots: void on_ignore_button_clicked(); }; - -#endif // OPENRGBZONESBULKRESIZER_H