diff --git a/OpenRGB.pro b/OpenRGB.pro index 98d312ee..0a0eb409 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -79,6 +79,7 @@ SOURCES += \ net_port/net_port.cpp \ qt/OpenRGBDialog2.cpp \ qt/OpenRGBProfileSaveDialog.cpp \ + qt/OpenRGBServerInfoPage.cpp \ qt/OpenRGBSoftwareInfoPage.cpp \ qt/OpenRGBSystemInfoPage.cpp \ qt/OpenRGBZoneResizeDialog.cpp \ @@ -191,6 +192,7 @@ HEADERS += \ net_port/net_port.h \ qt/OpenRGBDialog2.h \ qt/OpenRGBProfileSaveDialog.h \ + qt/OpenRGBServerInfoPage.h \ qt/OpenRGBSoftwareInfoPage.h \ qt/OpenRGBSystemInfoPage.h \ qt/OpenRGBZoneResizeDialog.h \ @@ -267,6 +269,7 @@ FORMS += \ qt/OpenRGBDialog.ui \ qt/OpenRGBDialog2.ui \ qt/OpenRGBProfileSaveDialog.ui \ + qt/OpenRGBServerInfoPage.ui \ qt/OpenRGBSoftwareInfoPage.ui \ qt/OpenRGBSystemInfoPage.ui \ qt/OpenRGBZoneResizeDialog.ui diff --git a/qt/OpenRGBServerInfoPage.cpp b/qt/OpenRGBServerInfoPage.cpp new file mode 100644 index 00000000..0e2cd0d7 --- /dev/null +++ b/qt/OpenRGBServerInfoPage.cpp @@ -0,0 +1,15 @@ +#include "OpenRGBServerInfoPage.h" + +using namespace Ui; + +OpenRGBServerInfoPage::OpenRGBServerInfoPage(RGBController *dev, QWidget *parent) : + QFrame(parent), + ui(new Ui::OpenRGBServerInfoPageUi) +{ + ui->setupUi(this); +} + +OpenRGBServerInfoPage::~OpenRGBServerInfoPage() +{ + delete ui; +} diff --git a/qt/OpenRGBServerInfoPage.h b/qt/OpenRGBServerInfoPage.h new file mode 100644 index 00000000..6743eda4 --- /dev/null +++ b/qt/OpenRGBServerInfoPage.h @@ -0,0 +1,24 @@ +#ifndef OPENRGBSERVERINFOPAGE_H +#define OPENRGBSERVERINFOPAGE_H + +#include +#include "RGBController.h" +#include "ui_OpenRGBServerInfoPage.h" + +namespace Ui { +class OpenRGBServerInfoPage; +} + +class Ui::OpenRGBServerInfoPage : public QFrame +{ + Q_OBJECT + +public: + explicit OpenRGBServerInfoPage(RGBController *dev, QWidget *parent = nullptr); + ~OpenRGBServerInfoPage(); + +private: + Ui::OpenRGBServerInfoPageUi *ui; +}; + +#endif // OPENRGBSERVERINFOPAGE_H diff --git a/qt/OpenRGBServerInfoPage.ui b/qt/OpenRGBServerInfoPage.ui new file mode 100644 index 00000000..1ed04331 --- /dev/null +++ b/qt/OpenRGBServerInfoPage.ui @@ -0,0 +1,58 @@ + + + OpenRGBServerInfoPageUi + + + + 0 + 0 + 500 + 300 + + + + Frame + + + + + + Server Status: + + + + + + + Offline + + + + + + + + 1 + + + + + + + + Server Port: + + + + + + + 0 + + + + + + + +