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