Changeset View
Changeset View
Standalone View
Standalone View
src/wrtembed/KReportDesigner.h
1 | /* This file is part of the KDE project | 1 | /* This file is part of the KDE project | ||
---|---|---|---|---|---|
2 | * Copyright (C) 2001-2007 by OpenMFG, LLC <info@openmfg.com> | 2 | * Copyright (C) 2001-2007 by OpenMFG, LLC <info@openmfg.com> | ||
3 | * Copyright (C) 2007-2008 by Adam Pigg <adam@piggz.co.uk> | 3 | * Copyright (C) 2007-2008 by Adam Pigg <adam@piggz.co.uk> | ||
4 | * Copyright (C) 2011 Jarosław Staniek <staniek@kde.org> | 4 | * Copyright (C) 2011-2017 Jarosław Staniek <staniek@kde.org> | ||
5 | * | 5 | * | ||
6 | * This library is free software; you can redistribute it and/or | 6 | * This library is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU Lesser General Public | 7 | * modify it under the terms of the GNU Lesser General Public | ||
8 | * License as published by the Free Software Foundation; either | 8 | * License as published by the Free Software Foundation; either | ||
9 | * version 2.1 of the License, or (at your option) any later version. | 9 | * version 2.1 of the License, or (at your option) any later version. | ||
10 | * | 10 | * | ||
11 | * This library is distributed in the hope that it will be useful, | 11 | * This library is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 16 Lines | |||||
29 | 29 | | |||
30 | class KReportItemBase; | 30 | class KReportItemBase; | ||
31 | 31 | | |||
32 | class QGraphicsScene; | 32 | class QGraphicsScene; | ||
33 | class QActionGroup; | 33 | class QActionGroup; | ||
34 | class QGraphicsSceneContextMenuEvent; | 34 | class QGraphicsSceneContextMenuEvent; | ||
35 | class QString; | 35 | class QString; | ||
36 | 36 | | |||
37 | class KReportZoomHandler; | | |||
38 | class KReportDesignerSectionDetail; | 37 | class KReportDesignerSectionDetail; | ||
39 | class KReportDesignerSection; | 38 | class KReportDesignerSection; | ||
40 | class KReportUnit; | 39 | class KReportUnit; | ||
41 | class KReportDesignerSectionScene; | 40 | class KReportDesignerSectionScene; | ||
42 | class KReportDesignerSectionView; | 41 | class KReportDesignerSectionView; | ||
43 | class QAction; | 42 | class QAction; | ||
44 | 43 | | |||
45 | // | 44 | // | ||
Show All 39 Lines | 51 | public: | |||
85 | /** | 84 | /** | ||
86 | @brief Return a pointer to the section specified | 85 | @brief Return a pointer to the section specified | ||
87 | @param section KReportSectionData::Section enum value of the section to return | 86 | @param section KReportSectionData::Section enum value of the section to return | ||
88 | @return Pointer to report section object, or 0 if no section exists | 87 | @return Pointer to report section object, or 0 if no section exists | ||
89 | */ | 88 | */ | ||
90 | KReportDesignerSection* section(KReportSectionData::Section) const; | 89 | KReportDesignerSection* section(KReportSectionData::Section) const; | ||
91 | 90 | | |||
92 | /** | 91 | /** | ||
92 | @brief Creates new section | ||||
93 | @return Pointer to a new report section section object, ownership is transferred to | ||||
94 | the caller | ||||
95 | */ | ||||
96 | KReportDesignerSection* createSection() Q_REQUIRED_RESULT; | ||||
97 | | ||||
98 | /** | ||||
93 | @brief Deletes the section specified | 99 | @brief Deletes the section specified | ||
94 | @param section KReportSectionData::Section enum value of the section to return | 100 | @param section KReportSectionData::Section enum value of the section to return | ||
95 | */ | 101 | */ | ||
96 | void removeSection(KReportSectionData::Section); | 102 | void removeSection(KReportSectionData::Section); | ||
97 | 103 | | |||
98 | /** | 104 | /** | ||
99 | @brief Create a new section and insert it into the report | 105 | @brief Create a new section and insert it into the report | ||
100 | @param section KReportSectionData::Section enum value of the section to return | 106 | @param section KReportSectionData::Section enum value of the section to return | ||
▲ Show 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | |||||
172 | KPropertySet* propertySet() const; | 178 | KPropertySet* propertySet() const; | ||
173 | 179 | | |||
174 | /** | 180 | /** | ||
175 | @brief Give a hint on the size of the widget | 181 | @brief Give a hint on the size of the widget | ||
176 | */ | 182 | */ | ||
177 | virtual QSize sizeHint() const; | 183 | virtual QSize sizeHint() const; | ||
178 | 184 | | |||
179 | /** | 185 | /** | ||
180 | @brief Return a pointer to the zoom handler | | |||
181 | */ | | |||
182 | KReportZoomHandler* zoomHandler() const; | | |||
183 | | ||||
184 | /** | | |||
185 | @brief Return the current unit assigned to the report | 186 | @brief Return the current unit assigned to the report | ||
186 | */ | 187 | */ | ||
187 | KReportUnit pageUnit() const; | 188 | KReportUnit pageUnit() const; | ||
188 | 189 | | |||
189 | /** | 190 | /** | ||
190 | @brief Handle the context menu event for a report section | 191 | @brief Handle the context menu event for a report section | ||
191 | @param scene The associated scene (section) | 192 | @param scene The associated scene (section) | ||
192 | */ | 193 | */ | ||
Show All 10 Lines | |||||
203 | @brief Sets the property set for the currently selected item | 204 | @brief Sets the property set for the currently selected item | ||
204 | @param set Property set of item | 205 | @param set Property set of item | ||
205 | */ | 206 | */ | ||
206 | void changeSet(KPropertySet *); | 207 | void changeSet(KPropertySet *); | ||
207 | 208 | | |||
208 | /** | 209 | /** | ||
209 | @brief Return the property set for the curently selected item | 210 | @brief Return the property set for the curently selected item | ||
210 | */ | 211 | */ | ||
211 | KPropertySet* itemPropertySet() const; | 212 | KPropertySet* selectedItemPropertySet() const; | ||
212 | 213 | | |||
213 | /** | 214 | /** | ||
214 | @brief Sets the modified status, defaulting to true for modified | 215 | @brief Sets the modified status, defaulting to true for modified | ||
215 | @param modified Modified status | 216 | @param modified Modified status | ||
216 | */ | 217 | */ | ||
217 | void setModified(bool = true); | 218 | void setModified(bool modified); | ||
218 | 219 | | |||
219 | /** | 220 | /** | ||
220 | @brief Return a unique name that can be used by the entity | 221 | @brief Return a unique name that can be used by the entity | ||
221 | @param entity Name of entity | 222 | @param entity Name of entity | ||
222 | */ | 223 | */ | ||
223 | QString suggestEntityName(const QString &) const; | 224 | QString suggestEntityName(const QString &) const; | ||
224 | 225 | | |||
225 | /** | 226 | /** | ||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |