Changeset View
Changeset View
Standalone View
Standalone View
src/part/KgvPageLayoutHeader.h
Show All 22 Lines | 19 | /* This file was part of the KDE project | |||
---|---|---|---|---|---|
23 | modify it under the terms of the GNU Library General Public | 23 | modify it under the terms of the GNU Library General Public | ||
24 | License as published by the Free Software Foundation; either | 24 | License as published by the Free Software Foundation; either | ||
25 | version 2 of the License, or (at your option) any later version. | 25 | version 2 of the License, or (at your option) any later version. | ||
26 | */ | 26 | */ | ||
27 | 27 | | |||
28 | #ifndef kgvpagelayoutheader_h | 28 | #ifndef kgvpagelayoutheader_h | ||
29 | #define kgvpagelayoutheader_h | 29 | #define kgvpagelayoutheader_h | ||
30 | 30 | | |||
31 | #include <KgvUnit.h> | | |||
32 | #include <KgvPageLayout.h> | 31 | #include <KgvPageLayout.h> | ||
32 | #include <KgvUnit.h> | ||||
33 | #include <ui_KgvPageLayoutHeaderBase.h> | 33 | #include <ui_KgvPageLayoutHeaderBase.h> | ||
34 | 34 | | |||
35 | class QWidget; | 35 | class QWidget; | ||
36 | class KgvUnitDoubleSpinBox; | 36 | class KgvUnitDoubleSpinBox; | ||
37 | 37 | | |||
38 | /** | 38 | /** | ||
39 | * This class is a widget that shows the KgvKWHeaderFooter data structure and allows the user to change it. | 39 | * This class is a widget that shows the KgvKWHeaderFooter data structure and allows the user to change it. | ||
40 | */ | 40 | */ | ||
41 | class KgvPageLayoutHeader : public QWidget, public Ui::KgvPageLayoutHeaderBase | 41 | class KgvPageLayoutHeader : public QWidget, public Ui::KgvPageLayoutHeaderBase | ||
42 | { | 42 | { | ||
43 | Q_OBJECT | 43 | Q_OBJECT | ||
44 | 44 | | |||
45 | public: | 45 | public: | ||
46 | /** | 46 | /** | ||
47 | * Constructor | 47 | * Constructor | ||
48 | * @param parent the parent widget | 48 | * @param parent the parent widget | ||
49 | * @param unit the unit-type (mm/cm/inch) that the dialog should show | 49 | * @param unit the unit-type (mm/cm/inch) that the dialog should show | ||
50 | * @param kwhf the data that this widget will be filled with initially | 50 | * @param kwhf the data that this widget will be filled with initially | ||
51 | */ | 51 | */ | ||
52 | KgvPageLayoutHeader(QWidget *parent, KgvUnit::Unit unit, const KgvKWHeaderFooter &kwhf); | 52 | KgvPageLayoutHeader(QWidget *parent, KgvUnit::Unit unit, const KgvKWHeaderFooter &kwhf); | ||
53 | /** | 53 | /** | ||
54 | * @return the altered data as it is currently set by the user. | 54 | * @return the altered data as it is currently set by the user. | ||
55 | */ | 55 | */ | ||
56 | const KgvKWHeaderFooter& headerFooter(); | 56 | const KgvKWHeaderFooter &headerFooter(); | ||
57 | 57 | | |||
58 | private: | 58 | private: | ||
59 | KgvUnitDoubleSpinBox *m_headerSpacing, *m_footerSpacing, *m_footnoteSpacing; | 59 | KgvUnitDoubleSpinBox *m_headerSpacing, *m_footerSpacing, *m_footnoteSpacing; | ||
60 | 60 | | |||
61 | KgvKWHeaderFooter m_headerFooters; | 61 | KgvKWHeaderFooter m_headerFooters; | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | #endif | 64 | #endif | ||
65 | |