Update the rest of the user interface file header comments to the standardized new format

This commit is contained in:
Adam Honse 2024-05-08 00:34:10 -05:00
parent e11046d076
commit ff2957ec80
30 changed files with 354 additions and 128 deletions

View file

@ -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 <iostream>
#include <QSignalMapper> #include <QSignalMapper>
#include <QCheckBox> #include <QCheckBox>
#include "OpenRGBClientInfoPage.h" #include "OpenRGBClientInfoPage.h"
#include "ResourceManager.h" #include "ResourceManager.h"
#include "SettingsManager.h" #include "SettingsManager.h"
#include <iostream>
using namespace Ui; using namespace Ui;
static void UpdateInfoCallback(void * this_ptr) static void UpdateInfoCallback(void * this_ptr)

View file

@ -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 <QFrame> #include <QFrame>
#include "RGBController.h" #include "RGBController.h"
#include "ui_OpenRGBClientInfoPage.h" #include "ui_OpenRGBClientInfoPage.h"
#include "NetworkClient.h" #include "NetworkClient.h"
namespace Ui { namespace Ui
class OpenRGBClientInfoPage; {
class OpenRGBClientInfoPage;
} }
class Ui::OpenRGBClientInfoPage : public QFrame class Ui::OpenRGBClientInfoPage : public QFrame
@ -32,5 +41,3 @@ private slots:
private: private:
Ui::OpenRGBClientInfoPageUi *ui; Ui::OpenRGBClientInfoPageUi *ui;
}; };
#endif // OPENRGBCLIENTINFOPAGE_H

View file

@ -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 <stdio.h>
#include "OpenRGBConsolePage.h" #include "OpenRGBConsolePage.h"
#include "LogManager.h" #include "LogManager.h"
#include <stdio.h>
using namespace Ui; using namespace Ui;

View file

@ -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 <QFrame> #include <QFrame>
#include "ui_OpenRGBConsolePage.h" #include "ui_OpenRGBConsolePage.h"
namespace Ui { namespace Ui
class OpenRGBConsolePage; {
class OpenRGBConsolePage;
} }
class Ui::OpenRGBConsolePage : public QFrame class Ui::OpenRGBConsolePage : public QFrame
@ -27,5 +36,3 @@ private:
void Refresh(); void Refresh();
}; };
#endif // OPENRGBCONSOLEPAGE_H

View file

@ -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 "OpenRGBDMXSettingsEntry.h"
#include "ui_OpenRGBDMXSettingsEntry.h" #include "ui_OpenRGBDMXSettingsEntry.h"

View file

@ -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 <QWidget> #include <QWidget>
#include "ui_OpenRGBDMXSettingsEntry.h"
namespace Ui { namespace Ui
class OpenRGBDMXSettingsEntry; {
class OpenRGBDMXSettingsEntry;
} }
class Ui::OpenRGBDMXSettingsEntry : public QWidget class Ui::OpenRGBDMXSettingsEntry : public QWidget
@ -20,5 +29,3 @@ public:
private slots: private slots:
void changeEvent(QEvent *event); void changeEvent(QEvent *event);
}; };
#endif // OPENRGBDMXSETTINGSENTRY_H

View file

@ -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 "OpenRGBDMXSettingsPage.h"
#include "ui_OpenRGBDMXSettingsPage.h" #include "ui_OpenRGBDMXSettingsPage.h"
#include "ResourceManager.h" #include "ResourceManager.h"

View file

@ -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 <QWidget> #include <QWidget>
#include "ui_OpenRGBDMXSettingsPage.h"
#include "OpenRGBDMXSettingsEntry.h" #include "OpenRGBDMXSettingsEntry.h"
namespace Ui { namespace Ui
class OpenRGBDMXSettingsPage; {
class OpenRGBDMXSettingsPage;
} }
class Ui::OpenRGBDMXSettingsPage : public QWidget class Ui::OpenRGBDMXSettingsPage : public QWidget
@ -31,5 +39,3 @@ private:
std::vector<OpenRGBDMXSettingsEntry*> entries; std::vector<OpenRGBDMXSettingsEntry*> entries;
}; };
#endif // OPENRGBDMXSETTINGSPAGE_H

View file

@ -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" #include "OpenRGBDeviceInfoPage.h"
using namespace Ui; using namespace Ui;

View file

