#ifndef OPENRGBDEVICEPAGE_H #define OPENRGBDEVICEPAGE_H #include "ui_OpenRGBDevicePage.h" #include "RGBController.h" #include namespace Ui { class OpenRGBDevicePage; } class Ui::OpenRGBDevicePage : public QFrame { Q_OBJECT public: explicit OpenRGBDevicePage(RGBController *dev, QWidget *parent = nullptr); ~OpenRGBDevicePage(); private slots: void on_ButtonRed_clicked(); void on_ButtonYellow_clicked(); void on_ButtonGreen_clicked(); void on_ButtonCyan_clicked(); void on_ButtonBlue_clicked(); void on_ButtonMagenta_clicked(); void on_ZoneBox_currentIndexChanged(int index); void on_LEDBox_currentIndexChanged(int index); void on_ModeBox_currentIndexChanged(int index); void on_SetDeviceButton_clicked(); void on_SetZoneButton_clicked(); void on_SetLEDButton_clicked(); void on_RedSpinBox_valueChanged(int arg1); void on_HueSpinBox_valueChanged(int arg1); void on_GreenSpinBox_valueChanged(int arg1); void on_SatSpinBox_valueChanged(int arg1); void on_BlueSpinBox_valueChanged(int arg1); void on_ValSpinBox_valueChanged(int arg1); private: Ui::OpenRGBDevicePageUi *ui; RGBController *device; bool UpdatingColor = false; void updateRGB(); void updateHSV(); }; #endif // OPENRGBDEVICEPAGE_H