mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
Убрал старые Tasks из Сервера
This commit is contained in:
@@ -27,12 +27,6 @@ ServerLMSWidget::ServerLMSWidget(QWidget *parent) :
|
|||||||
|
|
||||||
qRegisterMetaType<PacketType>("PacketType");
|
qRegisterMetaType<PacketType>("PacketType");
|
||||||
|
|
||||||
ui->comboTasks->addItem("Задача 1");
|
|
||||||
ui->comboTasks->addItem("Задача 2");
|
|
||||||
ui->comboTasks->addItem("Задача 3");
|
|
||||||
ui->comboTasks->addItem("Задача 4");
|
|
||||||
ui->comboTasks->addItem("Задача 5");
|
|
||||||
|
|
||||||
ui->btnStopServer->setEnabled(false);
|
ui->btnStopServer->setEnabled(false);
|
||||||
ui->btnStartServer->setEnabled(true);
|
ui->btnStartServer->setEnabled(true);
|
||||||
|
|
||||||
@@ -225,15 +219,6 @@ void ServerLMSWidget::slot_LanguageChanged(QString language)
|
|||||||
qApp->installTranslator(&qtLanguageTranslator);
|
qApp->installTranslator(&qtLanguageTranslator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void ServerLMSWidget::on_btnTaskSet_clicked()
|
|
||||||
{
|
|
||||||
QString fullNameClient = ui->listWidget_Clients->currentItem()->text();
|
|
||||||
QString textTask = ui->comboTasks->currentText();
|
|
||||||
|
|
||||||
commonClientHandler->slot_sendTaskToClient(fullNameClient,textTask);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ServerLMSWidget::slotAddToLog(QString msg)
|
void ServerLMSWidget::slotAddToLog(QString msg)
|
||||||
{
|
{
|
||||||
ui->listWidgetLogger->addItem(msg);
|
ui->listWidgetLogger->addItem(msg);
|
||||||
|
|||||||
@@ -98,7 +98,6 @@ public:
|
|||||||
private slots:
|
private slots:
|
||||||
void on_btnStartServer_clicked();
|
void on_btnStartServer_clicked();
|
||||||
void on_btnStopServer_clicked();
|
void on_btnStopServer_clicked();
|
||||||
void on_btnTaskSet_clicked();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool startServer();
|
bool startServer();
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<string>Server LMS</string>
|
<string>Server LMS</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_7">
|
<layout class="QGridLayout" name="gridLayout_7">
|
||||||
<item row="4" column="0">
|
<item row="3" column="0">
|
||||||
<widget class="QGroupBox" name="groupBox">
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="4" column="0">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lblOnOff">
|
<widget class="QLabel" name="lblOnOff">
|
||||||
@@ -184,33 +184,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QGroupBox" name="groupBox_4">
|
|
||||||
<property name="title">
|
|
||||||
<string>Tasks</string>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_6">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
||||||
<item>
|
|
||||||
<widget class="QComboBox" name="comboTasks"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QToolButton" name="btnTaskSet">
|
|
||||||
<property name="text">
|
|
||||||
<string>Set</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user