@ -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 <QFrame> #include <QFrame>
#include "RGBController.h" #include "RGBController.h"
#include "ui_OpenRGBDeviceInfoPage.h" #include "ui_OpenRGBDeviceInfoPage.h"
namespace Ui { namespace Ui
class OpenRGBDeviceInfoPage; {
class OpenRGBDeviceInfoPage;
} }
class Ui::OpenRGBDeviceInfoPage : public QFrame class Ui::OpenRGBDeviceInfoPage : public QFrame
@ -26,5 +35,3 @@ private:
private slots: private slots:
void changeEvent(QEvent *event); void changeEvent(QEvent *event);
}; };
#endif // OPENRGBDEVICEINFOPAGE_H

View file

@ -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 "OpenRGBDialog2.h"
#include "OpenRGBDevicePage.h" #include "OpenRGBDevicePage.h"
#include "OpenRGBZoneResizeDialog.h" #include "OpenRGBZoneResizeDialog.h"

View file

@ -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 <QFrame>
#include "ui_OpenRGBDevicePage.h" #include "ui_OpenRGBDevicePage.h"
#include "RGBController.h" #include "RGBController.h"
#include <QFrame> namespace Ui
{
namespace Ui { class OpenRGBDevicePage;
class OpenRGBDevicePage;
} }
class Ui::OpenRGBDevicePage : public QFrame class Ui::OpenRGBDevicePage : public QFrame
@ -83,5 +91,3 @@ signals:
void SetAllDevices(unsigned char red, unsigned char green, unsigned char blue); void SetAllDevices(unsigned char red, unsigned char green, unsigned char blue);
void SaveSizeProfile(); void SaveSizeProfile();
}; };
#endif // OPENRGBDEVICEPAGE_H

View file

@ -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" #include "OpenRGBDialog.h"
using namespace Ui; using namespace Ui;

View file

@ -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 <vector> #include <vector>
#include "i2c_smbus.h"
#include "RGBController.h"
#include <QMainWindow> #include <QMainWindow>
#include <QTimer> #include <QTimer>
#include <QSystemTrayIcon> #include <QSystemTrayIcon>
#include <QMenu> #include <QMenu>
#include "ui_OpenRGBDialog.h"
#include "i2c_smbus.h"
#include "RGBController.h"
namespace Ui namespace Ui
{ {
@ -55,5 +61,3 @@ private slots:
private: private:
Ui::OpenRGBDialogUi *ui; Ui::OpenRGBDialogUi *ui;
}; };
#endif // OPENRGBDIALOG_H

View file

