плавный скрол

This commit is contained in:
2026-01-29 16:23:35 +03:00
parent 0c5509a426
commit 2a13f63fcc
10 changed files with 66 additions and 28 deletions

View File

@@ -9,10 +9,12 @@ kanban-plugin: board
- [ ] GUI: Сделать кнопку перезапроса общих списков FIM (по аналогии с АММ) - [ ] GUI: Сделать кнопку перезапроса общих списков FIM (по аналогии с АММ)
- [ ] /RUS/Scens/tasksFIM.xml возможно изменится структура - [ ] /RUS/Scens/tasksFIM.xml возможно изменится структура
- [ ] выгрузка назначенных задач с оценками в эксель таблицу или любой другой человекочитаемый вид - [ ] выгрузка назначенных задач с оценками в эксель таблицу или любой другой человекочитаемый вид
- [ ] Текстовый поиск в задачах
## Completed ## Completed
- [ ] Не влазиют слишком большие сообщения
- [ ] FIM процедура добавить кнопку сделать новой - [ ] FIM процедура добавить кнопку сделать новой
- [ ] Не видно новых пришедших сообщений, если выбран другой Юзер - [ ] Не видно новых пришедших сообщений, если выбран другой Юзер
- [ ] При смене УЗ в ГУИ остается история переписки в мессенджере. При этом Имя инструктора в диалоге подменяется. (Путается только в ГУИ!) - [ ] При смене УЗ в ГУИ остается история переписки в мессенджере. При этом Имя инструктора в диалоге подменяется. (Путается только в ГУИ!)
@@ -58,6 +60,7 @@ kanban-plugin: board
- [ ] Учет ширины скрола на деревьях (появляется если дерево больше окна) - [ ] Учет ширины скрола на деревьях (появляется если дерево больше окна)
- [ ] Универсальный пересчет ширин колонок деревьев - [ ] Универсальный пересчет ширин колонок деревьев
- [ ] При обновлении деревьев слетает назначенная колонка сортировки - [ ] При обновлении деревьев слетает назначенная колонка сортировки
- [ ] В сообщение о неудачном подключении к PostgreSQL добавить: PSQL не установлен
## Server ## Server
@@ -66,17 +69,14 @@ kanban-plugin: board
(Так как сейчас может вызвать проблемы при смене логина юзера!!!) (Так как сейчас может вызвать проблемы при смене логина юзера!!!)
- [ ] Зарефакторить databaselms_PostgreSQL.cpp - [ ] Зарефакторить databaselms_PostgreSQL.cpp
(возможно, нужно использовать транзакции при восстановлении БД!) (возможно, нужно использовать транзакции при восстановлении БД!)
- [ ] В сообщение о неудачном подключении к PostgreSQL добавить: PSQL не установлен
## GUI Messenger ## GUI Messenger
- [ ] Не влазиют слишком большие сообщения
## GUI общие ## GUI общие
- [ ] Текстовый поиск в задачах
- [ ] Общий список АММ. автопролистывание вниз, если раскрывается дерево внизу - [ ] Общий список АММ. автопролистывание вниз, если раскрывается дерево внизу

View File

@@ -26,6 +26,11 @@ CommonView::CommonView(ConnectorToServer* connectorToServer, TypeView type, QWid
treeWidget->setSortingEnabled(false); treeWidget->setSortingEnabled(false);
treeWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->verticalScrollBar()->setSingleStep(10);
treeWidget->setHorizontalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->horizontalScrollBar()->setSingleStep(10);
waitAnimationWidget = new WaitAnimationWidget; waitAnimationWidget = new WaitAnimationWidget;
QMovie *movie = new QMovie(":/resources/icons/762.gif"); QMovie *movie = new QMovie(":/resources/icons/762.gif");
waitAnimationWidget->initialize(movie,this); waitAnimationWidget->initialize(movie,this);

View File

@@ -5,6 +5,7 @@
#include <QThread> #include <QThread>
#include <QResizeEvent> #include <QResizeEvent>
#include <QScrollBar> #include <QScrollBar>
#include <QAbstractItemView>
#include "ammtaskswidget.h" #include "ammtaskswidget.h"
#include "ui_ammtaskswidget.h" #include "ui_ammtaskswidget.h"
#include "checkertask.h" #include "checkertask.h"
@@ -100,6 +101,11 @@ AMMtasksWidget::AMMtasksWidget(ConnectorToServer* connectorToServer, TypeListTre
ui->label_Actual->setVisible(false); ui->label_Actual->setVisible(false);
ui->btnDocsUpdating->setVisible(false); ui->btnDocsUpdating->setVisible(false);
} }
treeWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->verticalScrollBar()->setSingleStep(10);
treeWidget->setHorizontalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->horizontalScrollBar()->setSingleStep(10);
} }
AMMtasksWidget::~AMMtasksWidget() AMMtasksWidget::~AMMtasksWidget()

