Server. Перекомпоновка интерфейса

This commit is contained in:
2025-11-27 17:35:56 +03:00
parent ace95db3df
commit 6f44b6125e
2 changed files with 191 additions and 169 deletions

View File

@@ -38,6 +38,8 @@ ServerLMSWidget::ServerLMSWidget(QWidget *parent) :
qDebug() << "ServerLMSWidget init thread ID " << QThread::currentThreadId(); qDebug() << "ServerLMSWidget init thread ID " << QThread::currentThreadId();
ui->widget_Control->setObjectName("widgetControl");
registerMetaType(); registerMetaType();
updateMyStyleSheet(); updateMyStyleSheet();

View File

@@ -23,187 +23,207 @@
<item row="0" column="0"> <item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_Main"> <layout class="QVBoxLayout" name="verticalLayout_Main">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_Ctrl"> <layout class="QHBoxLayout" name="horizontalLayout_Main">
<item> <item>
<widget class="QToolButton" name="btnStartServer"> <widget class="QWidget" name="widget_Control" native="true">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>130</width> <width>100</width>
<height>58</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <layout class="QGridLayout" name="gridLayout">
<size> <item row="0" column="0">
<width>80</width> <layout class="QVBoxLayout" name="verticalLayout_Control">
<height>55</height> <item>
</size> <widget class="QToolButton" name="btnStartServer">
</property> <property name="minimumSize">
<property name="baseSize"> <size>
<size> <width>130</width>
<width>80</width> <height>58</height>
<height>40</height> </size>
</size> </property>
</property> <property name="maximumSize">
<property name="layoutDirection"> <size>
<enum>Qt::LeftToRight</enum> <width>80</width>
</property> <height>55</height>
<property name="text"> </size>
<string>Start</string> </property>
</property> <property name="baseSize">
<property name="icon"> <size>
<iconset resource="ServerLMS.qrc"> <width>80</width>
<normaloff>:/resources/icons/rocket.png</normaloff>:/resources/icons/rocket.png</iconset> <height>40</height>
</property> </size>
<property name="iconSize"> </property>
<size> <property name="layoutDirection">
<width>32</width> <enum>Qt::LeftToRight</enum>
<height>32</height> </property>
</size> <property name="text">
</property> <string>Start</string>
<property name="toolButtonStyle"> </property>
<enum>Qt::ToolButtonTextUnderIcon</enum> <property name="icon">
</property> <iconset resource="ServerLMS.qrc">
<normaloff>:/resources/icons/rocket.png</normaloff>:/resources/icons/rocket.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="btnStopServer">
<property name="minimumSize">
<size>
<width>130</width>
<height>58</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<height>55</height>
</size>
</property>
<property name="baseSize">
<size>
<width>80</width>
<height>40</height>
</size>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>Stop</string>
</property>
<property name="icon">
<iconset resource="ServerLMS.qrc">
<normaloff>:/resources/icons/stop.png</normaloff>:/resources/icons/stop.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="btnSettings">
<property name="minimumSize">
<size>
<width>130</width>
<height>58</height>
</size>
</property>
<property name="text">
<string>Settings</string>
</property>
<property name="icon">
<iconset resource="../InstructorsAndTrainees/InstructorsAndTrainees.qrc">
<normaloff>:/resources/icons/settings.png</normaloff>:/resources/icons/settings.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QToolButton" name="btnStopServer"> <layout class="QVBoxLayout" name="verticalLayout_Work">
<property name="minimumSize"> <item>
<size> <widget class="QGroupBox" name="groupBox_Clients">
<width>130</width> <property name="title">
<height>58</height> <string>Clients</string>
</size> </property>
</property> <layout class="QGridLayout" name="gridLayout_4">
<property name="maximumSize"> <item row="0" column="0">
<size> <layout class="QVBoxLayout" name="verticalLayout_Clients">
<width>80</width> <item>
<height>55</height> <widget class="QListWidget" name="listWidget_Clients">
</size> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<property name="baseSize"> <horstretch>0</horstretch>
<size> <verstretch>0</verstretch>
<width>80</width> </sizepolicy>
<height>40</height> </property>
</size> <property name="maximumSize">
</property> <size>
<property name="layoutDirection"> <width>16777215</width>
<enum>Qt::LeftToRight</enum> <height>120</height>
</property> </size>
<property name="text"> </property>
<string>Stop</string> </widget>
</property> </item>
<property name="icon"> </layout>
<iconset resource="ServerLMS.qrc"> </item>
<normaloff>:/resources/icons/stop.png</normaloff>:/resources/icons/stop.png</iconset> </layout>
</property> </widget>
<property name="iconSize"> </item>
<size> <item>
<width>32</width> <widget class="QGroupBox" name="groupBox_Logger">
<height>32</height> <property name="sizePolicy">
</size> <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
</property> <horstretch>0</horstretch>
<property name="toolButtonStyle"> <verstretch>0</verstretch>
<enum>Qt::ToolButtonTextUnderIcon</enum> </sizepolicy>
</property> </property>
</widget> <property name="title">
</item> <string>Logger</string>
<item> </property>
<spacer name="horizontalSpacer_1"> <layout class="QGridLayout" name="gridLayout_3">
<property name="orientation"> <item row="0" column="0">
<enum>Qt::Horizontal</enum> <layout class="QVBoxLayout" name="verticalLayout_Logger">
</property> <item>
<property name="sizeHint" stdset="0"> <widget class="QPlainTextEdit" name="loggerTextField">
<size> <property name="readOnly">
<width>40</width> <bool>true</bool>
<height>20</height> </property>
</size> </widget>
</property> </item>
</spacer> </layout>
</item> </item>
<item> </layout>
<widget class="QToolButton" name="btnSettings"> </widget>
<property name="minimumSize"> </item>
<size> </layout>
<width>130</width>
<height>58</height>
</size>
</property>
<property name="text">
<string>Settings</string>
</property>
<property name="icon">
<iconset resource="../InstructorsAndTrainees/InstructorsAndTrainees.qrc">
<normaloff>:/resources/icons/settings.png</normaloff>:/resources/icons/settings.png</iconset>
</property>
<property name="iconSize">
<size>
<width>32</width>
<height>32</height>
</size>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextUnderIcon</enum>
</property>
</widget>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupBox_Clients"> <layout class="QHBoxLayout" name="horizontalLayout_FootNote">
<property name="title">
<string>Clients</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_Clients">
<item>
<widget class="QListWidget" name="listWidget_Clients">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>120</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_Logger">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Logger</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_Logger">
<item>
<widget class="QPlainTextEdit" name="loggerTextField">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_State">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_OnOff"> <layout class="QHBoxLayout" name="horizontalLayout_OnOff">
<item> <item>