2016-02-18 21:11:59 +03:00
|
|
|
#ifndef LRSETTINGDIALOG_H
|
|
|
|
#define LRSETTINGDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2018-04-10 16:28:48 +03:00
|
|
|
#include <QLocale>
|
2016-02-18 21:11:59 +03:00
|
|
|
|
2016-03-04 04:53:34 +03:00
|
|
|
namespace LimeReport{
|
|
|
|
|
2016-02-18 21:11:59 +03:00
|
|
|
namespace Ui {
|
|
|
|
class SettingDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class SettingDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit SettingDialog(QWidget *parent = 0);
|
|
|
|
~SettingDialog();
|
|
|
|
int verticalGridStep();
|
|
|
|
int horizontalGridStep();
|
|
|
|
QFont defaultFont();
|
2017-12-11 16:48:00 +03:00
|
|
|
bool userDarkTheme();
|
2016-06-24 23:10:47 +03:00
|
|
|
bool suppressAbsentFieldsAndVarsWarnings();
|
2018-04-10 16:28:48 +03:00
|
|
|
QLocale::Language designerLanguage();
|
2016-06-24 23:10:47 +03:00
|
|
|
void setSuppressAbsentFieldsAndVarsWarnings(bool value);
|
2016-02-18 21:11:59 +03:00
|
|
|
void setHorizontalGridStep(int value);
|
|
|
|
void setVerticalGridStep(int value);
|
|
|
|
void setDefaultFont(const QFont& value);
|
2017-12-11 16:48:00 +03:00
|
|
|
void setUseDarkTheme(bool value);
|
2018-04-10 16:28:48 +03:00
|
|
|
void setDesignerLanguages(QList<QLocale::Language>* languages, QLocale::Language currentLanguage);
|
2016-02-18 21:11:59 +03:00
|
|
|
private:
|
|
|
|
Ui::SettingDialog *ui;
|
2018-04-10 16:28:48 +03:00
|
|
|
QList<QLocale::Language>* m_designerLanguages;
|
2016-02-18 21:11:59 +03:00
|
|
|
};
|
2016-03-03 03:08:36 +03:00
|
|
|
} // namespace LimeReport
|
2016-02-18 21:11:59 +03:00
|
|
|
|
|
|
|
#endif // LRSETTINGDIALOG_H
|