Server info WIP

This commit is contained in:
Adam Honse 2020-05-01 13:41:05 -05:00
parent 525071c205
commit b8e14ea067
4 changed files with 100 additions and 0 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -0,0 +1,24 @@
#ifndef OPENRGBSERVERINFOPAGE_H
#define OPENRGBSERVERINFOPAGE_H
#include <QFrame>
#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

View file

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>OpenRGBServerInfoPageUi</class>
<widget class="QFrame" name="OpenRGBServerInfoPageUi">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>500</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Frame</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QLabel" name="ServerStatusLabel">
<property name="text">
<string>Server Status:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="ServerStatusValue">
<property name="text">
<string>Offline</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QTreeWidget" name="treeWidget">
<column>
<property name="text">
<string notr="true">1</string>
</property>
</column>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="ServerPortLabel">
<property name="text">
<string>Server Port:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="ServerPortValue">
<property name="text">
<string>0</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>