View File

@@ -85,6 +85,11 @@ FIMtasksWidget::FIMtasksWidget(ConnectorToServer* connectorToServer, TypeListTre
//ui->verticalLayout->setAlignment(Qt::AlignmentFlag::AlignBottom); //ui->verticalLayout->setAlignment(Qt::AlignmentFlag::AlignBottom);
//ui->horizontalLayout_3->setAlignment(Qt::AlignmentFlag::AlignLeft); //ui->horizontalLayout_3->setAlignment(Qt::AlignmentFlag::AlignLeft);
} }
treeWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->verticalScrollBar()->setSingleStep(10);
treeWidget->setHorizontalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->horizontalScrollBar()->setSingleStep(10);
} }
FIMtasksWidget::~FIMtasksWidget() FIMtasksWidget::~FIMtasksWidget()

View File

@@ -16,6 +16,11 @@ ListSubProc::ListSubProc(QWidget *parent) :
treeWidget->setFocusPolicy(Qt::FocusPolicy::NoFocus); treeWidget->setFocusPolicy(Qt::FocusPolicy::NoFocus);
treeWidget->setVerticalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->verticalScrollBar()->setSingleStep(10);
treeWidget->setHorizontalScrollMode(QAbstractItemView::ScrollMode::ScrollPerPixel);
treeWidget->horizontalScrollBar()->setSingleStep(10);
preparationTreeWidget(); preparationTreeWidget();
} }

View File

@@ -98,9 +98,20 @@ void PersonalCardTrainee::loadInfo()
TimingOfTrainee timing = trainee.getTiming(); TimingOfTrainee timing = trainee.getTiming();
ui->lblTimeOperation->setText(timing.getOperatingTimeS()); QTime time0;
ui->lblLoginTime->setText(timing.getEntryTimeS()); time0.setHMS(0, 0, 0);
ui->lblTimeExit->setText(timing.getExitTimeS()); if(timing.getOperatingTime() == time0)
{
ui->lblTimeOperation->setText(timing.getOperatingTimeS());
ui->lblLoginTime->setText("---");
ui->lblTimeExit->setText("---");
}
else
{
ui->lblTimeOperation->setText(timing.getOperatingTimeS());
ui->lblLoginTime->setText(timing.getEntryTimeS());
ui->lblTimeExit->setText(timing.getExitTimeS());
}
} }
void PersonalCardTrainee::slot_countTasksAMMforTraineeChanged(int trainee_id, QString statAMM) void PersonalCardTrainee::slot_countTasksAMMforTraineeChanged(int trainee_id, QString statAMM)

View File

