Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/SettingsDialog/GeneralOptionsPage.h
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
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 <QWidget> | ||
24 | 24 | | |||
25 | class QButtonGroup; | 25 | class GeneralOptionsPage : public QWidget | ||
26 | class QCheckBox; | | |||
27 | class QRadioButton; | | |||
28 | | ||||
29 | class GeneralOptionsPage : public SettingsPage | | |||
30 | { | 26 | { | ||
31 | Q_OBJECT | 27 | Q_OBJECT | ||
32 | 28 | | |||
33 | public: | 29 | public: | ||
34 | 30 | | |||
35 | explicit GeneralOptionsPage(QWidget *parent = nullptr); | 31 | explicit GeneralOptionsPage(QWidget *parent = nullptr); | ||
36 | | ||||
37 | public Q_SLOTS: | | |||
38 | | ||||
39 | void saveChanges() override; | | |||
40 | void resetChanges() override; | | |||
41 | | ||||
42 | private Q_SLOTS: | | |||
43 | | ||||
44 | void markDirty(); | | |||
45 | | ||||
46 | private: | | |||
47 | | ||||
48 | QButtonGroup *mPrintKeyActionGroup; | | |||
49 | QRadioButton *mRememberAlways; | | |||
50 | QRadioButton *mRememberUntilClosed; | | |||
51 | QCheckBox *mCopyImageToClipboard; | | |||
52 | QCheckBox *mAutoSaveImage; | | |||
53 | QCheckBox *mUseLightBackground; | | |||
54 | QCheckBox *mShowMagnifier; | | |||
55 | QCheckBox *mReleaseToCapture; | | |||
56 | }; | 32 | }; | ||
57 | 33 | | |||
58 | #endif // GENERALOPTIONSPAGE_H | 34 | #endif // GENERALOPTIONSPAGE_H |