0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 09:04:39 +03:00
LimeReport/limereport/lrsettingdialog.h

54 lines
1.5 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();
2019-05-26 15:15:06 +03:00
QString theme();
bool suppressAbsentFieldsAndVarsWarnings();
2018-04-10 16:28:48 +03:00
QLocale::Language designerLanguage();
QString reportUnits();
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);
2019-05-26 15:15:06 +03:00
void setTheme(const QString& theme);
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);
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);
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