@ -1,4 +1,13 @@
#include <functional> /*---------------------------------------------------------*\
| OpenRGBDialog2.cpp |
| |
| User interface for OpenRGB main window |
| |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <functional>
#include "OpenRGBDialog2.h" #include "OpenRGBDialog2.h"
#include "LogManager.h" #include "LogManager.h"
#include "PluginManager.h" #include "PluginManager.h"
@ -858,7 +867,7 @@ void OpenRGBDialog2::AddSerialSettingsPage()
\*-----------------------------------------------------*/ \*-----------------------------------------------------*/
SerialSettingsPage = new OpenRGBSerialSettingsPage(); SerialSettingsPage = new OpenRGBSerialSettingsPage();
ui->SettingsTabBar->addTab(SerialSettingsPage, ""); ui->SettingsTabBar->addTab(SerialSettingsPage, "");
/*-----------------------------------------------------*\ /*-----------------------------------------------------*\
| Create the tab label | | Create the tab label |

View file

@ -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 <vector>
#include <QMainWindow>
#include <QTimer>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QSlider>
#include "ui_OpenRGBDialog2.h" #include "ui_OpenRGBDialog2.h"
@ -23,7 +38,6 @@
#include "OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.h" #include "OpenRGBNanoleafSettingsPage/OpenRGBNanoleafSettingsPage.h"
#include "PluginManager.h" #include "PluginManager.h"
#include <vector>
#include "i2c_smbus.h" #include "i2c_smbus.h"
#include "LogManager.h" #include "LogManager.h"
#include "RGBController.h" #include "RGBController.h"
@ -31,12 +45,6 @@
#include "NetworkClient.h" #include "NetworkClient.h"
#include "NetworkServer.h" #include "NetworkServer.h"
#include <QMainWindow>
#include <QTimer>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QSlider>
namespace Ui namespace Ui
{ {
class OpenRGBDialog2; class OpenRGBDialog2;
@ -182,5 +190,3 @@ private slots:
void on_SettingsTabBar_currentChanged(int); void on_SettingsTabBar_currentChanged(int);
}; };
#endif // OPENRGBDIALOG2_H

View file

@ -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 "OpenRGBE131SettingsEntry.h"
#include "ui_OpenRGBE131SettingsEntry.h" #include "ui_OpenRGBE131SettingsEntry.h"

View file

@ -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 <QWidget> #include <QWidget>
#include "ui_OpenRGBE131SettingsEntry.h"
namespace Ui { namespace Ui
class OpenRGBE131SettingsEntry; {
class OpenRGBE131SettingsEntry;
} }
class Ui::OpenRGBE131SettingsEntry : public QWidget class Ui::OpenRGBE131SettingsEntry : public QWidget
@ -25,5 +34,3 @@ private slots:
void changeEvent(QEvent *event); void changeEvent(QEvent *event);
void on_TypeComboBox_currentIndexChanged(int index); void on_TypeComboBox_currentIndexChanged(int index);
}; };
#endif // OPENRGBE131SETTINGSENTRY_H

View file

@ -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 "OpenRGBE131SettingsPage.h"
#include "ui_OpenRGBE131SettingsPage.h" #include "ui_OpenRGBE131SettingsPage.h"
#include "ResourceManager.h" #include "ResourceManager.h"

View file

@ -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 <QWidget> #include <QWidget>
#include "ui_OpenRGBE131SettingsPage.h"
#include "OpenRGBE131SettingsEntry.h" #include "OpenRGBE131SettingsEntry.h"
namespace Ui { namespace Ui
class OpenRGBE131SettingsPage; {
class OpenRGBE131SettingsPage;
} }
class Ui::OpenRGBE131SettingsPage : public QWidget class Ui::OpenRGBE131SettingsPage : public QWidget
@ -29,7 +37,4 @@ private slots:
private: private:
Ui::OpenRGBE131SettingsPageUi *ui; Ui::OpenRGBE131SettingsPageUi *ui;
std::vector<OpenRGBE131SettingsEntry*> entries; std::vector<OpenRGBE131SettingsEntry*> entries;
}; };
#endif // OPENRGBE131SETTINGSPAGE_H

View file

@ -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 "OpenRGBElgatoKeyLightSettingsEntry.h"
#include "ui_OpenRGBElgatoKeyLightSettingsEntry.h" #include "ui_OpenRGBElgatoKeyLightSettingsEntry.h"

View file

@ -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 <QDialog> #include <QDialog>
#include "ui_OpenRGBElgatoKeyLightSettingsEntry.h"
namespace Ui { namespace Ui
class OpenRGBElgatoKeyLightSettingsEntry; {
class OpenRGBElgatoKeyLightSettingsEntry;
} }
class Ui::OpenRGBElgatoKeyLightSettingsEntry : public QDialog class Ui::OpenRGBElgatoKeyLightSettingsEntry : public QDialog
@ -20,5 +29,3 @@ public:
private slots: private slots:
void changeEvent(QEvent *event); void changeEvent(QEvent *event);
}; };
#endif // OPENRGBELGATOKEYLIGHTSETTINGSENTRY_H

View file

@ -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 "OpenRGBElgatoKeyLightSettingsPage.h"
#include "ui_OpenRGBElgatoKeyLightSettingsPage.h" #include "ui_OpenRGBElgatoKeyLightSettingsPage.h"
#include "ResourceManager.h" #include "ResourceManager.h"
@ -106,4 +115,3 @@ void Ui::OpenRGBElgatoKeyLightSettingsPage::on_SaveElgatoKeyLightConfigurationBu
ResourceManager::get()->GetSettingsManager()->SetSettings("ElgatoKeyLightDevices", elgato_keylight_settings); ResourceManager::get()->GetSettingsManager()->SetSettings("ElgatoKeyLightDevices", elgato_keylight_settings);
ResourceManager::get()->GetSettingsManager()->SaveSettings(); ResourceManager::get()->GetSettingsManager()->SaveSettings();
} }

View file

@ -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 <QWidget> #include <QWidget>
#include "ui_OpenRGBElgatoKeyLightSettingsPage.h"
#include "OpenRGBElgatoKeyLightSettingsEntry.h" #include "OpenRGBElgatoKeyLightSettingsEntry.h"
namespace Ui { namespace Ui
class OpenRGBElgatoKeyLightSettingsPage; {
class OpenRGBElgatoKeyLightSettingsPage;
} }
class Ui::OpenRGBElgatoKeyLightSettingsPage : public QWidget class Ui::OpenRGBElgatoKeyLightSettingsPage : public QWidget
@ -29,7 +37,4 @@ private slots:
private: private:
Ui::OpenRGBElgatoKeyLightSettingsPageUi *ui; Ui::OpenRGBElgatoKeyLightSettingsPageUi *ui;
std::vector<OpenRGBElgatoKeyLightSettingsEntry*> entries; std::vector<OpenRGBElgatoKeyLightSettingsEntry*> entries;
}; };
#endif // OPENRGBELGATOKEYLIGHTSETTINGSPAGE_H

View file

@ -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 "OpenRGBElgatoLightStripSettingsEntry.h"
#include "ui_OpenRGBElgatoLightStripSettingsEntry.h" #include "ui_OpenRGBElgatoLightStripSettingsEntry.h"

View file

@ -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 <QDialog> #include <QDialog>
#include "ui_OpenRGBElgatoLightStripSettingsEntry.h"
namespace Ui namespace Ui
{ {
@ -21,5 +29,3 @@ class Ui::OpenRGBElgatoLightStripSettingsEntry : public QDialog
private slots: private slots:
void changeEvent(QEvent *event); void changeEvent(QEvent *event);
}; };
#endif // OPENRGBELGATOLIGHTSTRIPSETTINGSENTRY_H

View file

@ -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 "OpenRGBElgatoLightStripSettingsPage.h"
#include "ui_OpenRGBElgatoLightStripSettingsPage.h" #include "ui_OpenRGBElgatoLightStripSettingsPage.h"
#include "ResourceManager.h" #include "ResourceManager.h"

View file

@ -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 <QWidget> #include <QWidget>
#include "ui_OpenRGBElgatoLightStripSettingsPage.h"
#include "OpenRGBElgatoLightStripSettingsEntry.h" #include "OpenRGBElgatoLightStripSettingsEntry.h"
namespace Ui namespace Ui
@ -14,21 +22,19 @@ class Ui::OpenRGBElgatoLightStripSettingsPage : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit OpenRGBElgatoLightStripSettingsPage(QWidget *parent = nullptr); explicit OpenRGBElgatoLightStripSettingsPage(QWidget *parent = nullptr);
~OpenRGBElgatoLightStripSettingsPage(); ~OpenRGBElgatoLightStripSettingsPage();
private slots: private slots:
void changeEvent(QEvent *event); void changeEvent(QEvent *event);
void on_AddElgatoLightStripDeviceButton_clicked(); void on_AddElgatoLightStripDeviceButton_clicked();
void on_RemoveElgatoLightStripDeviceButton_clicked(); void on_RemoveElgatoLightStripDeviceButton_clicked();
void on_SaveElgatoLightStripConfigurationButton_clicked(); void on_SaveElgatoLightStripConfigurationButton_clicked();
private: private:
Ui::OpenRGBElgatoLightStripSettingsPageUi *ui; Ui::OpenRGBElgatoLightStripSettingsPageUi *ui;
std::vector<OpenRGBElgatoLightStripSettingsEntry*> entries; std::vector<OpenRGBElgatoLightStripSettingsEntry*> entries;
}; };
#endif // OPENRGBELGATOLIGHTSTRIPSETTINGSPAGE_H

View file

@ -1,10 +1,15 @@
#include "OpenRGBHardwareIDsDialog.h" /*---------------------------------------------------------*\
#include "ui_OpenRGBHardwareIDsDialog.h" | OpenRGBHardwareIDsDialog.cpp |
#include <hidapi/hidapi.h> | |
#include "ResourceManager.h" | User interface for OpenRGB Hardware IDs dialog |
#include "StringUtils.h" | |
| This file is part of the OpenRGB project |
| SPDX-License-Identifier: GPL-2.0-only |
\*---------------------------------------------------------*/
#include <QString> #include <QString>
#include <QClipboard> #include <QClipboard>
#include <hidapi/hidapi.h>
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#include <libusb.h> #include <libusb.h>
@ -12,6 +17,11 @@
#include <libusb-1.0/libusb.h> #include <libusb-1.0/libusb.h>
#endif #endif
#include "OpenRGBHardwareIDsDialog.h"
#include "ui_OpenRGBHardwareIDsDialog.h"
#include "ResourceManager.h"
#include "StringUtils.h"
Ui::OpenRGBHardwareIDsDialog::OpenRGBHardwareIDsDialog(QWidget *parent) : Ui::OpenRGBHardwareIDsDialog::OpenRGBHardwareIDsDialog(QWidget *parent) :
QDialog(parent), QDialog(parent),
ui(new Ui::OpenRGBHardwareIDsDialogUi) ui(new Ui::OpenRGBHardwareIDsDialogUi)

View file

@ -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 <QDialog> #include <QDialog>
#include "ui_OpenRGBHardwareIDsDialog.h"
namespace Ui namespace Ui
{ {
@ -27,5 +34,3 @@ private:
Ui::OpenRGBHardwareIDsDialogUi *ui; Ui::OpenRGBHardwareIDsDialogUi *ui;
QStringList strings; QStringList strings;
}; };
#endif // OPENRGBHARDWAREIDSDIALOG_H