Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/SettingsDialog/GeneralOptionsPage.h
Show All 17 Lines | |||||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef GENERALOPTIONSPAGE_H | 20 | #ifndef GENERALOPTIONSPAGE_H | ||
21 | #define GENERALOPTIONSPAGE_H | 21 | #define GENERALOPTIONSPAGE_H | ||
22 | 22 | | |||
23 | #include "SettingsPage.h" | 23 | #include "SettingsPage.h" | ||
24 | 24 | | |||
25 | class QCheckBox; | 25 | class QCheckBox; | ||
26 | class QRadioButton; | ||||
26 | 27 | | |||
27 | class GeneralOptionsPage : public SettingsPage | 28 | class GeneralOptionsPage : public SettingsPage | ||
28 | { | 29 | { | ||
29 | Q_OBJECT | 30 | Q_OBJECT | ||
30 | 31 | | |||
31 | public: | 32 | public: | ||
32 | 33 | | |||
33 | explicit GeneralOptionsPage(QWidget *parent = nullptr); | 34 | explicit GeneralOptionsPage(QWidget *parent = nullptr); | ||
34 | 35 | | |||
35 | public Q_SLOTS: | 36 | public Q_SLOTS: | ||
36 | 37 | | |||
37 | void saveChanges() override; | 38 | void saveChanges() override; | ||
38 | void resetChanges() override; | 39 | void resetChanges() override; | ||
39 | 40 | | |||
40 | private Q_SLOTS: | 41 | private Q_SLOTS: | ||
41 | 42 | | |||
42 | void markDirty(); | 43 | void markDirty(); | ||
43 | 44 | | |||
44 | private: | 45 | private: | ||
45 | 46 | | |||
46 | QCheckBox *mRememberRect; | 47 | QRadioButton* mRememberAlways; | ||
48 | QRadioButton* mRememberUntilClosed; | ||||
47 | QCheckBox *mUseLightBackground; | 49 | QCheckBox *mUseLightBackground; | ||
48 | QCheckBox *mShowMagnifier; | 50 | QCheckBox *mShowMagnifier; | ||
49 | }; | 51 | }; | ||
50 | 52 | | |||
51 | #endif // GENERALOPTIONSPAGE_H | 53 | #endif // GENERALOPTIONSPAGE_H |