From 294a7e4a7d2bd11ef77ebd750bb90c05ac74aad3 Mon Sep 17 00:00:00 2001 From: krivoshein Date: Mon, 20 Oct 2025 17:07:26 +0300 Subject: [PATCH] =?UTF-8?q?TrayServerLMS=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B8?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- CMakeLists.txt | 4 +- DataBaseLMS/CMakeLists.txt | 6 +- .../{resources.qrc => DataBaseLMS.qrc} | 0 InstructorsAndTrainees/CMakeLists.txt | 2 +- ...sources.qrc => InstructorsAndTrainees.qrc} | 0 ServerLMS/CMakeLists.txt | 6 +- ServerLMS/{resources.qrc => ServerLMS.qrc} | 0 ServerLMS/translations/ServerLMS_ru_RU.qm | Bin 799 -> 701 bytes ServerLMS/translations/ServerLMS_ru_RU.ts | 27 ++++----- TestServerLMS/CMakeLists.txt | 32 ---------- .../translations/testServerLMS_ru_RU.qm | Bin 704 -> 0 bytes .../translations/testServerLMS_ru_RU.ts | 29 --------- TrayServerLMS/CMakeLists.txt | 32 ++++++++++ .../CMakeLists.txt.user.00ce76f | 0 .../CMakeLists.txt.user.15ef247 | 0 .../TrayServerLMS.qrc | 0 {TestServerLMS => TrayServerLMS}/main.cpp | 0 .../mainwindow.cpp | 2 +- {TestServerLMS => TrayServerLMS}/mainwindow.h | 0 .../mainwindow.ui | 0 .../resources/IcoServerRRJ.ico | Bin .../translations/TrayServerLMS_ru_RU.qm | Bin 0 -> 1429 bytes .../translations/TrayServerLMS_ru_RU.ts | 55 ++++++++++++++++++ 24 files changed, 109 insertions(+), 88 deletions(-) rename DataBaseLMS/{resources.qrc => DataBaseLMS.qrc} (100%) rename InstructorsAndTrainees/{resources.qrc => InstructorsAndTrainees.qrc} (100%) rename ServerLMS/{resources.qrc => ServerLMS.qrc} (100%) delete mode 100644 TestServerLMS/CMakeLists.txt delete mode 100644 TestServerLMS/translations/testServerLMS_ru_RU.qm delete mode 100644 TestServerLMS/translations/testServerLMS_ru_RU.ts create mode 100644 TrayServerLMS/CMakeLists.txt rename {TestServerLMS => TrayServerLMS}/CMakeLists.txt.user.00ce76f (100%) rename {TestServerLMS => TrayServerLMS}/CMakeLists.txt.user.15ef247 (100%) rename TestServerLMS/testServerLMS.qrc => TrayServerLMS/TrayServerLMS.qrc (100%) rename {TestServerLMS => TrayServerLMS}/main.cpp (100%) rename {TestServerLMS => TrayServerLMS}/mainwindow.cpp (99%) rename {TestServerLMS => TrayServerLMS}/mainwindow.h (100%) rename {TestServerLMS => TrayServerLMS}/mainwindow.ui (100%) rename {TestServerLMS => TrayServerLMS}/resources/IcoServerRRJ.ico (100%) create mode 100644 TrayServerLMS/translations/TrayServerLMS_ru_RU.qm create mode 100644 TrayServerLMS/translations/TrayServerLMS_ru_RU.ts diff --git a/.gitignore b/.gitignore index 2c69128..57dc83a 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ compile_commands.json CTestTestfile.cmake _deps CMakeUserPresets.json -TestServerLMS/TestServerLMS/CMakeLists.txt.user +TrayServerLMS/TestServerLMS/CMakeLists.txt.user ServerLMS/ServerLMS/CMakeLists.txt.user InstructorsAndTrainees/CMakeLists.txt.user GUIdataBaseLMS/CMakeLists.txt.user diff --git a/CMakeLists.txt b/CMakeLists.txt index c698146..c27a0aa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,9 +34,9 @@ add_subdirectory(DataBaseLMS) add_subdirectory(InstructorsAndTrainees) add_subdirectory(GUIdataBaseLMS) add_subdirectory(ServerLMS) -add_subdirectory(TestServerLMS) +add_subdirectory(TrayServerLMS) add_dependencies(InstructorsAndTrainees DataBaseLMS) add_dependencies(GUIdataBaseLMS InstructorsAndTrainees) add_dependencies(ServerLMS DataBaseLMS) -add_dependencies(TestServerLMS ServerLMS) +add_dependencies(TrayServerLMS ServerLMS) diff --git a/DataBaseLMS/CMakeLists.txt b/DataBaseLMS/CMakeLists.txt index 1497cf9..1c0ff5a 100644 --- a/DataBaseLMS/CMakeLists.txt +++ b/DataBaseLMS/CMakeLists.txt @@ -35,7 +35,7 @@ add_library(DataBaseLMS SHARED contactModel.h hashtools.cpp hashtools.h - resources.qrc + DataBaseLMS.qrc ) target_link_libraries(DataBaseLMS PRIVATE Qt5::Widgets) @@ -50,7 +50,7 @@ if(PROJECT_TYPE_DEBUG) POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS/libDataBaseLMS.dll - ${REPO_PATH}/BUILDS/Debug64/TestServerLMS) + ${REPO_PATH}/BUILDS/Debug64/TrayServerLMS) add_custom_command(TARGET DataBaseLMS POST_BUILD @@ -63,7 +63,7 @@ else() POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Release64/DataBaseLMS/libDataBaseLMS.dll - ${REPO_PATH}/BUILDS/Release64/TestServerLMS) + ${REPO_PATH}/BUILDS/Release64/TrayServerLMS) add_custom_command(TARGET DataBaseLMS POST_BUILD diff --git a/DataBaseLMS/resources.qrc b/DataBaseLMS/DataBaseLMS.qrc similarity index 100% rename from DataBaseLMS/resources.qrc rename to DataBaseLMS/DataBaseLMS.qrc diff --git a/InstructorsAndTrainees/CMakeLists.txt b/InstructorsAndTrainees/CMakeLists.txt index 955cebc..4621017 100644 --- a/InstructorsAndTrainees/CMakeLists.txt +++ b/InstructorsAndTrainees/CMakeLists.txt @@ -123,7 +123,7 @@ add_library(InstructorsAndTrainees SHARED widgets/waitanimationwidget.h widgets/waitanimationwidget.ui - resources.qrc + InstructorsAndTrainees.qrc ) target_link_libraries(InstructorsAndTrainees PRIVATE Qt5::Widgets) diff --git a/InstructorsAndTrainees/resources.qrc b/InstructorsAndTrainees/InstructorsAndTrainees.qrc similarity index 100% rename from InstructorsAndTrainees/resources.qrc rename to InstructorsAndTrainees/InstructorsAndTrainees.qrc diff --git a/ServerLMS/CMakeLists.txt b/ServerLMS/CMakeLists.txt index 9a22b20..e35e17e 100644 --- a/ServerLMS/CMakeLists.txt +++ b/ServerLMS/CMakeLists.txt @@ -46,7 +46,7 @@ add_library(ServerLMS SHARED Data/usertype.h providerdblms.cpp providerdblms.h - resources.qrc + ServerLMS.qrc ) target_link_libraries(ServerLMS PRIVATE Qt5::Widgets) @@ -70,11 +70,11 @@ if(PROJECT_TYPE_DEBUG) POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Debug64/ServerLMS/libServerLMS.dll - ${REPO_PATH}/BUILDS/Debug64/TestServerLMS) + ${REPO_PATH}/BUILDS/Debug64/TrayServerLMS) else() add_custom_command(TARGET ServerLMS POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${REPO_PATH}/BUILDS/Release64/ServerLMS/libServerLMS.dll - ${REPO_PATH}/BUILDS/Release64/TestServerLMS) + ${REPO_PATH}/BUILDS/Release64/TrayServerLMS) endif() diff --git a/ServerLMS/resources.qrc b/ServerLMS/ServerLMS.qrc similarity index 100% rename from ServerLMS/resources.qrc rename to ServerLMS/ServerLMS.qrc diff --git a/ServerLMS/translations/ServerLMS_ru_RU.qm b/ServerLMS/translations/ServerLMS_ru_RU.qm index fe88259ccde2cd21d5197e275672dc7532cee4ef..939a831d043dc6c1e7ab06a05c95f8b63760e669 100644 GIT binary patch delta 137 zcmbQwwwHB+h@S@ogCQRS14A4G%e7tx2F5G~*3}6N3{1QXQ7fhZ`Inf!tDXbOx3Zev zJp|;>VLK%B0Z1!y=^yK}WpQHh<^V~u f0WrICPG)LeN%7=HCdtWRjMbBsn9L^6Vrm5dhUXvm delta 211 zcmdnXI-hNVNLT;^gCQRS14A4G%e7tx21Y{$*3}6N3{2?^Q7fhZX&t8Ts^@_6tt=kr zE(7J0SxxUA0@7R94hek#iof8FNQnc|3_J(lZU&0K$^>d!JTd9bVpiQi~LPe1m~H<^cd8PAy&l diff --git a/ServerLMS/translations/ServerLMS_ru_RU.ts b/ServerLMS/translations/ServerLMS_ru_RU.ts index afb00ac..c87419c 100644 --- a/ServerLMS/translations/ServerLMS_ru_RU.ts +++ b/ServerLMS/translations/ServerLMS_ru_RU.ts @@ -17,42 +17,37 @@ Форма - - List of clients - Список клиентов - - - + Block Authorization Блокировка авторизации - + Logger Логгер - + + Clients + Клиенты + + + Data base: База данных: - + ... - - Server LMS - Сервер СУО - - - + Start Запустить - + Stop Остановить diff --git a/TestServerLMS/CMakeLists.txt b/TestServerLMS/CMakeLists.txt deleted file mode 100644 index 125bdb8..0000000 --- a/TestServerLMS/CMakeLists.txt +++ /dev/null @@ -1,32 +0,0 @@ -project(TestServerLMS LANGUAGES CXX) - -common_info_for_project(TestServerLMS) - -add_executable(TestServerLMS WIN32 -main.cpp -mainwindow.cpp -mainwindow.h -mainwindow.ui -testServerLMS.qrc -) - -target_link_libraries(TestServerLMS PRIVATE Qt5::Widgets) -target_link_libraries(TestServerLMS PRIVATE Qt5::Network) -target_link_libraries(TestServerLMS PRIVATE Qt5::Sql) -target_link_libraries(TestServerLMS PRIVATE Qt5::Xml) - -target_include_directories(TestServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS) -if(PROJECT_TYPE_DEBUG) - target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS) -else() - target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS) -endif() -target_link_libraries(TestServerLMS PRIVATE libDataBaseLMS.dll) - -target_include_directories(TestServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ServerLMS) -if(PROJECT_TYPE_DEBUG) - target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/ServerLMS) -else() - target_link_directories(TestServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/ServerLMS) -endif() -target_link_libraries(TestServerLMS PRIVATE libServerLMS.dll) diff --git a/TestServerLMS/translations/testServerLMS_ru_RU.qm b/TestServerLMS/translations/testServerLMS_ru_RU.qm deleted file mode 100644 index b5f9891d08ee9668e813b34b36ac66960cb2bf78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 704 zcmZ`$Jx?1!5FNuPu@1RFjv|C8))EaUQVtXpL+k?^BnlHZF4AUwxAv`a*|YA>(4>q| z{y;h?_zS7hAo?i$0z^+og+znk?U`5+GFr`kzIku%KpVywNJpQ3!tFo$jJyovZR7ccMM;8hysiL*v1>$g7_@VN@h{j+LX - - - - MainWindow - - - MainWindow - Главное окно - - - - Language - Язык - - - - No Client files found! - Файлы Клиента не найдены! - - - - * check Application for the presence of a folder with a build -* check SharedData for a folder with the base version and the name base - * проверьте Application на наличие папки со сборкой -* проверьте SharedData на наличие папки с базовой версией и именем base - - - diff --git a/TrayServerLMS/CMakeLists.txt b/TrayServerLMS/CMakeLists.txt new file mode 100644 index 0000000..2a7f05f --- /dev/null +++ b/TrayServerLMS/CMakeLists.txt @@ -0,0 +1,32 @@ +project(TrayServerLMS LANGUAGES CXX) + +common_info_for_project(TrayServerLMS) + +add_executable(TrayServerLMS WIN32 +main.cpp +mainwindow.cpp +mainwindow.h +mainwindow.ui +TrayServerLMS.qrc +) + +target_link_libraries(TrayServerLMS PRIVATE Qt5::Widgets) +target_link_libraries(TrayServerLMS PRIVATE Qt5::Network) +target_link_libraries(TrayServerLMS PRIVATE Qt5::Sql) +target_link_libraries(TrayServerLMS PRIVATE Qt5::Xml) + +target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../DataBaseLMS) +if(PROJECT_TYPE_DEBUG) + target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/DataBaseLMS) +else() + target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/DataBaseLMS) +endif() +target_link_libraries(TrayServerLMS PRIVATE libDataBaseLMS.dll) + +target_include_directories(TrayServerLMS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../ServerLMS) +if(PROJECT_TYPE_DEBUG) + target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Debug64/ServerLMS) +else() + target_link_directories(TrayServerLMS PUBLIC ${REPO_PATH}/BUILDS/Release64/ServerLMS) +endif() +target_link_libraries(TrayServerLMS PRIVATE libServerLMS.dll) diff --git a/TestServerLMS/CMakeLists.txt.user.00ce76f b/TrayServerLMS/CMakeLists.txt.user.00ce76f similarity index 100% rename from TestServerLMS/CMakeLists.txt.user.00ce76f rename to TrayServerLMS/CMakeLists.txt.user.00ce76f diff --git a/TestServerLMS/CMakeLists.txt.user.15ef247 b/TrayServerLMS/CMakeLists.txt.user.15ef247 similarity index 100% rename from TestServerLMS/CMakeLists.txt.user.15ef247 rename to TrayServerLMS/CMakeLists.txt.user.15ef247 diff --git a/TestServerLMS/testServerLMS.qrc b/TrayServerLMS/TrayServerLMS.qrc similarity index 100% rename from TestServerLMS/testServerLMS.qrc rename to TrayServerLMS/TrayServerLMS.qrc diff --git a/TestServerLMS/main.cpp b/TrayServerLMS/main.cpp similarity index 100% rename from TestServerLMS/main.cpp rename to TrayServerLMS/main.cpp diff --git a/TestServerLMS/mainwindow.cpp b/TrayServerLMS/mainwindow.cpp similarity index 99% rename from TestServerLMS/mainwindow.cpp rename to TrayServerLMS/mainwindow.cpp index 93acd1e..1d502f1 100644 --- a/TestServerLMS/mainwindow.cpp +++ b/TrayServerLMS/mainwindow.cpp @@ -138,7 +138,7 @@ void MainWindow::on_cmbLanguage_currentIndexChanged(const QString &arg1) else language = QString("ru_RU"); - qtLanguageTranslator.load(QString("translations/testServerLMS_") + language, "."); + qtLanguageTranslator.load(QString("translations/TrayServerLMS_") + language, "."); qApp->installTranslator(&qtLanguageTranslator); emit signal_LanguageChanged(language); diff --git a/TestServerLMS/mainwindow.h b/TrayServerLMS/mainwindow.h similarity index 100% rename from TestServerLMS/mainwindow.h rename to TrayServerLMS/mainwindow.h diff --git a/TestServerLMS/mainwindow.ui b/TrayServerLMS/mainwindow.ui similarity index 100% rename from TestServerLMS/mainwindow.ui rename to TrayServerLMS/mainwindow.ui diff --git a/TestServerLMS/resources/IcoServerRRJ.ico b/TrayServerLMS/resources/IcoServerRRJ.ico similarity index 100% rename from TestServerLMS/resources/IcoServerRRJ.ico rename to TrayServerLMS/resources/IcoServerRRJ.ico diff --git a/TrayServerLMS/translations/TrayServerLMS_ru_RU.qm b/TrayServerLMS/translations/TrayServerLMS_ru_RU.qm new file mode 100644 index 0000000000000000000000000000000000000000..7ccf127be78cf66788616e90da589fcae67d123b GIT binary patch literal 1429 zcmaJ>O>0v@6rHqJ4XIVCMWslcpwJIWo0e8zKN6dyrAqn%rXcQ|=1rTi$$R0w7u$+U z5y6ccce?N|=*EqR8wEl72Xya71VM09^vt|8rfpin%)FVo_ntHN-jk`f_Jz+sUp)U3 zzxe*{t9RcrjIkSxwu!OG%ZUA~o3YkUEnkPuGuD!gF24SawKJA@*n#zFTmSYP>^`6T z@Z$~kzuF&tm+)t&?&a>lZ%8qAEZ&NPKdhf|x=z!Sq7fRyI!_rIW1OW~1-}wgtiS{d zu)55FZITk^D$Woiwl+YHSIi&0a~9E;Zpo?CQzwxpyJ@KsfkK1xt^?07S} zouI4x+~f%%<8+z2>w#i<>7hn^ej(q?`PKnv3+)cUpv5%ntdUXz!6ywzi7JIznCpFXOAaIgO+_F^ot0i54Nv`N!umd=H-)L51ge-d+e zcF?<#&lnr5=c2j{!H5PyDxa5YEd=4XMmvEgwg&mKi$raP&8215=oR+(053q;>&B + + + + MainWindow + + + Server Learning management system (LMS) + Сервер Системы управления обучением (СУО) + + + + Language + Язык + + + + + Server LMS + Сервер СУО + + + + Expand window + Развернуть окно + + + + Minimize window + Свернуть окно + + + + Exit + Выход + + + + No Client files found! + Файлы Клиента не найдены! + + + + * check Application for the presence of a folder with a build +* check SharedData for a folder with the base version and the name base + * проверьте Application на наличие папки со сборкой +* проверьте SharedData на наличие папки с базовой версией и именем base + + + + The application is minimized to the tray. To maximize the application window, click the application icon in the tray. + Приложение свернуто в трей. Чтобы развернуть окно приложения, щелкните по иконке приложения в трее. + + +