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

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

View File

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

View File

@@ -5,6 +5,7 @@
#include <QThread>
#include <QResizeEvent>
#include <QScrollBar>
#include <QAbstractItemView>
#include "ammtaskswidget.h"
#include "ui_ammtaskswidget.h"
#include "checkertask.h"
@@ -100,6 +101,11 @@ AMMtasksWidget::AMMtasksWidget(ConnectorToServer* connectorToServer, TypeListTre
ui->label_Actual->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()

View File

@@ -85,6 +85,11 @@ FIMtasksWidget::FIMtasksWidget(ConnectorToServer* connectorToServer, TypeListTre
//ui->verticalLayout->setAlignment(Qt::AlignmentFlag::AlignBottom);
//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()

View File

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

View File

@@ -98,10 +98,21 @@ void PersonalCardTrainee::loadInfo()
TimingOfTrainee timing = trainee.getTiming();
QTime time0;
time0.setHMS(0, 0, 0);
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)
{

View File

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

Binary file not shown.

View File

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