diff --git a/InstructorsAndTrainees/settings/dialogsettings.cpp b/InstructorsAndTrainees/settings/dialogsettings.cpp index 28fe4f1..30ca444 100644 --- a/InstructorsAndTrainees/settings/dialogsettings.cpp +++ b/InstructorsAndTrainees/settings/dialogsettings.cpp @@ -78,7 +78,11 @@ DialogSettings::DialogSettings(ConnectorToServer* connectorToServer, bool instru DialogSettings::~DialogSettings() { if(dlgVersionControl) + { dlgVersionControl->close(); + delete dlgVersionControl; + dlgVersionControl = nullptr; + } delete ui; delete settings; @@ -101,6 +105,11 @@ ServerSettings DialogSettings::getSettings() return *settings; } +bool DialogSettings::settingsServerIsChanged() +{ + return flSettingsServerChanged; +} + void DialogSettings::changeEvent(QEvent *event) { // В случае получения события изменения языка приложения diff --git a/InstructorsAndTrainees/settings/dialogsettings.h b/InstructorsAndTrainees/settings/dialogsettings.h index 78669d1..0712cab 100644 --- a/InstructorsAndTrainees/settings/dialogsettings.h +++ b/InstructorsAndTrainees/settings/dialogsettings.h @@ -24,7 +24,7 @@ public: ServerSettings getSettings(); - bool settingsServerIsChanged(){ return flSettingsServerChanged;} + bool settingsServerIsChanged(); static bool loadSettings(ServerSettings *settings); diff --git a/InstructorsAndTrainees/settings/dialogversioncontrol.ui b/InstructorsAndTrainees/settings/dialogversioncontrol.ui index 9426f52..b4a113a 100644 --- a/InstructorsAndTrainees/settings/dialogversioncontrol.ui +++ b/InstructorsAndTrainees/settings/dialogversioncontrol.ui @@ -193,7 +193,7 @@ - Change server version + Change version diff --git a/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.qm b/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.qm index eaf4daf..1490a1c 100644 Binary files a/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.qm and b/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.qm differ diff --git a/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts b/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts index 9288c56..95175e0 100644 --- a/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts +++ b/InstructorsAndTrainees/translations/InstructorsAndTraineesWidget_ru_RU.ts @@ -275,6 +275,11 @@ The status will be set: Log in Войти + + + Only Latin letters and numbers + Только латинские буквы и цифры + DialogCardTrainee @@ -350,14 +355,19 @@ The status will be set: - Logged - Залогирован + Online + В сети Save Сохранить + + + Only Latin letters and numbers + Только латинские буквы и цифры + DialogEditTrainee @@ -394,14 +404,19 @@ The status will be set: - Logged - Залогирован + Online + В сети Save Сохранить + + + Only Latin letters and numbers + Только латинские буквы и цифры + DialogListSubProc @@ -424,6 +439,49 @@ The status will be set: Сохранить + + DialogNewVersion + + + Create copy... + Создать копию... + + + + Basic version: + Базовая версия: + + + + TextLabel + + + + + New name version: + Имя копии: + + + + Create + Создать + + + + Cancel + Отменить + + + + New version + Новая версия + + + + Only Latin letters and numbers + Только латинские буквы и цифры + + DialogRedactorInstructors @@ -506,6 +564,97 @@ The status will be set: Просмотршик списка процедур + + DialogVersionControl + + + Form + Форма + + + + Available versions on the server: + Доступные версии на сервере: + + + + Info: + Информация: + + + + Double click on the version to see information... + Двойной клик на версии для просмотра информации... + + + + Current server version: + Текущая версия: + + + + none + нет + + + + Create copy + Создать копию + + + + Delete + Удалить + + + + Change version + Изменить версию + + + + Version control + Управление версиями + + + + Yes + Да + + + + No + Нет + + + + Version name: + Имя версии: + + + + Created: + Создан: + + + + Changeable: + Изменен: + + + + Author: + Автор: + + + + + + + Version not selected + Версия не выбрана + + EditorInstructors @@ -744,32 +893,32 @@ The changes will not be accepted. Удалить - - + + ID ID - - + + Status Статус - - + + Procedure FIM Процедура FIM - + The deletion will be irrevocable. Delete it anyway? Удаление будет безвозвратным. Всё равно удалить? - + Assign this task? Назначить эту задачу? @@ -844,57 +993,62 @@ Delete it anyway? - + none нет - + The file could not be opened Файл не может быть открыт - + Instructor authorization. Авторизация инструктора. - + Instructor deauthorization Деавторизация инструктора - + Error! Ошибка! - + The server is not available! Сервер недоступен! - + + Connection attempt + Попытка соединения + + + connected подключен - + not connected не подключен - + Server settings have been changed. Please reconnect to the server. Настройки сервера изменены. Выполните переподключение к серверу. - + Instructor authorization Авторизация инструктора - + Invalid login or password! Неправильный логин или пароль! @@ -1005,44 +1159,6 @@ Delete it anyway? --:-- - - NewVersionWidget - - - Create copy... - Создать копию... - - - - Basic version: - Базовая версия: - - - - TextLabel - - - - - New name version: - Имя копии: - - - - Create - Создать - - - - Cancel - Отменить - - - - Only Latin letters and numbers - Только латинские буквы и цифры - - PersonalCardTrainee @@ -1218,28 +1334,28 @@ Delete it anyway? - + completed выполнена - + failed неверно - + checkup на проверке - + new новая @@ -1257,97 +1373,6 @@ Delete it anyway? нет - - VersionSelectWidget - - - Form - Форма - - - - Available versions on the server: - Доступные версии на сервере: - - - - Create copy - Создать копию - - - - Delete - Удалить - - - - Change server version - Изменить версию на сервере - - - - Info: - Информация: - - - - Double click on the version to see information... - Двойной клик на версии для просмотра информации... - - - - Current server version: - Текущая версия: - - - - none - нет - - - - Version control - Управление версиями - - - - Version name: - Имя версии: - - - - Created: - Создан: - - - - Changeable: - Изменен: - - - - Author: - Автор: - - - - Yes - Да - - - - No - Нет - - - - - - - Version not selected - Версия не выбрана - - ViewerInstructors