@@ -75,6 +75,7 @@ DialogSettingsTray::DialogSettingsTray(ProviderDBLMS* providerDBLMS, QWidget *pa
ui->btnSave->setEnabled(false); ui->btnSave->setEnabled(false);
ui->btnCheckDB->setEnabled(true); ui->btnCheckDB->setEnabled(true);
ui->btnUpdateDocs->setEnabled(true);
flSettingsServerChanged = false; flSettingsServerChanged = false;
} }
else else
@@ -90,6 +91,7 @@ DialogSettingsTray::DialogSettingsTray(ProviderDBLMS* providerDBLMS, QWidget *pa
ui->btnSave->setEnabled(false); ui->btnSave->setEnabled(false);
ui->btnCheckDB->setEnabled(false); ui->btnCheckDB->setEnabled(false);
ui->btnUpdateDocs->setEnabled(false);
flSettingsServerChanged = false; flSettingsServerChanged = false;
} }
} }
@@ -217,6 +219,7 @@ void DialogSettingsTray::on_btnSave_clicked()
saveSettings(); saveSettings();
ui->btnCheckDB->setEnabled(true); ui->btnCheckDB->setEnabled(true);
ui->btnUpdateDocs->setEnabled(true);
this->accept(); this->accept();
} }
@@ -242,6 +245,7 @@ void DialogSettingsTray::on_editNameDB_textChanged(const QString &arg1)
{ {
ui->btnSave->setEnabled(true); ui->btnSave->setEnabled(true);
ui->btnCheckDB->setEnabled(false); ui->btnCheckDB->setEnabled(false);
ui->btnUpdateDocs->setEnabled(false);
flSettingsServerChanged = true; flSettingsServerChanged = true;
} }
@@ -249,6 +253,7 @@ void DialogSettingsTray::on_editHostName_textChanged(const QString &arg1)
{ {
ui->btnSave->setEnabled(true); ui->btnSave->setEnabled(true);
ui->btnCheckDB->setEnabled(false); ui->btnCheckDB->setEnabled(false);
ui->btnUpdateDocs->setEnabled(false);
flSettingsServerChanged = true; flSettingsServerChanged = true;
} }
@@ -256,6 +261,7 @@ void DialogSettingsTray::on_editPort_textChanged(const QString &arg1)
{ {
ui->btnSave->setEnabled(true); ui->btnSave->setEnabled(true);
ui->btnCheckDB->setEnabled(false); ui->btnCheckDB->setEnabled(false);
ui->btnUpdateDocs->setEnabled(false);
flSettingsServerChanged = true; flSettingsServerChanged = true;
} }
@@ -263,6 +269,7 @@ void DialogSettingsTray::on_editUserName_textChanged(const QString &arg1)
{ {
ui->btnSave->setEnabled(true); ui->btnSave->setEnabled(true);
ui->btnCheckDB->setEnabled(false); ui->btnCheckDB->setEnabled(false);
ui->btnUpdateDocs->setEnabled(false);
flSettingsServerChanged = true; flSettingsServerChanged = true;
} }
@@ -270,6 +277,7 @@ void DialogSettingsTray::on_editPassword_textChanged(const QString &arg1)
{ {
ui->btnSave->setEnabled(true); ui->btnSave->setEnabled(true);
ui->btnCheckDB->setEnabled(false); ui->btnCheckDB->setEnabled(false);
ui->btnUpdateDocs->setEnabled(false);
flSettingsServerChanged = true; flSettingsServerChanged = true;
} }

Binary file not shown.

View File

