#ifndef LRSETTINGDIALOG_H #define LRSETTINGDIALOG_H #include #include #include namespace LimeReport{ namespace Ui { class SettingDialog; } class SettingDialog : public QDialog { Q_OBJECT public: explicit SettingDialog(QWidget *parent = 0); ~SettingDialog(); int verticalGridStep(); int horizontalGridStep(); QFont defaultFont(); QFont scriptFont(); int tabIndention(); bool userDarkTheme(); bool suppressAbsentFieldsAndVarsWarnings(); QLocale::Language designerLanguage(); void setSuppressAbsentFieldsAndVarsWarnings(bool value); void setHorizontalGridStep(int value); void setVerticalGridStep(int value); void setDefaultFont(const QFont& value); void setScriptFont(const QFont& value); void setScritpTabIndention(int size); void setUseDarkTheme(bool value); void setDesignerLanguages(QList languages, QLocale::Language currentLanguage); void setSettings(QSettings* settings); private slots: void on_bbOkCancel_accepted(); private: Ui::SettingDialog *ui; QList m_aviableLanguages; QLocale::Language m_currentLanguage; QSettings* m_settings; }; } // namespace LimeReport #endif // LRSETTINGDIALOG_H