mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
Крутилка при запуске Сервера
This commit is contained in:
@@ -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]}
|
||||
```
|
||||
%%
|
||||
@@ -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":[]
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
|
||||
#include <QMovie>
|
||||
#include <QWidget>
|
||||
#include "instructorsAndTrainees_global.h"
|
||||
|
||||
namespace Ui {
|
||||
class WaitAnimationWidget;
|
||||
}
|
||||
|
||||
class WaitAnimationWidget : public QWidget
|
||||
class INSTRUCTORSANDTRAINEES_EXPORT WaitAnimationWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user