Files
RRJServer/ServerLMS/dialogsettingstray.h
2025-10-21 14:40:35 +03:00

61 lines
1.2 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef DIALOGSETTINGSTRAY_H
#define DIALOGSETTINGSTRAY_H
#include <QDialog>
#include <QTranslator>
#include <QEvent>
class ServerDBSettings{
public:
QString Type;
QString Name;
QString UserName;
QString Password;
QString HostName;
QString Port;
QString Language;
};
namespace Ui {
class DialogSettingsTray;
}
class DialogSettingsTray : public QDialog
{
Q_OBJECT
public:
explicit DialogSettingsTray(QWidget *parent = nullptr);
~DialogSettingsTray();
ServerDBSettings getSettings();
bool settingsServerIsChanged(){ return flSettingsServerChanged;}
static bool loadSettings(ServerDBSettings *settings);
signals:
//сигнал об изменении языка интерфейса
void signal_LanguageChanged(QString language);
private slots:
void on_cmbLanguage_currentTextChanged(const QString &arg1);
void on_btnSave_clicked();
void on_cmbLanguage_currentIndexChanged(int index);
void on_DialogSettingsTray_accepted();
private:
bool saveSettings();
private:
Ui::DialogSettingsTray *ui;
ServerDBSettings *settings;
bool flSettingsServerChanged;
};
#endif // DIALOGSETTINGSTRAY_H