Changeset View
Changeset View
Standalone View
Standalone View
src/part/simpleprintingpagesetup.h
Show All 26 Lines | |||||
27 | 27 | | |||
28 | #ifndef KGVSIMPLEPRINTINGPAGESETUP_H | 28 | #ifndef KGVSIMPLEPRINTINGPAGESETUP_H | ||
29 | #define KGVSIMPLEPRINTINGPAGESETUP_H | 29 | #define KGVSIMPLEPRINTINGPAGESETUP_H | ||
30 | 30 | | |||
31 | #include "simpleprintingengine.h" | 31 | #include "simpleprintingengine.h" | ||
32 | 32 | | |||
33 | #include <QButtonGroup> | 33 | #include <QButtonGroup> | ||
34 | 34 | | |||
35 | namespace Ui { | 35 | namespace Ui | ||
36 | { | ||||
36 | class KGVSimplePrintingPageSetupBase; | 37 | class KGVSimplePrintingPageSetupBase; | ||
37 | } | 38 | } | ||
38 | namespace KGraphViewer | 39 | namespace KGraphViewer | ||
39 | { | 40 | { | ||
40 | | ||||
41 | class DotGraphView; | 41 | class DotGraphView; | ||
42 | class KGVSimplePrintingCommand; | 42 | class KGVSimplePrintingCommand; | ||
43 | class KgvPageLayoutSize; | 43 | class KgvPageLayoutSize; | ||
44 | 44 | | |||
45 | //! @short A window for displaying settings for simple printing. | 45 | //! @short A window for displaying settings for simple printing. | ||
46 | class KGVSimplePrintingPageSetup : public QWidget | 46 | class KGVSimplePrintingPageSetup : public QWidget | ||
47 | { | 47 | { | ||
48 | Q_OBJECT | 48 | Q_OBJECT | ||
49 | 49 | | |||
50 | public: | 50 | public: | ||
51 | KGVSimplePrintingPageSetup(KGVSimplePrintingCommand* command, | 51 | KGVSimplePrintingPageSetup(KGVSimplePrintingCommand *command, DotGraphView *mainWin, QWidget *parent, QMap<QString, QString> *args); | ||
52 | DotGraphView *mainWin, QWidget *parent, QMap<QString,QString>* args ); | | |||
53 | ~KGVSimplePrintingPageSetup(); | 52 | ~KGVSimplePrintingPageSetup(); | ||
54 | 53 | | |||
55 | public Q_SLOTS: | 54 | public Q_SLOTS: | ||
56 | void slotPrint(); | 55 | void slotPrint(); | ||
57 | void slotPrintPreview(); | 56 | void slotPrintPreview(); | ||
58 | 57 | | |||
59 | Q_SIGNALS: | 58 | Q_SIGNALS: | ||
60 | void print(KGVSimplePrintingSettings* settings, const QString& titleText); | 59 | void print(KGVSimplePrintingSettings *settings, const QString &titleText); | ||
61 | void printPreview(KGVSimplePrintingSettings* settings, const QString& titleText, bool reload); | 60 | void printPreview(KGVSimplePrintingSettings *settings, const QString &titleText, bool reload); | ||
62 | void print(); | 61 | void print(); | ||
63 | void printPreview(); | 62 | void printPreview(); | ||
64 | void needsRedraw(); | 63 | void needsRedraw(); | ||
65 | 64 | | |||
66 | protected Q_SLOTS: | 65 | protected Q_SLOTS: | ||
67 | void slotSaveSetup(); | 66 | void slotSaveSetup(); | ||
68 | void slotChangeTitleFont(); | 67 | void slotChangeTitleFont(); | ||
69 | void slotChangePageSizeAndMargins(); | 68 | void slotChangePageSizeAndMargins(); | ||
70 | void slotAddPageNumbersCheckboxToggled(bool set); | 69 | void slotAddPageNumbersCheckboxToggled(bool set); | ||
71 | void slotAddDateTimeCheckboxToggled(bool set); | 70 | void slotAddDateTimeCheckboxToggled(bool set); | ||
72 | void slotAddTableBordersCheckboxToggled(bool set); | 71 | void slotAddTableBordersCheckboxToggled(bool set); | ||
73 | void slotTitleTextChanged(const QString&); | 72 | void slotTitleTextChanged(const QString &); | ||
74 | void slotClose(); | 73 | void slotClose(); | ||
75 | void slotFittingButtonClicked(int id); | 74 | void slotFittingButtonClicked(int id); | ||
76 | void slotHorizFitChanged(int newValue); | 75 | void slotHorizFitChanged(int newValue); | ||
77 | void slotVertFitChanged(int newValue); | 76 | void slotVertFitChanged(int newValue); | ||
78 | void slotMaintainAspectButtonToggled(); | 77 | void slotMaintainAspectButtonToggled(); | ||
79 | 78 | | |||
80 | protected: | 79 | protected: | ||
81 | void setupPrintingCommand(); | 80 | void setupPrintingCommand(); | ||
82 | void updatePageLayoutAndUnitInfo(); | 81 | void updatePageLayoutAndUnitInfo(); | ||
83 | void setDirty(bool set); | 82 | void setDirty(bool set); | ||
84 | 83 | | |||
85 | KGVSimplePrintingSettings* m_settings; | 84 | KGVSimplePrintingSettings *m_settings; | ||
86 | 85 | | |||
87 | // KGVSimplePrintingEngine *m_engine; | 86 | // KGVSimplePrintingEngine *m_engine; | ||
88 | // get engine with m_command->engine() | 87 | // get engine with m_command->engine() | ||
89 | 88 | | |||
90 | KgvUnit::Unit m_unit; | 89 | KgvUnit::Unit m_unit; | ||
91 | Ui::KGVSimplePrintingPageSetupBase *m_contents; | 90 | Ui::KGVSimplePrintingPageSetupBase *m_contents; | ||
92 | KgvPageLayoutSize *m_pageLayoutWidget; | 91 | KgvPageLayoutSize *m_pageLayoutWidget; | ||
93 | DotGraphView *m_graphView; | 92 | DotGraphView *m_graphView; | ||
Show All 9 Lines |