2018-05-15 22:14:17 +03:00
|
|
|
#ifndef DESIGNERSETTINGMANAGER_H
|
|
|
|
#define DESIGNERSETTINGMANAGER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QLocale>
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QSettings>
|
|
|
|
|
|
|
|
class DesignerSettingManager : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit DesignerSettingManager(QObject *parent = 0);
|
|
|
|
~DesignerSettingManager();
|
|
|
|
void setApplicationInstance(QApplication* application);
|
|
|
|
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);
|
2018-05-15 22:14:17 +03:00
|
|
|
private:
|
|
|
|
QSettings* m_setting;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DESIGNERSETTINGMANAGER_H
|