Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/SettingsDialog/SaveOptionsPage.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 SAVEOPTIONSPAGE_H | 20 | #ifndef SAVEOPTIONSPAGE_H | ||
21 | #define SAVEOPTIONSPAGE_H | 21 | #define SAVEOPTIONSPAGE_H | ||
22 | 22 | | |||
23 | #include "SettingsPage.h" | 23 | #include <QWidget> | ||
24 | 24 | | |||
25 | class QLineEdit; | | |||
26 | class QComboBox; | 25 | class QComboBox; | ||
27 | class KUrlRequester; | | |||
28 | class QCheckBox; | | |||
29 | class QSlider; | | |||
30 | class QLabel; | 26 | class QLabel; | ||
27 | class QLineEdit; | ||||
31 | 28 | | |||
32 | class SaveOptionsPage : public SettingsPage | 29 | class SaveOptionsPage : public QWidget | ||
33 | { | 30 | { | ||
34 | Q_OBJECT | 31 | Q_OBJECT | ||
35 | 32 | | |||
36 | public: | 33 | public: | ||
37 | 34 | | |||
38 | explicit SaveOptionsPage(QWidget *parent = nullptr); | 35 | explicit SaveOptionsPage(QWidget *parent = nullptr); | ||
39 | 36 | | |||
40 | public Q_SLOTS: | | |||
41 | | ||||
42 | void saveChanges() override; | | |||
43 | void resetChanges() override; | | |||
44 | | ||||
45 | private Q_SLOTS: | | |||
46 | | ||||
47 | void markDirty(); | | |||
48 | | ||||
49 | private: | 37 | private: | ||
50 | 38 | | |||
51 | void updateFilenamePreview(); | | |||
52 | | ||||
53 | QLineEdit *mSaveNameFormat; | 39 | QLineEdit* mSaveNameFormat; | ||
54 | KUrlRequester *mUrlRequester; | | |||
55 | QComboBox *mSaveImageFormat; | | |||
56 | QCheckBox *mCopyPathToClipboard; | | |||
57 | QSlider *mQualitySlider; | | |||
58 | QLabel *mPreviewLabel; | 40 | QLabel* mPreviewLabel; | ||
41 | QComboBox* mSaveImageFormat; | ||||
42 | | ||||
43 | void updateFilenamePreview(); | ||||
59 | }; | 44 | }; | ||
60 | 45 | | |||
61 | #endif // SAVEOPTIONSPAGE_H | 46 | #endif // SAVEOPTIONSPAGE_H |