From ff2957ec80940597a07d17419a1ff02bea112120 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Wed, 8 May 2024 00:34:10 -0500 Subject: [PATCH] Update the rest of the user interface file header comments to the standardized new format --- .../OpenRGBClientInfoPage.cpp | 11 +++++- .../OpenRGBClientInfoPage.h | 19 +++++++--- qt/OpenRGBConsolePage/OpenRGBConsolePage.cpp | 11 +++++- qt/OpenRGBConsolePage/OpenRGBConsolePage.h | 19 +++++++--- .../OpenRGBDMXSettingsEntry.cpp | 9 +++++ .../OpenRGBDMXSettingsEntry.h | 21 ++++++---- .../OpenRGBDMXSettingsPage.cpp | 9 +++++ .../OpenRGBDMXSettingsPage.h | 22 +++++++---- .../OpenRGBDeviceInfoPage.cpp | 9 +++++ .../OpenRGBDeviceInfoPage.h | 19 +++++++--- qt/OpenRGBDevicePage/OpenRGBDevicePage.cpp | 9 +++++ qt/OpenRGBDevicePage/OpenRGBDevicePage.h | 22 +++++++---- qt/OpenRGBDialog/OpenRGBDialog.cpp | 9 +++++ qt/OpenRGBDialog/OpenRGBDialog.h | 20 ++++++---- qt/OpenRGBDialog2/OpenRGBDialog2.cpp | 13 ++++++- qt/OpenRGBDialog2/OpenRGBDialog2.h | 28 ++++++++------ .../OpenRGBE131SettingsEntry.cpp | 9 +++++ .../OpenRGBE131SettingsEntry.h | 21 ++++++---- .../OpenRGBE131SettingsPage.cpp | 9 +++++ .../OpenRGBE131SettingsPage.h | 23 ++++++----- .../OpenRGBElgatoKeyLightSettingsEntry.cpp | 9 +++++ .../OpenRGBElgatoKeyLightSettingsEntry.h | 21 ++++++---- .../OpenRGBElgatoKeyLightSettingsPage.cpp | 10 ++++- .../OpenRGBElgatoKeyLightSettingsPage.h | 23 ++++++----- .../OpenRGBElgatoLightStripSettingsEntry.cpp | 9 +++++ .../OpenRGBElgatoLightStripSettingsEntry.h | 16 +++++--- .../OpenRGBElgatoLightStripSettingsPage.cpp | 9 +++++ .../OpenRGBElgatoLightStripSettingsPage.h | 38 +++++++++++-------- .../OpenRGBHardwareIDsDialog.cpp | 20 +++++++--- .../OpenRGBHardwareIDsDialog.h | 15 +++++--- 30 files changed, 354 insertions(+), 128 deletions(-) diff --git a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp index 09267a90..7fc9e4b4 100644 --- a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp +++ b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.cpp @@ -1,10 +1,19 @@ +/*---------------------------------------------------------*\ +| OpenRGBClientInfoPage.cpp | +| | +| User interface for OpenRGB client information page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include #include #include #include "OpenRGBClientInfoPage.h" #include "ResourceManager.h" #include "SettingsManager.h" -#include using namespace Ui; static void UpdateInfoCallback(void * this_ptr) diff --git a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h index b54879a5..19d2481f 100644 --- a/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h +++ b/qt/OpenRGBClientInfoPage/OpenRGBClientInfoPage.h @@ -1,13 +1,22 @@ -#ifndef OPENRGBCLIENTINFOPAGE_H -#define OPENRGBCLIENTINFOPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBClientInfoPage.h | +| | +| User interface for OpenRGB client 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_OpenRGBClientInfoPage.h" #include "NetworkClient.h" -namespace Ui { -class OpenRGBClientInfoPage; +namespace Ui +{ + class OpenRGBClientInfoPage; } class Ui::OpenRGBClientInfoPage : public QFrame @@ -32,5 +41,3 @@ private slots: private: Ui::OpenRGBClientInfoPageUi *ui; }; - -#endif // OPENRGBCLIENTINFOPAGE_H diff --git a/qt/OpenRGBConsolePage/OpenRGBConsolePage.cpp b/qt/OpenRGBConsolePage/OpenRGBConsolePage.cpp index c3b21119..ebab8b02 100644 --- a/qt/OpenRGBConsolePage/OpenRGBConsolePage.cpp +++ b/qt/OpenRGBConsolePage/OpenRGBConsolePage.cpp @@ -1,6 +1,15 @@ +/*---------------------------------------------------------*\ +| OpenRGBConsolePage.cpp | +| | +| User interface for OpenRGB console page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include #include "OpenRGBConsolePage.h" #include "LogManager.h" -#include using namespace Ui; diff --git a/qt/OpenRGBConsolePage/OpenRGBConsolePage.h b/qt/OpenRGBConsolePage/OpenRGBConsolePage.h index 6eb40368..96499dcf 100644 --- a/qt/OpenRGBConsolePage/OpenRGBConsolePage.h +++ b/qt/OpenRGBConsolePage/OpenRGBConsolePage.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBCONSOLEPAGE_H -#define OPENRGBCONSOLEPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBConsolePage.h | +| | +| User interface for OpenRGB console page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once #include #include "ui_OpenRGBConsolePage.h" -namespace Ui { -class OpenRGBConsolePage; +namespace Ui +{ + class OpenRGBConsolePage; } class Ui::OpenRGBConsolePage : public QFrame @@ -27,5 +36,3 @@ private: void Refresh(); }; - -#endif // OPENRGBCONSOLEPAGE_H diff --git a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.cpp b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.cpp index e4cfe7d2..e87d2469 100644 --- a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.cpp +++ b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBDMXSettingsEntry.cpp | +| | +| User interface for OpenRGB DMX settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBDMXSettingsEntry.h" #include "ui_OpenRGBDMXSettingsEntry.h" diff --git a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.h b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.h index 86c4a301..94b17de5 100644 --- a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.h +++ b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBDMXSETTINGSENTRY_H -#define OPENRGBDMXSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBDMXSettingsEntry.h | +| | +| User interface for OpenRGB DMX settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBDMXSettingsEntry.h" #include +#include "ui_OpenRGBDMXSettingsEntry.h" -namespace Ui { -class OpenRGBDMXSettingsEntry; +namespace Ui +{ + class OpenRGBDMXSettingsEntry; } class Ui::OpenRGBDMXSettingsEntry : public QWidget @@ -20,5 +29,3 @@ public: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBDMXSETTINGSENTRY_H diff --git a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.cpp b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.cpp index e289f2ce..7ce17c41 100644 --- a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.cpp +++ b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBDMXSettingsPage.cpp | +| | +| User interface for OpenRGB DMX settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBDMXSettingsPage.h" #include "ui_OpenRGBDMXSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.h b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.h index 5427b4a9..8a8a225c 100644 --- a/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.h +++ b/qt/OpenRGBDMXSettingsPage/OpenRGBDMXSettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBDMXSETTINGSPAGE_H -#define OPENRGBDMXSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBDMXSettingsPage.h | +| | +| User interface for OpenRGB DMX settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBDMXSettingsPage.h" #include - +#include "ui_OpenRGBDMXSettingsPage.h" #include "OpenRGBDMXSettingsEntry.h" -namespace Ui { -class OpenRGBDMXSettingsPage; +namespace Ui +{ + class OpenRGBDMXSettingsPage; } class Ui::OpenRGBDMXSettingsPage : public QWidget @@ -31,5 +39,3 @@ private: std::vector entries; }; - -#endif // OPENRGBDMXSETTINGSPAGE_H diff --git a/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.cpp b/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.cpp index eafca391..0d213b2b 100644 --- a/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.cpp +++ b/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBDeviceInfoPage.cpp | +| | +| User interface for OpenRGB device information page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBDeviceInfoPage.h" using namespace Ui; diff --git a/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.h b/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.h index 7319b014..365c92eb 100644 --- a/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.h +++ b/qt/OpenRGBDeviceInfoPage/OpenRGBDeviceInfoPage.h @@ -1,12 +1,21 @@ -#ifndef OPENRGBDEVICEINFOPAGE_H -#define OPENRGBDEVICEINFOPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBDeviceInfoPage.h | +| | +| User interface for OpenRGB device 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_OpenRGBDeviceInfoPage.h" -namespace Ui { -class OpenRGBDeviceInfoPage; +namespace Ui +{ + class OpenRGBDeviceInfoPage; } class Ui::OpenRGBDeviceInfoPage : public QFrame @@ -26,5 +35,3 @@ private: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBDEVICEINFOPAGE_H diff --git a/qt/OpenRGBDevicePage/OpenRGBDevicePage.cpp b/qt/OpenRGBDevicePage/OpenRGBDevicePage.cpp index d03eacb7..7f93fcf8 100644 --- a/qt/OpenRGBDevicePage/OpenRGBDevicePage.cpp +++ b/qt/OpenRGBDevicePage/OpenRGBDevicePage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBDevicePage.cpp | +| | +| User interface for OpenRGB device page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBDialog2.h" #include "OpenRGBDevicePage.h" #include "OpenRGBZoneResizeDialog.h" diff --git a/qt/OpenRGBDevicePage/OpenRGBDevicePage.h b/qt/OpenRGBDevicePage/OpenRGBDevicePage.h index bae56f2d..8750ed1c 100644 --- a/qt/OpenRGBDevicePage/OpenRGBDevicePage.h +++ b/qt/OpenRGBDevicePage/OpenRGBDevicePage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBDEVICEPAGE_H -#define OPENRGBDEVICEPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBDevicePage.h | +| | +| User interface for OpenRGB device page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ +#pragma once + +#include #include "ui_OpenRGBDevicePage.h" #include "RGBController.h" -#include - -namespace Ui { -class OpenRGBDevicePage; +namespace Ui +{ + class OpenRGBDevicePage; } class Ui::OpenRGBDevicePage : public QFrame @@ -83,5 +91,3 @@ signals: void SetAllDevices(unsigned char red, unsigned char green, unsigned char blue); void SaveSizeProfile(); }; - -#endif // OPENRGBDEVICEPAGE_H diff --git a/qt/OpenRGBDialog/OpenRGBDialog.cpp b/qt/OpenRGBDialog/OpenRGBDialog.cpp index 99434211..c52968ae 100644 --- a/qt/OpenRGBDialog/OpenRGBDialog.cpp +++ b/qt/OpenRGBDialog/OpenRGBDialog.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBDialog.cpp | +| | +| User interface for OpenRGB main window | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBDialog.h" using namespace Ui; diff --git a/qt/OpenRGBDialog/OpenRGBDialog.h b/qt/OpenRGBDialog/OpenRGBDialog.h index d37f2f81..f65335c7 100644 --- a/qt/OpenRGBDialog/OpenRGBDialog.h +++ b/qt/OpenRGBDialog/OpenRGBDialog.h @@ -1,16 +1,22 @@ -#ifndef OPENRGBDIALOG_H -#define OPENRGBDIALOG_H +/*---------------------------------------------------------*\ +| OpenRGBDialog.h | +| | +| User interface for OpenRGB main window | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "ui_OpenRGBDialog.h" +#pragma once #include -#include "i2c_smbus.h" -#include "RGBController.h" - #include #include #include #include +#include "ui_OpenRGBDialog.h" +#include "i2c_smbus.h" +#include "RGBController.h" namespace Ui { @@ -55,5 +61,3 @@ private slots: private: Ui::OpenRGBDialogUi *ui; }; - -#endif // OPENRGBDIALOG_H diff --git a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp index 916b0ded..c75cac5e 100644 --- a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp @@ -1,4 +1,13 @@ -#include +/*---------------------------------------------------------*\ +| OpenRGBDialog2.cpp | +| | +| User interface for OpenRGB main window | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#include #include "OpenRGBDialog2.h" #include "LogManager.h" #include "PluginManager.h" @@ -858,7 +867,7 @@ void OpenRGBDialog2::AddSerialSettingsPage() \*-----------------------------------------------------*/ SerialSettingsPage = new OpenRGBSerialSettingsPage(); - ui->SettingsTabBar->addTab(SerialSettingsPage, ""); + ui->SettingsTabBar->addTab(SerialSettingsPage, ""); /*-----------------------------------------------------*\ | Create the tab label | diff --git a/qt/OpenRGBDialog2/OpenRGBDialog2.h b/qt/OpenRGBDialog2/OpenRGBDialog2.h index e7eceb80..718b3b6d 100644 --- a/qt/OpenRGBDialog2/OpenRGBDialog2.h +++ b/qt/OpenRGBDialog2/OpenRGBDialog2.h @@ -1,5 +1,20 @@ -#ifndef OPENRGBDIALOG2_H -#define OPENRGBDIALOG2_H +/*---------------------------------------------------------*\ +| OpenRGBDialog2.h | +| | +| User interface for OpenRGB main window | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once + +#include +#include +#include +#include +#include +#include #include "ui_OpenRGBDialog2.h" @@ -23,7 +38,6 @@ #include "OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.h" #include "PluginManager.h" -#include #include "i2c_smbus.h" #include "LogManager.h" #include "RGBController.h" @@ -31,12 +45,6 @@ #include "NetworkClient.h" #include "NetworkServer.h" -#include -#include -#include -#include -#include - namespace Ui { class OpenRGBDialog2; @@ -182,5 +190,3 @@ private slots: void on_SettingsTabBar_currentChanged(int); }; - -#endif // OPENRGBDIALOG2_H diff --git a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.cpp b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.cpp index 3bccf739..23c7b9f3 100644 --- a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.cpp +++ b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBE131SettingsEntry.cpp | +| | +| User interface for OpenRGB E1.31 settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBE131SettingsEntry.h" #include "ui_OpenRGBE131SettingsEntry.h" diff --git a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.h b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.h index ad8fb706..34c9462c 100644 --- a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.h +++ b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBE131SETTINGSENTRY_H -#define OPENRGBE131SETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBE131SettingsEntry.h | +| | +| User interface for OpenRGB E1.31 settings entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBE131SettingsEntry.h" #include +#include "ui_OpenRGBE131SettingsEntry.h" -namespace Ui { -class OpenRGBE131SettingsEntry; +namespace Ui +{ + class OpenRGBE131SettingsEntry; } class Ui::OpenRGBE131SettingsEntry : public QWidget @@ -25,5 +34,3 @@ private slots: void changeEvent(QEvent *event); void on_TypeComboBox_currentIndexChanged(int index); }; - -#endif // OPENRGBE131SETTINGSENTRY_H diff --git a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.cpp b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.cpp index 1b820f2b..8d06e1de 100644 --- a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.cpp +++ b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBE131SettingsPage.cpp | +| | +| User interface for OpenRGB E1.31 settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBE131SettingsPage.h" #include "ui_OpenRGBE131SettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.h b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.h index 1bfa88da..4fdfeab2 100644 --- a/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.h +++ b/qt/OpenRGBE131SettingsPage/OpenRGBE131SettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBE131SETTINGSPAGE_H -#define OPENRGBE131SETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBE131SettingsPage.h | +| | +| User interface for OpenRGB E1.31 settings page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBE131SettingsPage.h" #include - +#include "ui_OpenRGBE131SettingsPage.h" #include "OpenRGBE131SettingsEntry.h" -namespace Ui { -class OpenRGBE131SettingsPage; +namespace Ui +{ + class OpenRGBE131SettingsPage; } class Ui::OpenRGBE131SettingsPage : public QWidget @@ -29,7 +37,4 @@ private slots: private: Ui::OpenRGBE131SettingsPageUi *ui; std::vector entries; - }; - -#endif // OPENRGBE131SETTINGSPAGE_H diff --git a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.cpp b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.cpp index a681bf52..38dfada0 100644 --- a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.cpp +++ b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBElgatoKeyLightSettingsEntry.cpp | +| | +| User interface for OpenRGB Elgato Key Light entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBElgatoKeyLightSettingsEntry.h" #include "ui_OpenRGBElgatoKeyLightSettingsEntry.h" diff --git a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.h b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.h index 82413b74..f36e8779 100644 --- a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.h +++ b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsEntry.h @@ -1,11 +1,20 @@ -#ifndef OPENRGBELGATOKEYLIGHTSETTINGSENTRY_H -#define OPENRGBELGATOKEYLIGHTSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBElgatoKeyLightSettingsEntry.h | +| | +| User interface for OpenRGB Elgato Key Light entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBElgatoKeyLightSettingsEntry.h" #include +#include "ui_OpenRGBElgatoKeyLightSettingsEntry.h" -namespace Ui { -class OpenRGBElgatoKeyLightSettingsEntry; +namespace Ui +{ + class OpenRGBElgatoKeyLightSettingsEntry; } class Ui::OpenRGBElgatoKeyLightSettingsEntry : public QDialog @@ -20,5 +29,3 @@ public: private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBELGATOKEYLIGHTSETTINGSENTRY_H diff --git a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.cpp b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.cpp index e086fb40..79ce8823 100644 --- a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.cpp +++ b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBElgatoKeyLightSettingsPage.cpp | +| | +| User interface for OpenRGB Elgato Key Light page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBElgatoKeyLightSettingsPage.h" #include "ui_OpenRGBElgatoKeyLightSettingsPage.h" #include "ResourceManager.h" @@ -106,4 +115,3 @@ void Ui::OpenRGBElgatoKeyLightSettingsPage::on_SaveElgatoKeyLightConfigurationBu ResourceManager::get()->GetSettingsManager()->SetSettings("ElgatoKeyLightDevices", elgato_keylight_settings); ResourceManager::get()->GetSettingsManager()->SaveSettings(); } - diff --git a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.h b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.h index ee87d453..fed51a8b 100644 --- a/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.h +++ b/qt/OpenRGBElgatoKeyLightSettingsPage/OpenRGBElgatoKeyLightSettingsPage.h @@ -1,13 +1,21 @@ -#ifndef OPENRGBELGATOKEYLIGHTSETTINGSPAGE_H -#define OPENRGBELGATOKEYLIGHTSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBElgatoKeyLightSettingsPage.h | +| | +| User interface for OpenRGB Elgato Key Light page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBElgatoKeyLightSettingsPage.h" #include - +#include "ui_OpenRGBElgatoKeyLightSettingsPage.h" #include "OpenRGBElgatoKeyLightSettingsEntry.h" -namespace Ui { -class OpenRGBElgatoKeyLightSettingsPage; +namespace Ui +{ + class OpenRGBElgatoKeyLightSettingsPage; } class Ui::OpenRGBElgatoKeyLightSettingsPage : public QWidget @@ -29,7 +37,4 @@ private slots: private: Ui::OpenRGBElgatoKeyLightSettingsPageUi *ui; std::vector entries; - }; - -#endif // OPENRGBELGATOKEYLIGHTSETTINGSPAGE_H diff --git a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.cpp b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.cpp index a0f8c0c4..675c4846 100644 --- a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.cpp +++ b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBElgatoLightStripSettingsEntry.cpp | +| | +| User interface for OpenRGB Elgato Light Strips entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBElgatoLightStripSettingsEntry.h" #include "ui_OpenRGBElgatoLightStripSettingsEntry.h" diff --git a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.h b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.h index 37d9f493..58710815 100644 --- a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.h +++ b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsEntry.h @@ -1,8 +1,16 @@ -#ifndef OPENRGBELGATOLIGHTSTRIPSETTINGSENTRY_H -#define OPENRGBELGATOLIGHTSTRIPSETTINGSENTRY_H +/*---------------------------------------------------------*\ +| OpenRGBElgatoLightStripSettingsEntry.h | +| | +| User interface for OpenRGB Elgato Light Strips entry | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBElgatoLightStripSettingsEntry.h" #include +#include "ui_OpenRGBElgatoLightStripSettingsEntry.h" namespace Ui { @@ -21,5 +29,3 @@ class Ui::OpenRGBElgatoLightStripSettingsEntry : public QDialog private slots: void changeEvent(QEvent *event); }; - -#endif // OPENRGBELGATOLIGHTSTRIPSETTINGSENTRY_H diff --git a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.cpp b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.cpp index 5a7c61db..47630f8b 100644 --- a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.cpp +++ b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.cpp @@ -1,3 +1,12 @@ +/*---------------------------------------------------------*\ +| OpenRGBElgatoLightStripSettingsPage.cpp | +| | +| User interface for OpenRGB Elgato Light Strips page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include "OpenRGBElgatoLightStripSettingsPage.h" #include "ui_OpenRGBElgatoLightStripSettingsPage.h" #include "ResourceManager.h" diff --git a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.h b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.h index 3ba2b15b..f33dbcb5 100644 --- a/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.h +++ b/qt/OpenRGBElgatoLightStripSettingsPage/OpenRGBElgatoLightStripSettingsPage.h @@ -1,8 +1,16 @@ -#ifndef OPENRGBELGATOLIGHTSTRIPSETTINGSPAGE_H -#define OPENRGBELGATOLIGHTSTRIPSETTINGSPAGE_H +/*---------------------------------------------------------*\ +| OpenRGBElgatoLightStripSettingsPage.h | +| | +| User interface for OpenRGB Elgato Light Strips page | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + +#pragma once -#include "ui_OpenRGBElgatoLightStripSettingsPage.h" #include +#include "ui_OpenRGBElgatoLightStripSettingsPage.h" #include "OpenRGBElgatoLightStripSettingsEntry.h" namespace Ui @@ -14,21 +22,19 @@ class Ui::OpenRGBElgatoLightStripSettingsPage : public QWidget { Q_OBJECT - public: - explicit OpenRGBElgatoLightStripSettingsPage(QWidget *parent = nullptr); - ~OpenRGBElgatoLightStripSettingsPage(); +public: + explicit OpenRGBElgatoLightStripSettingsPage(QWidget *parent = nullptr); + ~OpenRGBElgatoLightStripSettingsPage(); - private slots: - void changeEvent(QEvent *event); - void on_AddElgatoLightStripDeviceButton_clicked(); +private slots: + void changeEvent(QEvent *event); + void on_AddElgatoLightStripDeviceButton_clicked(); - void on_RemoveElgatoLightStripDeviceButton_clicked(); + void on_RemoveElgatoLightStripDeviceButton_clicked(); - void on_SaveElgatoLightStripConfigurationButton_clicked(); + void on_SaveElgatoLightStripConfigurationButton_clicked(); - private: - Ui::OpenRGBElgatoLightStripSettingsPageUi *ui; - std::vector entries; +private: + Ui::OpenRGBElgatoLightStripSettingsPageUi *ui; + std::vector entries; }; - -#endif // OPENRGBELGATOLIGHTSTRIPSETTINGSPAGE_H diff --git a/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.cpp b/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.cpp index a6d687ab..7805eb99 100644 --- a/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.cpp +++ b/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.cpp @@ -1,10 +1,15 @@ -#include "OpenRGBHardwareIDsDialog.h" -#include "ui_OpenRGBHardwareIDsDialog.h" -#include -#include "ResourceManager.h" -#include "StringUtils.h" +/*---------------------------------------------------------*\ +| OpenRGBHardwareIDsDialog.cpp | +| | +| User interface for OpenRGB Hardware IDs dialog | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ + #include #include +#include #ifdef __FreeBSD__ #include @@ -12,6 +17,11 @@ #include #endif +#include "OpenRGBHardwareIDsDialog.h" +#include "ui_OpenRGBHardwareIDsDialog.h" +#include "ResourceManager.h" +#include "StringUtils.h" + Ui::OpenRGBHardwareIDsDialog::OpenRGBHardwareIDsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::OpenRGBHardwareIDsDialogUi) diff --git a/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.h b/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.h index e4a50071..16b520ef 100644 --- a/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.h +++ b/qt/OpenRGBHardwareIDsDialog/OpenRGBHardwareIDsDialog.h @@ -1,9 +1,16 @@ -#ifndef OPENRGBHARDWAREIDSDIALOG_H -#define OPENRGBHARDWAREIDSDIALOG_H +/*---------------------------------------------------------*\ +| OpenRGBHardwareIDsDialog.h | +| | +| User interface for OpenRGB Hardware IDs dialog | +| | +| This file is part of the OpenRGB project | +| SPDX-License-Identifier: GPL-2.0-only | +\*---------------------------------------------------------*/ -#include "ui_OpenRGBHardwareIDsDialog.h" +#pragma once #include +#include "ui_OpenRGBHardwareIDsDialog.h" namespace Ui { @@ -27,5 +34,3 @@ private: Ui::OpenRGBHardwareIDsDialogUi *ui; QStringList strings; }; - -#endif // OPENRGBHARDWAREIDSDIALOG_H