-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmydialogsettings.h
62 lines (48 loc) · 1.61 KB
/
mydialogsettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef MYDIALOGSETTINGS_H
#define MYDIALOGSETTINGS_H
#include <QDialog>
#include "mygeneralsettings.h"
namespace Ui {
class MyDialogSettings;
}
class MyDialogSettings : public QDialog
{
Q_OBJECT
public:
explicit MyDialogSettings(QWidget *parent, MyGeneralSettings *myGeneralSettings);
~MyDialogSettings();
void loadMenusOptions();
// setters
void setStepsRotationAngle();
void setPageSize();
void setPageOrientation();
void setAspectRationMode();
void setTypeOfRendering();
void setExportResolution();
// getters
int getStepsRotationAngle();
QPagedPaintDevice::PageSize getPageSize();
QPageLayout::Orientation getPageOrientation();
Qt::AspectRatioMode getAspectRationMode();
Qt::TransformationMode getTypeOfRendering();
int getExportResolution();
// show Class
QString toString();
// load configuration settings from MyGeneralSettings object
void loadAllConfigurationSettingsFromMyGeneralSettingsObject();
void loadStepRotationAngleFromMyGeneralSettingsObject();
void loadPPageOrientationFromMyGeneralSettingsObject();
void loadPageSizeFromMyGeneralSettingsObject();
void loadAspectRationModeFromMyGeneralSettingsObject();
void loadTypeOfRenderingFromMyGeneralSettingsObject();
void loadExportResolutionFromMyGeneralSettingsObject();
private slots:
void on_button_accept_clicked();
void on_button_cancel_clicked();
void on_MyDialogSettings_rejected();
void on_button_defaultValues_clicked();
private:
Ui::MyDialogSettings *ui;
MyGeneralSettings *myGeneralSettings;
};
#endif // MYDIALOGSETTINGS_H