Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesigner.h
Show All 16 Lines | |||||
17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
18 | */ | 18 | */ | ||
19 | #ifndef KREPORTDESIGNER_H | 19 | #ifndef KREPORTDESIGNER_H | ||
20 | #define KREPORTDESIGNER_H | 20 | #define KREPORTDESIGNER_H | ||
21 | 21 | | |||
22 | #include <QWidget> | 22 | #include <QWidget> | ||
23 | 23 | | |||
24 | #include "KReportDocument.h" | 24 | #include "KReportDocument.h" | ||
25 | #include "KReportData.h" | 25 | #include "KReportDataSource.h" | ||
26 | 26 | | |||
27 | class KProperty; | 27 | class KProperty; | ||
28 | class KPropertySet; | 28 | class KPropertySet; | ||
29 | 29 | | |||
30 | class KReportItemBase; | 30 | class KReportItemBase; | ||
31 | 31 | | |||
32 | class QGraphicsScene; | 32 | class QGraphicsScene; | ||
33 | class QActionGroup; | 33 | class QActionGroup; | ||
Show All 33 Lines | 52 | public: | |||
67 | @brief Desctructor | 67 | @brief Desctructor | ||
68 | */ | 68 | */ | ||
69 | ~KReportDesigner(); | 69 | ~KReportDesigner(); | ||
70 | 70 | | |||
71 | /** | 71 | /** | ||
72 | @brief Sets the report data | 72 | @brief Sets the report data | ||
73 | The report data interface contains functions to retrieve data | 73 | The report data interface contains functions to retrieve data | ||
74 | and information about the fields. | 74 | and information about the fields. | ||
75 | @param kodata Pointer to KReportData instance, ownership is transferred | 75 | @param kodata Pointer to KReportDataSource instance, ownership is transferred | ||
76 | */ | 76 | */ | ||
77 | void setReportData(KReportData* kodata); | 77 | void setDataSource(KReportDataSource* source); | ||
staniekUnsubmitted Done
staniek: [ ] -> setDataSource
[ ] kodata -> source | |||||
78 | 78 | | |||
79 | /** | 79 | /** | ||
80 | @brief Return a pointer to the reports data | 80 | @brief Return a pointer to the reports data | ||
81 | @return Pointer to report data | 81 | @return Pointer to report data | ||
82 | */ | 82 | */ | ||
83 | KReportData *reportData() const; | 83 | KReportDataSource *reportDataSource() const; | ||
staniek: [ ] -> dataSource
| |||||
84 | 84 | | |||
85 | /** | 85 | /** | ||
86 | @brief Return a pointer to the section specified | 86 | @brief Return a pointer to the section specified | ||
87 | @param section KReportSectionData::Section enum value of the section to return | 87 | @param section KReportSectionData::Section enum value of the section to return | ||
88 | @return Pointer to report section object, or 0 if no section exists | 88 | @return Pointer to report section object, or 0 if no section exists | ||
89 | */ | 89 | */ | ||
90 | KReportDesignerSection* section(KReportSectionData::Section) const; | 90 | KReportDesignerSection* section(KReportSectionData::Section) const; | ||
91 | 91 | | |||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |