From b6c0f6aa572bdb8b2e5fa65c03a06c66dd71cc28 Mon Sep 17 00:00:00 2001 From: krivoshein Date: Sun, 23 Nov 2025 00:11:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D1=80=D1=83=D1=82=D0=B8=D0=BB=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81?= =?UTF-8?q?=D0=BA=D0=B5=20=D0=A1=D0=B5=D1=80=D0=B2=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DOCS/Андрей/Board.md | 14 ++++---------- DOCS/Андрей/Без названия.canvas | 2 +- InstructorsAndTrainees/CMakeLists.txt | 1 + .../widgets/waitanimationwidget.h | 3 ++- ServerLMS/CMakeLists.txt | 1 + ServerLMS/serverlmswidget.cpp | 19 +++++++++++++++++++ ServerLMS/serverlmswidget.h | 8 +++++++- TrayServerLMS/CMakeLists.txt | 1 + 8 files changed, 36 insertions(+), 13 deletions(-) diff --git a/DOCS/Андрей/Board.md b/DOCS/Андрей/Board.md index cc6fd77..1bff4ac 100644 --- a/DOCS/Андрей/Board.md +++ b/DOCS/Андрей/Board.md @@ -11,6 +11,8 @@ kanban-plugin: board ## Completed +- [ ] Переобновление docs.xml в пределах версии (если инструктор изменяет процедуры) +- [ ] Реализовать механизм отображения и выбора подпроцедур для АММ. - [ ] Создание БД из кода (если нет или слетела) - [ ] Сервер при сворачивании превращается в трей - [ ] Пароли хранить и пересылать в виде Хеша @@ -50,7 +52,6 @@ kanban-plugin: board ## Server -- [ ] Кнопки Восстановить и Проверить&Восстановить расширить - [ ] Логин суперпользователя PostgreSQL предлагать по умолчанию postgres - [ ] Отходить от идентификации по Логину в пользу ID юзера везде, где это возможно. (Так как сейчас может вызвать проблемы при смене логина юзера!!!) @@ -73,21 +74,14 @@ kanban-plugin: board ## GUI общие - [ ] Текстовый поиск в задачах -- [ ] Сделать кнопку перезапроса общих списков АММ и FIM +- [ ] Сделать кнопку перезапроса общих списков FIM (по аналогии с АММ) - [ ] Сделать несколько попыток подключения к серверу -## Сервер+GUI - -- [ ] Расширить диалог Авторизации -- [ ] Реализовать механизм отображения и выбора подпроцедур для АММ. -- [ ] Переобновление docs.xml в пределах версии (если инструктор изменяет процедуры) - - %% kanban:settings ``` -{"kanban-plugin":"board","list-collapse":[false,false,false,false,false,false]} +{"kanban-plugin":"board","list-collapse":[false,false,false,false,false]} ``` %% \ No newline at end of file diff --git a/DOCS/Андрей/Без названия.canvas b/DOCS/Андрей/Без названия.canvas index 74862a0..6cb7d12 100644 --- a/DOCS/Андрей/Без названия.canvas +++ b/DOCS/Андрей/Без названия.canvas @@ -1,6 +1,6 @@ { "nodes":[ - {"id":"3e71087c4a5247a0","x":-1134,"y":-740,"width":1494,"height":808,"type":"file","file":"DBschem.png"} + {"id":"3e71087c4a5247a0","type":"file","file":"DBschem.png","x":-1134,"y":-740,"width":1494,"height":808} ], "edges":[] } \ No newline at end of file diff --git a/InstructorsAndTrainees/CMakeLists.txt b/InstructorsAndTrainees/CMakeLists.txt index b1f98d9..f5a00aa 100644 --- a/InstructorsAndTrainees/CMakeLists.txt +++ b/InstructorsAndTrainees/CMakeLists.txt @@ -159,6 +159,7 @@ target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_ target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/messanger) target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/settings) target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/specialmessagebox) +target_include_directories(InstructorsAndTrainees PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/widgets) target_compile_definitions(InstructorsAndTrainees PRIVATE INSTRUCTORSANDTRAINEES_LIBRARY) diff --git a/InstructorsAndTrainees/widgets/waitanimationwidget.h b/InstructorsAndTrainees/widgets/waitanimationwidget.h index 827ee99..e826745 100644 --- a/InstructorsAndTrainees/widgets/waitanimationwidget.h +++ b/InstructorsAndTrainees/widgets/waitanimationwidget.h @@ -3,12 +3,13 @@ #include #include +#include "instructorsAndTrainees_global.h" namespace Ui { class WaitAnimationWidget; } -class WaitAnimationWidget : public QWidget +class INSTRUCTORSANDTRAINEES_EXPORT WaitAnimationWidget : public QWidget { Q_OBJECT diff --git a/ServerLMS/CMakeLists.txt b/ServerLMS/CMakeLists.txt index 26ce472..bc2d524 100644 --- a/ServerLMS/CMakeLists.txt +++ b/ServerLMS/CMakeLists.txt @@ -86,6 +86,7 @@ target_link_libraries(ServerLMS PRIVATE libDataBaseLMS.dll) target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/authorization) target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) +target_include_directories(ServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets) if(PROJECT_TYPE_DEBUG) target_link_directories(ServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/InstructorsAndTrainees) else() diff --git a/ServerLMS/serverlmswidget.cpp b/ServerLMS/serverlmswidget.cpp index c10cf35..ef4bbf3 100644 --- a/ServerLMS/serverlmswidget.cpp +++ b/ServerLMS/serverlmswidget.cpp @@ -16,6 +16,7 @@ const QString ServerLMSWidget::languageRUS = "ru_RU"; ServerLMSWidget::ServerLMSWidget(QWidget *parent) : QWidget(parent), ui(new Ui::ServerLMSWidget), + waitAnimationWidget(nullptr), server(nullptr), updateThread(nullptr), loggerThread(nullptr), @@ -42,6 +43,13 @@ ServerLMSWidget::ServerLMSWidget(QWidget *parent) : updateMyStyleSheet(); setLanguageInterfase(); + + waitAnimationWidget = new WaitAnimationWidget; + QMovie *movie = new QMovie(":/resources/icons/762.gif"); + waitAnimationWidget->setParent(this); + waitAnimationWidget->initialize(movie,this); + + waitAnimationWidget->showWithPlay(); } ServerLMSWidget::~ServerLMSWidget() @@ -72,6 +80,9 @@ ServerLMSWidget::~ServerLMSWidget() delete providerDBLMS; } + waitAnimationWidget->hideWithStop(); + delete waitAnimationWidget; + delete ui; } @@ -86,6 +97,12 @@ void ServerLMSWidget::changeEvent(QEvent *event) } } +void ServerLMSWidget::resizeEvent(QResizeEvent *event) +{ + QSize size = event->size(); + waitAnimationWidget->resize(size); +} + void ServerLMSWidget::slot_UpdateListClients() { //Очищаем список @@ -131,6 +148,8 @@ void ServerLMSWidget::start() if(hasError() == 100) return; tryConnectionToDB(); + + waitAnimationWidget->hideWithStop(); } void ServerLMSWidget::slot_BlockAutorization(bool block) diff --git a/ServerLMS/serverlmswidget.h b/ServerLMS/serverlmswidget.h index 4c81cd7..b1eec18 100644 --- a/ServerLMS/serverlmswidget.h +++ b/ServerLMS/serverlmswidget.h @@ -28,6 +28,10 @@ #include "providerdblms.h" #include "docsupdater.h" +#include "waitanimationwidget.h" + + + namespace Ui { class ServerLMSWidget; @@ -64,6 +68,8 @@ protected: // В нём будет производиться проверка события смены перевода приложения void changeEvent(QEvent * event) override; + void resizeEvent(QResizeEvent *event) override; + signals: //сигнал смены языка void signal_LanguageChanged(QString language); @@ -139,7 +145,7 @@ private: Ui::ServerLMSWidget *ui; private: - //WaitAnimationWidget *waitAnimationWidget; + WaitAnimationWidget *waitAnimationWidget; MultiThreadServer *server; QThread *updateThread; diff --git a/TrayServerLMS/CMakeLists.txt b/TrayServerLMS/CMakeLists.txt index 04881da..ba9ead2 100644 --- a/TrayServerLMS/CMakeLists.txt +++ b/TrayServerLMS/CMakeLists.txt @@ -37,3 +37,4 @@ target_link_libraries(TrayServerLMS PRIVATE libServerLMS.dll) target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees) target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/tasks) +target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../InstructorsAndTrainees/widgets)