2018-05-15 22:14:17 +03:00
|
|
|
#ifndef DESIGNERSETTINGMANAGER_H
|
|
|
|
#define DESIGNERSETTINGMANAGER_H
|
|
|
|
|
|
|
|
#include <QApplication>
|
2024-09-04 17:31:16 +03:00
|
|
|
#include <QLocale>
|
|
|
|
#include <QObject>
|
2018-05-15 22:14:17 +03:00
|
|
|
#include <QSettings>
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class DesignerSettingManager: public QObject {
|
2018-05-15 22:14:17 +03:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2024-09-04 17:31:16 +03:00
|
|
|
explicit DesignerSettingManager(QObject* parent = 0);
|
2018-05-15 22:14:17 +03:00
|
|
|
~DesignerSettingManager();
|
|
|
|
public slots:
|
2019-06-11 21:28:58 +03:00
|
|
|
void getAvailableLanguages(QList<QLocale::Language>* languages);
|
2018-05-15 22:14:17 +03:00
|
|
|
QLocale::Language getCurrentDefaultLanguage();
|
2019-06-11 21:28:58 +03:00
|
|
|
void currentDefaultLanguageChanged(QLocale::Language language);
|
2024-09-04 17:31:16 +03:00
|
|
|
|
2018-05-15 22:14:17 +03:00
|
|
|
private:
|
|
|
|
QSettings* m_setting;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DESIGNERSETTINGMANAGER_H
|