mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
Step 1 refact Control
This commit is contained in:
@@ -21,7 +21,7 @@ InstructorsAndTraineesWidget::InstructorsAndTraineesWidget(QWidget *parent) :
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
ui->btnSettings->setObjectName("btnSettings");
|
ui->btnSettings->setObjectName("btnSettings");
|
||||||
ui->widget_Top->setObjectName("widgetTop");
|
ui->widget_Control->setObjectName("widgetTop");
|
||||||
ui->groupBox_Trainees->setObjectName("groupBox_Trainees");
|
ui->groupBox_Trainees->setObjectName("groupBox_Trainees");
|
||||||
|
|
||||||
#ifndef PROJECT_TYPE_DEBUG
|
#ifndef PROJECT_TYPE_DEBUG
|
||||||
|
|||||||
@@ -27,18 +27,18 @@
|
|||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_Main">
|
<layout class="QHBoxLayout" name="horizontalLayout_Main">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="widget_Top" native="true">
|
<widget class="QWidget" name="widget_Control" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
<verstretch>0</verstretch>
|
<verstretch>0</verstretch>
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_6">
|
<layout class="QGridLayout" name="gridLayout_6">
|
||||||
<item row="0" column="0">
|
<item row="1" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_Top">
|
<layout class="QVBoxLayout" name="verticalLayout_Control">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="btnConnectionToServer">
|
<widget class="QToolButton" name="btnConnectionToServer">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -68,6 +68,49 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_ConnectedServer">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="lblDBisConnected">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>32</width>
|
||||||
|
<height>32</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap resource="resources.qrc">:/resources/icons/circleGray.png</pixmap>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="lblServerPrefix">
|
||||||
|
<property name="text">
|
||||||
|
<string>Server: </string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="lblServer">
|
||||||
|
<property name="text">
|
||||||
|
<string>none</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="btnAuthorizationInstructor">
|
<widget class="QToolButton" name="btnAuthorizationInstructor">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@@ -98,132 +141,71 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lblDBisConnected">
|
<layout class="QHBoxLayout" name="horizontalLayout_LoggedInInstructor">
|
||||||
<property name="minimumSize">
|
<item>
|
||||||
<size>
|
<widget class="QLabel" name="lblLoggedIn">
|
||||||
<width>32</width>
|
<property name="minimumSize">
|
||||||
<height>32</height>
|
<size>
|
||||||
</size>
|
<width>32</width>
|
||||||
</property>
|
<height>32</height>
|
||||||
<property name="maximumSize">
|
</size>
|
||||||
<size>
|
</property>
|
||||||
<width>32</width>
|
<property name="maximumSize">
|
||||||
<height>32</height>
|
<size>
|
||||||
</size>
|
<width>32</width>
|
||||||
</property>
|
<height>32</height>
|
||||||
<property name="text">
|
</size>
|
||||||
<string/>
|
</property>
|
||||||
</property>
|
<property name="text">
|
||||||
<property name="pixmap">
|
<string/>
|
||||||
<pixmap resource="resources.qrc">:/resources/icons/circleGray.png</pixmap>
|
</property>
|
||||||
</property>
|
<property name="pixmap">
|
||||||
<property name="scaledContents">
|
<pixmap resource="resources.qrc">:/resources/icons/circleGray.png</pixmap>
|
||||||
<bool>true</bool>
|
</property>
|
||||||
</property>
|
<property name="scaledContents">
|
||||||
</widget>
|
<bool>true</bool>
|
||||||
</item>
|
</property>
|
||||||
<item>
|
</widget>
|
||||||
<widget class="QLabel" name="lblServerPrefix">
|
</item>
|
||||||
<property name="text">
|
<item>
|
||||||
<string>Server: </string>
|
<widget class="QLabel" name="lblLoggedInPrefix">
|
||||||
</property>
|
<property name="maximumSize">
|
||||||
</widget>
|
<size>
|
||||||
</item>
|
<width>16777215</width>
|
||||||
<item>
|
<height>40</height>
|
||||||
<widget class="QLabel" name="lblServer">
|
</size>
|
||||||
<property name="text">
|
</property>
|
||||||
<string>none</string>
|
<property name="text">
|
||||||
</property>
|
<string> Instructor: </string>
|
||||||
</widget>
|
</property>
|
||||||
</item>
|
<property name="textFormat">
|
||||||
<item>
|
<enum>Qt::AutoText</enum>
|
||||||
<widget class="QLabel" name="lblLoggedIn">
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="scaledContents">
|
||||||
<size>
|
<bool>false</bool>
|
||||||
<width>32</width>
|
</property>
|
||||||
<height>32</height>
|
</widget>
|
||||||
</size>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
<property name="maximumSize">
|
<widget class="QLabel" name="lblLoggedInInstructor">
|
||||||
<size>
|
<property name="maximumSize">
|
||||||
<width>32</width>
|
<size>
|
||||||
<height>32</height>
|
<width>16777215</width>
|
||||||
</size>
|
<height>40</height>
|
||||||
</property>
|
</size>
|
||||||
<property name="text">
|
</property>
|
||||||
<string/>
|
<property name="text">
|
||||||
</property>
|
<string>none</string>
|
||||||
<property name="pixmap">
|
</property>
|
||||||
<pixmap resource="resources.qrc">:/resources/icons/circleGray.png</pixmap>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="scaledContents">
|
</layout>
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lblLoggedInPrefix">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Logged in Instructor: </string>
|
|
||||||
</property>
|
|
||||||
<property name="textFormat">
|
|
||||||
<enum>Qt::AutoText</enum>
|
|
||||||
</property>
|
|
||||||
<property name="scaledContents">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="lblLoggedInInstructor">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>none</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="horizontalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>40</width>
|
|
||||||
<height>20</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="btnSetVersion">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>58</width>
|
|
||||||
<height>58</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>ChangeVersion</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QToolButton" name="btnEditorTrainees">
|
<widget class="QToolButton" name="btnEditorTrainees">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>58</width>
|
<width>130</width>
|
||||||
<height>58</height>
|
<height>58</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -249,7 +231,7 @@
|
|||||||
<widget class="QToolButton" name="btnEditorInstructors">
|
<widget class="QToolButton" name="btnEditorInstructors">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>58</width>
|
<width>130</width>
|
||||||
<height>58</height>
|
<height>58</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -271,11 +253,24 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="QToolButton" name="btnSettings">
|
<widget class="QToolButton" name="btnSettings">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>58</width>
|
<width>130</width>
|
||||||
<height>58</height>
|
<height>58</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
@@ -297,80 +292,97 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QToolButton" name="btnSetVersion">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>130</width>
|
||||||
|
<height>58</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>ChangeVersion</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_Bottom">
|
<layout class="QVBoxLayout" name="verticalLayout_Main">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_L">
|
<layout class="QHBoxLayout" name="horizontalLayout_Bottom">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_L">
|
<layout class="QVBoxLayout" name="verticalLayout_L">
|
||||||
<item>
|
<item>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_TI">
|
<layout class="QHBoxLayout" name="horizontalLayout_L">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_Trainees">
|
<layout class="QVBoxLayout" name="verticalLayout_TI">
|
||||||
<property name="sizePolicy">
|
<item>
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<widget class="QGroupBox" name="groupBox_Trainees">
|
||||||
<horstretch>0</horstretch>
|
<property name="sizePolicy">
|
||||||
<verstretch>0</verstretch>
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
</sizepolicy>
|
<horstretch>0</horstretch>
|
||||||
</property>
|
<verstretch>0</verstretch>
|
||||||
<property name="title">
|
</sizepolicy>
|
||||||
<string>Trainees</string>
|
</property>
|
||||||
</property>
|
<property name="title">
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<string>Trainees</string>
|
||||||
<item row="0" column="0">
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_Trainees"/>
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
</item>
|
<item row="0" column="0">
|
||||||
</layout>
|
<layout class="QVBoxLayout" name="verticalLayout_Trainees"/>
|
||||||
</widget>
|
</item>
|
||||||
</item>
|
</layout>
|
||||||
<item>
|
</widget>
|
||||||
<widget class="QGroupBox" name="groupBox_Instructors">
|
</item>
|
||||||
<property name="sizePolicy">
|
<item>
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<widget class="QGroupBox" name="groupBox_Instructors">
|
||||||
<horstretch>0</horstretch>
|
<property name="sizePolicy">
|
||||||
<verstretch>0</verstretch>
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
</sizepolicy>
|
<horstretch>0</horstretch>
|
||||||
</property>
|
<verstretch>0</verstretch>
|
||||||
<property name="title">
|
</sizepolicy>
|
||||||
<string>Instructors</string>
|
</property>
|
||||||
</property>
|
<property name="title">
|
||||||
<layout class="QGridLayout" name="gridLayout_8">
|
<string>Instructors</string>
|
||||||
<item row="0" column="0">
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_Instructors"/>
|
<layout class="QGridLayout" name="gridLayout_8">
|
||||||
</item>
|
<item row="0" column="0">
|
||||||
</layout>
|
<layout class="QVBoxLayout" name="verticalLayout_Instructors"/>
|
||||||
</widget>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_R">
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_Messenger">
|
<layout class="QVBoxLayout" name="verticalLayout_R">
|
||||||
<property name="sizePolicy">
|
<item>
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<widget class="QGroupBox" name="groupBox_Messenger">
|
||||||
<horstretch>0</horstretch>
|
<property name="sizePolicy">
|
||||||
<verstretch>0</verstretch>
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
</sizepolicy>
|
<horstretch>0</horstretch>
|
||||||
</property>
|
<verstretch>0</verstretch>
|
||||||
<property name="title">
|
</sizepolicy>
|
||||||
<string>Messenger</string>
|
</property>
|
||||||
</property>
|
<property name="title">
|
||||||
<layout class="QGridLayout" name="gridLayout_7">
|
<string>Messenger</string>
|
||||||
<item row="0" column="0">
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_Messenger"/>
|
<layout class="QGridLayout" name="gridLayout_7">
|
||||||
</item>
|
<item row="0" column="0">
|
||||||
</layout>
|
<layout class="QVBoxLayout" name="verticalLayout_Messenger"/>
|
||||||
</widget>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user