mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
Style3
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>377</height>
|
||||
<width>500</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
@@ -16,6 +16,12 @@
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>500</width>
|
||||
<height>300</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Learning management system - Settings</string>
|
||||
</property>
|
||||
@@ -28,90 +34,26 @@
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Main</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_1">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Language</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="QComboBox" name="cmbLanguage"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<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="QGroupBox" name="groupBox">
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>Server</string>
|
||||
<string>Main</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_1">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Address</string>
|
||||
<string>Language</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
@@ -124,89 +66,159 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="editAddress">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>150</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QComboBox" name="cmbLanguage"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>Server</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Address</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<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="QLineEdit" name="editAddress">
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>150</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Port</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<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="QLineEdit" name="editPort">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>70</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Auto start</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_5">
|
||||
<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="QCheckBox" name="checkAutoStart">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Port</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<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="QLineEdit" name="editPort">
|
||||
<widget class="QToolButton" name="btnSave">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
<width>58</width>
|
||||
<height>58</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>70</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Auto start</string>
|
||||
<string>Save</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/resources/icons/circleGreen.png</normaloff>:/resources/icons/circleGreen.png</iconset>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="checkAutoStart">
|
||||
<property name="text">
|
||||
<string/>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -218,143 +230,82 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QToolButton" name="btnSave">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>58</width>
|
||||
<height>58</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/resources/icons/circleGreen.png</normaloff>:/resources/icons/circleGreen.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>
|
||||
<item>
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
<widget class="QGroupBox" name="groupBox_3">
|
||||
<property name="title">
|
||||
<string>Additional</string>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Additional</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="lineWidth">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
<widget class="QToolButton" name="btnSetVersion">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>58</width>
|
||||
<height>58</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Version</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/resources/icons/updateVersion.png</normaloff>:/resources/icons/updateVersion.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="horizontalSpacer_2">
|
||||
<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="btnUpdateStyle">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>58</width>
|
||||
<height>58</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Style</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/resources/icons/style.png</normaloff>:/resources/icons/style.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>
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<widget class="QToolButton" name="btnSetVersion">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>58</width>
|
||||
<height>58</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Version</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/resources/icons/updateVersion.png</normaloff>:/resources/icons/updateVersion.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="btnUpdateStyle">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>58</width>
|
||||
<height>58</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Style</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
<normaloff>:/resources/icons/style.png</normaloff>:/resources/icons/style.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_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
||||
@@ -83,6 +83,16 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="lineWidth">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
||||
<item>
|
||||
|
||||
@@ -134,10 +134,12 @@ void InstructorsAndTraineesWidget::changeEvent(QEvent *event)
|
||||
{// переведём окно заново
|
||||
ui->retranslateUi(this);
|
||||
|
||||
/*
|
||||
if(ui->btnAuthorizationInstructor->isChecked())
|
||||
ui->btnAuthorizationInstructor->setText(tr("Deauthorization Instructor"));
|
||||
else
|
||||
ui->btnAuthorizationInstructor->setText(tr("Authorization Instructor"));
|
||||
*/
|
||||
|
||||
/*
|
||||
if(ui->btnConnectionToDB->isChecked())
|
||||
@@ -220,7 +222,7 @@ void InstructorsAndTraineesWidget::checkLoginResult(ServerAuthorization *serverA
|
||||
|
||||
Q_EMIT signal_NeedUpdateUI(true, true);
|
||||
//ui->btnSetVersion->show();
|
||||
ui->btnAuthorizationInstructor->setText(tr("Deauthorization Instructor"));
|
||||
//ui->btnAuthorizationInstructor->setText(tr("Deauthorization Instructor"));
|
||||
|
||||
updateLabelLoggedInInstructor(serverAuth->Login, serverAuth->ClientName);
|
||||
connectorToServer->setLoginName(nameInstructorLoggedInLocal);
|
||||
@@ -255,7 +257,7 @@ void InstructorsAndTraineesWidget::checkDeLoginResult(ServerDeAuthorization *ser
|
||||
|
||||
//Q_EMIT signal_NeedUpdateUI(true, false);
|
||||
|
||||
ui->btnAuthorizationInstructor->setText(tr("Authorization Instructor"));
|
||||
//ui->btnAuthorizationInstructor->setText(tr("Authorization Instructor"));
|
||||
updateLabelLoggedInInstructor("","");
|
||||
|
||||
//QMessageBox::information(this, tr("Instructor deauthorization"), tr("Successfully!"));
|
||||
@@ -283,7 +285,7 @@ void InstructorsAndTraineesWidget::slot_ConnectedToServer(bool state)
|
||||
{//Сервер отключен
|
||||
ui->btnConnectionToServer->setEnabled(true);
|
||||
ui->btnAuthorizationInstructor->setEnabled(false);
|
||||
ui->btnAuthorizationInstructor->setText(tr("Authorization Instructor"));
|
||||
//ui->btnAuthorizationInstructor->setText(tr("Authorization Instructor"));
|
||||
ui->btnAuthorizationInstructor->setChecked(false);
|
||||
//ui->btnSetVersion->hide();
|
||||
ui->lblDBisConnected->setPixmap(QPixmap(QStringLiteral(":/resources/icons/circleGray.png")));
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1000</width>
|
||||
<height>800</height>
|
||||
<width>1314</width>
|
||||
<height>901</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
@@ -40,7 +40,7 @@
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Connection to Server</string>
|
||||
<string>Connection</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
@@ -64,12 +64,12 @@
|
||||
<widget class="QToolButton" name="btnAuthorizationInstructor">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>170</width>
|
||||
<width>130</width>
|
||||
<height>58</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Authorization Instructor</string>
|
||||
<string>Authorization</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="resources.qrc">
|
||||
|
||||
@@ -54,8 +54,9 @@ AMMtasksWidget::AMMtasksWidget(ConnectorToServer* connectorToServer, TypeList ty
|
||||
ui->btnCheck->setObjectName("btnCheck");
|
||||
ui->btnCheck->setEnabled(false);
|
||||
ui->btnOnlyActive->setObjectName("btnOnlyActive");
|
||||
ui->btnOnlyActive->setEnabled(false);
|
||||
ui->btnAssignTask->setObjectName("btnAssignTask");
|
||||
ui->btnAssignTask->setEnabled(false);
|
||||
ui->btnAssignTask->setEnabled(false);
|
||||
|
||||
if(type == TypeList::listCommon)
|
||||
{
|
||||
@@ -101,6 +102,7 @@ AMMtasksWidget::~AMMtasksWidget()
|
||||
void AMMtasksWidget::deactivate()
|
||||
{
|
||||
ui->btnAssignTask->setEnabled(false);
|
||||
ui->btnOnlyActive->setEnabled(false);
|
||||
//taskTreePreparation->stopParser();
|
||||
treeWidget->clear();
|
||||
loginTraineeSelected = "";
|
||||
@@ -248,6 +250,8 @@ void AMMtasksWidget::slot_listItemsReady(QList<QTreeWidgetItem *> listItems)
|
||||
treeWidget->setCurrentItem(item);
|
||||
|
||||
waitAnimationWidget->hideWithStop();
|
||||
|
||||
ui->btnOnlyActive->setEnabled(true);
|
||||
}
|
||||
|
||||
Module *AMMtasksWidget::searchModuleByID(int id)
|
||||
|
||||
@@ -119,6 +119,16 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Line" name="line">
|
||||
<property name="lineWidth">
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
||||
<item>
|
||||
|
||||
Binary file not shown.
@@ -29,44 +29,44 @@
|
||||
<translation>Удалить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="285"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="289"/>
|
||||
<source>Task AMM</source>
|
||||
<translation>Задача AMM</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="285"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="289"/>
|
||||
<source>DM code</source>
|
||||
<translation>DM код</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="285"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="287"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="289"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="291"/>
|
||||
<source>ID</source>
|
||||
<translation>ID</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="285"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="287"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="289"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="291"/>
|
||||
<source>Status</source>
|
||||
<translation>Статус</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="287"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="291"/>
|
||||
<source>PM/DM</source>
|
||||
<translation>PM/DM</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="287"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="291"/>
|
||||
<source>Code</source>
|
||||
<translation>Код</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="342"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="346"/>
|
||||
<source>Attention!</source>
|
||||
<translation>Внимание!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="342"/>
|
||||
<location filename="../tasks/ammtaskswidget.cpp" line="346"/>
|
||||
<source>The deletion will be irrevocable.
|
||||
Delete it anyway?</source>
|
||||
<translation>Удаление будет безвозвратным.
|
||||
@@ -240,57 +240,57 @@ The status will be set: 'completed'</source>
|
||||
<context>
|
||||
<name>DialogSettings</name>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="20"/>
|
||||
<location filename="../dialogsettings.ui" line="26"/>
|
||||
<source>Learning management system - Settings</source>
|
||||
<translation>Система управления обучением - Настройки</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="43"/>
|
||||
<location filename="../dialogsettings.ui" line="41"/>
|
||||
<source>Main</source>
|
||||
<translation>Основные</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="61"/>
|
||||
<location filename="../dialogsettings.ui" line="51"/>
|
||||
<source>Language</source>
|
||||
<translation>Язык</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="99"/>
|
||||
<location filename="../dialogsettings.ui" line="76"/>
|
||||
<source>Server</source>
|
||||
<translation>Сервер</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="109"/>
|
||||
<location filename="../dialogsettings.ui" line="86"/>
|
||||
<source>Address</source>
|
||||
<translation>Адрес</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="146"/>
|
||||
<location filename="../dialogsettings.ui" line="123"/>
|
||||
<source>Port</source>
|
||||
<translation>Порт</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="189"/>
|
||||
<location filename="../dialogsettings.ui" line="166"/>
|
||||
<source>Auto start</source>
|
||||
<translation>Авто старт</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="231"/>
|
||||
<location filename="../dialogsettings.ui" line="208"/>
|
||||
<source>Save</source>
|
||||
<translation>Сохранить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="274"/>
|
||||
<location filename="../dialogsettings.ui" line="235"/>
|
||||
<source>Additional</source>
|
||||
<translation>Расширенные</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="301"/>
|
||||
<location filename="../dialogsettings.ui" line="249"/>
|
||||
<source>Version</source>
|
||||
<translation>Версия</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../dialogsettings.ui" line="340"/>
|
||||
<location filename="../dialogsettings.ui" line="275"/>
|
||||
<source>Style</source>
|
||||
<translation>Стиль</translation>
|
||||
</message>
|
||||
@@ -589,61 +589,61 @@ The changes will not be accepted.</source>
|
||||
<translation>Удалить</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="283"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="282"/>
|
||||
<source>completed</source>
|
||||
<translation>выполнена</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="288"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="287"/>
|
||||
<source>failed</source>
|
||||
<translation>неверно</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="293"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="292"/>
|
||||
<source>checkup</source>
|
||||
<translation>на проверке</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="298"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="297"/>
|
||||
<source>new</source>
|
||||
<translation>новая</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="386"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="385"/>
|
||||
<source>Task FIM</source>
|
||||
<translation>Задача FIM</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="386"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="388"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="385"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="387"/>
|
||||
<source>ID</source>
|
||||
<translation>ID</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="386"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="388"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="385"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="387"/>
|
||||
<source>Status</source>
|
||||
<translation>Статус</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="388"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="387"/>
|
||||
<source>Title</source>
|
||||
<translation>Заголовок</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="529"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="528"/>
|
||||
<source>Attention!</source>
|
||||
<translation>Внимание!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="529"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="528"/>
|
||||
<source>The deletion will be irrevocable.
|
||||
Delete it anyway?</source>
|
||||
<translation>Удаление будет безвозвратным.
|
||||
Всё равно удалить?</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="558"/>
|
||||
<location filename="../tasks/fimtaskswidget.cpp" line="557"/>
|
||||
<source>Check Task</source>
|
||||
<translation>Проверка задачи</translation>
|
||||
</message>
|
||||
@@ -657,8 +657,13 @@ Delete it anyway?</source>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.ui" line="43"/>
|
||||
<source>Connection to Server</source>
|
||||
<translation>Подключение к серверу</translation>
|
||||
<source>Connection</source>
|
||||
<translation>Подключение</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.ui" line="72"/>
|
||||
<source>Authorization</source>
|
||||
<translation>Авторизация</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.ui" line="120"/>
|
||||
@@ -705,67 +710,53 @@ Delete it anyway?</source>
|
||||
<source>FIM</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.ui" line="72"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="139"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="252"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="280"/>
|
||||
<source>Authorization Instructor</source>
|
||||
<translation>Авторизация инструктора</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.ui" line="127"/>
|
||||
<location filename="../instructorsandtraineeswidget.ui" line="184"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="284"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="404"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="420"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="292"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="412"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="428"/>
|
||||
<source>none</source>
|
||||
<translation>нет</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="137"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="217"/>
|
||||
<source>Deauthorization Instructor</source>
|
||||
<translation>Деавторизация инструктора</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="168"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="176"/>
|
||||
<source>Attention!</source>
|
||||
<translation>Внимание!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="168"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="176"/>
|
||||
<source>The file could not be opened </source>
|
||||
<translation>Файл не может быть открыт </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="260"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="268"/>
|
||||
<source>Instructor deauthorization</source>
|
||||
<translation>Деавторизация инструктора</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="260"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="268"/>
|
||||
<source>Error!</source>
|
||||
<translation>Ошибка!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="300"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="308"/>
|
||||
<source>Warning!</source>
|
||||
<translation>Внимание!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="300"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="308"/>
|
||||
<source>The server is disabled</source>
|
||||
<translation>Сервер отключен</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="230"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="307"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="238"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="315"/>
|
||||
<source>Instructor authorization</source>
|
||||
<translation>Авторизация инструктора</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="230"/>
|
||||
<location filename="../instructorsandtraineeswidget.cpp" line="238"/>
|
||||
<source>Invalid login or password!</source>
|
||||
<translation>Неправильный логин или пароль!</translation>
|
||||
</message>
|
||||
@@ -963,59 +954,59 @@ Delete it anyway?</source>
|
||||
<context>
|
||||
<name>TraineesView</name>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="137"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="151"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="141"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="155"/>
|
||||
<source>yes</source>
|
||||
<translation>да</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="143"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="156"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="147"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="160"/>
|
||||
<source>no</source>
|
||||
<translation>нет</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>Trainee</source>
|
||||
<translation>Обучаемый</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>Login</source>
|
||||
<translation>Логин</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>Password</source>
|
||||
<translation>Пароль</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>Class</source>
|
||||
<translation>Класс</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>Computer</source>
|
||||
<translation>Компьютер</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>IP address</source>
|
||||
<translation>IP адрес</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>Archived</source>
|
||||
<translation>Архивный</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>Logged</source>
|
||||
<translation>Залогирован</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../trainees/traineesview.cpp" line="203"/>
|
||||
<location filename="../trainees/traineesview.cpp" line="207"/>
|
||||
<source>ID</source>
|
||||
<translation>ID</translation>
|
||||
</message>
|
||||
|
||||
Reference in New Issue
Block a user