@@ -927,7 +927,7 @@ Please try again later.</source>
<message> <message>
<location filename="../LibInstructorsAndTrainees/settings/dialogversioncontrol.cpp" line="107"/> <location filename="../LibInstructorsAndTrainees/settings/dialogversioncontrol.cpp" line="107"/>
<source>Changeable: </source> <source>Changeable: </source>
<translation>Изменен: </translation> <translation>Изменяемая: </translation>
</message> </message>
<message> <message>
<location filename="../LibInstructorsAndTrainees/settings/dialogversioncontrol.cpp" line="108"/> <location filename="../LibInstructorsAndTrainees/settings/dialogversioncontrol.cpp" line="108"/>
@@ -1487,14 +1487,12 @@ Please reconnect to the server.</source>
<message> <message>
<location filename="../ProgramAWSinstructorMTD/mainwindow.ui" line="19"/> <location filename="../ProgramAWSinstructorMTD/mainwindow.ui" line="19"/>
<source>Maintenance training device RRJ-95NEW-100 Instructor&apos;s workstation</source> <source>Maintenance training device RRJ-95NEW-100 Instructor&apos;s workstation</source>
<translation>АРМ Инструктора Тренажёра процедур технического <translation>АРМ Инструктора Тренажёра процедур технического обслуживания RRJ-95NEW-100</translation>
обслуживания RRJ-95NEW-100</translation>
</message> </message>
<message> <message>
<location filename="../ProgramServerMTD/mainwindow.ui" line="20"/> <location filename="../ProgramServerMTD/mainwindow.ui" line="20"/>
<source>Maintenance training device RRJ-95NEW-100 Server</source> <source>Maintenance training device RRJ-95NEW-100 Server</source>
<translation>Сервер Тренажёра процедур технического <translation>Сервер Тренажёра процедур технического обслуживания RRJ-95NEW-100</translation>
обслуживания RRJ-95NEW-100</translation>
</message> </message>
</context> </context>
<context> <context>
@@ -1747,81 +1745,81 @@ Please reconnect to the server.</source>
<translation>Версия материалов: </translation> <translation>Версия материалов: </translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="143"/> <location filename="../LibServer/serverlmswidget.cpp" line="145"/>
<source>Error PostgreSQL!</source> <source>Error PostgreSQL!</source>
<translation>Ошибка PostgreSQL!</translation> <translation>Ошибка PostgreSQL!</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="233"/> <location filename="../LibServer/serverlmswidget.cpp" line="238"/>
<source>Server is started!</source> <source>Server is started!</source>
<translation>Сервер запущен!</translation> <translation>Сервер запущен!</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="251"/> <location filename="../LibServer/serverlmswidget.cpp" line="256"/>
<source>Server is stoped!</source> <source>Server is stoped!</source>
<translation>Сервер остановлен!</translation> <translation>Сервер остановлен!</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="262"/> <location filename="../LibServer/serverlmswidget.cpp" line="267"/>
<source>Settings file could not be opened:</source> <source>Settings file could not be opened:</source>
<translation>Файл настроек не открыт:</translation> <translation>Файл настроек не открыт:</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="291"/> <location filename="../LibServer/serverlmswidget.cpp" line="296"/>
<source>Database settings have been changed. <source>Database settings have been changed.
The server will be restarted.</source> The server will be restarted.</source>
<translation>Настройки Базы Данных были изменены. <translation>Настройки Базы Данных были изменены.
Сервер будет перезапущен.</translation> Сервер будет перезапущен.</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="340"/> <location filename="../LibServer/serverlmswidget.cpp" line="345"/>
<source>The file could not be opened </source> <source>The file could not be opened </source>
<translation>Файл не может быть открыт </translation> <translation>Файл не может быть открыт </translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="420"/> <location filename="../LibServer/serverlmswidget.cpp" line="428"/>
<location filename="../LibServer/serverlmswidget.cpp" line="424"/> <location filename="../LibServer/serverlmswidget.cpp" line="432"/>
<source>Database connection error!</source> <source>Database connection error!</source>
<translation>Ошибка подключения Базы данных!</translation> <translation>Ошибка подключения Базы данных!</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="441"/> <location filename="../LibServer/serverlmswidget.cpp" line="449"/>
<source>Database connection OK!</source> <source>Database connection OK!</source>
<translation>База данных подключена!</translation> <translation>База данных подключена!</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="457"/> <location filename="../LibServer/serverlmswidget.cpp" line="465"/>
<location filename="../LibServer/serverlmswidget.cpp" line="462"/> <location filename="../LibServer/serverlmswidget.cpp" line="470"/>
<source>started</source> <source>started</source>
<translation>запущен</translation> <translation>запущен</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="462"/> <location filename="../LibServer/serverlmswidget.cpp" line="470"/>
<source>locked</source> <source>locked</source>
<translation>заблокирован</translation> <translation>заблокирован</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="468"/> <location filename="../LibServer/serverlmswidget.cpp" line="476"/>
<source>stoped</source> <source>stoped</source>
<translation>остановлен</translation> <translation>остановлен</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="484"/> <location filename="../LibServer/serverlmswidget.cpp" line="492"/>
<source>connected</source> <source>connected</source>
<translation>подключена</translation> <translation>подключена</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.cpp" line="493"/> <location filename="../LibServer/serverlmswidget.cpp" line="501"/>
<source>not connected</source> <source>not connected</source>
<translation>не подключен</translation> <translation>не подключен</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.h" line="115"/> <location filename="../LibServer/serverlmswidget.h" line="118"/>
<source>No Client files found!</source> <source>No Client files found!</source>
<translation>Файлы клиента не найдены!</translation> <translation>Файлы клиента не найдены!</translation>
</message> </message>
<message> <message>
<location filename="../LibServer/serverlmswidget.h" line="116"/> <location filename="../LibServer/serverlmswidget.h" line="119"/>
<source>* check Application for the presence of a folder with a build <source>* check Application for the presence of a folder with a build
* check SharedData for a folder with the base version and the name base</source> * check SharedData for a folder with the base version and the name base</source>
<translation>* проверьте Application на наличие папки со сборкой <translation>* проверьте Application на наличие папки со сборкой