Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesigner.h
Show All 35 Lines | |||||
36 | 36 | | |||
37 | class KReportDesignerSectionDetail; | 37 | class KReportDesignerSectionDetail; | ||
38 | class KReportDesignerSection; | 38 | class KReportDesignerSection; | ||
39 | class KReportUnit; | 39 | class KReportUnit; | ||
40 | class KReportDesignerSectionScene; | 40 | class KReportDesignerSectionScene; | ||
41 | class KReportDesignerSectionView; | 41 | class KReportDesignerSectionView; | ||
42 | class QAction; | 42 | class QAction; | ||
43 | 43 | | |||
44 | #ifdef KREPORT_SCRIPTING | ||||
45 | class KReportScriptSource; | ||||
46 | #endif | ||||
47 | | ||||
44 | // | 48 | // | ||
45 | // Class ReportDesigner | 49 | // Class ReportDesigner | ||
46 | // The ReportDesigner is the main widget for designing a report | 50 | // The ReportDesigner is the main widget for designing a report | ||
47 | // | 51 | // | ||
48 | class KREPORT_EXPORT KReportDesigner : public QWidget | 52 | class KREPORT_EXPORT KReportDesigner : public QWidget | ||
49 | { | 53 | { | ||
50 | Q_OBJECT | 54 | Q_OBJECT | ||
51 | public: | 55 | public: | ||
Show All 14 Lines | |||||
66 | @brief Desctructor | 70 | @brief Desctructor | ||
67 | */ | 71 | */ | ||
68 | ~KReportDesigner() override; | 72 | ~KReportDesigner() override; | ||
69 | 73 | | |||
70 | /** | 74 | /** | ||
71 | @brief Sets the report data | 75 | @brief Sets the report data | ||
72 | The report data interface contains functions to retrieve data | 76 | The report data interface contains functions to retrieve data | ||
73 | and information about the fields. | 77 | and information about the fields. | ||
74 | @param kodata Pointer to KReportDataSource instance, ownership is transferred | 78 | @param source Pointer to KReportDataSource instance, ownership is transferred | ||
75 | */ | 79 | */ | ||
76 | void setDataSource(KReportDataSource* source); | 80 | void setDataSource(KReportDataSource* source); | ||
77 | 81 | | |||
82 | #ifdef KREPORT_SCRIPTING | ||||
83 | /** | ||||
84 | @brief Sets the script source for the designer | ||||
85 | The script source contains function to return scripts supplied by the parent application | ||||
86 | @param source Pointer to KReportScriptSource instance, ownership is NOT transferred as it may be an application window | ||||
87 | */ | ||||
88 | void setScriptSource(KReportScriptSource *source); | ||||
89 | #endif | ||||
90 | | ||||
78 | /** | 91 | /** | ||
79 | @brief Return a pointer to the reports data | 92 | @brief Return a pointer to the reports data | ||
80 | @return Pointer to report data | 93 | @return Pointer to report data | ||
81 | */ | 94 | */ | ||
82 | KReportDataSource *reportDataSource() const; | 95 | KReportDataSource *reportDataSource() const; | ||
83 | 96 | | |||
84 | /** | 97 | /** | ||
85 | @brief Return a pointer to the section specified | 98 | @brief Return a pointer to the section specified | ||
▲ Show 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | 299 | public Q_SLOTS: | |||
294 | void slotItem(const QString&); | 307 | void slotItem(const QString&); | ||
295 | 308 | | |||
296 | void slotSectionEditor(); | 309 | void slotSectionEditor(); | ||
297 | 310 | | |||
298 | void slotRaiseSelected(); | 311 | void slotRaiseSelected(); | ||
299 | void slotLowerSelected(); | 312 | void slotLowerSelected(); | ||
300 | 313 | | |||
301 | private: | 314 | private: | ||
302 | void init(); | | |||
303 | | ||||
304 | /** | 315 | /** | ||
305 | @brief Sets the detail section to the given section | 316 | @brief Sets the detail section to the given section | ||
306 | */ | 317 | */ | ||
307 | void setDetail(KReportDesignerSectionDetail *rsd); | 318 | void setDetail(KReportDesignerSectionDetail *rsd); | ||
308 | 319 | | |||
309 | /** | 320 | /** | ||
310 | @brief Deletes the detail section | 321 | @brief Deletes the detail section | ||
311 | */ | 322 | */ | ||
Show All 38 Lines |