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>
|
2019-01-29 23:18:24 +03:00
|
|
|
#include <QSettings>
|
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();
|
2019-01-29 23:18:24 +03:00
|
|
|
QFont scriptFont();
|
|
|
|
int tabIndention();
|
2019-05-26 15:15:06 +03:00
|
|
|
QString theme();
|
2016-06-24 23:10:47 +03:00
|
|
|
bool suppressAbsentFieldsAndVarsWarnings();
|
2018-04-10 16:28:48 +03:00
|
|
|
QLocale::Language designerLanguage();
|
2019-06-30 22:00:01 +03:00
|
|
|
QString reportUnits();
|
2024-07-24 22:44:58 +03:00
|
|
|
int baseItemPadding();
|
2016-06-24 23:10:47 +03:00
|
|
|
void setSuppressAbsentFieldsAndVarsWarnings(bool value);
|
2024-07-24 22:44:58 +03:00
|
|
|
void setBaseItemPadding(int value);
|
2016-02-18 21:11:59 +03:00
|
|
|
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);
|
2019-05-26 15:15:06 +03:00
|
|
|
void setTheme(const QString& theme);
|
2018-05-15 22:14:17 +03:00
|
|
|
void setDesignerLanguages(QList<QLocale::Language> languages, QLocale::Language currentLanguage);
|
2019-05-26 15:15:06 +03:00
|
|
|
void setDesignerThemes(QList<QString> themes, const QString& currentTheme);
|
2019-06-30 22:00:01 +03:00
|
|
|
void setDesignerUnites(QList<QString> unitTypes, const QString currentUnitType);
|
2019-01-29 23:18:24 +03:00
|
|
|
void setSettings(QSettings* settings);
|
|
|
|
private slots:
|
|
|
|
void on_bbOkCancel_accepted();
|
2019-05-26 15:15:06 +03:00
|
|
|
private:
|
|
|
|
bool isFileExists(const QString& path);
|
2016-02-18 21:11:59 +03:00
|
|
|
private:
|
|
|
|
Ui::SettingDialog *ui;
|
2018-05-15 22:14:17 +03:00
|
|
|
QList<QLocale::Language> m_aviableLanguages;
|
|
|
|
QLocale::Language m_currentLanguage;
|
2019-01-29 23:18:24 +03:00
|
|
|
QSettings* m_settings;
|
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
|