LimeReport/limereport/lrsettingdialog.h

50 lines
1.2 KiB
C
Raw Normal View History

#ifndef LRSETTINGDIALOG_H
#define LRSETTINGDIALOG_H
#include <QDialog>
2018-04-10 16:28:48 +03:00
#include <QLocale>
2019-01-29 23:18:24 +03:00
#include <QSettings>
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();
2019-01-29 23:18:24 +03:00
QFont scriptFont();
int tabIndention();
2017-12-11 16:48:00 +03:00
bool userDarkTheme();
bool suppressAbsentFieldsAndVarsWarnings();
2018-04-10 16:28:48 +03:00
QLocale::Language designerLanguage();
void setSuppressAbsentFieldsAndVarsWarnings(bool value);
void setHorizontalGridStep(int value);
void setVerticalGridStep(int value);
void setDefaultFont(const QFont& value);
2019-01-29 23:18:24 +03:00
void setScriptFont(const QFont& value);
void setScritpTabIndention(int size);
2017-12-11 16:48:00 +03:00
void setUseDarkTheme(bool value);
void setDesignerLanguages(QList<QLocale::Language> languages, QLocale::Language currentLanguage);
2019-01-29 23:18:24 +03:00
void setSettings(QSettings* settings);
private slots:
void on_bbOkCancel_accepted();
private:
Ui::SettingDialog *ui;
QList<QLocale::Language> m_aviableLanguages;
QLocale::Language m_currentLanguage;
2019-01-29 23:18:24 +03:00
QSettings* m_settings;
};
} // namespace LimeReport
#endif // LRSETTINGDIALOG_H