Debian Codegraph @

src/Gui/PreferencePages/DlgSettingsPDF.h

raw
1 #ifndef GUI_DIALOG_DLGSETTINGSPDF_H
2 #define GUI_DIALOG_DLGSETTINGSPDF_H
3
4 #include <Gui/PropertyPage.h>
5 #include <QPagedPaintDevice>
6 #include <memory>
7
8 namespace Gui
9 {
10 namespace Dialog
11 {
12 class Ui_DlgSettingsPDF;
13
14 /**
15 * The DlgSettingsPDF class implements a preference page to change settings
16 * for the PDF Import-Export.
17 */
18 class GuiExport DlgSettingsPDF: public PreferencePage
19 {
20 Q_OBJECT
21
22 public:
23 explicit DlgSettingsPDF(QWidget* parent = nullptr);
24 ~DlgSettingsPDF() override;
25
26 void saveSettings() override;
27 void loadSettings() override;
28 static QPagedPaintDevice::PdfVersion evaluatePDFVersion();
29
30 protected:
31 void changeEvent(QEvent* e) override;
32
33 private:
34 void onComboBoxIndexChanged(int index);
35
36 std::unique_ptr<Ui_DlgSettingsPDF> ui;
37
38 // Q_DISABLE_COPY_MOVE(DlgSettingsPDF)
39 };
40
41 } // namespace Dialog
42 } // namespace Gui
43
44 #endif // GUI_DIALOG_DLGSETTINGSPDF_H