1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information (qt-info@nokia.com)
|
---|
5 | **
|
---|
6 | ** This file is part of the tools applications of the Qt Toolkit.
|
---|
7 | **
|
---|
8 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
9 | ** Commercial Usage
|
---|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
11 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
12 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
13 | ** a written agreement between you and Nokia.
|
---|
14 | **
|
---|
15 | ** GNU Lesser General Public License Usage
|
---|
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
17 | ** General Public License version 2.1 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
19 | ** packaging of this file. Please review the following information to
|
---|
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
22 | **
|
---|
23 | ** In addition, as a special exception, Nokia gives you certain
|
---|
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
26 | ** package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you are unsure which license is appropriate for your use, please
|
---|
37 | ** contact the sales department at qt-sales@nokia.com.
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | //
|
---|
43 | // W A R N I N G
|
---|
44 | // -------------
|
---|
45 | //
|
---|
46 | // This file is not part of the Qt API. It exists for the convenience
|
---|
47 | // of Qt Designer. This header
|
---|
48 | // file may change from version to version without notice, or even be removed.
|
---|
49 | //
|
---|
50 | // We mean it.
|
---|
51 | //
|
---|
52 |
|
---|
53 | // THIS FILE IS AUTOMATICALLY GENERATED
|
---|
54 |
|
---|
55 | #ifndef UI4_H
|
---|
56 | #define UI4_H
|
---|
57 |
|
---|
58 | #include <QtCore/QList>
|
---|
59 | #include <QtCore/QString>
|
---|
60 | #include <QtCore/QStringList>
|
---|
61 | #include <QtCore/QXmlStreamReader>
|
---|
62 | #include <QtCore/QXmlStreamWriter>
|
---|
63 | #include <QtCore/qglobal.h>
|
---|
64 |
|
---|
65 | #if defined(QT_UIC3)
|
---|
66 | #define QUILOADER_QDOM_READ
|
---|
67 | #endif
|
---|
68 |
|
---|
69 | QT_BEGIN_NAMESPACE
|
---|
70 |
|
---|
71 | #ifdef QUILOADER_QDOM_READ
|
---|
72 | class QDomElement;
|
---|
73 | #endif
|
---|
74 |
|
---|
75 |
|
---|
76 | #define QDESIGNER_UILIB_EXTERN Q_DECL_EXPORT
|
---|
77 | #define QDESIGNER_UILIB_IMPORT Q_DECL_IMPORT
|
---|
78 |
|
---|
79 | #if defined(QT_DESIGNER_STATIC) || defined(QT_UIC) || defined(QT_UIC3)
|
---|
80 | # define QDESIGNER_UILIB_EXPORT
|
---|
81 | #elif defined(QDESIGNER_UILIB_LIBRARY)
|
---|
82 | # define QDESIGNER_UILIB_EXPORT QDESIGNER_UILIB_EXTERN
|
---|
83 | #else
|
---|
84 | # define QDESIGNER_UILIB_EXPORT QDESIGNER_UILIB_IMPORT
|
---|
85 | #endif
|
---|
86 |
|
---|
87 | #ifndef QDESIGNER_UILIB_EXPORT
|
---|
88 | # define QDESIGNER_UILIB_EXPORT
|
---|
89 | #endif
|
---|
90 |
|
---|
91 | #ifdef QFORMINTERNAL_NAMESPACE
|
---|
92 | namespace QFormInternal
|
---|
93 | {
|
---|
94 | #endif
|
---|
95 |
|
---|
96 |
|
---|
97 | /*******************************************************************************
|
---|
98 | ** Forward declarations
|
---|
99 | */
|
---|
100 |
|
---|
101 | class DomUI;
|
---|
102 | class DomIncludes;
|
---|
103 | class DomInclude;
|
---|
104 | class DomResources;
|
---|
105 | class DomResource;
|
---|
106 | class DomActionGroup;
|
---|
107 | class DomAction;
|
---|
108 | class DomActionRef;
|
---|
109 | class DomButtonGroup;
|
---|
110 | class DomButtonGroups;
|
---|
111 | class DomImages;
|
---|
112 | class DomImage;
|
---|
113 | class DomImageData;
|
---|
114 | class DomCustomWidgets;
|
---|
115 | class DomHeader;
|
---|
116 | class DomCustomWidget;
|
---|
117 | class DomProperties;
|
---|
118 | class DomPropertyData;
|
---|
119 | class DomSizePolicyData;
|
---|
120 | class DomLayoutDefault;
|
---|
121 | class DomLayoutFunction;
|
---|
122 | class DomTabStops;
|
---|
123 | class DomLayout;
|
---|
124 | class DomLayoutItem;
|
---|
125 | class DomRow;
|
---|
126 | class DomColumn;
|
---|
127 | class DomItem;
|
---|
128 | class DomWidget;
|
---|
129 | class DomSpacer;
|
---|
130 | class DomColor;
|
---|
131 | class DomGradientStop;
|
---|
132 | class DomGradient;
|
---|
133 | class DomBrush;
|
---|
134 | class DomColorRole;
|
---|
135 | class DomColorGroup;
|
---|
136 | class DomPalette;
|
---|
137 | class DomFont;
|
---|
138 | class DomPoint;
|
---|
139 | class DomRect;
|
---|
140 | class DomLocale;
|
---|
141 | class DomSizePolicy;
|
---|
142 | class DomSize;
|
---|
143 | class DomDate;
|
---|
144 | class DomTime;
|
---|
145 | class DomDateTime;
|
---|
146 | class DomStringList;
|
---|
147 | class DomResourcePixmap;
|
---|
148 | class DomResourceIcon;
|
---|
149 | class DomString;
|
---|
150 | class DomPointF;
|
---|
151 | class DomRectF;
|
---|
152 | class DomSizeF;
|
---|
153 | class DomChar;
|
---|
154 | class DomUrl;
|
---|
155 | class DomProperty;
|
---|
156 | class DomConnections;
|
---|
157 | class DomConnection;
|
---|
158 | class DomConnectionHints;
|
---|
159 | class DomConnectionHint;
|
---|
160 | class DomScript;
|
---|
161 | class DomWidgetData;
|
---|
162 | class DomDesignerData;
|
---|
163 | class DomSlots;
|
---|
164 |
|
---|
165 | /*******************************************************************************
|
---|
166 | ** Declarations
|
---|
167 | */
|
---|
168 |
|
---|
169 | class QDESIGNER_UILIB_EXPORT DomUI {
|
---|
170 | public:
|
---|
171 | DomUI();
|
---|
172 | ~DomUI();
|
---|
173 |
|
---|
174 | void read(QXmlStreamReader &reader);
|
---|
175 | #ifdef QUILOADER_QDOM_READ
|
---|
176 | void read(const QDomElement &node);
|
---|
177 | #endif
|
---|
178 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
179 | inline QString text() const { return m_text; }
|
---|
180 | inline void setText(const QString &s) { m_text = s; }
|
---|
181 |
|
---|
182 | // attribute accessors
|
---|
183 | inline bool hasAttributeVersion() const { return m_has_attr_version; }
|
---|
184 | inline QString attributeVersion() const { return m_attr_version; }
|
---|
185 | inline void setAttributeVersion(const QString& a) { m_attr_version = a; m_has_attr_version = true; }
|
---|
186 | inline void clearAttributeVersion() { m_has_attr_version = false; }
|
---|
187 |
|
---|
188 | inline bool hasAttributeLanguage() const { return m_has_attr_language; }
|
---|
189 | inline QString attributeLanguage() const { return m_attr_language; }
|
---|
190 | inline void setAttributeLanguage(const QString& a) { m_attr_language = a; m_has_attr_language = true; }
|
---|
191 | inline void clearAttributeLanguage() { m_has_attr_language = false; }
|
---|
192 |
|
---|
193 | inline bool hasAttributeDisplayname() const { return m_has_attr_displayname; }
|
---|
194 | inline QString attributeDisplayname() const { return m_attr_displayname; }
|
---|
195 | inline void setAttributeDisplayname(const QString& a) { m_attr_displayname = a; m_has_attr_displayname = true; }
|
---|
196 | inline void clearAttributeDisplayname() { m_has_attr_displayname = false; }
|
---|
197 |
|
---|
198 | inline bool hasAttributeStdsetdef() const { return m_has_attr_stdsetdef; }
|
---|
199 | inline int attributeStdsetdef() const { return m_attr_stdsetdef; }
|
---|
200 | inline void setAttributeStdsetdef(int a) { m_attr_stdsetdef = a; m_has_attr_stdsetdef = true; }
|
---|
201 | inline void clearAttributeStdsetdef() { m_has_attr_stdsetdef = false; }
|
---|
202 |
|
---|
203 | inline bool hasAttributeStdSetDef() const { return m_has_attr_stdSetDef; }
|
---|
204 | inline int attributeStdSetDef() const { return m_attr_stdSetDef; }
|
---|
205 | inline void setAttributeStdSetDef(int a) { m_attr_stdSetDef = a; m_has_attr_stdSetDef = true; }
|
---|
206 | inline void clearAttributeStdSetDef() { m_has_attr_stdSetDef = false; }
|
---|
207 |
|
---|
208 | // child element accessors
|
---|
209 | inline QString elementAuthor() const { return m_author; }
|
---|
210 | void setElementAuthor(const QString& a);
|
---|
211 | inline bool hasElementAuthor() const { return m_children & Author; }
|
---|
212 | void clearElementAuthor();
|
---|
213 |
|
---|
214 | inline QString elementComment() const { return m_comment; }
|
---|
215 | void setElementComment(const QString& a);
|
---|
216 | inline bool hasElementComment() const { return m_children & Comment; }
|
---|
217 | void clearElementComment();
|
---|
218 |
|
---|
219 | inline QString elementExportMacro() const { return m_exportMacro; }
|
---|
220 | void setElementExportMacro(const QString& a);
|
---|
221 | inline bool hasElementExportMacro() const { return m_children & ExportMacro; }
|
---|
222 | void clearElementExportMacro();
|
---|
223 |
|
---|
224 | inline QString elementClass() const { return m_class; }
|
---|
225 | void setElementClass(const QString& a);
|
---|
226 | inline bool hasElementClass() const { return m_children & Class; }
|
---|
227 | void clearElementClass();
|
---|
228 |
|
---|
229 | inline DomWidget* elementWidget() const { return m_widget; }
|
---|
230 | DomWidget* takeElementWidget();
|
---|
231 | void setElementWidget(DomWidget* a);
|
---|
232 | inline bool hasElementWidget() const { return m_children & Widget; }
|
---|
233 | void clearElementWidget();
|
---|
234 |
|
---|
235 | inline DomLayoutDefault* elementLayoutDefault() const { return m_layoutDefault; }
|
---|
236 | DomLayoutDefault* takeElementLayoutDefault();
|
---|
237 | void setElementLayoutDefault(DomLayoutDefault* a);
|
---|
238 | inline bool hasElementLayoutDefault() const { return m_children & LayoutDefault; }
|
---|
239 | void clearElementLayoutDefault();
|
---|
240 |
|
---|
241 | inline DomLayoutFunction* elementLayoutFunction() const { return m_layoutFunction; }
|
---|
242 | DomLayoutFunction* takeElementLayoutFunction();
|
---|
243 | void setElementLayoutFunction(DomLayoutFunction* a);
|
---|
244 | inline bool hasElementLayoutFunction() const { return m_children & LayoutFunction; }
|
---|
245 | void clearElementLayoutFunction();
|
---|
246 |
|
---|
247 | inline QString elementPixmapFunction() const { return m_pixmapFunction; }
|
---|
248 | void setElementPixmapFunction(const QString& a);
|
---|
249 | inline bool hasElementPixmapFunction() const { return m_children & PixmapFunction; }
|
---|
250 | void clearElementPixmapFunction();
|
---|
251 |
|
---|
252 | inline DomCustomWidgets* elementCustomWidgets() const { return m_customWidgets; }
|
---|
253 | DomCustomWidgets* takeElementCustomWidgets();
|
---|
254 | void setElementCustomWidgets(DomCustomWidgets* a);
|
---|
255 | inline bool hasElementCustomWidgets() const { return m_children & CustomWidgets; }
|
---|
256 | void clearElementCustomWidgets();
|
---|
257 |
|
---|
258 | inline DomTabStops* elementTabStops() const { return m_tabStops; }
|
---|
259 | DomTabStops* takeElementTabStops();
|
---|
260 | void setElementTabStops(DomTabStops* a);
|
---|
261 | inline bool hasElementTabStops() const { return m_children & TabStops; }
|
---|
262 | void clearElementTabStops();
|
---|
263 |
|
---|
264 | inline DomImages* elementImages() const { return m_images; }
|
---|
265 | DomImages* takeElementImages();
|
---|
266 | void setElementImages(DomImages* a);
|
---|
267 | inline bool hasElementImages() const { return m_children & Images; }
|
---|
268 | void clearElementImages();
|
---|
269 |
|
---|
270 | inline DomIncludes* elementIncludes() const { return m_includes; }
|
---|
271 | DomIncludes* takeElementIncludes();
|
---|
272 | void setElementIncludes(DomIncludes* a);
|
---|
273 | inline bool hasElementIncludes() const { return m_children & Includes; }
|
---|
274 | void clearElementIncludes();
|
---|
275 |
|
---|
276 | inline DomResources* elementResources() const { return m_resources; }
|
---|
277 | DomResources* takeElementResources();
|
---|
278 | void setElementResources(DomResources* a);
|
---|
279 | inline bool hasElementResources() const { return m_children & Resources; }
|
---|
280 | void clearElementResources();
|
---|
281 |
|
---|
282 | inline DomConnections* elementConnections() const { return m_connections; }
|
---|
283 | DomConnections* takeElementConnections();
|
---|
284 | void setElementConnections(DomConnections* a);
|
---|
285 | inline bool hasElementConnections() const { return m_children & Connections; }
|
---|
286 | void clearElementConnections();
|
---|
287 |
|
---|
288 | inline DomDesignerData* elementDesignerdata() const { return m_designerdata; }
|
---|
289 | DomDesignerData* takeElementDesignerdata();
|
---|
290 | void setElementDesignerdata(DomDesignerData* a);
|
---|
291 | inline bool hasElementDesignerdata() const { return m_children & Designerdata; }
|
---|
292 | void clearElementDesignerdata();
|
---|
293 |
|
---|
294 | inline DomSlots* elementSlots() const { return m_slots; }
|
---|
295 | DomSlots* takeElementSlots();
|
---|
296 | void setElementSlots(DomSlots* a);
|
---|
297 | inline bool hasElementSlots() const { return m_children & Slots; }
|
---|
298 | void clearElementSlots();
|
---|
299 |
|
---|
300 | inline DomButtonGroups* elementButtonGroups() const { return m_buttonGroups; }
|
---|
301 | DomButtonGroups* takeElementButtonGroups();
|
---|
302 | void setElementButtonGroups(DomButtonGroups* a);
|
---|
303 | inline bool hasElementButtonGroups() const { return m_children & ButtonGroups; }
|
---|
304 | void clearElementButtonGroups();
|
---|
305 |
|
---|
306 | private:
|
---|
307 | QString m_text;
|
---|
308 | void clear(bool clear_all = true);
|
---|
309 |
|
---|
310 | // attribute data
|
---|
311 | QString m_attr_version;
|
---|
312 | bool m_has_attr_version;
|
---|
313 |
|
---|
314 | QString m_attr_language;
|
---|
315 | bool m_has_attr_language;
|
---|
316 |
|
---|
317 | QString m_attr_displayname;
|
---|
318 | bool m_has_attr_displayname;
|
---|
319 |
|
---|
320 | int m_attr_stdsetdef;
|
---|
321 | bool m_has_attr_stdsetdef;
|
---|
322 |
|
---|
323 | int m_attr_stdSetDef;
|
---|
324 | bool m_has_attr_stdSetDef;
|
---|
325 |
|
---|
326 | // child element data
|
---|
327 | uint m_children;
|
---|
328 | QString m_author;
|
---|
329 | QString m_comment;
|
---|
330 | QString m_exportMacro;
|
---|
331 | QString m_class;
|
---|
332 | DomWidget* m_widget;
|
---|
333 | DomLayoutDefault* m_layoutDefault;
|
---|
334 | DomLayoutFunction* m_layoutFunction;
|
---|
335 | QString m_pixmapFunction;
|
---|
336 | DomCustomWidgets* m_customWidgets;
|
---|
337 | DomTabStops* m_tabStops;
|
---|
338 | DomImages* m_images;
|
---|
339 | DomIncludes* m_includes;
|
---|
340 | DomResources* m_resources;
|
---|
341 | DomConnections* m_connections;
|
---|
342 | DomDesignerData* m_designerdata;
|
---|
343 | DomSlots* m_slots;
|
---|
344 | DomButtonGroups* m_buttonGroups;
|
---|
345 | enum Child {
|
---|
346 | Author = 1,
|
---|
347 | Comment = 2,
|
---|
348 | ExportMacro = 4,
|
---|
349 | Class = 8,
|
---|
350 | Widget = 16,
|
---|
351 | LayoutDefault = 32,
|
---|
352 | LayoutFunction = 64,
|
---|
353 | PixmapFunction = 128,
|
---|
354 | CustomWidgets = 256,
|
---|
355 | TabStops = 512,
|
---|
356 | Images = 1024,
|
---|
357 | Includes = 2048,
|
---|
358 | Resources = 4096,
|
---|
359 | Connections = 8192,
|
---|
360 | Designerdata = 16384,
|
---|
361 | Slots = 32768,
|
---|
362 | ButtonGroups = 65536
|
---|
363 | };
|
---|
364 |
|
---|
365 | DomUI(const DomUI &other);
|
---|
366 | void operator = (const DomUI&other);
|
---|
367 | };
|
---|
368 |
|
---|
369 | class QDESIGNER_UILIB_EXPORT DomIncludes {
|
---|
370 | public:
|
---|
371 | DomIncludes();
|
---|
372 | ~DomIncludes();
|
---|
373 |
|
---|
374 | void read(QXmlStreamReader &reader);
|
---|
375 | #ifdef QUILOADER_QDOM_READ
|
---|
376 | void read(const QDomElement &node);
|
---|
377 | #endif
|
---|
378 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
379 | inline QString text() const { return m_text; }
|
---|
380 | inline void setText(const QString &s) { m_text = s; }
|
---|
381 |
|
---|
382 | // attribute accessors
|
---|
383 | // child element accessors
|
---|
384 | inline QList<DomInclude*> elementInclude() const { return m_include; }
|
---|
385 | void setElementInclude(const QList<DomInclude*>& a);
|
---|
386 |
|
---|
387 | private:
|
---|
388 | QString m_text;
|
---|
389 | void clear(bool clear_all = true);
|
---|
390 |
|
---|
391 | // attribute data
|
---|
392 | // child element data
|
---|
393 | uint m_children;
|
---|
394 | QList<DomInclude*> m_include;
|
---|
395 | enum Child {
|
---|
396 | Include = 1
|
---|
397 | };
|
---|
398 |
|
---|
399 | DomIncludes(const DomIncludes &other);
|
---|
400 | void operator = (const DomIncludes&other);
|
---|
401 | };
|
---|
402 |
|
---|
403 | class QDESIGNER_UILIB_EXPORT DomInclude {
|
---|
404 | public:
|
---|
405 | DomInclude();
|
---|
406 | ~DomInclude();
|
---|
407 |
|
---|
408 | void read(QXmlStreamReader &reader);
|
---|
409 | #ifdef QUILOADER_QDOM_READ
|
---|
410 | void read(const QDomElement &node);
|
---|
411 | #endif
|
---|
412 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
413 | inline QString text() const { return m_text; }
|
---|
414 | inline void setText(const QString &s) { m_text = s; }
|
---|
415 |
|
---|
416 | // attribute accessors
|
---|
417 | inline bool hasAttributeLocation() const { return m_has_attr_location; }
|
---|
418 | inline QString attributeLocation() const { return m_attr_location; }
|
---|
419 | inline void setAttributeLocation(const QString& a) { m_attr_location = a; m_has_attr_location = true; }
|
---|
420 | inline void clearAttributeLocation() { m_has_attr_location = false; }
|
---|
421 |
|
---|
422 | inline bool hasAttributeImpldecl() const { return m_has_attr_impldecl; }
|
---|
423 | inline QString attributeImpldecl() const { return m_attr_impldecl; }
|
---|
424 | inline void setAttributeImpldecl(const QString& a) { m_attr_impldecl = a; m_has_attr_impldecl = true; }
|
---|
425 | inline void clearAttributeImpldecl() { m_has_attr_impldecl = false; }
|
---|
426 |
|
---|
427 | // child element accessors
|
---|
428 | private:
|
---|
429 | QString m_text;
|
---|
430 | void clear(bool clear_all = true);
|
---|
431 |
|
---|
432 | // attribute data
|
---|
433 | QString m_attr_location;
|
---|
434 | bool m_has_attr_location;
|
---|
435 |
|
---|
436 | QString m_attr_impldecl;
|
---|
437 | bool m_has_attr_impldecl;
|
---|
438 |
|
---|
439 | // child element data
|
---|
440 | uint m_children;
|
---|
441 |
|
---|
442 | DomInclude(const DomInclude &other);
|
---|
443 | void operator = (const DomInclude&other);
|
---|
444 | };
|
---|
445 |
|
---|
446 | class QDESIGNER_UILIB_EXPORT DomResources {
|
---|
447 | public:
|
---|
448 | DomResources();
|
---|
449 | ~DomResources();
|
---|
450 |
|
---|
451 | void read(QXmlStreamReader &reader);
|
---|
452 | #ifdef QUILOADER_QDOM_READ
|
---|
453 | void read(const QDomElement &node);
|
---|
454 | #endif
|
---|
455 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
456 | inline QString text() const { return m_text; }
|
---|
457 | inline void setText(const QString &s) { m_text = s; }
|
---|
458 |
|
---|
459 | // attribute accessors
|
---|
460 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
461 | inline QString attributeName() const { return m_attr_name; }
|
---|
462 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
463 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
464 |
|
---|
465 | // child element accessors
|
---|
466 | inline QList<DomResource*> elementInclude() const { return m_include; }
|
---|
467 | void setElementInclude(const QList<DomResource*>& a);
|
---|
468 |
|
---|
469 | private:
|
---|
470 | QString m_text;
|
---|
471 | void clear(bool clear_all = true);
|
---|
472 |
|
---|
473 | // attribute data
|
---|
474 | QString m_attr_name;
|
---|
475 | bool m_has_attr_name;
|
---|
476 |
|
---|
477 | // child element data
|
---|
478 | uint m_children;
|
---|
479 | QList<DomResource*> m_include;
|
---|
480 | enum Child {
|
---|
481 | Include = 1
|
---|
482 | };
|
---|
483 |
|
---|
484 | DomResources(const DomResources &other);
|
---|
485 | void operator = (const DomResources&other);
|
---|
486 | };
|
---|
487 |
|
---|
488 | class QDESIGNER_UILIB_EXPORT DomResource {
|
---|
489 | public:
|
---|
490 | DomResource();
|
---|
491 | ~DomResource();
|
---|
492 |
|
---|
493 | void read(QXmlStreamReader &reader);
|
---|
494 | #ifdef QUILOADER_QDOM_READ
|
---|
495 | void read(const QDomElement &node);
|
---|
496 | #endif
|
---|
497 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
498 | inline QString text() const { return m_text; }
|
---|
499 | inline void setText(const QString &s) { m_text = s; }
|
---|
500 |
|
---|
501 | // attribute accessors
|
---|
502 | inline bool hasAttributeLocation() const { return m_has_attr_location; }
|
---|
503 | inline QString attributeLocation() const { return m_attr_location; }
|
---|
504 | inline void setAttributeLocation(const QString& a) { m_attr_location = a; m_has_attr_location = true; }
|
---|
505 | inline void clearAttributeLocation() { m_has_attr_location = false; }
|
---|
506 |
|
---|
507 | // child element accessors
|
---|
508 | private:
|
---|
509 | QString m_text;
|
---|
510 | void clear(bool clear_all = true);
|
---|
511 |
|
---|
512 | // attribute data
|
---|
513 | QString m_attr_location;
|
---|
514 | bool m_has_attr_location;
|
---|
515 |
|
---|
516 | // child element data
|
---|
517 | uint m_children;
|
---|
518 |
|
---|
519 | DomResource(const DomResource &other);
|
---|
520 | void operator = (const DomResource&other);
|
---|
521 | };
|
---|
522 |
|
---|
523 | class QDESIGNER_UILIB_EXPORT DomActionGroup {
|
---|
524 | public:
|
---|
525 | DomActionGroup();
|
---|
526 | ~DomActionGroup();
|
---|
527 |
|
---|
528 | void read(QXmlStreamReader &reader);
|
---|
529 | #ifdef QUILOADER_QDOM_READ
|
---|
530 | void read(const QDomElement &node);
|
---|
531 | #endif
|
---|
532 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
533 | inline QString text() const { return m_text; }
|
---|
534 | inline void setText(const QString &s) { m_text = s; }
|
---|
535 |
|
---|
536 | // attribute accessors
|
---|
537 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
538 | inline QString attributeName() const { return m_attr_name; }
|
---|
539 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
540 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
541 |
|
---|
542 | // child element accessors
|
---|
543 | inline QList<DomAction*> elementAction() const { return m_action; }
|
---|
544 | void setElementAction(const QList<DomAction*>& a);
|
---|
545 |
|
---|
546 | inline QList<DomActionGroup*> elementActionGroup() const { return m_actionGroup; }
|
---|
547 | void setElementActionGroup(const QList<DomActionGroup*>& a);
|
---|
548 |
|
---|
549 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
550 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
551 |
|
---|
552 | inline QList<DomProperty*> elementAttribute() const { return m_attribute; }
|
---|
553 | void setElementAttribute(const QList<DomProperty*>& a);
|
---|
554 |
|
---|
555 | private:
|
---|
556 | QString m_text;
|
---|
557 | void clear(bool clear_all = true);
|
---|
558 |
|
---|
559 | // attribute data
|
---|
560 | QString m_attr_name;
|
---|
561 | bool m_has_attr_name;
|
---|
562 |
|
---|
563 | // child element data
|
---|
564 | uint m_children;
|
---|
565 | QList<DomAction*> m_action;
|
---|
566 | QList<DomActionGroup*> m_actionGroup;
|
---|
567 | QList<DomProperty*> m_property;
|
---|
568 | QList<DomProperty*> m_attribute;
|
---|
569 | enum Child {
|
---|
570 | Action = 1,
|
---|
571 | ActionGroup = 2,
|
---|
572 | Property = 4,
|
---|
573 | Attribute = 8
|
---|
574 | };
|
---|
575 |
|
---|
576 | DomActionGroup(const DomActionGroup &other);
|
---|
577 | void operator = (const DomActionGroup&other);
|
---|
578 | };
|
---|
579 |
|
---|
580 | class QDESIGNER_UILIB_EXPORT DomAction {
|
---|
581 | public:
|
---|
582 | DomAction();
|
---|
583 | ~DomAction();
|
---|
584 |
|
---|
585 | void read(QXmlStreamReader &reader);
|
---|
586 | #ifdef QUILOADER_QDOM_READ
|
---|
587 | void read(const QDomElement &node);
|
---|
588 | #endif
|
---|
589 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
590 | inline QString text() const { return m_text; }
|
---|
591 | inline void setText(const QString &s) { m_text = s; }
|
---|
592 |
|
---|
593 | // attribute accessors
|
---|
594 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
595 | inline QString attributeName() const { return m_attr_name; }
|
---|
596 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
597 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
598 |
|
---|
599 | inline bool hasAttributeMenu() const { return m_has_attr_menu; }
|
---|
600 | inline QString attributeMenu() const { return m_attr_menu; }
|
---|
601 | inline void setAttributeMenu(const QString& a) { m_attr_menu = a; m_has_attr_menu = true; }
|
---|
602 | inline void clearAttributeMenu() { m_has_attr_menu = false; }
|
---|
603 |
|
---|
604 | // child element accessors
|
---|
605 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
606 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
607 |
|
---|
608 | inline QList<DomProperty*> elementAttribute() const { return m_attribute; }
|
---|
609 | void setElementAttribute(const QList<DomProperty*>& a);
|
---|
610 |
|
---|
611 | private:
|
---|
612 | QString m_text;
|
---|
613 | void clear(bool clear_all = true);
|
---|
614 |
|
---|
615 | // attribute data
|
---|
616 | QString m_attr_name;
|
---|
617 | bool m_has_attr_name;
|
---|
618 |
|
---|
619 | QString m_attr_menu;
|
---|
620 | bool m_has_attr_menu;
|
---|
621 |
|
---|
622 | // child element data
|
---|
623 | uint m_children;
|
---|
624 | QList<DomProperty*> m_property;
|
---|
625 | QList<DomProperty*> m_attribute;
|
---|
626 | enum Child {
|
---|
627 | Property = 1,
|
---|
628 | Attribute = 2
|
---|
629 | };
|
---|
630 |
|
---|
631 | DomAction(const DomAction &other);
|
---|
632 | void operator = (const DomAction&other);
|
---|
633 | };
|
---|
634 |
|
---|
635 | class QDESIGNER_UILIB_EXPORT DomActionRef {
|
---|
636 | public:
|
---|
637 | DomActionRef();
|
---|
638 | ~DomActionRef();
|
---|
639 |
|
---|
640 | void read(QXmlStreamReader &reader);
|
---|
641 | #ifdef QUILOADER_QDOM_READ
|
---|
642 | void read(const QDomElement &node);
|
---|
643 | #endif
|
---|
644 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
645 | inline QString text() const { return m_text; }
|
---|
646 | inline void setText(const QString &s) { m_text = s; }
|
---|
647 |
|
---|
648 | // attribute accessors
|
---|
649 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
650 | inline QString attributeName() const { return m_attr_name; }
|
---|
651 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
652 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
653 |
|
---|
654 | // child element accessors
|
---|
655 | private:
|
---|
656 | QString m_text;
|
---|
657 | void clear(bool clear_all = true);
|
---|
658 |
|
---|
659 | // attribute data
|
---|
660 | QString m_attr_name;
|
---|
661 | bool m_has_attr_name;
|
---|
662 |
|
---|
663 | // child element data
|
---|
664 | uint m_children;
|
---|
665 |
|
---|
666 | DomActionRef(const DomActionRef &other);
|
---|
667 | void operator = (const DomActionRef&other);
|
---|
668 | };
|
---|
669 |
|
---|
670 | class QDESIGNER_UILIB_EXPORT DomButtonGroup {
|
---|
671 | public:
|
---|
672 | DomButtonGroup();
|
---|
673 | ~DomButtonGroup();
|
---|
674 |
|
---|
675 | void read(QXmlStreamReader &reader);
|
---|
676 | #ifdef QUILOADER_QDOM_READ
|
---|
677 | void read(const QDomElement &node);
|
---|
678 | #endif
|
---|
679 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
680 | inline QString text() const { return m_text; }
|
---|
681 | inline void setText(const QString &s) { m_text = s; }
|
---|
682 |
|
---|
683 | // attribute accessors
|
---|
684 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
685 | inline QString attributeName() const { return m_attr_name; }
|
---|
686 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
687 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
688 |
|
---|
689 | // child element accessors
|
---|
690 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
691 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
692 |
|
---|
693 | inline QList<DomProperty*> elementAttribute() const { return m_attribute; }
|
---|
694 | void setElementAttribute(const QList<DomProperty*>& a);
|
---|
695 |
|
---|
696 | private:
|
---|
697 | QString m_text;
|
---|
698 | void clear(bool clear_all = true);
|
---|
699 |
|
---|
700 | // attribute data
|
---|
701 | QString m_attr_name;
|
---|
702 | bool m_has_attr_name;
|
---|
703 |
|
---|
704 | // child element data
|
---|
705 | uint m_children;
|
---|
706 | QList<DomProperty*> m_property;
|
---|
707 | QList<DomProperty*> m_attribute;
|
---|
708 | enum Child {
|
---|
709 | Property = 1,
|
---|
710 | Attribute = 2
|
---|
711 | };
|
---|
712 |
|
---|
713 | DomButtonGroup(const DomButtonGroup &other);
|
---|
714 | void operator = (const DomButtonGroup&other);
|
---|
715 | };
|
---|
716 |
|
---|
717 | class QDESIGNER_UILIB_EXPORT DomButtonGroups {
|
---|
718 | public:
|
---|
719 | DomButtonGroups();
|
---|
720 | ~DomButtonGroups();
|
---|
721 |
|
---|
722 | void read(QXmlStreamReader &reader);
|
---|
723 | #ifdef QUILOADER_QDOM_READ
|
---|
724 | void read(const QDomElement &node);
|
---|
725 | #endif
|
---|
726 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
727 | inline QString text() const { return m_text; }
|
---|
728 | inline void setText(const QString &s) { m_text = s; }
|
---|
729 |
|
---|
730 | // attribute accessors
|
---|
731 | // child element accessors
|
---|
732 | inline QList<DomButtonGroup*> elementButtonGroup() const { return m_buttonGroup; }
|
---|
733 | void setElementButtonGroup(const QList<DomButtonGroup*>& a);
|
---|
734 |
|
---|
735 | private:
|
---|
736 | QString m_text;
|
---|
737 | void clear(bool clear_all = true);
|
---|
738 |
|
---|
739 | // attribute data
|
---|
740 | // child element data
|
---|
741 | uint m_children;
|
---|
742 | QList<DomButtonGroup*> m_buttonGroup;
|
---|
743 | enum Child {
|
---|
744 | ButtonGroup = 1
|
---|
745 | };
|
---|
746 |
|
---|
747 | DomButtonGroups(const DomButtonGroups &other);
|
---|
748 | void operator = (const DomButtonGroups&other);
|
---|
749 | };
|
---|
750 |
|
---|
751 | class QDESIGNER_UILIB_EXPORT DomImages {
|
---|
752 | public:
|
---|
753 | DomImages();
|
---|
754 | ~DomImages();
|
---|
755 |
|
---|
756 | void read(QXmlStreamReader &reader);
|
---|
757 | #ifdef QUILOADER_QDOM_READ
|
---|
758 | void read(const QDomElement &node);
|
---|
759 | #endif
|
---|
760 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
761 | inline QString text() const { return m_text; }
|
---|
762 | inline void setText(const QString &s) { m_text = s; }
|
---|
763 |
|
---|
764 | // attribute accessors
|
---|
765 | // child element accessors
|
---|
766 | inline QList<DomImage*> elementImage() const { return m_image; }
|
---|
767 | void setElementImage(const QList<DomImage*>& a);
|
---|
768 |
|
---|
769 | private:
|
---|
770 | QString m_text;
|
---|
771 | void clear(bool clear_all = true);
|
---|
772 |
|
---|
773 | // attribute data
|
---|
774 | // child element data
|
---|
775 | uint m_children;
|
---|
776 | QList<DomImage*> m_image;
|
---|
777 | enum Child {
|
---|
778 | Image = 1
|
---|
779 | };
|
---|
780 |
|
---|
781 | DomImages(const DomImages &other);
|
---|
782 | void operator = (const DomImages&other);
|
---|
783 | };
|
---|
784 |
|
---|
785 | class QDESIGNER_UILIB_EXPORT DomImage {
|
---|
786 | public:
|
---|
787 | DomImage();
|
---|
788 | ~DomImage();
|
---|
789 |
|
---|
790 | void read(QXmlStreamReader &reader);
|
---|
791 | #ifdef QUILOADER_QDOM_READ
|
---|
792 | void read(const QDomElement &node);
|
---|
793 | #endif
|
---|
794 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
795 | inline QString text() const { return m_text; }
|
---|
796 | inline void setText(const QString &s) { m_text = s; }
|
---|
797 |
|
---|
798 | // attribute accessors
|
---|
799 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
800 | inline QString attributeName() const { return m_attr_name; }
|
---|
801 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
802 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
803 |
|
---|
804 | // child element accessors
|
---|
805 | inline DomImageData* elementData() const { return m_data; }
|
---|
806 | DomImageData* takeElementData();
|
---|
807 | void setElementData(DomImageData* a);
|
---|
808 | inline bool hasElementData() const { return m_children & Data; }
|
---|
809 | void clearElementData();
|
---|
810 |
|
---|
811 | private:
|
---|
812 | QString m_text;
|
---|
813 | void clear(bool clear_all = true);
|
---|
814 |
|
---|
815 | // attribute data
|
---|
816 | QString m_attr_name;
|
---|
817 | bool m_has_attr_name;
|
---|
818 |
|
---|
819 | // child element data
|
---|
820 | uint m_children;
|
---|
821 | DomImageData* m_data;
|
---|
822 | enum Child {
|
---|
823 | Data = 1
|
---|
824 | };
|
---|
825 |
|
---|
826 | DomImage(const DomImage &other);
|
---|
827 | void operator = (const DomImage&other);
|
---|
828 | };
|
---|
829 |
|
---|
830 | class QDESIGNER_UILIB_EXPORT DomImageData {
|
---|
831 | public:
|
---|
832 | DomImageData();
|
---|
833 | ~DomImageData();
|
---|
834 |
|
---|
835 | void read(QXmlStreamReader &reader);
|
---|
836 | #ifdef QUILOADER_QDOM_READ
|
---|
837 | void read(const QDomElement &node);
|
---|
838 | #endif
|
---|
839 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
840 | inline QString text() const { return m_text; }
|
---|
841 | inline void setText(const QString &s) { m_text = s; }
|
---|
842 |
|
---|
843 | // attribute accessors
|
---|
844 | inline bool hasAttributeFormat() const { return m_has_attr_format; }
|
---|
845 | inline QString attributeFormat() const { return m_attr_format; }
|
---|
846 | inline void setAttributeFormat(const QString& a) { m_attr_format = a; m_has_attr_format = true; }
|
---|
847 | inline void clearAttributeFormat() { m_has_attr_format = false; }
|
---|
848 |
|
---|
849 | inline bool hasAttributeLength() const { return m_has_attr_length; }
|
---|
850 | inline int attributeLength() const { return m_attr_length; }
|
---|
851 | inline void setAttributeLength(int a) { m_attr_length = a; m_has_attr_length = true; }
|
---|
852 | inline void clearAttributeLength() { m_has_attr_length = false; }
|
---|
853 |
|
---|
854 | // child element accessors
|
---|
855 | private:
|
---|
856 | QString m_text;
|
---|
857 | void clear(bool clear_all = true);
|
---|
858 |
|
---|
859 | // attribute data
|
---|
860 | QString m_attr_format;
|
---|
861 | bool m_has_attr_format;
|
---|
862 |
|
---|
863 | int m_attr_length;
|
---|
864 | bool m_has_attr_length;
|
---|
865 |
|
---|
866 | // child element data
|
---|
867 | uint m_children;
|
---|
868 |
|
---|
869 | DomImageData(const DomImageData &other);
|
---|
870 | void operator = (const DomImageData&other);
|
---|
871 | };
|
---|
872 |
|
---|
873 | class QDESIGNER_UILIB_EXPORT DomCustomWidgets {
|
---|
874 | public:
|
---|
875 | DomCustomWidgets();
|
---|
876 | ~DomCustomWidgets();
|
---|
877 |
|
---|
878 | void read(QXmlStreamReader &reader);
|
---|
879 | #ifdef QUILOADER_QDOM_READ
|
---|
880 | void read(const QDomElement &node);
|
---|
881 | #endif
|
---|
882 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
883 | inline QString text() const { return m_text; }
|
---|
884 | inline void setText(const QString &s) { m_text = s; }
|
---|
885 |
|
---|
886 | // attribute accessors
|
---|
887 | // child element accessors
|
---|
888 | inline QList<DomCustomWidget*> elementCustomWidget() const { return m_customWidget; }
|
---|
889 | void setElementCustomWidget(const QList<DomCustomWidget*>& a);
|
---|
890 |
|
---|
891 | private:
|
---|
892 | QString m_text;
|
---|
893 | void clear(bool clear_all = true);
|
---|
894 |
|
---|
895 | // attribute data
|
---|
896 | // child element data
|
---|
897 | uint m_children;
|
---|
898 | QList<DomCustomWidget*> m_customWidget;
|
---|
899 | enum Child {
|
---|
900 | CustomWidget = 1
|
---|
901 | };
|
---|
902 |
|
---|
903 | DomCustomWidgets(const DomCustomWidgets &other);
|
---|
904 | void operator = (const DomCustomWidgets&other);
|
---|
905 | };
|
---|
906 |
|
---|
907 | class QDESIGNER_UILIB_EXPORT DomHeader {
|
---|
908 | public:
|
---|
909 | DomHeader();
|
---|
910 | ~DomHeader();
|
---|
911 |
|
---|
912 | void read(QXmlStreamReader &reader);
|
---|
913 | #ifdef QUILOADER_QDOM_READ
|
---|
914 | void read(const QDomElement &node);
|
---|
915 | #endif
|
---|
916 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
917 | inline QString text() const { return m_text; }
|
---|
918 | inline void setText(const QString &s) { m_text = s; }
|
---|
919 |
|
---|
920 | // attribute accessors
|
---|
921 | inline bool hasAttributeLocation() const { return m_has_attr_location; }
|
---|
922 | inline QString attributeLocation() const { return m_attr_location; }
|
---|
923 | inline void setAttributeLocation(const QString& a) { m_attr_location = a; m_has_attr_location = true; }
|
---|
924 | inline void clearAttributeLocation() { m_has_attr_location = false; }
|
---|
925 |
|
---|
926 | // child element accessors
|
---|
927 | private:
|
---|
928 | QString m_text;
|
---|
929 | void clear(bool clear_all = true);
|
---|
930 |
|
---|
931 | // attribute data
|
---|
932 | QString m_attr_location;
|
---|
933 | bool m_has_attr_location;
|
---|
934 |
|
---|
935 | // child element data
|
---|
936 | uint m_children;
|
---|
937 |
|
---|
938 | DomHeader(const DomHeader &other);
|
---|
939 | void operator = (const DomHeader&other);
|
---|
940 | };
|
---|
941 |
|
---|
942 | class QDESIGNER_UILIB_EXPORT DomCustomWidget {
|
---|
943 | public:
|
---|
944 | DomCustomWidget();
|
---|
945 | ~DomCustomWidget();
|
---|
946 |
|
---|
947 | void read(QXmlStreamReader &reader);
|
---|
948 | #ifdef QUILOADER_QDOM_READ
|
---|
949 | void read(const QDomElement &node);
|
---|
950 | #endif
|
---|
951 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
952 | inline QString text() const { return m_text; }
|
---|
953 | inline void setText(const QString &s) { m_text = s; }
|
---|
954 |
|
---|
955 | // attribute accessors
|
---|
956 | // child element accessors
|
---|
957 | inline QString elementClass() const { return m_class; }
|
---|
958 | void setElementClass(const QString& a);
|
---|
959 | inline bool hasElementClass() const { return m_children & Class; }
|
---|
960 | void clearElementClass();
|
---|
961 |
|
---|
962 | inline QString elementExtends() const { return m_extends; }
|
---|
963 | void setElementExtends(const QString& a);
|
---|
964 | inline bool hasElementExtends() const { return m_children & Extends; }
|
---|
965 | void clearElementExtends();
|
---|
966 |
|
---|
967 | inline DomHeader* elementHeader() const { return m_header; }
|
---|
968 | DomHeader* takeElementHeader();
|
---|
969 | void setElementHeader(DomHeader* a);
|
---|
970 | inline bool hasElementHeader() const { return m_children & Header; }
|
---|
971 | void clearElementHeader();
|
---|
972 |
|
---|
973 | inline DomSize* elementSizeHint() const { return m_sizeHint; }
|
---|
974 | DomSize* takeElementSizeHint();
|
---|
975 | void setElementSizeHint(DomSize* a);
|
---|
976 | inline bool hasElementSizeHint() const { return m_children & SizeHint; }
|
---|
977 | void clearElementSizeHint();
|
---|
978 |
|
---|
979 | inline QString elementAddPageMethod() const { return m_addPageMethod; }
|
---|
980 | void setElementAddPageMethod(const QString& a);
|
---|
981 | inline bool hasElementAddPageMethod() const { return m_children & AddPageMethod; }
|
---|
982 | void clearElementAddPageMethod();
|
---|
983 |
|
---|
984 | inline int elementContainer() const { return m_container; }
|
---|
985 | void setElementContainer(int a);
|
---|
986 | inline bool hasElementContainer() const { return m_children & Container; }
|
---|
987 | void clearElementContainer();
|
---|
988 |
|
---|
989 | inline DomSizePolicyData* elementSizePolicy() const { return m_sizePolicy; }
|
---|
990 | DomSizePolicyData* takeElementSizePolicy();
|
---|
991 | void setElementSizePolicy(DomSizePolicyData* a);
|
---|
992 | inline bool hasElementSizePolicy() const { return m_children & SizePolicy; }
|
---|
993 | void clearElementSizePolicy();
|
---|
994 |
|
---|
995 | inline QString elementPixmap() const { return m_pixmap; }
|
---|
996 | void setElementPixmap(const QString& a);
|
---|
997 | inline bool hasElementPixmap() const { return m_children & Pixmap; }
|
---|
998 | void clearElementPixmap();
|
---|
999 |
|
---|
1000 | inline DomScript* elementScript() const { return m_script; }
|
---|
1001 | DomScript* takeElementScript();
|
---|
1002 | void setElementScript(DomScript* a);
|
---|
1003 | inline bool hasElementScript() const { return m_children & Script; }
|
---|
1004 | void clearElementScript();
|
---|
1005 |
|
---|
1006 | inline DomProperties* elementProperties() const { return m_properties; }
|
---|
1007 | DomProperties* takeElementProperties();
|
---|
1008 | void setElementProperties(DomProperties* a);
|
---|
1009 | inline bool hasElementProperties() const { return m_children & Properties; }
|
---|
1010 | void clearElementProperties();
|
---|
1011 |
|
---|
1012 | inline DomSlots* elementSlots() const { return m_slots; }
|
---|
1013 | DomSlots* takeElementSlots();
|
---|
1014 | void setElementSlots(DomSlots* a);
|
---|
1015 | inline bool hasElementSlots() const { return m_children & Slots; }
|
---|
1016 | void clearElementSlots();
|
---|
1017 |
|
---|
1018 | private:
|
---|
1019 | QString m_text;
|
---|
1020 | void clear(bool clear_all = true);
|
---|
1021 |
|
---|
1022 | // attribute data
|
---|
1023 | // child element data
|
---|
1024 | uint m_children;
|
---|
1025 | QString m_class;
|
---|
1026 | QString m_extends;
|
---|
1027 | DomHeader* m_header;
|
---|
1028 | DomSize* m_sizeHint;
|
---|
1029 | QString m_addPageMethod;
|
---|
1030 | int m_container;
|
---|
1031 | DomSizePolicyData* m_sizePolicy;
|
---|
1032 | QString m_pixmap;
|
---|
1033 | DomScript* m_script;
|
---|
1034 | DomProperties* m_properties;
|
---|
1035 | DomSlots* m_slots;
|
---|
1036 | enum Child {
|
---|
1037 | Class = 1,
|
---|
1038 | Extends = 2,
|
---|
1039 | Header = 4,
|
---|
1040 | SizeHint = 8,
|
---|
1041 | AddPageMethod = 16,
|
---|
1042 | Container = 32,
|
---|
1043 | SizePolicy = 64,
|
---|
1044 | Pixmap = 128,
|
---|
1045 | Script = 256,
|
---|
1046 | Properties = 512,
|
---|
1047 | Slots = 1024
|
---|
1048 | };
|
---|
1049 |
|
---|
1050 | DomCustomWidget(const DomCustomWidget &other);
|
---|
1051 | void operator = (const DomCustomWidget&other);
|
---|
1052 | };
|
---|
1053 |
|
---|
1054 | class QDESIGNER_UILIB_EXPORT DomProperties {
|
---|
1055 | public:
|
---|
1056 | DomProperties();
|
---|
1057 | ~DomProperties();
|
---|
1058 |
|
---|
1059 | void read(QXmlStreamReader &reader);
|
---|
1060 | #ifdef QUILOADER_QDOM_READ
|
---|
1061 | void read(const QDomElement &node);
|
---|
1062 | #endif
|
---|
1063 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1064 | inline QString text() const { return m_text; }
|
---|
1065 | inline void setText(const QString &s) { m_text = s; }
|
---|
1066 |
|
---|
1067 | // attribute accessors
|
---|
1068 | // child element accessors
|
---|
1069 | inline QList<DomPropertyData*> elementProperty() const { return m_property; }
|
---|
1070 | void setElementProperty(const QList<DomPropertyData*>& a);
|
---|
1071 |
|
---|
1072 | private:
|
---|
1073 | QString m_text;
|
---|
1074 | void clear(bool clear_all = true);
|
---|
1075 |
|
---|
1076 | // attribute data
|
---|
1077 | // child element data
|
---|
1078 | uint m_children;
|
---|
1079 | QList<DomPropertyData*> m_property;
|
---|
1080 | enum Child {
|
---|
1081 | Property = 1
|
---|
1082 | };
|
---|
1083 |
|
---|
1084 | DomProperties(const DomProperties &other);
|
---|
1085 | void operator = (const DomProperties&other);
|
---|
1086 | };
|
---|
1087 |
|
---|
1088 | class QDESIGNER_UILIB_EXPORT DomPropertyData {
|
---|
1089 | public:
|
---|
1090 | DomPropertyData();
|
---|
1091 | ~DomPropertyData();
|
---|
1092 |
|
---|
1093 | void read(QXmlStreamReader &reader);
|
---|
1094 | #ifdef QUILOADER_QDOM_READ
|
---|
1095 | void read(const QDomElement &node);
|
---|
1096 | #endif
|
---|
1097 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1098 | inline QString text() const { return m_text; }
|
---|
1099 | inline void setText(const QString &s) { m_text = s; }
|
---|
1100 |
|
---|
1101 | // attribute accessors
|
---|
1102 | inline bool hasAttributeType() const { return m_has_attr_type; }
|
---|
1103 | inline QString attributeType() const { return m_attr_type; }
|
---|
1104 | inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; }
|
---|
1105 | inline void clearAttributeType() { m_has_attr_type = false; }
|
---|
1106 |
|
---|
1107 | // child element accessors
|
---|
1108 | private:
|
---|
1109 | QString m_text;
|
---|
1110 | void clear(bool clear_all = true);
|
---|
1111 |
|
---|
1112 | // attribute data
|
---|
1113 | QString m_attr_type;
|
---|
1114 | bool m_has_attr_type;
|
---|
1115 |
|
---|
1116 | // child element data
|
---|
1117 | uint m_children;
|
---|
1118 |
|
---|
1119 | DomPropertyData(const DomPropertyData &other);
|
---|
1120 | void operator = (const DomPropertyData&other);
|
---|
1121 | };
|
---|
1122 |
|
---|
1123 | class QDESIGNER_UILIB_EXPORT DomSizePolicyData {
|
---|
1124 | public:
|
---|
1125 | DomSizePolicyData();
|
---|
1126 | ~DomSizePolicyData();
|
---|
1127 |
|
---|
1128 | void read(QXmlStreamReader &reader);
|
---|
1129 | #ifdef QUILOADER_QDOM_READ
|
---|
1130 | void read(const QDomElement &node);
|
---|
1131 | #endif
|
---|
1132 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1133 | inline QString text() const { return m_text; }
|
---|
1134 | inline void setText(const QString &s) { m_text = s; }
|
---|
1135 |
|
---|
1136 | // attribute accessors
|
---|
1137 | // child element accessors
|
---|
1138 | inline int elementHorData() const { return m_horData; }
|
---|
1139 | void setElementHorData(int a);
|
---|
1140 | inline bool hasElementHorData() const { return m_children & HorData; }
|
---|
1141 | void clearElementHorData();
|
---|
1142 |
|
---|
1143 | inline int elementVerData() const { return m_verData; }
|
---|
1144 | void setElementVerData(int a);
|
---|
1145 | inline bool hasElementVerData() const { return m_children & VerData; }
|
---|
1146 | void clearElementVerData();
|
---|
1147 |
|
---|
1148 | private:
|
---|
1149 | QString m_text;
|
---|
1150 | void clear(bool clear_all = true);
|
---|
1151 |
|
---|
1152 | // attribute data
|
---|
1153 | // child element data
|
---|
1154 | uint m_children;
|
---|
1155 | int m_horData;
|
---|
1156 | int m_verData;
|
---|
1157 | enum Child {
|
---|
1158 | HorData = 1,
|
---|
1159 | VerData = 2
|
---|
1160 | };
|
---|
1161 |
|
---|
1162 | DomSizePolicyData(const DomSizePolicyData &other);
|
---|
1163 | void operator = (const DomSizePolicyData&other);
|
---|
1164 | };
|
---|
1165 |
|
---|
1166 | class QDESIGNER_UILIB_EXPORT DomLayoutDefault {
|
---|
1167 | public:
|
---|
1168 | DomLayoutDefault();
|
---|
1169 | ~DomLayoutDefault();
|
---|
1170 |
|
---|
1171 | void read(QXmlStreamReader &reader);
|
---|
1172 | #ifdef QUILOADER_QDOM_READ
|
---|
1173 | void read(const QDomElement &node);
|
---|
1174 | #endif
|
---|
1175 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1176 | inline QString text() const { return m_text; }
|
---|
1177 | inline void setText(const QString &s) { m_text = s; }
|
---|
1178 |
|
---|
1179 | // attribute accessors
|
---|
1180 | inline bool hasAttributeSpacing() const { return m_has_attr_spacing; }
|
---|
1181 | inline int attributeSpacing() const { return m_attr_spacing; }
|
---|
1182 | inline void setAttributeSpacing(int a) { m_attr_spacing = a; m_has_attr_spacing = true; }
|
---|
1183 | inline void clearAttributeSpacing() { m_has_attr_spacing = false; }
|
---|
1184 |
|
---|
1185 | inline bool hasAttributeMargin() const { return m_has_attr_margin; }
|
---|
1186 | inline int attributeMargin() const { return m_attr_margin; }
|
---|
1187 | inline void setAttributeMargin(int a) { m_attr_margin = a; m_has_attr_margin = true; }
|
---|
1188 | inline void clearAttributeMargin() { m_has_attr_margin = false; }
|
---|
1189 |
|
---|
1190 | // child element accessors
|
---|
1191 | private:
|
---|
1192 | QString m_text;
|
---|
1193 | void clear(bool clear_all = true);
|
---|
1194 |
|
---|
1195 | // attribute data
|
---|
1196 | int m_attr_spacing;
|
---|
1197 | bool m_has_attr_spacing;
|
---|
1198 |
|
---|
1199 | int m_attr_margin;
|
---|
1200 | bool m_has_attr_margin;
|
---|
1201 |
|
---|
1202 | // child element data
|
---|
1203 | uint m_children;
|
---|
1204 |
|
---|
1205 | DomLayoutDefault(const DomLayoutDefault &other);
|
---|
1206 | void operator = (const DomLayoutDefault&other);
|
---|
1207 | };
|
---|
1208 |
|
---|
1209 | class QDESIGNER_UILIB_EXPORT DomLayoutFunction {
|
---|
1210 | public:
|
---|
1211 | DomLayoutFunction();
|
---|
1212 | ~DomLayoutFunction();
|
---|
1213 |
|
---|
1214 | void read(QXmlStreamReader &reader);
|
---|
1215 | #ifdef QUILOADER_QDOM_READ
|
---|
1216 | void read(const QDomElement &node);
|
---|
1217 | #endif
|
---|
1218 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1219 | inline QString text() const { return m_text; }
|
---|
1220 | inline void setText(const QString &s) { m_text = s; }
|
---|
1221 |
|
---|
1222 | // attribute accessors
|
---|
1223 | inline bool hasAttributeSpacing() const { return m_has_attr_spacing; }
|
---|
1224 | inline QString attributeSpacing() const { return m_attr_spacing; }
|
---|
1225 | inline void setAttributeSpacing(const QString& a) { m_attr_spacing = a; m_has_attr_spacing = true; }
|
---|
1226 | inline void clearAttributeSpacing() { m_has_attr_spacing = false; }
|
---|
1227 |
|
---|
1228 | inline bool hasAttributeMargin() const { return m_has_attr_margin; }
|
---|
1229 | inline QString attributeMargin() const { return m_attr_margin; }
|
---|
1230 | inline void setAttributeMargin(const QString& a) { m_attr_margin = a; m_has_attr_margin = true; }
|
---|
1231 | inline void clearAttributeMargin() { m_has_attr_margin = false; }
|
---|
1232 |
|
---|
1233 | // child element accessors
|
---|
1234 | private:
|
---|
1235 | QString m_text;
|
---|
1236 | void clear(bool clear_all = true);
|
---|
1237 |
|
---|
1238 | // attribute data
|
---|
1239 | QString m_attr_spacing;
|
---|
1240 | bool m_has_attr_spacing;
|
---|
1241 |
|
---|
1242 | QString m_attr_margin;
|
---|
1243 | bool m_has_attr_margin;
|
---|
1244 |
|
---|
1245 | // child element data
|
---|
1246 | uint m_children;
|
---|
1247 |
|
---|
1248 | DomLayoutFunction(const DomLayoutFunction &other);
|
---|
1249 | void operator = (const DomLayoutFunction&other);
|
---|
1250 | };
|
---|
1251 |
|
---|
1252 | class QDESIGNER_UILIB_EXPORT DomTabStops {
|
---|
1253 | public:
|
---|
1254 | DomTabStops();
|
---|
1255 | ~DomTabStops();
|
---|
1256 |
|
---|
1257 | void read(QXmlStreamReader &reader);
|
---|
1258 | #ifdef QUILOADER_QDOM_READ
|
---|
1259 | void read(const QDomElement &node);
|
---|
1260 | #endif
|
---|
1261 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1262 | inline QString text() const { return m_text; }
|
---|
1263 | inline void setText(const QString &s) { m_text = s; }
|
---|
1264 |
|
---|
1265 | // attribute accessors
|
---|
1266 | // child element accessors
|
---|
1267 | inline QStringList elementTabStop() const { return m_tabStop; }
|
---|
1268 | void setElementTabStop(const QStringList& a);
|
---|
1269 |
|
---|
1270 | private:
|
---|
1271 | QString m_text;
|
---|
1272 | void clear(bool clear_all = true);
|
---|
1273 |
|
---|
1274 | // attribute data
|
---|
1275 | // child element data
|
---|
1276 | uint m_children;
|
---|
1277 | QStringList m_tabStop;
|
---|
1278 | enum Child {
|
---|
1279 | TabStop = 1
|
---|
1280 | };
|
---|
1281 |
|
---|
1282 | DomTabStops(const DomTabStops &other);
|
---|
1283 | void operator = (const DomTabStops&other);
|
---|
1284 | };
|
---|
1285 |
|
---|
1286 | class QDESIGNER_UILIB_EXPORT DomLayout {
|
---|
1287 | public:
|
---|
1288 | DomLayout();
|
---|
1289 | ~DomLayout();
|
---|
1290 |
|
---|
1291 | void read(QXmlStreamReader &reader);
|
---|
1292 | #ifdef QUILOADER_QDOM_READ
|
---|
1293 | void read(const QDomElement &node);
|
---|
1294 | #endif
|
---|
1295 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1296 | inline QString text() const { return m_text; }
|
---|
1297 | inline void setText(const QString &s) { m_text = s; }
|
---|
1298 |
|
---|
1299 | // attribute accessors
|
---|
1300 | inline bool hasAttributeClass() const { return m_has_attr_class; }
|
---|
1301 | inline QString attributeClass() const { return m_attr_class; }
|
---|
1302 | inline void setAttributeClass(const QString& a) { m_attr_class = a; m_has_attr_class = true; }
|
---|
1303 | inline void clearAttributeClass() { m_has_attr_class = false; }
|
---|
1304 |
|
---|
1305 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
1306 | inline QString attributeName() const { return m_attr_name; }
|
---|
1307 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
1308 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
1309 |
|
---|
1310 | inline bool hasAttributeStretch() const { return m_has_attr_stretch; }
|
---|
1311 | inline QString attributeStretch() const { return m_attr_stretch; }
|
---|
1312 | inline void setAttributeStretch(const QString& a) { m_attr_stretch = a; m_has_attr_stretch = true; }
|
---|
1313 | inline void clearAttributeStretch() { m_has_attr_stretch = false; }
|
---|
1314 |
|
---|
1315 | inline bool hasAttributeRowStretch() const { return m_has_attr_rowStretch; }
|
---|
1316 | inline QString attributeRowStretch() const { return m_attr_rowStretch; }
|
---|
1317 | inline void setAttributeRowStretch(const QString& a) { m_attr_rowStretch = a; m_has_attr_rowStretch = true; }
|
---|
1318 | inline void clearAttributeRowStretch() { m_has_attr_rowStretch = false; }
|
---|
1319 |
|
---|
1320 | inline bool hasAttributeColumnStretch() const { return m_has_attr_columnStretch; }
|
---|
1321 | inline QString attributeColumnStretch() const { return m_attr_columnStretch; }
|
---|
1322 | inline void setAttributeColumnStretch(const QString& a) { m_attr_columnStretch = a; m_has_attr_columnStretch = true; }
|
---|
1323 | inline void clearAttributeColumnStretch() { m_has_attr_columnStretch = false; }
|
---|
1324 |
|
---|
1325 | inline bool hasAttributeRowMinimumHeight() const { return m_has_attr_rowMinimumHeight; }
|
---|
1326 | inline QString attributeRowMinimumHeight() const { return m_attr_rowMinimumHeight; }
|
---|
1327 | inline void setAttributeRowMinimumHeight(const QString& a) { m_attr_rowMinimumHeight = a; m_has_attr_rowMinimumHeight = true; }
|
---|
1328 | inline void clearAttributeRowMinimumHeight() { m_has_attr_rowMinimumHeight = false; }
|
---|
1329 |
|
---|
1330 | inline bool hasAttributeColumnMinimumWidth() const { return m_has_attr_columnMinimumWidth; }
|
---|
1331 | inline QString attributeColumnMinimumWidth() const { return m_attr_columnMinimumWidth; }
|
---|
1332 | inline void setAttributeColumnMinimumWidth(const QString& a) { m_attr_columnMinimumWidth = a; m_has_attr_columnMinimumWidth = true; }
|
---|
1333 | inline void clearAttributeColumnMinimumWidth() { m_has_attr_columnMinimumWidth = false; }
|
---|
1334 |
|
---|
1335 | // child element accessors
|
---|
1336 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
1337 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
1338 |
|
---|
1339 | inline QList<DomProperty*> elementAttribute() const { return m_attribute; }
|
---|
1340 | void setElementAttribute(const QList<DomProperty*>& a);
|
---|
1341 |
|
---|
1342 | inline QList<DomLayoutItem*> elementItem() const { return m_item; }
|
---|
1343 | void setElementItem(const QList<DomLayoutItem*>& a);
|
---|
1344 |
|
---|
1345 | private:
|
---|
1346 | QString m_text;
|
---|
1347 | void clear(bool clear_all = true);
|
---|
1348 |
|
---|
1349 | // attribute data
|
---|
1350 | QString m_attr_class;
|
---|
1351 | bool m_has_attr_class;
|
---|
1352 |
|
---|
1353 | QString m_attr_name;
|
---|
1354 | bool m_has_attr_name;
|
---|
1355 |
|
---|
1356 | QString m_attr_stretch;
|
---|
1357 | bool m_has_attr_stretch;
|
---|
1358 |
|
---|
1359 | QString m_attr_rowStretch;
|
---|
1360 | bool m_has_attr_rowStretch;
|
---|
1361 |
|
---|
1362 | QString m_attr_columnStretch;
|
---|
1363 | bool m_has_attr_columnStretch;
|
---|
1364 |
|
---|
1365 | QString m_attr_rowMinimumHeight;
|
---|
1366 | bool m_has_attr_rowMinimumHeight;
|
---|
1367 |
|
---|
1368 | QString m_attr_columnMinimumWidth;
|
---|
1369 | bool m_has_attr_columnMinimumWidth;
|
---|
1370 |
|
---|
1371 | // child element data
|
---|
1372 | uint m_children;
|
---|
1373 | QList<DomProperty*> m_property;
|
---|
1374 | QList<DomProperty*> m_attribute;
|
---|
1375 | QList<DomLayoutItem*> m_item;
|
---|
1376 | enum Child {
|
---|
1377 | Property = 1,
|
---|
1378 | Attribute = 2,
|
---|
1379 | Item = 4
|
---|
1380 | };
|
---|
1381 |
|
---|
1382 | DomLayout(const DomLayout &other);
|
---|
1383 | void operator = (const DomLayout&other);
|
---|
1384 | };
|
---|
1385 |
|
---|
1386 | class QDESIGNER_UILIB_EXPORT DomLayoutItem {
|
---|
1387 | public:
|
---|
1388 | DomLayoutItem();
|
---|
1389 | ~DomLayoutItem();
|
---|
1390 |
|
---|
1391 | void read(QXmlStreamReader &reader);
|
---|
1392 | #ifdef QUILOADER_QDOM_READ
|
---|
1393 | void read(const QDomElement &node);
|
---|
1394 | #endif
|
---|
1395 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1396 | inline QString text() const { return m_text; }
|
---|
1397 | inline void setText(const QString &s) { m_text = s; }
|
---|
1398 |
|
---|
1399 | // attribute accessors
|
---|
1400 | inline bool hasAttributeRow() const { return m_has_attr_row; }
|
---|
1401 | inline int attributeRow() const { return m_attr_row; }
|
---|
1402 | inline void setAttributeRow(int a) { m_attr_row = a; m_has_attr_row = true; }
|
---|
1403 | inline void clearAttributeRow() { m_has_attr_row = false; }
|
---|
1404 |
|
---|
1405 | inline bool hasAttributeColumn() const { return m_has_attr_column; }
|
---|
1406 | inline int attributeColumn() const { return m_attr_column; }
|
---|
1407 | inline void setAttributeColumn(int a) { m_attr_column = a; m_has_attr_column = true; }
|
---|
1408 | inline void clearAttributeColumn() { m_has_attr_column = false; }
|
---|
1409 |
|
---|
1410 | inline bool hasAttributeRowSpan() const { return m_has_attr_rowSpan; }
|
---|
1411 | inline int attributeRowSpan() const { return m_attr_rowSpan; }
|
---|
1412 | inline void setAttributeRowSpan(int a) { m_attr_rowSpan = a; m_has_attr_rowSpan = true; }
|
---|
1413 | inline void clearAttributeRowSpan() { m_has_attr_rowSpan = false; }
|
---|
1414 |
|
---|
1415 | inline bool hasAttributeColSpan() const { return m_has_attr_colSpan; }
|
---|
1416 | inline int attributeColSpan() const { return m_attr_colSpan; }
|
---|
1417 | inline void setAttributeColSpan(int a) { m_attr_colSpan = a; m_has_attr_colSpan = true; }
|
---|
1418 | inline void clearAttributeColSpan() { m_has_attr_colSpan = false; }
|
---|
1419 |
|
---|
1420 | // child element accessors
|
---|
1421 | enum Kind { Unknown = 0, Widget, Layout, Spacer };
|
---|
1422 | inline Kind kind() const { return m_kind; }
|
---|
1423 |
|
---|
1424 | inline DomWidget* elementWidget() const { return m_widget; }
|
---|
1425 | DomWidget* takeElementWidget();
|
---|
1426 | void setElementWidget(DomWidget* a);
|
---|
1427 |
|
---|
1428 | inline DomLayout* elementLayout() const { return m_layout; }
|
---|
1429 | DomLayout* takeElementLayout();
|
---|
1430 | void setElementLayout(DomLayout* a);
|
---|
1431 |
|
---|
1432 | inline DomSpacer* elementSpacer() const { return m_spacer; }
|
---|
1433 | DomSpacer* takeElementSpacer();
|
---|
1434 | void setElementSpacer(DomSpacer* a);
|
---|
1435 |
|
---|
1436 | private:
|
---|
1437 | QString m_text;
|
---|
1438 | void clear(bool clear_all = true);
|
---|
1439 |
|
---|
1440 | // attribute data
|
---|
1441 | int m_attr_row;
|
---|
1442 | bool m_has_attr_row;
|
---|
1443 |
|
---|
1444 | int m_attr_column;
|
---|
1445 | bool m_has_attr_column;
|
---|
1446 |
|
---|
1447 | int m_attr_rowSpan;
|
---|
1448 | bool m_has_attr_rowSpan;
|
---|
1449 |
|
---|
1450 | int m_attr_colSpan;
|
---|
1451 | bool m_has_attr_colSpan;
|
---|
1452 |
|
---|
1453 | // child element data
|
---|
1454 | Kind m_kind;
|
---|
1455 | DomWidget* m_widget;
|
---|
1456 | DomLayout* m_layout;
|
---|
1457 | DomSpacer* m_spacer;
|
---|
1458 |
|
---|
1459 | DomLayoutItem(const DomLayoutItem &other);
|
---|
1460 | void operator = (const DomLayoutItem&other);
|
---|
1461 | };
|
---|
1462 |
|
---|
1463 | class QDESIGNER_UILIB_EXPORT DomRow {
|
---|
1464 | public:
|
---|
1465 | DomRow();
|
---|
1466 | ~DomRow();
|
---|
1467 |
|
---|
1468 | void read(QXmlStreamReader &reader);
|
---|
1469 | #ifdef QUILOADER_QDOM_READ
|
---|
1470 | void read(const QDomElement &node);
|
---|
1471 | #endif
|
---|
1472 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1473 | inline QString text() const { return m_text; }
|
---|
1474 | inline void setText(const QString &s) { m_text = s; }
|
---|
1475 |
|
---|
1476 | // attribute accessors
|
---|
1477 | // child element accessors
|
---|
1478 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
1479 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
1480 |
|
---|
1481 | private:
|
---|
1482 | QString m_text;
|
---|
1483 | void clear(bool clear_all = true);
|
---|
1484 |
|
---|
1485 | // attribute data
|
---|
1486 | // child element data
|
---|
1487 | uint m_children;
|
---|
1488 | QList<DomProperty*> m_property;
|
---|
1489 | enum Child {
|
---|
1490 | Property = 1
|
---|
1491 | };
|
---|
1492 |
|
---|
1493 | DomRow(const DomRow &other);
|
---|
1494 | void operator = (const DomRow&other);
|
---|
1495 | };
|
---|
1496 |
|
---|
1497 | class QDESIGNER_UILIB_EXPORT DomColumn {
|
---|
1498 | public:
|
---|
1499 | DomColumn();
|
---|
1500 | ~DomColumn();
|
---|
1501 |
|
---|
1502 | void read(QXmlStreamReader &reader);
|
---|
1503 | #ifdef QUILOADER_QDOM_READ
|
---|
1504 | void read(const QDomElement &node);
|
---|
1505 | #endif
|
---|
1506 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1507 | inline QString text() const { return m_text; }
|
---|
1508 | inline void setText(const QString &s) { m_text = s; }
|
---|
1509 |
|
---|
1510 | // attribute accessors
|
---|
1511 | // child element accessors
|
---|
1512 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
1513 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
1514 |
|
---|
1515 | private:
|
---|
1516 | QString m_text;
|
---|
1517 | void clear(bool clear_all = true);
|
---|
1518 |
|
---|
1519 | // attribute data
|
---|
1520 | // child element data
|
---|
1521 | uint m_children;
|
---|
1522 | QList<DomProperty*> m_property;
|
---|
1523 | enum Child {
|
---|
1524 | Property = 1
|
---|
1525 | };
|
---|
1526 |
|
---|
1527 | DomColumn(const DomColumn &other);
|
---|
1528 | void operator = (const DomColumn&other);
|
---|
1529 | };
|
---|
1530 |
|
---|
1531 | class QDESIGNER_UILIB_EXPORT DomItem {
|
---|
1532 | public:
|
---|
1533 | DomItem();
|
---|
1534 | ~DomItem();
|
---|
1535 |
|
---|
1536 | void read(QXmlStreamReader &reader);
|
---|
1537 | #ifdef QUILOADER_QDOM_READ
|
---|
1538 | void read(const QDomElement &node);
|
---|
1539 | #endif
|
---|
1540 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1541 | inline QString text() const { return m_text; }
|
---|
1542 | inline void setText(const QString &s) { m_text = s; }
|
---|
1543 |
|
---|
1544 | // attribute accessors
|
---|
1545 | inline bool hasAttributeRow() const { return m_has_attr_row; }
|
---|
1546 | inline int attributeRow() const { return m_attr_row; }
|
---|
1547 | inline void setAttributeRow(int a) { m_attr_row = a; m_has_attr_row = true; }
|
---|
1548 | inline void clearAttributeRow() { m_has_attr_row = false; }
|
---|
1549 |
|
---|
1550 | inline bool hasAttributeColumn() const { return m_has_attr_column; }
|
---|
1551 | inline int attributeColumn() const { return m_attr_column; }
|
---|
1552 | inline void setAttributeColumn(int a) { m_attr_column = a; m_has_attr_column = true; }
|
---|
1553 | inline void clearAttributeColumn() { m_has_attr_column = false; }
|
---|
1554 |
|
---|
1555 | // child element accessors
|
---|
1556 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
1557 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
1558 |
|
---|
1559 | inline QList<DomItem*> elementItem() const { return m_item; }
|
---|
1560 | void setElementItem(const QList<DomItem*>& a);
|
---|
1561 |
|
---|
1562 | private:
|
---|
1563 | QString m_text;
|
---|
1564 | void clear(bool clear_all = true);
|
---|
1565 |
|
---|
1566 | // attribute data
|
---|
1567 | int m_attr_row;
|
---|
1568 | bool m_has_attr_row;
|
---|
1569 |
|
---|
1570 | int m_attr_column;
|
---|
1571 | bool m_has_attr_column;
|
---|
1572 |
|
---|
1573 | // child element data
|
---|
1574 | uint m_children;
|
---|
1575 | QList<DomProperty*> m_property;
|
---|
1576 | QList<DomItem*> m_item;
|
---|
1577 | enum Child {
|
---|
1578 | Property = 1,
|
---|
1579 | Item = 2
|
---|
1580 | };
|
---|
1581 |
|
---|
1582 | DomItem(const DomItem &other);
|
---|
1583 | void operator = (const DomItem&other);
|
---|
1584 | };
|
---|
1585 |
|
---|
1586 | class QDESIGNER_UILIB_EXPORT DomWidget {
|
---|
1587 | public:
|
---|
1588 | DomWidget();
|
---|
1589 | ~DomWidget();
|
---|
1590 |
|
---|
1591 | void read(QXmlStreamReader &reader);
|
---|
1592 | #ifdef QUILOADER_QDOM_READ
|
---|
1593 | void read(const QDomElement &node);
|
---|
1594 | #endif
|
---|
1595 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1596 | inline QString text() const { return m_text; }
|
---|
1597 | inline void setText(const QString &s) { m_text = s; }
|
---|
1598 |
|
---|
1599 | // attribute accessors
|
---|
1600 | inline bool hasAttributeClass() const { return m_has_attr_class; }
|
---|
1601 | inline QString attributeClass() const { return m_attr_class; }
|
---|
1602 | inline void setAttributeClass(const QString& a) { m_attr_class = a; m_has_attr_class = true; }
|
---|
1603 | inline void clearAttributeClass() { m_has_attr_class = false; }
|
---|
1604 |
|
---|
1605 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
1606 | inline QString attributeName() const { return m_attr_name; }
|
---|
1607 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
1608 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
1609 |
|
---|
1610 | inline bool hasAttributeNative() const { return m_has_attr_native; }
|
---|
1611 | inline bool attributeNative() const { return m_attr_native; }
|
---|
1612 | inline void setAttributeNative(bool a) { m_attr_native = a; m_has_attr_native = true; }
|
---|
1613 | inline void clearAttributeNative() { m_has_attr_native = false; }
|
---|
1614 |
|
---|
1615 | // child element accessors
|
---|
1616 | inline QStringList elementClass() const { return m_class; }
|
---|
1617 | void setElementClass(const QStringList& a);
|
---|
1618 |
|
---|
1619 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
1620 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
1621 |
|
---|
1622 | inline QList<DomScript*> elementScript() const { return m_script; }
|
---|
1623 | void setElementScript(const QList<DomScript*>& a);
|
---|
1624 |
|
---|
1625 | inline QList<DomWidgetData*> elementWidgetData() const { return m_widgetData; }
|
---|
1626 | void setElementWidgetData(const QList<DomWidgetData*>& a);
|
---|
1627 |
|
---|
1628 | inline QList<DomProperty*> elementAttribute() const { return m_attribute; }
|
---|
1629 | void setElementAttribute(const QList<DomProperty*>& a);
|
---|
1630 |
|
---|
1631 | inline QList<DomRow*> elementRow() const { return m_row; }
|
---|
1632 | void setElementRow(const QList<DomRow*>& a);
|
---|
1633 |
|
---|
1634 | inline QList<DomColumn*> elementColumn() const { return m_column; }
|
---|
1635 | void setElementColumn(const QList<DomColumn*>& a);
|
---|
1636 |
|
---|
1637 | inline QList<DomItem*> elementItem() const { return m_item; }
|
---|
1638 | void setElementItem(const QList<DomItem*>& a);
|
---|
1639 |
|
---|
1640 | inline QList<DomLayout*> elementLayout() const { return m_layout; }
|
---|
1641 | void setElementLayout(const QList<DomLayout*>& a);
|
---|
1642 |
|
---|
1643 | inline QList<DomWidget*> elementWidget() const { return m_widget; }
|
---|
1644 | void setElementWidget(const QList<DomWidget*>& a);
|
---|
1645 |
|
---|
1646 | inline QList<DomAction*> elementAction() const { return m_action; }
|
---|
1647 | void setElementAction(const QList<DomAction*>& a);
|
---|
1648 |
|
---|
1649 | inline QList<DomActionGroup*> elementActionGroup() const { return m_actionGroup; }
|
---|
1650 | void setElementActionGroup(const QList<DomActionGroup*>& a);
|
---|
1651 |
|
---|
1652 | inline QList<DomActionRef*> elementAddAction() const { return m_addAction; }
|
---|
1653 | void setElementAddAction(const QList<DomActionRef*>& a);
|
---|
1654 |
|
---|
1655 | inline QStringList elementZOrder() const { return m_zOrder; }
|
---|
1656 | void setElementZOrder(const QStringList& a);
|
---|
1657 |
|
---|
1658 | private:
|
---|
1659 | QString m_text;
|
---|
1660 | void clear(bool clear_all = true);
|
---|
1661 |
|
---|
1662 | // attribute data
|
---|
1663 | QString m_attr_class;
|
---|
1664 | bool m_has_attr_class;
|
---|
1665 |
|
---|
1666 | QString m_attr_name;
|
---|
1667 | bool m_has_attr_name;
|
---|
1668 |
|
---|
1669 | bool m_attr_native;
|
---|
1670 | bool m_has_attr_native;
|
---|
1671 |
|
---|
1672 | // child element data
|
---|
1673 | uint m_children;
|
---|
1674 | QStringList m_class;
|
---|
1675 | QList<DomProperty*> m_property;
|
---|
1676 | QList<DomScript*> m_script;
|
---|
1677 | QList<DomWidgetData*> m_widgetData;
|
---|
1678 | QList<DomProperty*> m_attribute;
|
---|
1679 | QList<DomRow*> m_row;
|
---|
1680 | QList<DomColumn*> m_column;
|
---|
1681 | QList<DomItem*> m_item;
|
---|
1682 | QList<DomLayout*> m_layout;
|
---|
1683 | QList<DomWidget*> m_widget;
|
---|
1684 | QList<DomAction*> m_action;
|
---|
1685 | QList<DomActionGroup*> m_actionGroup;
|
---|
1686 | QList<DomActionRef*> m_addAction;
|
---|
1687 | QStringList m_zOrder;
|
---|
1688 | enum Child {
|
---|
1689 | Class = 1,
|
---|
1690 | Property = 2,
|
---|
1691 | Script = 4,
|
---|
1692 | WidgetData = 8,
|
---|
1693 | Attribute = 16,
|
---|
1694 | Row = 32,
|
---|
1695 | Column = 64,
|
---|
1696 | Item = 128,
|
---|
1697 | Layout = 256,
|
---|
1698 | Widget = 512,
|
---|
1699 | Action = 1024,
|
---|
1700 | ActionGroup = 2048,
|
---|
1701 | AddAction = 4096,
|
---|
1702 | ZOrder = 8192
|
---|
1703 | };
|
---|
1704 |
|
---|
1705 | DomWidget(const DomWidget &other);
|
---|
1706 | void operator = (const DomWidget&other);
|
---|
1707 | };
|
---|
1708 |
|
---|
1709 | class QDESIGNER_UILIB_EXPORT DomSpacer {
|
---|
1710 | public:
|
---|
1711 | DomSpacer();
|
---|
1712 | ~DomSpacer();
|
---|
1713 |
|
---|
1714 | void read(QXmlStreamReader &reader);
|
---|
1715 | #ifdef QUILOADER_QDOM_READ
|
---|
1716 | void read(const QDomElement &node);
|
---|
1717 | #endif
|
---|
1718 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1719 | inline QString text() const { return m_text; }
|
---|
1720 | inline void setText(const QString &s) { m_text = s; }
|
---|
1721 |
|
---|
1722 | // attribute accessors
|
---|
1723 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
1724 | inline QString attributeName() const { return m_attr_name; }
|
---|
1725 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
1726 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
1727 |
|
---|
1728 | // child element accessors
|
---|
1729 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
1730 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
1731 |
|
---|
1732 | private:
|
---|
1733 | QString m_text;
|
---|
1734 | void clear(bool clear_all = true);
|
---|
1735 |
|
---|
1736 | // attribute data
|
---|
1737 | QString m_attr_name;
|
---|
1738 | bool m_has_attr_name;
|
---|
1739 |
|
---|
1740 | // child element data
|
---|
1741 | uint m_children;
|
---|
1742 | QList<DomProperty*> m_property;
|
---|
1743 | enum Child {
|
---|
1744 | Property = 1
|
---|
1745 | };
|
---|
1746 |
|
---|
1747 | DomSpacer(const DomSpacer &other);
|
---|
1748 | void operator = (const DomSpacer&other);
|
---|
1749 | };
|
---|
1750 |
|
---|
1751 | class QDESIGNER_UILIB_EXPORT DomColor {
|
---|
1752 | public:
|
---|
1753 | DomColor();
|
---|
1754 | ~DomColor();
|
---|
1755 |
|
---|
1756 | void read(QXmlStreamReader &reader);
|
---|
1757 | #ifdef QUILOADER_QDOM_READ
|
---|
1758 | void read(const QDomElement &node);
|
---|
1759 | #endif
|
---|
1760 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1761 | inline QString text() const { return m_text; }
|
---|
1762 | inline void setText(const QString &s) { m_text = s; }
|
---|
1763 |
|
---|
1764 | // attribute accessors
|
---|
1765 | inline bool hasAttributeAlpha() const { return m_has_attr_alpha; }
|
---|
1766 | inline int attributeAlpha() const { return m_attr_alpha; }
|
---|
1767 | inline void setAttributeAlpha(int a) { m_attr_alpha = a; m_has_attr_alpha = true; }
|
---|
1768 | inline void clearAttributeAlpha() { m_has_attr_alpha = false; }
|
---|
1769 |
|
---|
1770 | // child element accessors
|
---|
1771 | inline int elementRed() const { return m_red; }
|
---|
1772 | void setElementRed(int a);
|
---|
1773 | inline bool hasElementRed() const { return m_children & Red; }
|
---|
1774 | void clearElementRed();
|
---|
1775 |
|
---|
1776 | inline int elementGreen() const { return m_green; }
|
---|
1777 | void setElementGreen(int a);
|
---|
1778 | inline bool hasElementGreen() const { return m_children & Green; }
|
---|
1779 | void clearElementGreen();
|
---|
1780 |
|
---|
1781 | inline int elementBlue() const { return m_blue; }
|
---|
1782 | void setElementBlue(int a);
|
---|
1783 | inline bool hasElementBlue() const { return m_children & Blue; }
|
---|
1784 | void clearElementBlue();
|
---|
1785 |
|
---|
1786 | private:
|
---|
1787 | QString m_text;
|
---|
1788 | void clear(bool clear_all = true);
|
---|
1789 |
|
---|
1790 | // attribute data
|
---|
1791 | int m_attr_alpha;
|
---|
1792 | bool m_has_attr_alpha;
|
---|
1793 |
|
---|
1794 | // child element data
|
---|
1795 | uint m_children;
|
---|
1796 | int m_red;
|
---|
1797 | int m_green;
|
---|
1798 | int m_blue;
|
---|
1799 | enum Child {
|
---|
1800 | Red = 1,
|
---|
1801 | Green = 2,
|
---|
1802 | Blue = 4
|
---|
1803 | };
|
---|
1804 |
|
---|
1805 | DomColor(const DomColor &other);
|
---|
1806 | void operator = (const DomColor&other);
|
---|
1807 | };
|
---|
1808 |
|
---|
1809 | class QDESIGNER_UILIB_EXPORT DomGradientStop {
|
---|
1810 | public:
|
---|
1811 | DomGradientStop();
|
---|
1812 | ~DomGradientStop();
|
---|
1813 |
|
---|
1814 | void read(QXmlStreamReader &reader);
|
---|
1815 | #ifdef QUILOADER_QDOM_READ
|
---|
1816 | void read(const QDomElement &node);
|
---|
1817 | #endif
|
---|
1818 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1819 | inline QString text() const { return m_text; }
|
---|
1820 | inline void setText(const QString &s) { m_text = s; }
|
---|
1821 |
|
---|
1822 | // attribute accessors
|
---|
1823 | inline bool hasAttributePosition() const { return m_has_attr_position; }
|
---|
1824 | inline double attributePosition() const { return m_attr_position; }
|
---|
1825 | inline void setAttributePosition(double a) { m_attr_position = a; m_has_attr_position = true; }
|
---|
1826 | inline void clearAttributePosition() { m_has_attr_position = false; }
|
---|
1827 |
|
---|
1828 | // child element accessors
|
---|
1829 | inline DomColor* elementColor() const { return m_color; }
|
---|
1830 | DomColor* takeElementColor();
|
---|
1831 | void setElementColor(DomColor* a);
|
---|
1832 | inline bool hasElementColor() const { return m_children & Color; }
|
---|
1833 | void clearElementColor();
|
---|
1834 |
|
---|
1835 | private:
|
---|
1836 | QString m_text;
|
---|
1837 | void clear(bool clear_all = true);
|
---|
1838 |
|
---|
1839 | // attribute data
|
---|
1840 | double m_attr_position;
|
---|
1841 | bool m_has_attr_position;
|
---|
1842 |
|
---|
1843 | // child element data
|
---|
1844 | uint m_children;
|
---|
1845 | DomColor* m_color;
|
---|
1846 | enum Child {
|
---|
1847 | Color = 1
|
---|
1848 | };
|
---|
1849 |
|
---|
1850 | DomGradientStop(const DomGradientStop &other);
|
---|
1851 | void operator = (const DomGradientStop&other);
|
---|
1852 | };
|
---|
1853 |
|
---|
1854 | class QDESIGNER_UILIB_EXPORT DomGradient {
|
---|
1855 | public:
|
---|
1856 | DomGradient();
|
---|
1857 | ~DomGradient();
|
---|
1858 |
|
---|
1859 | void read(QXmlStreamReader &reader);
|
---|
1860 | #ifdef QUILOADER_QDOM_READ
|
---|
1861 | void read(const QDomElement &node);
|
---|
1862 | #endif
|
---|
1863 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
1864 | inline QString text() const { return m_text; }
|
---|
1865 | inline void setText(const QString &s) { m_text = s; }
|
---|
1866 |
|
---|
1867 | // attribute accessors
|
---|
1868 | inline bool hasAttributeStartX() const { return m_has_attr_startX; }
|
---|
1869 | inline double attributeStartX() const { return m_attr_startX; }
|
---|
1870 | inline void setAttributeStartX(double a) { m_attr_startX = a; m_has_attr_startX = true; }
|
---|
1871 | inline void clearAttributeStartX() { m_has_attr_startX = false; }
|
---|
1872 |
|
---|
1873 | inline bool hasAttributeStartY() const { return m_has_attr_startY; }
|
---|
1874 | inline double attributeStartY() const { return m_attr_startY; }
|
---|
1875 | inline void setAttributeStartY(double a) { m_attr_startY = a; m_has_attr_startY = true; }
|
---|
1876 | inline void clearAttributeStartY() { m_has_attr_startY = false; }
|
---|
1877 |
|
---|
1878 | inline bool hasAttributeEndX() const { return m_has_attr_endX; }
|
---|
1879 | inline double attributeEndX() const { return m_attr_endX; }
|
---|
1880 | inline void setAttributeEndX(double a) { m_attr_endX = a; m_has_attr_endX = true; }
|
---|
1881 | inline void clearAttributeEndX() { m_has_attr_endX = false; }
|
---|
1882 |
|
---|
1883 | inline bool hasAttributeEndY() const { return m_has_attr_endY; }
|
---|
1884 | inline double attributeEndY() const { return m_attr_endY; }
|
---|
1885 | inline void setAttributeEndY(double a) { m_attr_endY = a; m_has_attr_endY = true; }
|
---|
1886 | inline void clearAttributeEndY() { m_has_attr_endY = false; }
|
---|
1887 |
|
---|
1888 | inline bool hasAttributeCentralX() const { return m_has_attr_centralX; }
|
---|
1889 | inline double attributeCentralX() const { return m_attr_centralX; }
|
---|
1890 | inline void setAttributeCentralX(double a) { m_attr_centralX = a; m_has_attr_centralX = true; }
|
---|
1891 | inline void clearAttributeCentralX() { m_has_attr_centralX = false; }
|
---|
1892 |
|
---|
1893 | inline bool hasAttributeCentralY() const { return m_has_attr_centralY; }
|
---|
1894 | inline double attributeCentralY() const { return m_attr_centralY; }
|
---|
1895 | inline void setAttributeCentralY(double a) { m_attr_centralY = a; m_has_attr_centralY = true; }
|
---|
1896 | inline void clearAttributeCentralY() { m_has_attr_centralY = false; }
|
---|
1897 |
|
---|
1898 | inline bool hasAttributeFocalX() const { return m_has_attr_focalX; }
|
---|
1899 | inline double attributeFocalX() const { return m_attr_focalX; }
|
---|
1900 | inline void setAttributeFocalX(double a) { m_attr_focalX = a; m_has_attr_focalX = true; }
|
---|
1901 | inline void clearAttributeFocalX() { m_has_attr_focalX = false; }
|
---|
1902 |
|
---|
1903 | inline bool hasAttributeFocalY() const { return m_has_attr_focalY; }
|
---|
1904 | inline double attributeFocalY() const { return m_attr_focalY; }
|
---|
1905 | inline void setAttributeFocalY(double a) { m_attr_focalY = a; m_has_attr_focalY = true; }
|
---|
1906 | inline void clearAttributeFocalY() { m_has_attr_focalY = false; }
|
---|
1907 |
|
---|
1908 | inline bool hasAttributeRadius() const { return m_has_attr_radius; }
|
---|
1909 | inline double attributeRadius() const { return m_attr_radius; }
|
---|
1910 | inline void setAttributeRadius(double a) { m_attr_radius = a; m_has_attr_radius = true; }
|
---|
1911 | inline void clearAttributeRadius() { m_has_attr_radius = false; }
|
---|
1912 |
|
---|
1913 | inline bool hasAttributeAngle() const { return m_has_attr_angle; }
|
---|
1914 | inline double attributeAngle() const { return m_attr_angle; }
|
---|
1915 | inline void setAttributeAngle(double a) { m_attr_angle = a; m_has_attr_angle = true; }
|
---|
1916 | inline void clearAttributeAngle() { m_has_attr_angle = false; }
|
---|
1917 |
|
---|
1918 | inline bool hasAttributeType() const { return m_has_attr_type; }
|
---|
1919 | inline QString attributeType() const { return m_attr_type; }
|
---|
1920 | inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; }
|
---|
1921 | inline void clearAttributeType() { m_has_attr_type = false; }
|
---|
1922 |
|
---|
1923 | inline bool hasAttributeSpread() const { return m_has_attr_spread; }
|
---|
1924 | inline QString attributeSpread() const { return m_attr_spread; }
|
---|
1925 | inline void setAttributeSpread(const QString& a) { m_attr_spread = a; m_has_attr_spread = true; }
|
---|
1926 | inline void clearAttributeSpread() { m_has_attr_spread = false; }
|
---|
1927 |
|
---|
1928 | inline bool hasAttributeCoordinateMode() const { return m_has_attr_coordinateMode; }
|
---|
1929 | inline QString attributeCoordinateMode() const { return m_attr_coordinateMode; }
|
---|
1930 | inline void setAttributeCoordinateMode(const QString& a) { m_attr_coordinateMode = a; m_has_attr_coordinateMode = true; }
|
---|
1931 | inline void clearAttributeCoordinateMode() { m_has_attr_coordinateMode = false; }
|
---|
1932 |
|
---|
1933 | // child element accessors
|
---|
1934 | inline QList<DomGradientStop*> elementGradientStop() const { return m_gradientStop; }
|
---|
1935 | void setElementGradientStop(const QList<DomGradientStop*>& a);
|
---|
1936 |
|
---|
1937 | private:
|
---|
1938 | QString m_text;
|
---|
1939 | void clear(bool clear_all = true);
|
---|
1940 |
|
---|
1941 | // attribute data
|
---|
1942 | double m_attr_startX;
|
---|
1943 | bool m_has_attr_startX;
|
---|
1944 |
|
---|
1945 | double m_attr_startY;
|
---|
1946 | bool m_has_attr_startY;
|
---|
1947 |
|
---|
1948 | double m_attr_endX;
|
---|
1949 | bool m_has_attr_endX;
|
---|
1950 |
|
---|
1951 | double m_attr_endY;
|
---|
1952 | bool m_has_attr_endY;
|
---|
1953 |
|
---|
1954 | double m_attr_centralX;
|
---|
1955 | bool m_has_attr_centralX;
|
---|
1956 |
|
---|
1957 | double m_attr_centralY;
|
---|
1958 | bool m_has_attr_centralY;
|
---|
1959 |
|
---|
1960 | double m_attr_focalX;
|
---|
1961 | bool m_has_attr_focalX;
|
---|
1962 |
|
---|
1963 | double m_attr_focalY;
|
---|
1964 | bool m_has_attr_focalY;
|
---|
1965 |
|
---|
1966 | double m_attr_radius;
|
---|
1967 | bool m_has_attr_radius;
|
---|
1968 |
|
---|
1969 | double m_attr_angle;
|
---|
1970 | bool m_has_attr_angle;
|
---|
1971 |
|
---|
1972 | QString m_attr_type;
|
---|
1973 | bool m_has_attr_type;
|
---|
1974 |
|
---|
1975 | QString m_attr_spread;
|
---|
1976 | bool m_has_attr_spread;
|
---|
1977 |
|
---|
1978 | QString m_attr_coordinateMode;
|
---|
1979 | bool m_has_attr_coordinateMode;
|
---|
1980 |
|
---|
1981 | // child element data
|
---|
1982 | uint m_children;
|
---|
1983 | QList<DomGradientStop*> m_gradientStop;
|
---|
1984 | enum Child {
|
---|
1985 | GradientStop = 1
|
---|
1986 | };
|
---|
1987 |
|
---|
1988 | DomGradient(const DomGradient &other);
|
---|
1989 | void operator = (const DomGradient&other);
|
---|
1990 | };
|
---|
1991 |
|
---|
1992 | class QDESIGNER_UILIB_EXPORT DomBrush {
|
---|
1993 | public:
|
---|
1994 | DomBrush();
|
---|
1995 | ~DomBrush();
|
---|
1996 |
|
---|
1997 | void read(QXmlStreamReader &reader);
|
---|
1998 | #ifdef QUILOADER_QDOM_READ
|
---|
1999 | void read(const QDomElement &node);
|
---|
2000 | #endif
|
---|
2001 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2002 | inline QString text() const { return m_text; }
|
---|
2003 | inline void setText(const QString &s) { m_text = s; }
|
---|
2004 |
|
---|
2005 | // attribute accessors
|
---|
2006 | inline bool hasAttributeBrushStyle() const { return m_has_attr_brushStyle; }
|
---|
2007 | inline QString attributeBrushStyle() const { return m_attr_brushStyle; }
|
---|
2008 | inline void setAttributeBrushStyle(const QString& a) { m_attr_brushStyle = a; m_has_attr_brushStyle = true; }
|
---|
2009 | inline void clearAttributeBrushStyle() { m_has_attr_brushStyle = false; }
|
---|
2010 |
|
---|
2011 | // child element accessors
|
---|
2012 | enum Kind { Unknown = 0, Color, Texture, Gradient };
|
---|
2013 | inline Kind kind() const { return m_kind; }
|
---|
2014 |
|
---|
2015 | inline DomColor* elementColor() const { return m_color; }
|
---|
2016 | DomColor* takeElementColor();
|
---|
2017 | void setElementColor(DomColor* a);
|
---|
2018 |
|
---|
2019 | inline DomProperty* elementTexture() const { return m_texture; }
|
---|
2020 | DomProperty* takeElementTexture();
|
---|
2021 | void setElementTexture(DomProperty* a);
|
---|
2022 |
|
---|
2023 | inline DomGradient* elementGradient() const { return m_gradient; }
|
---|
2024 | DomGradient* takeElementGradient();
|
---|
2025 | void setElementGradient(DomGradient* a);
|
---|
2026 |
|
---|
2027 | private:
|
---|
2028 | QString m_text;
|
---|
2029 | void clear(bool clear_all = true);
|
---|
2030 |
|
---|
2031 | // attribute data
|
---|
2032 | QString m_attr_brushStyle;
|
---|
2033 | bool m_has_attr_brushStyle;
|
---|
2034 |
|
---|
2035 | // child element data
|
---|
2036 | Kind m_kind;
|
---|
2037 | DomColor* m_color;
|
---|
2038 | DomProperty* m_texture;
|
---|
2039 | DomGradient* m_gradient;
|
---|
2040 |
|
---|
2041 | DomBrush(const DomBrush &other);
|
---|
2042 | void operator = (const DomBrush&other);
|
---|
2043 | };
|
---|
2044 |
|
---|
2045 | class QDESIGNER_UILIB_EXPORT DomColorRole {
|
---|
2046 | public:
|
---|
2047 | DomColorRole();
|
---|
2048 | ~DomColorRole();
|
---|
2049 |
|
---|
2050 | void read(QXmlStreamReader &reader);
|
---|
2051 | #ifdef QUILOADER_QDOM_READ
|
---|
2052 | void read(const QDomElement &node);
|
---|
2053 | #endif
|
---|
2054 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2055 | inline QString text() const { return m_text; }
|
---|
2056 | inline void setText(const QString &s) { m_text = s; }
|
---|
2057 |
|
---|
2058 | // attribute accessors
|
---|
2059 | inline bool hasAttributeRole() const { return m_has_attr_role; }
|
---|
2060 | inline QString attributeRole() const { return m_attr_role; }
|
---|
2061 | inline void setAttributeRole(const QString& a) { m_attr_role = a; m_has_attr_role = true; }
|
---|
2062 | inline void clearAttributeRole() { m_has_attr_role = false; }
|
---|
2063 |
|
---|
2064 | // child element accessors
|
---|
2065 | inline DomBrush* elementBrush() const { return m_brush; }
|
---|
2066 | DomBrush* takeElementBrush();
|
---|
2067 | void setElementBrush(DomBrush* a);
|
---|
2068 | inline bool hasElementBrush() const { return m_children & Brush; }
|
---|
2069 | void clearElementBrush();
|
---|
2070 |
|
---|
2071 | private:
|
---|
2072 | QString m_text;
|
---|
2073 | void clear(bool clear_all = true);
|
---|
2074 |
|
---|
2075 | // attribute data
|
---|
2076 | QString m_attr_role;
|
---|
2077 | bool m_has_attr_role;
|
---|
2078 |
|
---|
2079 | // child element data
|
---|
2080 | uint m_children;
|
---|
2081 | DomBrush* m_brush;
|
---|
2082 | enum Child {
|
---|
2083 | Brush = 1
|
---|
2084 | };
|
---|
2085 |
|
---|
2086 | DomColorRole(const DomColorRole &other);
|
---|
2087 | void operator = (const DomColorRole&other);
|
---|
2088 | };
|
---|
2089 |
|
---|
2090 | class QDESIGNER_UILIB_EXPORT DomColorGroup {
|
---|
2091 | public:
|
---|
2092 | DomColorGroup();
|
---|
2093 | ~DomColorGroup();
|
---|
2094 |
|
---|
2095 | void read(QXmlStreamReader &reader);
|
---|
2096 | #ifdef QUILOADER_QDOM_READ
|
---|
2097 | void read(const QDomElement &node);
|
---|
2098 | #endif
|
---|
2099 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2100 | inline QString text() const { return m_text; }
|
---|
2101 | inline void setText(const QString &s) { m_text = s; }
|
---|
2102 |
|
---|
2103 | // attribute accessors
|
---|
2104 | // child element accessors
|
---|
2105 | inline QList<DomColorRole*> elementColorRole() const { return m_colorRole; }
|
---|
2106 | void setElementColorRole(const QList<DomColorRole*>& a);
|
---|
2107 |
|
---|
2108 | inline QList<DomColor*> elementColor() const { return m_color; }
|
---|
2109 | void setElementColor(const QList<DomColor*>& a);
|
---|
2110 |
|
---|
2111 | private:
|
---|
2112 | QString m_text;
|
---|
2113 | void clear(bool clear_all = true);
|
---|
2114 |
|
---|
2115 | // attribute data
|
---|
2116 | // child element data
|
---|
2117 | uint m_children;
|
---|
2118 | QList<DomColorRole*> m_colorRole;
|
---|
2119 | QList<DomColor*> m_color;
|
---|
2120 | enum Child {
|
---|
2121 | ColorRole = 1,
|
---|
2122 | Color = 2
|
---|
2123 | };
|
---|
2124 |
|
---|
2125 | DomColorGroup(const DomColorGroup &other);
|
---|
2126 | void operator = (const DomColorGroup&other);
|
---|
2127 | };
|
---|
2128 |
|
---|
2129 | class QDESIGNER_UILIB_EXPORT DomPalette {
|
---|
2130 | public:
|
---|
2131 | DomPalette();
|
---|
2132 | ~DomPalette();
|
---|
2133 |
|
---|
2134 | void read(QXmlStreamReader &reader);
|
---|
2135 | #ifdef QUILOADER_QDOM_READ
|
---|
2136 | void read(const QDomElement &node);
|
---|
2137 | #endif
|
---|
2138 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2139 | inline QString text() const { return m_text; }
|
---|
2140 | inline void setText(const QString &s) { m_text = s; }
|
---|
2141 |
|
---|
2142 | // attribute accessors
|
---|
2143 | // child element accessors
|
---|
2144 | inline DomColorGroup* elementActive() const { return m_active; }
|
---|
2145 | DomColorGroup* takeElementActive();
|
---|
2146 | void setElementActive(DomColorGroup* a);
|
---|
2147 | inline bool hasElementActive() const { return m_children & Active; }
|
---|
2148 | void clearElementActive();
|
---|
2149 |
|
---|
2150 | inline DomColorGroup* elementInactive() const { return m_inactive; }
|
---|
2151 | DomColorGroup* takeElementInactive();
|
---|
2152 | void setElementInactive(DomColorGroup* a);
|
---|
2153 | inline bool hasElementInactive() const { return m_children & Inactive; }
|
---|
2154 | void clearElementInactive();
|
---|
2155 |
|
---|
2156 | inline DomColorGroup* elementDisabled() const { return m_disabled; }
|
---|
2157 | DomColorGroup* takeElementDisabled();
|
---|
2158 | void setElementDisabled(DomColorGroup* a);
|
---|
2159 | inline bool hasElementDisabled() const { return m_children & Disabled; }
|
---|
2160 | void clearElementDisabled();
|
---|
2161 |
|
---|
2162 | private:
|
---|
2163 | QString m_text;
|
---|
2164 | void clear(bool clear_all = true);
|
---|
2165 |
|
---|
2166 | // attribute data
|
---|
2167 | // child element data
|
---|
2168 | uint m_children;
|
---|
2169 | DomColorGroup* m_active;
|
---|
2170 | DomColorGroup* m_inactive;
|
---|
2171 | DomColorGroup* m_disabled;
|
---|
2172 | enum Child {
|
---|
2173 | Active = 1,
|
---|
2174 | Inactive = 2,
|
---|
2175 | Disabled = 4
|
---|
2176 | };
|
---|
2177 |
|
---|
2178 | DomPalette(const DomPalette &other);
|
---|
2179 | void operator = (const DomPalette&other);
|
---|
2180 | };
|
---|
2181 |
|
---|
2182 | class QDESIGNER_UILIB_EXPORT DomFont {
|
---|
2183 | public:
|
---|
2184 | DomFont();
|
---|
2185 | ~DomFont();
|
---|
2186 |
|
---|
2187 | void read(QXmlStreamReader &reader);
|
---|
2188 | #ifdef QUILOADER_QDOM_READ
|
---|
2189 | void read(const QDomElement &node);
|
---|
2190 | #endif
|
---|
2191 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2192 | inline QString text() const { return m_text; }
|
---|
2193 | inline void setText(const QString &s) { m_text = s; }
|
---|
2194 |
|
---|
2195 | // attribute accessors
|
---|
2196 | // child element accessors
|
---|
2197 | inline QString elementFamily() const { return m_family; }
|
---|
2198 | void setElementFamily(const QString& a);
|
---|
2199 | inline bool hasElementFamily() const { return m_children & Family; }
|
---|
2200 | void clearElementFamily();
|
---|
2201 |
|
---|
2202 | inline int elementPointSize() const { return m_pointSize; }
|
---|
2203 | void setElementPointSize(int a);
|
---|
2204 | inline bool hasElementPointSize() const { return m_children & PointSize; }
|
---|
2205 | void clearElementPointSize();
|
---|
2206 |
|
---|
2207 | inline int elementWeight() const { return m_weight; }
|
---|
2208 | void setElementWeight(int a);
|
---|
2209 | inline bool hasElementWeight() const { return m_children & Weight; }
|
---|
2210 | void clearElementWeight();
|
---|
2211 |
|
---|
2212 | inline bool elementItalic() const { return m_italic; }
|
---|
2213 | void setElementItalic(bool a);
|
---|
2214 | inline bool hasElementItalic() const { return m_children & Italic; }
|
---|
2215 | void clearElementItalic();
|
---|
2216 |
|
---|
2217 | inline bool elementBold() const { return m_bold; }
|
---|
2218 | void setElementBold(bool a);
|
---|
2219 | inline bool hasElementBold() const { return m_children & Bold; }
|
---|
2220 | void clearElementBold();
|
---|
2221 |
|
---|
2222 | inline bool elementUnderline() const { return m_underline; }
|
---|
2223 | void setElementUnderline(bool a);
|
---|
2224 | inline bool hasElementUnderline() const { return m_children & Underline; }
|
---|
2225 | void clearElementUnderline();
|
---|
2226 |
|
---|
2227 | inline bool elementStrikeOut() const { return m_strikeOut; }
|
---|
2228 | void setElementStrikeOut(bool a);
|
---|
2229 | inline bool hasElementStrikeOut() const { return m_children & StrikeOut; }
|
---|
2230 | void clearElementStrikeOut();
|
---|
2231 |
|
---|
2232 | inline bool elementAntialiasing() const { return m_antialiasing; }
|
---|
2233 | void setElementAntialiasing(bool a);
|
---|
2234 | inline bool hasElementAntialiasing() const { return m_children & Antialiasing; }
|
---|
2235 | void clearElementAntialiasing();
|
---|
2236 |
|
---|
2237 | inline QString elementStyleStrategy() const { return m_styleStrategy; }
|
---|
2238 | void setElementStyleStrategy(const QString& a);
|
---|
2239 | inline bool hasElementStyleStrategy() const { return m_children & StyleStrategy; }
|
---|
2240 | void clearElementStyleStrategy();
|
---|
2241 |
|
---|
2242 | inline bool elementKerning() const { return m_kerning; }
|
---|
2243 | void setElementKerning(bool a);
|
---|
2244 | inline bool hasElementKerning() const { return m_children & Kerning; }
|
---|
2245 | void clearElementKerning();
|
---|
2246 |
|
---|
2247 | private:
|
---|
2248 | QString m_text;
|
---|
2249 | void clear(bool clear_all = true);
|
---|
2250 |
|
---|
2251 | // attribute data
|
---|
2252 | // child element data
|
---|
2253 | uint m_children;
|
---|
2254 | QString m_family;
|
---|
2255 | int m_pointSize;
|
---|
2256 | int m_weight;
|
---|
2257 | bool m_italic;
|
---|
2258 | bool m_bold;
|
---|
2259 | bool m_underline;
|
---|
2260 | bool m_strikeOut;
|
---|
2261 | bool m_antialiasing;
|
---|
2262 | QString m_styleStrategy;
|
---|
2263 | bool m_kerning;
|
---|
2264 | enum Child {
|
---|
2265 | Family = 1,
|
---|
2266 | PointSize = 2,
|
---|
2267 | Weight = 4,
|
---|
2268 | Italic = 8,
|
---|
2269 | Bold = 16,
|
---|
2270 | Underline = 32,
|
---|
2271 | StrikeOut = 64,
|
---|
2272 | Antialiasing = 128,
|
---|
2273 | StyleStrategy = 256,
|
---|
2274 | Kerning = 512
|
---|
2275 | };
|
---|
2276 |
|
---|
2277 | DomFont(const DomFont &other);
|
---|
2278 | void operator = (const DomFont&other);
|
---|
2279 | };
|
---|
2280 |
|
---|
2281 | class QDESIGNER_UILIB_EXPORT DomPoint {
|
---|
2282 | public:
|
---|
2283 | DomPoint();
|
---|
2284 | ~DomPoint();
|
---|
2285 |
|
---|
2286 | void read(QXmlStreamReader &reader);
|
---|
2287 | #ifdef QUILOADER_QDOM_READ
|
---|
2288 | void read(const QDomElement &node);
|
---|
2289 | #endif
|
---|
2290 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2291 | inline QString text() const { return m_text; }
|
---|
2292 | inline void setText(const QString &s) { m_text = s; }
|
---|
2293 |
|
---|
2294 | // attribute accessors
|
---|
2295 | // child element accessors
|
---|
2296 | inline int elementX() const { return m_x; }
|
---|
2297 | void setElementX(int a);
|
---|
2298 | inline bool hasElementX() const { return m_children & X; }
|
---|
2299 | void clearElementX();
|
---|
2300 |
|
---|
2301 | inline int elementY() const { return m_y; }
|
---|
2302 | void setElementY(int a);
|
---|
2303 | inline bool hasElementY() const { return m_children & Y; }
|
---|
2304 | void clearElementY();
|
---|
2305 |
|
---|
2306 | private:
|
---|
2307 | QString m_text;
|
---|
2308 | void clear(bool clear_all = true);
|
---|
2309 |
|
---|
2310 | // attribute data
|
---|
2311 | // child element data
|
---|
2312 | uint m_children;
|
---|
2313 | int m_x;
|
---|
2314 | int m_y;
|
---|
2315 | enum Child {
|
---|
2316 | X = 1,
|
---|
2317 | Y = 2
|
---|
2318 | };
|
---|
2319 |
|
---|
2320 | DomPoint(const DomPoint &other);
|
---|
2321 | void operator = (const DomPoint&other);
|
---|
2322 | };
|
---|
2323 |
|
---|
2324 | class QDESIGNER_UILIB_EXPORT DomRect {
|
---|
2325 | public:
|
---|
2326 | DomRect();
|
---|
2327 | ~DomRect();
|
---|
2328 |
|
---|
2329 | void read(QXmlStreamReader &reader);
|
---|
2330 | #ifdef QUILOADER_QDOM_READ
|
---|
2331 | void read(const QDomElement &node);
|
---|
2332 | #endif
|
---|
2333 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2334 | inline QString text() const { return m_text; }
|
---|
2335 | inline void setText(const QString &s) { m_text = s; }
|
---|
2336 |
|
---|
2337 | // attribute accessors
|
---|
2338 | // child element accessors
|
---|
2339 | inline int elementX() const { return m_x; }
|
---|
2340 | void setElementX(int a);
|
---|
2341 | inline bool hasElementX() const { return m_children & X; }
|
---|
2342 | void clearElementX();
|
---|
2343 |
|
---|
2344 | inline int elementY() const { return m_y; }
|
---|
2345 | void setElementY(int a);
|
---|
2346 | inline bool hasElementY() const { return m_children & Y; }
|
---|
2347 | void clearElementY();
|
---|
2348 |
|
---|
2349 | inline int elementWidth() const { return m_width; }
|
---|
2350 | void setElementWidth(int a);
|
---|
2351 | inline bool hasElementWidth() const { return m_children & Width; }
|
---|
2352 | void clearElementWidth();
|
---|
2353 |
|
---|
2354 | inline int elementHeight() const { return m_height; }
|
---|
2355 | void setElementHeight(int a);
|
---|
2356 | inline bool hasElementHeight() const { return m_children & Height; }
|
---|
2357 | void clearElementHeight();
|
---|
2358 |
|
---|
2359 | private:
|
---|
2360 | QString m_text;
|
---|
2361 | void clear(bool clear_all = true);
|
---|
2362 |
|
---|
2363 | // attribute data
|
---|
2364 | // child element data
|
---|
2365 | uint m_children;
|
---|
2366 | int m_x;
|
---|
2367 | int m_y;
|
---|
2368 | int m_width;
|
---|
2369 | int m_height;
|
---|
2370 | enum Child {
|
---|
2371 | X = 1,
|
---|
2372 | Y = 2,
|
---|
2373 | Width = 4,
|
---|
2374 | Height = 8
|
---|
2375 | };
|
---|
2376 |
|
---|
2377 | DomRect(const DomRect &other);
|
---|
2378 | void operator = (const DomRect&other);
|
---|
2379 | };
|
---|
2380 |
|
---|
2381 | class QDESIGNER_UILIB_EXPORT DomLocale {
|
---|
2382 | public:
|
---|
2383 | DomLocale();
|
---|
2384 | ~DomLocale();
|
---|
2385 |
|
---|
2386 | void read(QXmlStreamReader &reader);
|
---|
2387 | #ifdef QUILOADER_QDOM_READ
|
---|
2388 | void read(const QDomElement &node);
|
---|
2389 | #endif
|
---|
2390 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2391 | inline QString text() const { return m_text; }
|
---|
2392 | inline void setText(const QString &s) { m_text = s; }
|
---|
2393 |
|
---|
2394 | // attribute accessors
|
---|
2395 | inline bool hasAttributeLanguage() const { return m_has_attr_language; }
|
---|
2396 | inline QString attributeLanguage() const { return m_attr_language; }
|
---|
2397 | inline void setAttributeLanguage(const QString& a) { m_attr_language = a; m_has_attr_language = true; }
|
---|
2398 | inline void clearAttributeLanguage() { m_has_attr_language = false; }
|
---|
2399 |
|
---|
2400 | inline bool hasAttributeCountry() const { return m_has_attr_country; }
|
---|
2401 | inline QString attributeCountry() const { return m_attr_country; }
|
---|
2402 | inline void setAttributeCountry(const QString& a) { m_attr_country = a; m_has_attr_country = true; }
|
---|
2403 | inline void clearAttributeCountry() { m_has_attr_country = false; }
|
---|
2404 |
|
---|
2405 | // child element accessors
|
---|
2406 | private:
|
---|
2407 | QString m_text;
|
---|
2408 | void clear(bool clear_all = true);
|
---|
2409 |
|
---|
2410 | // attribute data
|
---|
2411 | QString m_attr_language;
|
---|
2412 | bool m_has_attr_language;
|
---|
2413 |
|
---|
2414 | QString m_attr_country;
|
---|
2415 | bool m_has_attr_country;
|
---|
2416 |
|
---|
2417 | // child element data
|
---|
2418 | uint m_children;
|
---|
2419 |
|
---|
2420 | DomLocale(const DomLocale &other);
|
---|
2421 | void operator = (const DomLocale&other);
|
---|
2422 | };
|
---|
2423 |
|
---|
2424 | class QDESIGNER_UILIB_EXPORT DomSizePolicy {
|
---|
2425 | public:
|
---|
2426 | DomSizePolicy();
|
---|
2427 | ~DomSizePolicy();
|
---|
2428 |
|
---|
2429 | void read(QXmlStreamReader &reader);
|
---|
2430 | #ifdef QUILOADER_QDOM_READ
|
---|
2431 | void read(const QDomElement &node);
|
---|
2432 | #endif
|
---|
2433 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2434 | inline QString text() const { return m_text; }
|
---|
2435 | inline void setText(const QString &s) { m_text = s; }
|
---|
2436 |
|
---|
2437 | // attribute accessors
|
---|
2438 | inline bool hasAttributeHSizeType() const { return m_has_attr_hSizeType; }
|
---|
2439 | inline QString attributeHSizeType() const { return m_attr_hSizeType; }
|
---|
2440 | inline void setAttributeHSizeType(const QString& a) { m_attr_hSizeType = a; m_has_attr_hSizeType = true; }
|
---|
2441 | inline void clearAttributeHSizeType() { m_has_attr_hSizeType = false; }
|
---|
2442 |
|
---|
2443 | inline bool hasAttributeVSizeType() const { return m_has_attr_vSizeType; }
|
---|
2444 | inline QString attributeVSizeType() const { return m_attr_vSizeType; }
|
---|
2445 | inline void setAttributeVSizeType(const QString& a) { m_attr_vSizeType = a; m_has_attr_vSizeType = true; }
|
---|
2446 | inline void clearAttributeVSizeType() { m_has_attr_vSizeType = false; }
|
---|
2447 |
|
---|
2448 | // child element accessors
|
---|
2449 | inline int elementHSizeType() const { return m_hSizeType; }
|
---|
2450 | void setElementHSizeType(int a);
|
---|
2451 | inline bool hasElementHSizeType() const { return m_children & HSizeType; }
|
---|
2452 | void clearElementHSizeType();
|
---|
2453 |
|
---|
2454 | inline int elementVSizeType() const { return m_vSizeType; }
|
---|
2455 | void setElementVSizeType(int a);
|
---|
2456 | inline bool hasElementVSizeType() const { return m_children & VSizeType; }
|
---|
2457 | void clearElementVSizeType();
|
---|
2458 |
|
---|
2459 | inline int elementHorStretch() const { return m_horStretch; }
|
---|
2460 | void setElementHorStretch(int a);
|
---|
2461 | inline bool hasElementHorStretch() const { return m_children & HorStretch; }
|
---|
2462 | void clearElementHorStretch();
|
---|
2463 |
|
---|
2464 | inline int elementVerStretch() const { return m_verStretch; }
|
---|
2465 | void setElementVerStretch(int a);
|
---|
2466 | inline bool hasElementVerStretch() const { return m_children & VerStretch; }
|
---|
2467 | void clearElementVerStretch();
|
---|
2468 |
|
---|
2469 | private:
|
---|
2470 | QString m_text;
|
---|
2471 | void clear(bool clear_all = true);
|
---|
2472 |
|
---|
2473 | // attribute data
|
---|
2474 | QString m_attr_hSizeType;
|
---|
2475 | bool m_has_attr_hSizeType;
|
---|
2476 |
|
---|
2477 | QString m_attr_vSizeType;
|
---|
2478 | bool m_has_attr_vSizeType;
|
---|
2479 |
|
---|
2480 | // child element data
|
---|
2481 | uint m_children;
|
---|
2482 | int m_hSizeType;
|
---|
2483 | int m_vSizeType;
|
---|
2484 | int m_horStretch;
|
---|
2485 | int m_verStretch;
|
---|
2486 | enum Child {
|
---|
2487 | HSizeType = 1,
|
---|
2488 | VSizeType = 2,
|
---|
2489 | HorStretch = 4,
|
---|
2490 | VerStretch = 8
|
---|
2491 | };
|
---|
2492 |
|
---|
2493 | DomSizePolicy(const DomSizePolicy &other);
|
---|
2494 | void operator = (const DomSizePolicy&other);
|
---|
2495 | };
|
---|
2496 |
|
---|
2497 | class QDESIGNER_UILIB_EXPORT DomSize {
|
---|
2498 | public:
|
---|
2499 | DomSize();
|
---|
2500 | ~DomSize();
|
---|
2501 |
|
---|
2502 | void read(QXmlStreamReader &reader);
|
---|
2503 | #ifdef QUILOADER_QDOM_READ
|
---|
2504 | void read(const QDomElement &node);
|
---|
2505 | #endif
|
---|
2506 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2507 | inline QString text() const { return m_text; }
|
---|
2508 | inline void setText(const QString &s) { m_text = s; }
|
---|
2509 |
|
---|
2510 | // attribute accessors
|
---|
2511 | // child element accessors
|
---|
2512 | inline int elementWidth() const { return m_width; }
|
---|
2513 | void setElementWidth(int a);
|
---|
2514 | inline bool hasElementWidth() const { return m_children & Width; }
|
---|
2515 | void clearElementWidth();
|
---|
2516 |
|
---|
2517 | inline int elementHeight() const { return m_height; }
|
---|
2518 | void setElementHeight(int a);
|
---|
2519 | inline bool hasElementHeight() const { return m_children & Height; }
|
---|
2520 | void clearElementHeight();
|
---|
2521 |
|
---|
2522 | private:
|
---|
2523 | QString m_text;
|
---|
2524 | void clear(bool clear_all = true);
|
---|
2525 |
|
---|
2526 | // attribute data
|
---|
2527 | // child element data
|
---|
2528 | uint m_children;
|
---|
2529 | int m_width;
|
---|
2530 | int m_height;
|
---|
2531 | enum Child {
|
---|
2532 | Width = 1,
|
---|
2533 | Height = 2
|
---|
2534 | };
|
---|
2535 |
|
---|
2536 | DomSize(const DomSize &other);
|
---|
2537 | void operator = (const DomSize&other);
|
---|
2538 | };
|
---|
2539 |
|
---|
2540 | class QDESIGNER_UILIB_EXPORT DomDate {
|
---|
2541 | public:
|
---|
2542 | DomDate();
|
---|
2543 | ~DomDate();
|
---|
2544 |
|
---|
2545 | void read(QXmlStreamReader &reader);
|
---|
2546 | #ifdef QUILOADER_QDOM_READ
|
---|
2547 | void read(const QDomElement &node);
|
---|
2548 | #endif
|
---|
2549 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2550 | inline QString text() const { return m_text; }
|
---|
2551 | inline void setText(const QString &s) { m_text = s; }
|
---|
2552 |
|
---|
2553 | // attribute accessors
|
---|
2554 | // child element accessors
|
---|
2555 | inline int elementYear() const { return m_year; }
|
---|
2556 | void setElementYear(int a);
|
---|
2557 | inline bool hasElementYear() const { return m_children & Year; }
|
---|
2558 | void clearElementYear();
|
---|
2559 |
|
---|
2560 | inline int elementMonth() const { return m_month; }
|
---|
2561 | void setElementMonth(int a);
|
---|
2562 | inline bool hasElementMonth() const { return m_children & Month; }
|
---|
2563 | void clearElementMonth();
|
---|
2564 |
|
---|
2565 | inline int elementDay() const { return m_day; }
|
---|
2566 | void setElementDay(int a);
|
---|
2567 | inline bool hasElementDay() const { return m_children & Day; }
|
---|
2568 | void clearElementDay();
|
---|
2569 |
|
---|
2570 | private:
|
---|
2571 | QString m_text;
|
---|
2572 | void clear(bool clear_all = true);
|
---|
2573 |
|
---|
2574 | // attribute data
|
---|
2575 | // child element data
|
---|
2576 | uint m_children;
|
---|
2577 | int m_year;
|
---|
2578 | int m_month;
|
---|
2579 | int m_day;
|
---|
2580 | enum Child {
|
---|
2581 | Year = 1,
|
---|
2582 | Month = 2,
|
---|
2583 | Day = 4
|
---|
2584 | };
|
---|
2585 |
|
---|
2586 | DomDate(const DomDate &other);
|
---|
2587 | void operator = (const DomDate&other);
|
---|
2588 | };
|
---|
2589 |
|
---|
2590 | class QDESIGNER_UILIB_EXPORT DomTime {
|
---|
2591 | public:
|
---|
2592 | DomTime();
|
---|
2593 | ~DomTime();
|
---|
2594 |
|
---|
2595 | void read(QXmlStreamReader &reader);
|
---|
2596 | #ifdef QUILOADER_QDOM_READ
|
---|
2597 | void read(const QDomElement &node);
|
---|
2598 | #endif
|
---|
2599 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2600 | inline QString text() const { return m_text; }
|
---|
2601 | inline void setText(const QString &s) { m_text = s; }
|
---|
2602 |
|
---|
2603 | // attribute accessors
|
---|
2604 | // child element accessors
|
---|
2605 | inline int elementHour() const { return m_hour; }
|
---|
2606 | void setElementHour(int a);
|
---|
2607 | inline bool hasElementHour() const { return m_children & Hour; }
|
---|
2608 | void clearElementHour();
|
---|
2609 |
|
---|
2610 | inline int elementMinute() const { return m_minute; }
|
---|
2611 | void setElementMinute(int a);
|
---|
2612 | inline bool hasElementMinute() const { return m_children & Minute; }
|
---|
2613 | void clearElementMinute();
|
---|
2614 |
|
---|
2615 | inline int elementSecond() const { return m_second; }
|
---|
2616 | void setElementSecond(int a);
|
---|
2617 | inline bool hasElementSecond() const { return m_children & Second; }
|
---|
2618 | void clearElementSecond();
|
---|
2619 |
|
---|
2620 | private:
|
---|
2621 | QString m_text;
|
---|
2622 | void clear(bool clear_all = true);
|
---|
2623 |
|
---|
2624 | // attribute data
|
---|
2625 | // child element data
|
---|
2626 | uint m_children;
|
---|
2627 | int m_hour;
|
---|
2628 | int m_minute;
|
---|
2629 | int m_second;
|
---|
2630 | enum Child {
|
---|
2631 | Hour = 1,
|
---|
2632 | Minute = 2,
|
---|
2633 | Second = 4
|
---|
2634 | };
|
---|
2635 |
|
---|
2636 | DomTime(const DomTime &other);
|
---|
2637 | void operator = (const DomTime&other);
|
---|
2638 | };
|
---|
2639 |
|
---|
2640 | class QDESIGNER_UILIB_EXPORT DomDateTime {
|
---|
2641 | public:
|
---|
2642 | DomDateTime();
|
---|
2643 | ~DomDateTime();
|
---|
2644 |
|
---|
2645 | void read(QXmlStreamReader &reader);
|
---|
2646 | #ifdef QUILOADER_QDOM_READ
|
---|
2647 | void read(const QDomElement &node);
|
---|
2648 | #endif
|
---|
2649 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2650 | inline QString text() const { return m_text; }
|
---|
2651 | inline void setText(const QString &s) { m_text = s; }
|
---|
2652 |
|
---|
2653 | // attribute accessors
|
---|
2654 | // child element accessors
|
---|
2655 | inline int elementHour() const { return m_hour; }
|
---|
2656 | void setElementHour(int a);
|
---|
2657 | inline bool hasElementHour() const { return m_children & Hour; }
|
---|
2658 | void clearElementHour();
|
---|
2659 |
|
---|
2660 | inline int elementMinute() const { return m_minute; }
|
---|
2661 | void setElementMinute(int a);
|
---|
2662 | inline bool hasElementMinute() const { return m_children & Minute; }
|
---|
2663 | void clearElementMinute();
|
---|
2664 |
|
---|
2665 | inline int elementSecond() const { return m_second; }
|
---|
2666 | void setElementSecond(int a);
|
---|
2667 | inline bool hasElementSecond() const { return m_children & Second; }
|
---|
2668 | void clearElementSecond();
|
---|
2669 |
|
---|
2670 | inline int elementYear() const { return m_year; }
|
---|
2671 | void setElementYear(int a);
|
---|
2672 | inline bool hasElementYear() const { return m_children & Year; }
|
---|
2673 | void clearElementYear();
|
---|
2674 |
|
---|
2675 | inline int elementMonth() const { return m_month; }
|
---|
2676 | void setElementMonth(int a);
|
---|
2677 | inline bool hasElementMonth() const { return m_children & Month; }
|
---|
2678 | void clearElementMonth();
|
---|
2679 |
|
---|
2680 | inline int elementDay() const { return m_day; }
|
---|
2681 | void setElementDay(int a);
|
---|
2682 | inline bool hasElementDay() const { return m_children & Day; }
|
---|
2683 | void clearElementDay();
|
---|
2684 |
|
---|
2685 | private:
|
---|
2686 | QString m_text;
|
---|
2687 | void clear(bool clear_all = true);
|
---|
2688 |
|
---|
2689 | // attribute data
|
---|
2690 | // child element data
|
---|
2691 | uint m_children;
|
---|
2692 | int m_hour;
|
---|
2693 | int m_minute;
|
---|
2694 | int m_second;
|
---|
2695 | int m_year;
|
---|
2696 | int m_month;
|
---|
2697 | int m_day;
|
---|
2698 | enum Child {
|
---|
2699 | Hour = 1,
|
---|
2700 | Minute = 2,
|
---|
2701 | Second = 4,
|
---|
2702 | Year = 8,
|
---|
2703 | Month = 16,
|
---|
2704 | Day = 32
|
---|
2705 | };
|
---|
2706 |
|
---|
2707 | DomDateTime(const DomDateTime &other);
|
---|
2708 | void operator = (const DomDateTime&other);
|
---|
2709 | };
|
---|
2710 |
|
---|
2711 | class QDESIGNER_UILIB_EXPORT DomStringList {
|
---|
2712 | public:
|
---|
2713 | DomStringList();
|
---|
2714 | ~DomStringList();
|
---|
2715 |
|
---|
2716 | void read(QXmlStreamReader &reader);
|
---|
2717 | #ifdef QUILOADER_QDOM_READ
|
---|
2718 | void read(const QDomElement &node);
|
---|
2719 | #endif
|
---|
2720 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2721 | inline QString text() const { return m_text; }
|
---|
2722 | inline void setText(const QString &s) { m_text = s; }
|
---|
2723 |
|
---|
2724 | // attribute accessors
|
---|
2725 | // child element accessors
|
---|
2726 | inline QStringList elementString() const { return m_string; }
|
---|
2727 | void setElementString(const QStringList& a);
|
---|
2728 |
|
---|
2729 | private:
|
---|
2730 | QString m_text;
|
---|
2731 | void clear(bool clear_all = true);
|
---|
2732 |
|
---|
2733 | // attribute data
|
---|
2734 | // child element data
|
---|
2735 | uint m_children;
|
---|
2736 | QStringList m_string;
|
---|
2737 | enum Child {
|
---|
2738 | String = 1
|
---|
2739 | };
|
---|
2740 |
|
---|
2741 | DomStringList(const DomStringList &other);
|
---|
2742 | void operator = (const DomStringList&other);
|
---|
2743 | };
|
---|
2744 |
|
---|
2745 | class QDESIGNER_UILIB_EXPORT DomResourcePixmap {
|
---|
2746 | public:
|
---|
2747 | DomResourcePixmap();
|
---|
2748 | ~DomResourcePixmap();
|
---|
2749 |
|
---|
2750 | void read(QXmlStreamReader &reader);
|
---|
2751 | #ifdef QUILOADER_QDOM_READ
|
---|
2752 | void read(const QDomElement &node);
|
---|
2753 | #endif
|
---|
2754 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2755 | inline QString text() const { return m_text; }
|
---|
2756 | inline void setText(const QString &s) { m_text = s; }
|
---|
2757 |
|
---|
2758 | // attribute accessors
|
---|
2759 | inline bool hasAttributeResource() const { return m_has_attr_resource; }
|
---|
2760 | inline QString attributeResource() const { return m_attr_resource; }
|
---|
2761 | inline void setAttributeResource(const QString& a) { m_attr_resource = a; m_has_attr_resource = true; }
|
---|
2762 | inline void clearAttributeResource() { m_has_attr_resource = false; }
|
---|
2763 |
|
---|
2764 | inline bool hasAttributeAlias() const { return m_has_attr_alias; }
|
---|
2765 | inline QString attributeAlias() const { return m_attr_alias; }
|
---|
2766 | inline void setAttributeAlias(const QString& a) { m_attr_alias = a; m_has_attr_alias = true; }
|
---|
2767 | inline void clearAttributeAlias() { m_has_attr_alias = false; }
|
---|
2768 |
|
---|
2769 | // child element accessors
|
---|
2770 | private:
|
---|
2771 | QString m_text;
|
---|
2772 | void clear(bool clear_all = true);
|
---|
2773 |
|
---|
2774 | // attribute data
|
---|
2775 | QString m_attr_resource;
|
---|
2776 | bool m_has_attr_resource;
|
---|
2777 |
|
---|
2778 | QString m_attr_alias;
|
---|
2779 | bool m_has_attr_alias;
|
---|
2780 |
|
---|
2781 | // child element data
|
---|
2782 | uint m_children;
|
---|
2783 |
|
---|
2784 | DomResourcePixmap(const DomResourcePixmap &other);
|
---|
2785 | void operator = (const DomResourcePixmap&other);
|
---|
2786 | };
|
---|
2787 |
|
---|
2788 | class QDESIGNER_UILIB_EXPORT DomResourceIcon {
|
---|
2789 | public:
|
---|
2790 | DomResourceIcon();
|
---|
2791 | ~DomResourceIcon();
|
---|
2792 |
|
---|
2793 | void read(QXmlStreamReader &reader);
|
---|
2794 | #ifdef QUILOADER_QDOM_READ
|
---|
2795 | void read(const QDomElement &node);
|
---|
2796 | #endif
|
---|
2797 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2798 | inline QString text() const { return m_text; }
|
---|
2799 | inline void setText(const QString &s) { m_text = s; }
|
---|
2800 |
|
---|
2801 | // attribute accessors
|
---|
2802 | inline bool hasAttributeResource() const { return m_has_attr_resource; }
|
---|
2803 | inline QString attributeResource() const { return m_attr_resource; }
|
---|
2804 | inline void setAttributeResource(const QString& a) { m_attr_resource = a; m_has_attr_resource = true; }
|
---|
2805 | inline void clearAttributeResource() { m_has_attr_resource = false; }
|
---|
2806 |
|
---|
2807 | // child element accessors
|
---|
2808 | inline DomResourcePixmap* elementNormalOff() const { return m_normalOff; }
|
---|
2809 | DomResourcePixmap* takeElementNormalOff();
|
---|
2810 | void setElementNormalOff(DomResourcePixmap* a);
|
---|
2811 | inline bool hasElementNormalOff() const { return m_children & NormalOff; }
|
---|
2812 | void clearElementNormalOff();
|
---|
2813 |
|
---|
2814 | inline DomResourcePixmap* elementNormalOn() const { return m_normalOn; }
|
---|
2815 | DomResourcePixmap* takeElementNormalOn();
|
---|
2816 | void setElementNormalOn(DomResourcePixmap* a);
|
---|
2817 | inline bool hasElementNormalOn() const { return m_children & NormalOn; }
|
---|
2818 | void clearElementNormalOn();
|
---|
2819 |
|
---|
2820 | inline DomResourcePixmap* elementDisabledOff() const { return m_disabledOff; }
|
---|
2821 | DomResourcePixmap* takeElementDisabledOff();
|
---|
2822 | void setElementDisabledOff(DomResourcePixmap* a);
|
---|
2823 | inline bool hasElementDisabledOff() const { return m_children & DisabledOff; }
|
---|
2824 | void clearElementDisabledOff();
|
---|
2825 |
|
---|
2826 | inline DomResourcePixmap* elementDisabledOn() const { return m_disabledOn; }
|
---|
2827 | DomResourcePixmap* takeElementDisabledOn();
|
---|
2828 | void setElementDisabledOn(DomResourcePixmap* a);
|
---|
2829 | inline bool hasElementDisabledOn() const { return m_children & DisabledOn; }
|
---|
2830 | void clearElementDisabledOn();
|
---|
2831 |
|
---|
2832 | inline DomResourcePixmap* elementActiveOff() const { return m_activeOff; }
|
---|
2833 | DomResourcePixmap* takeElementActiveOff();
|
---|
2834 | void setElementActiveOff(DomResourcePixmap* a);
|
---|
2835 | inline bool hasElementActiveOff() const { return m_children & ActiveOff; }
|
---|
2836 | void clearElementActiveOff();
|
---|
2837 |
|
---|
2838 | inline DomResourcePixmap* elementActiveOn() const { return m_activeOn; }
|
---|
2839 | DomResourcePixmap* takeElementActiveOn();
|
---|
2840 | void setElementActiveOn(DomResourcePixmap* a);
|
---|
2841 | inline bool hasElementActiveOn() const { return m_children & ActiveOn; }
|
---|
2842 | void clearElementActiveOn();
|
---|
2843 |
|
---|
2844 | inline DomResourcePixmap* elementSelectedOff() const { return m_selectedOff; }
|
---|
2845 | DomResourcePixmap* takeElementSelectedOff();
|
---|
2846 | void setElementSelectedOff(DomResourcePixmap* a);
|
---|
2847 | inline bool hasElementSelectedOff() const { return m_children & SelectedOff; }
|
---|
2848 | void clearElementSelectedOff();
|
---|
2849 |
|
---|
2850 | inline DomResourcePixmap* elementSelectedOn() const { return m_selectedOn; }
|
---|
2851 | DomResourcePixmap* takeElementSelectedOn();
|
---|
2852 | void setElementSelectedOn(DomResourcePixmap* a);
|
---|
2853 | inline bool hasElementSelectedOn() const { return m_children & SelectedOn; }
|
---|
2854 | void clearElementSelectedOn();
|
---|
2855 |
|
---|
2856 | private:
|
---|
2857 | QString m_text;
|
---|
2858 | void clear(bool clear_all = true);
|
---|
2859 |
|
---|
2860 | // attribute data
|
---|
2861 | QString m_attr_resource;
|
---|
2862 | bool m_has_attr_resource;
|
---|
2863 |
|
---|
2864 | // child element data
|
---|
2865 | uint m_children;
|
---|
2866 | DomResourcePixmap* m_normalOff;
|
---|
2867 | DomResourcePixmap* m_normalOn;
|
---|
2868 | DomResourcePixmap* m_disabledOff;
|
---|
2869 | DomResourcePixmap* m_disabledOn;
|
---|
2870 | DomResourcePixmap* m_activeOff;
|
---|
2871 | DomResourcePixmap* m_activeOn;
|
---|
2872 | DomResourcePixmap* m_selectedOff;
|
---|
2873 | DomResourcePixmap* m_selectedOn;
|
---|
2874 | enum Child {
|
---|
2875 | NormalOff = 1,
|
---|
2876 | NormalOn = 2,
|
---|
2877 | DisabledOff = 4,
|
---|
2878 | DisabledOn = 8,
|
---|
2879 | ActiveOff = 16,
|
---|
2880 | ActiveOn = 32,
|
---|
2881 | SelectedOff = 64,
|
---|
2882 | SelectedOn = 128
|
---|
2883 | };
|
---|
2884 |
|
---|
2885 | DomResourceIcon(const DomResourceIcon &other);
|
---|
2886 | void operator = (const DomResourceIcon&other);
|
---|
2887 | };
|
---|
2888 |
|
---|
2889 | class QDESIGNER_UILIB_EXPORT DomString {
|
---|
2890 | public:
|
---|
2891 | DomString();
|
---|
2892 | ~DomString();
|
---|
2893 |
|
---|
2894 | void read(QXmlStreamReader &reader);
|
---|
2895 | #ifdef QUILOADER_QDOM_READ
|
---|
2896 | void read(const QDomElement &node);
|
---|
2897 | #endif
|
---|
2898 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2899 | inline QString text() const { return m_text; }
|
---|
2900 | inline void setText(const QString &s) { m_text = s; }
|
---|
2901 |
|
---|
2902 | // attribute accessors
|
---|
2903 | inline bool hasAttributeNotr() const { return m_has_attr_notr; }
|
---|
2904 | inline QString attributeNotr() const { return m_attr_notr; }
|
---|
2905 | inline void setAttributeNotr(const QString& a) { m_attr_notr = a; m_has_attr_notr = true; }
|
---|
2906 | inline void clearAttributeNotr() { m_has_attr_notr = false; }
|
---|
2907 |
|
---|
2908 | inline bool hasAttributeComment() const { return m_has_attr_comment; }
|
---|
2909 | inline QString attributeComment() const { return m_attr_comment; }
|
---|
2910 | inline void setAttributeComment(const QString& a) { m_attr_comment = a; m_has_attr_comment = true; }
|
---|
2911 | inline void clearAttributeComment() { m_has_attr_comment = false; }
|
---|
2912 |
|
---|
2913 | inline bool hasAttributeExtraComment() const { return m_has_attr_extraComment; }
|
---|
2914 | inline QString attributeExtraComment() const { return m_attr_extraComment; }
|
---|
2915 | inline void setAttributeExtraComment(const QString& a) { m_attr_extraComment = a; m_has_attr_extraComment = true; }
|
---|
2916 | inline void clearAttributeExtraComment() { m_has_attr_extraComment = false; }
|
---|
2917 |
|
---|
2918 | // child element accessors
|
---|
2919 | private:
|
---|
2920 | QString m_text;
|
---|
2921 | void clear(bool clear_all = true);
|
---|
2922 |
|
---|
2923 | // attribute data
|
---|
2924 | QString m_attr_notr;
|
---|
2925 | bool m_has_attr_notr;
|
---|
2926 |
|
---|
2927 | QString m_attr_comment;
|
---|
2928 | bool m_has_attr_comment;
|
---|
2929 |
|
---|
2930 | QString m_attr_extraComment;
|
---|
2931 | bool m_has_attr_extraComment;
|
---|
2932 |
|
---|
2933 | // child element data
|
---|
2934 | uint m_children;
|
---|
2935 |
|
---|
2936 | DomString(const DomString &other);
|
---|
2937 | void operator = (const DomString&other);
|
---|
2938 | };
|
---|
2939 |
|
---|
2940 | class QDESIGNER_UILIB_EXPORT DomPointF {
|
---|
2941 | public:
|
---|
2942 | DomPointF();
|
---|
2943 | ~DomPointF();
|
---|
2944 |
|
---|
2945 | void read(QXmlStreamReader &reader);
|
---|
2946 | #ifdef QUILOADER_QDOM_READ
|
---|
2947 | void read(const QDomElement &node);
|
---|
2948 | #endif
|
---|
2949 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2950 | inline QString text() const { return m_text; }
|
---|
2951 | inline void setText(const QString &s) { m_text = s; }
|
---|
2952 |
|
---|
2953 | // attribute accessors
|
---|
2954 | // child element accessors
|
---|
2955 | inline double elementX() const { return m_x; }
|
---|
2956 | void setElementX(double a);
|
---|
2957 | inline bool hasElementX() const { return m_children & X; }
|
---|
2958 | void clearElementX();
|
---|
2959 |
|
---|
2960 | inline double elementY() const { return m_y; }
|
---|
2961 | void setElementY(double a);
|
---|
2962 | inline bool hasElementY() const { return m_children & Y; }
|
---|
2963 | void clearElementY();
|
---|
2964 |
|
---|
2965 | private:
|
---|
2966 | QString m_text;
|
---|
2967 | void clear(bool clear_all = true);
|
---|
2968 |
|
---|
2969 | // attribute data
|
---|
2970 | // child element data
|
---|
2971 | uint m_children;
|
---|
2972 | double m_x;
|
---|
2973 | double m_y;
|
---|
2974 | enum Child {
|
---|
2975 | X = 1,
|
---|
2976 | Y = 2
|
---|
2977 | };
|
---|
2978 |
|
---|
2979 | DomPointF(const DomPointF &other);
|
---|
2980 | void operator = (const DomPointF&other);
|
---|
2981 | };
|
---|
2982 |
|
---|
2983 | class QDESIGNER_UILIB_EXPORT DomRectF {
|
---|
2984 | public:
|
---|
2985 | DomRectF();
|
---|
2986 | ~DomRectF();
|
---|
2987 |
|
---|
2988 | void read(QXmlStreamReader &reader);
|
---|
2989 | #ifdef QUILOADER_QDOM_READ
|
---|
2990 | void read(const QDomElement &node);
|
---|
2991 | #endif
|
---|
2992 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
2993 | inline QString text() const { return m_text; }
|
---|
2994 | inline void setText(const QString &s) { m_text = s; }
|
---|
2995 |
|
---|
2996 | // attribute accessors
|
---|
2997 | // child element accessors
|
---|
2998 | inline double elementX() const { return m_x; }
|
---|
2999 | void setElementX(double a);
|
---|
3000 | inline bool hasElementX() const { return m_children & X; }
|
---|
3001 | void clearElementX();
|
---|
3002 |
|
---|
3003 | inline double elementY() const { return m_y; }
|
---|
3004 | void setElementY(double a);
|
---|
3005 | inline bool hasElementY() const { return m_children & Y; }
|
---|
3006 | void clearElementY();
|
---|
3007 |
|
---|
3008 | inline double elementWidth() const { return m_width; }
|
---|
3009 | void setElementWidth(double a);
|
---|
3010 | inline bool hasElementWidth() const { return m_children & Width; }
|
---|
3011 | void clearElementWidth();
|
---|
3012 |
|
---|
3013 | inline double elementHeight() const { return m_height; }
|
---|
3014 | void setElementHeight(double a);
|
---|
3015 | inline bool hasElementHeight() const { return m_children & Height; }
|
---|
3016 | void clearElementHeight();
|
---|
3017 |
|
---|
3018 | private:
|
---|
3019 | QString m_text;
|
---|
3020 | void clear(bool clear_all = true);
|
---|
3021 |
|
---|
3022 | // attribute data
|
---|
3023 | // child element data
|
---|
3024 | uint m_children;
|
---|
3025 | double m_x;
|
---|
3026 | double m_y;
|
---|
3027 | double m_width;
|
---|
3028 | double m_height;
|
---|
3029 | enum Child {
|
---|
3030 | X = 1,
|
---|
3031 | Y = 2,
|
---|
3032 | Width = 4,
|
---|
3033 | Height = 8
|
---|
3034 | };
|
---|
3035 |
|
---|
3036 | DomRectF(const DomRectF &other);
|
---|
3037 | void operator = (const DomRectF&other);
|
---|
3038 | };
|
---|
3039 |
|
---|
3040 | class QDESIGNER_UILIB_EXPORT DomSizeF {
|
---|
3041 | public:
|
---|
3042 | DomSizeF();
|
---|
3043 | ~DomSizeF();
|
---|
3044 |
|
---|
3045 | void read(QXmlStreamReader &reader);
|
---|
3046 | #ifdef QUILOADER_QDOM_READ
|
---|
3047 | void read(const QDomElement &node);
|
---|
3048 | #endif
|
---|
3049 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3050 | inline QString text() const { return m_text; }
|
---|
3051 | inline void setText(const QString &s) { m_text = s; }
|
---|
3052 |
|
---|
3053 | // attribute accessors
|
---|
3054 | // child element accessors
|
---|
3055 | inline double elementWidth() const { return m_width; }
|
---|
3056 | void setElementWidth(double a);
|
---|
3057 | inline bool hasElementWidth() const { return m_children & Width; }
|
---|
3058 | void clearElementWidth();
|
---|
3059 |
|
---|
3060 | inline double elementHeight() const { return m_height; }
|
---|
3061 | void setElementHeight(double a);
|
---|
3062 | inline bool hasElementHeight() const { return m_children & Height; }
|
---|
3063 | void clearElementHeight();
|
---|
3064 |
|
---|
3065 | private:
|
---|
3066 | QString m_text;
|
---|
3067 | void clear(bool clear_all = true);
|
---|
3068 |
|
---|
3069 | // attribute data
|
---|
3070 | // child element data
|
---|
3071 | uint m_children;
|
---|
3072 | double m_width;
|
---|
3073 | double m_height;
|
---|
3074 | enum Child {
|
---|
3075 | Width = 1,
|
---|
3076 | Height = 2
|
---|
3077 | };
|
---|
3078 |
|
---|
3079 | DomSizeF(const DomSizeF &other);
|
---|
3080 | void operator = (const DomSizeF&other);
|
---|
3081 | };
|
---|
3082 |
|
---|
3083 | class QDESIGNER_UILIB_EXPORT DomChar {
|
---|
3084 | public:
|
---|
3085 | DomChar();
|
---|
3086 | ~DomChar();
|
---|
3087 |
|
---|
3088 | void read(QXmlStreamReader &reader);
|
---|
3089 | #ifdef QUILOADER_QDOM_READ
|
---|
3090 | void read(const QDomElement &node);
|
---|
3091 | #endif
|
---|
3092 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3093 | inline QString text() const { return m_text; }
|
---|
3094 | inline void setText(const QString &s) { m_text = s; }
|
---|
3095 |
|
---|
3096 | // attribute accessors
|
---|
3097 | // child element accessors
|
---|
3098 | inline int elementUnicode() const { return m_unicode; }
|
---|
3099 | void setElementUnicode(int a);
|
---|
3100 | inline bool hasElementUnicode() const { return m_children & Unicode; }
|
---|
3101 | void clearElementUnicode();
|
---|
3102 |
|
---|
3103 | private:
|
---|
3104 | QString m_text;
|
---|
3105 | void clear(bool clear_all = true);
|
---|
3106 |
|
---|
3107 | // attribute data
|
---|
3108 | // child element data
|
---|
3109 | uint m_children;
|
---|
3110 | int m_unicode;
|
---|
3111 | enum Child {
|
---|
3112 | Unicode = 1
|
---|
3113 | };
|
---|
3114 |
|
---|
3115 | DomChar(const DomChar &other);
|
---|
3116 | void operator = (const DomChar&other);
|
---|
3117 | };
|
---|
3118 |
|
---|
3119 | class QDESIGNER_UILIB_EXPORT DomUrl {
|
---|
3120 | public:
|
---|
3121 | DomUrl();
|
---|
3122 | ~DomUrl();
|
---|
3123 |
|
---|
3124 | void read(QXmlStreamReader &reader);
|
---|
3125 | #ifdef QUILOADER_QDOM_READ
|
---|
3126 | void read(const QDomElement &node);
|
---|
3127 | #endif
|
---|
3128 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3129 | inline QString text() const { return m_text; }
|
---|
3130 | inline void setText(const QString &s) { m_text = s; }
|
---|
3131 |
|
---|
3132 | // attribute accessors
|
---|
3133 | // child element accessors
|
---|
3134 | inline DomString* elementString() const { return m_string; }
|
---|
3135 | DomString* takeElementString();
|
---|
3136 | void setElementString(DomString* a);
|
---|
3137 | inline bool hasElementString() const { return m_children & String; }
|
---|
3138 | void clearElementString();
|
---|
3139 |
|
---|
3140 | private:
|
---|
3141 | QString m_text;
|
---|
3142 | void clear(bool clear_all = true);
|
---|
3143 |
|
---|
3144 | // attribute data
|
---|
3145 | // child element data
|
---|
3146 | uint m_children;
|
---|
3147 | DomString* m_string;
|
---|
3148 | enum Child {
|
---|
3149 | String = 1
|
---|
3150 | };
|
---|
3151 |
|
---|
3152 | DomUrl(const DomUrl &other);
|
---|
3153 | void operator = (const DomUrl&other);
|
---|
3154 | };
|
---|
3155 |
|
---|
3156 | class QDESIGNER_UILIB_EXPORT DomProperty {
|
---|
3157 | public:
|
---|
3158 | DomProperty();
|
---|
3159 | ~DomProperty();
|
---|
3160 |
|
---|
3161 | void read(QXmlStreamReader &reader);
|
---|
3162 | #ifdef QUILOADER_QDOM_READ
|
---|
3163 | void read(const QDomElement &node);
|
---|
3164 | #endif
|
---|
3165 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3166 | inline QString text() const { return m_text; }
|
---|
3167 | inline void setText(const QString &s) { m_text = s; }
|
---|
3168 |
|
---|
3169 | // attribute accessors
|
---|
3170 | inline bool hasAttributeName() const { return m_has_attr_name; }
|
---|
3171 | inline QString attributeName() const { return m_attr_name; }
|
---|
3172 | inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
---|
3173 | inline void clearAttributeName() { m_has_attr_name = false; }
|
---|
3174 |
|
---|
3175 | inline bool hasAttributeStdset() const { return m_has_attr_stdset; }
|
---|
3176 | inline int attributeStdset() const { return m_attr_stdset; }
|
---|
3177 | inline void setAttributeStdset(int a) { m_attr_stdset = a; m_has_attr_stdset = true; }
|
---|
3178 | inline void clearAttributeStdset() { m_has_attr_stdset = false; }
|
---|
3179 |
|
---|
3180 | // child element accessors
|
---|
3181 | enum Kind { Unknown = 0, Bool, Color, Cstring, Cursor, CursorShape, Enum, Font, IconSet, Pixmap, Palette, Point, Rect, Set, Locale, SizePolicy, Size, String, StringList, Number, Float, Double, Date, Time, DateTime, PointF, RectF, SizeF, LongLong, Char, Url, UInt, ULongLong, Brush };
|
---|
3182 | inline Kind kind() const { return m_kind; }
|
---|
3183 |
|
---|
3184 | inline QString elementBool() const { return m_bool; }
|
---|
3185 | void setElementBool(const QString& a);
|
---|
3186 |
|
---|
3187 | inline DomColor* elementColor() const { return m_color; }
|
---|
3188 | DomColor* takeElementColor();
|
---|
3189 | void setElementColor(DomColor* a);
|
---|
3190 |
|
---|
3191 | inline QString elementCstring() const { return m_cstring; }
|
---|
3192 | void setElementCstring(const QString& a);
|
---|
3193 |
|
---|
3194 | inline int elementCursor() const { return m_cursor; }
|
---|
3195 | void setElementCursor(int a);
|
---|
3196 |
|
---|
3197 | inline QString elementCursorShape() const { return m_cursorShape; }
|
---|
3198 | void setElementCursorShape(const QString& a);
|
---|
3199 |
|
---|
3200 | inline QString elementEnum() const { return m_enum; }
|
---|
3201 | void setElementEnum(const QString& a);
|
---|
3202 |
|
---|
3203 | inline DomFont* elementFont() const { return m_font; }
|
---|
3204 | DomFont* takeElementFont();
|
---|
3205 | void setElementFont(DomFont* a);
|
---|
3206 |
|
---|
3207 | inline DomResourceIcon* elementIconSet() const { return m_iconSet; }
|
---|
3208 | DomResourceIcon* takeElementIconSet();
|
---|
3209 | void setElementIconSet(DomResourceIcon* a);
|
---|
3210 |
|
---|
3211 | inline DomResourcePixmap* elementPixmap() const { return m_pixmap; }
|
---|
3212 | DomResourcePixmap* takeElementPixmap();
|
---|
3213 | void setElementPixmap(DomResourcePixmap* a);
|
---|
3214 |
|
---|
3215 | inline DomPalette* elementPalette() const { return m_palette; }
|
---|
3216 | DomPalette* takeElementPalette();
|
---|
3217 | void setElementPalette(DomPalette* a);
|
---|
3218 |
|
---|
3219 | inline DomPoint* elementPoint() const { return m_point; }
|
---|
3220 | DomPoint* takeElementPoint();
|
---|
3221 | void setElementPoint(DomPoint* a);
|
---|
3222 |
|
---|
3223 | inline DomRect* elementRect() const { return m_rect; }
|
---|
3224 | DomRect* takeElementRect();
|
---|
3225 | void setElementRect(DomRect* a);
|
---|
3226 |
|
---|
3227 | inline QString elementSet() const { return m_set; }
|
---|
3228 | void setElementSet(const QString& a);
|
---|
3229 |
|
---|
3230 | inline DomLocale* elementLocale() const { return m_locale; }
|
---|
3231 | DomLocale* takeElementLocale();
|
---|
3232 | void setElementLocale(DomLocale* a);
|
---|
3233 |
|
---|
3234 | inline DomSizePolicy* elementSizePolicy() const { return m_sizePolicy; }
|
---|
3235 | DomSizePolicy* takeElementSizePolicy();
|
---|
3236 | void setElementSizePolicy(DomSizePolicy* a);
|
---|
3237 |
|
---|
3238 | inline DomSize* elementSize() const { return m_size; }
|
---|
3239 | DomSize* takeElementSize();
|
---|
3240 | void setElementSize(DomSize* a);
|
---|
3241 |
|
---|
3242 | inline DomString* elementString() const { return m_string; }
|
---|
3243 | DomString* takeElementString();
|
---|
3244 | void setElementString(DomString* a);
|
---|
3245 |
|
---|
3246 | inline DomStringList* elementStringList() const { return m_stringList; }
|
---|
3247 | DomStringList* takeElementStringList();
|
---|
3248 | void setElementStringList(DomStringList* a);
|
---|
3249 |
|
---|
3250 | inline int elementNumber() const { return m_number; }
|
---|
3251 | void setElementNumber(int a);
|
---|
3252 |
|
---|
3253 | inline float elementFloat() const { return m_float; }
|
---|
3254 | void setElementFloat(float a);
|
---|
3255 |
|
---|
3256 | inline double elementDouble() const { return m_double; }
|
---|
3257 | void setElementDouble(double a);
|
---|
3258 |
|
---|
3259 | inline DomDate* elementDate() const { return m_date; }
|
---|
3260 | DomDate* takeElementDate();
|
---|
3261 | void setElementDate(DomDate* a);
|
---|
3262 |
|
---|
3263 | inline DomTime* elementTime() const { return m_time; }
|
---|
3264 | DomTime* takeElementTime();
|
---|
3265 | void setElementTime(DomTime* a);
|
---|
3266 |
|
---|
3267 | inline DomDateTime* elementDateTime() const { return m_dateTime; }
|
---|
3268 | DomDateTime* takeElementDateTime();
|
---|
3269 | void setElementDateTime(DomDateTime* a);
|
---|
3270 |
|
---|
3271 | inline DomPointF* elementPointF() const { return m_pointF; }
|
---|
3272 | DomPointF* takeElementPointF();
|
---|
3273 | void setElementPointF(DomPointF* a);
|
---|
3274 |
|
---|
3275 | inline DomRectF* elementRectF() const { return m_rectF; }
|
---|
3276 | DomRectF* takeElementRectF();
|
---|
3277 | void setElementRectF(DomRectF* a);
|
---|
3278 |
|
---|
3279 | inline DomSizeF* elementSizeF() const { return m_sizeF; }
|
---|
3280 | DomSizeF* takeElementSizeF();
|
---|
3281 | void setElementSizeF(DomSizeF* a);
|
---|
3282 |
|
---|
3283 | inline qlonglong elementLongLong() const { return m_longLong; }
|
---|
3284 | void setElementLongLong(qlonglong a);
|
---|
3285 |
|
---|
3286 | inline DomChar* elementChar() const { return m_char; }
|
---|
3287 | DomChar* takeElementChar();
|
---|
3288 | void setElementChar(DomChar* a);
|
---|
3289 |
|
---|
3290 | inline DomUrl* elementUrl() const { return m_url; }
|
---|
3291 | DomUrl* takeElementUrl();
|
---|
3292 | void setElementUrl(DomUrl* a);
|
---|
3293 |
|
---|
3294 | inline uint elementUInt() const { return m_UInt; }
|
---|
3295 | void setElementUInt(uint a);
|
---|
3296 |
|
---|
3297 | inline qulonglong elementULongLong() const { return m_uLongLong; }
|
---|
3298 | void setElementULongLong(qulonglong a);
|
---|
3299 |
|
---|
3300 | inline DomBrush* elementBrush() const { return m_brush; }
|
---|
3301 | DomBrush* takeElementBrush();
|
---|
3302 | void setElementBrush(DomBrush* a);
|
---|
3303 |
|
---|
3304 | private:
|
---|
3305 | QString m_text;
|
---|
3306 | void clear(bool clear_all = true);
|
---|
3307 |
|
---|
3308 | // attribute data
|
---|
3309 | QString m_attr_name;
|
---|
3310 | bool m_has_attr_name;
|
---|
3311 |
|
---|
3312 | int m_attr_stdset;
|
---|
3313 | bool m_has_attr_stdset;
|
---|
3314 |
|
---|
3315 | // child element data
|
---|
3316 | Kind m_kind;
|
---|
3317 | QString m_bool;
|
---|
3318 | DomColor* m_color;
|
---|
3319 | QString m_cstring;
|
---|
3320 | int m_cursor;
|
---|
3321 | QString m_cursorShape;
|
---|
3322 | QString m_enum;
|
---|
3323 | DomFont* m_font;
|
---|
3324 | DomResourceIcon* m_iconSet;
|
---|
3325 | DomResourcePixmap* m_pixmap;
|
---|
3326 | DomPalette* m_palette;
|
---|
3327 | DomPoint* m_point;
|
---|
3328 | DomRect* m_rect;
|
---|
3329 | QString m_set;
|
---|
3330 | DomLocale* m_locale;
|
---|
3331 | DomSizePolicy* m_sizePolicy;
|
---|
3332 | DomSize* m_size;
|
---|
3333 | DomString* m_string;
|
---|
3334 | DomStringList* m_stringList;
|
---|
3335 | int m_number;
|
---|
3336 | float m_float;
|
---|
3337 | double m_double;
|
---|
3338 | DomDate* m_date;
|
---|
3339 | DomTime* m_time;
|
---|
3340 | DomDateTime* m_dateTime;
|
---|
3341 | DomPointF* m_pointF;
|
---|
3342 | DomRectF* m_rectF;
|
---|
3343 | DomSizeF* m_sizeF;
|
---|
3344 | qlonglong m_longLong;
|
---|
3345 | DomChar* m_char;
|
---|
3346 | DomUrl* m_url;
|
---|
3347 | uint m_UInt;
|
---|
3348 | qulonglong m_uLongLong;
|
---|
3349 | DomBrush* m_brush;
|
---|
3350 |
|
---|
3351 | DomProperty(const DomProperty &other);
|
---|
3352 | void operator = (const DomProperty&other);
|
---|
3353 | };
|
---|
3354 |
|
---|
3355 | class QDESIGNER_UILIB_EXPORT DomConnections {
|
---|
3356 | public:
|
---|
3357 | DomConnections();
|
---|
3358 | ~DomConnections();
|
---|
3359 |
|
---|
3360 | void read(QXmlStreamReader &reader);
|
---|
3361 | #ifdef QUILOADER_QDOM_READ
|
---|
3362 | void read(const QDomElement &node);
|
---|
3363 | #endif
|
---|
3364 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3365 | inline QString text() const { return m_text; }
|
---|
3366 | inline void setText(const QString &s) { m_text = s; }
|
---|
3367 |
|
---|
3368 | // attribute accessors
|
---|
3369 | // child element accessors
|
---|
3370 | inline QList<DomConnection*> elementConnection() const { return m_connection; }
|
---|
3371 | void setElementConnection(const QList<DomConnection*>& a);
|
---|
3372 |
|
---|
3373 | private:
|
---|
3374 | QString m_text;
|
---|
3375 | void clear(bool clear_all = true);
|
---|
3376 |
|
---|
3377 | // attribute data
|
---|
3378 | // child element data
|
---|
3379 | uint m_children;
|
---|
3380 | QList<DomConnection*> m_connection;
|
---|
3381 | enum Child {
|
---|
3382 | Connection = 1
|
---|
3383 | };
|
---|
3384 |
|
---|
3385 | DomConnections(const DomConnections &other);
|
---|
3386 | void operator = (const DomConnections&other);
|
---|
3387 | };
|
---|
3388 |
|
---|
3389 | class QDESIGNER_UILIB_EXPORT DomConnection {
|
---|
3390 | public:
|
---|
3391 | DomConnection();
|
---|
3392 | ~DomConnection();
|
---|
3393 |
|
---|
3394 | void read(QXmlStreamReader &reader);
|
---|
3395 | #ifdef QUILOADER_QDOM_READ
|
---|
3396 | void read(const QDomElement &node);
|
---|
3397 | #endif
|
---|
3398 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3399 | inline QString text() const { return m_text; }
|
---|
3400 | inline void setText(const QString &s) { m_text = s; }
|
---|
3401 |
|
---|
3402 | // attribute accessors
|
---|
3403 | // child element accessors
|
---|
3404 | inline QString elementSender() const { return m_sender; }
|
---|
3405 | void setElementSender(const QString& a);
|
---|
3406 | inline bool hasElementSender() const { return m_children & Sender; }
|
---|
3407 | void clearElementSender();
|
---|
3408 |
|
---|
3409 | inline QString elementSignal() const { return m_signal; }
|
---|
3410 | void setElementSignal(const QString& a);
|
---|
3411 | inline bool hasElementSignal() const { return m_children & Signal; }
|
---|
3412 | void clearElementSignal();
|
---|
3413 |
|
---|
3414 | inline QString elementReceiver() const { return m_receiver; }
|
---|
3415 | void setElementReceiver(const QString& a);
|
---|
3416 | inline bool hasElementReceiver() const { return m_children & Receiver; }
|
---|
3417 | void clearElementReceiver();
|
---|
3418 |
|
---|
3419 | inline QString elementSlot() const { return m_slot; }
|
---|
3420 | void setElementSlot(const QString& a);
|
---|
3421 | inline bool hasElementSlot() const { return m_children & Slot; }
|
---|
3422 | void clearElementSlot();
|
---|
3423 |
|
---|
3424 | inline DomConnectionHints* elementHints() const { return m_hints; }
|
---|
3425 | DomConnectionHints* takeElementHints();
|
---|
3426 | void setElementHints(DomConnectionHints* a);
|
---|
3427 | inline bool hasElementHints() const { return m_children & Hints; }
|
---|
3428 | void clearElementHints();
|
---|
3429 |
|
---|
3430 | private:
|
---|
3431 | QString m_text;
|
---|
3432 | void clear(bool clear_all = true);
|
---|
3433 |
|
---|
3434 | // attribute data
|
---|
3435 | // child element data
|
---|
3436 | uint m_children;
|
---|
3437 | QString m_sender;
|
---|
3438 | QString m_signal;
|
---|
3439 | QString m_receiver;
|
---|
3440 | QString m_slot;
|
---|
3441 | DomConnectionHints* m_hints;
|
---|
3442 | enum Child {
|
---|
3443 | Sender = 1,
|
---|
3444 | Signal = 2,
|
---|
3445 | Receiver = 4,
|
---|
3446 | Slot = 8,
|
---|
3447 | Hints = 16
|
---|
3448 | };
|
---|
3449 |
|
---|
3450 | DomConnection(const DomConnection &other);
|
---|
3451 | void operator = (const DomConnection&other);
|
---|
3452 | };
|
---|
3453 |
|
---|
3454 | class QDESIGNER_UILIB_EXPORT DomConnectionHints {
|
---|
3455 | public:
|
---|
3456 | DomConnectionHints();
|
---|
3457 | ~DomConnectionHints();
|
---|
3458 |
|
---|
3459 | void read(QXmlStreamReader &reader);
|
---|
3460 | #ifdef QUILOADER_QDOM_READ
|
---|
3461 | void read(const QDomElement &node);
|
---|
3462 | #endif
|
---|
3463 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3464 | inline QString text() const { return m_text; }
|
---|
3465 | inline void setText(const QString &s) { m_text = s; }
|
---|
3466 |
|
---|
3467 | // attribute accessors
|
---|
3468 | // child element accessors
|
---|
3469 | inline QList<DomConnectionHint*> elementHint() const { return m_hint; }
|
---|
3470 | void setElementHint(const QList<DomConnectionHint*>& a);
|
---|
3471 |
|
---|
3472 | private:
|
---|
3473 | QString m_text;
|
---|
3474 | void clear(bool clear_all = true);
|
---|
3475 |
|
---|
3476 | // attribute data
|
---|
3477 | // child element data
|
---|
3478 | uint m_children;
|
---|
3479 | QList<DomConnectionHint*> m_hint;
|
---|
3480 | enum Child {
|
---|
3481 | Hint = 1
|
---|
3482 | };
|
---|
3483 |
|
---|
3484 | DomConnectionHints(const DomConnectionHints &other);
|
---|
3485 | void operator = (const DomConnectionHints&other);
|
---|
3486 | };
|
---|
3487 |
|
---|
3488 | class QDESIGNER_UILIB_EXPORT DomConnectionHint {
|
---|
3489 | public:
|
---|
3490 | DomConnectionHint();
|
---|
3491 | ~DomConnectionHint();
|
---|
3492 |
|
---|
3493 | void read(QXmlStreamReader &reader);
|
---|
3494 | #ifdef QUILOADER_QDOM_READ
|
---|
3495 | void read(const QDomElement &node);
|
---|
3496 | #endif
|
---|
3497 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3498 | inline QString text() const { return m_text; }
|
---|
3499 | inline void setText(const QString &s) { m_text = s; }
|
---|
3500 |
|
---|
3501 | // attribute accessors
|
---|
3502 | inline bool hasAttributeType() const { return m_has_attr_type; }
|
---|
3503 | inline QString attributeType() const { return m_attr_type; }
|
---|
3504 | inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; }
|
---|
3505 | inline void clearAttributeType() { m_has_attr_type = false; }
|
---|
3506 |
|
---|
3507 | // child element accessors
|
---|
3508 | inline int elementX() const { return m_x; }
|
---|
3509 | void setElementX(int a);
|
---|
3510 | inline bool hasElementX() const { return m_children & X; }
|
---|
3511 | void clearElementX();
|
---|
3512 |
|
---|
3513 | inline int elementY() const { return m_y; }
|
---|
3514 | void setElementY(int a);
|
---|
3515 | inline bool hasElementY() const { return m_children & Y; }
|
---|
3516 | void clearElementY();
|
---|
3517 |
|
---|
3518 | private:
|
---|
3519 | QString m_text;
|
---|
3520 | void clear(bool clear_all = true);
|
---|
3521 |
|
---|
3522 | // attribute data
|
---|
3523 | QString m_attr_type;
|
---|
3524 | bool m_has_attr_type;
|
---|
3525 |
|
---|
3526 | // child element data
|
---|
3527 | uint m_children;
|
---|
3528 | int m_x;
|
---|
3529 | int m_y;
|
---|
3530 | enum Child {
|
---|
3531 | X = 1,
|
---|
3532 | Y = 2
|
---|
3533 | };
|
---|
3534 |
|
---|
3535 | DomConnectionHint(const DomConnectionHint &other);
|
---|
3536 | void operator = (const DomConnectionHint&other);
|
---|
3537 | };
|
---|
3538 |
|
---|
3539 | class QDESIGNER_UILIB_EXPORT DomScript {
|
---|
3540 | public:
|
---|
3541 | DomScript();
|
---|
3542 | ~DomScript();
|
---|
3543 |
|
---|
3544 | void read(QXmlStreamReader &reader);
|
---|
3545 | #ifdef QUILOADER_QDOM_READ
|
---|
3546 | void read(const QDomElement &node);
|
---|
3547 | #endif
|
---|
3548 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3549 | inline QString text() const { return m_text; }
|
---|
3550 | inline void setText(const QString &s) { m_text = s; }
|
---|
3551 |
|
---|
3552 | // attribute accessors
|
---|
3553 | inline bool hasAttributeSource() const { return m_has_attr_source; }
|
---|
3554 | inline QString attributeSource() const { return m_attr_source; }
|
---|
3555 | inline void setAttributeSource(const QString& a) { m_attr_source = a; m_has_attr_source = true; }
|
---|
3556 | inline void clearAttributeSource() { m_has_attr_source = false; }
|
---|
3557 |
|
---|
3558 | inline bool hasAttributeLanguage() const { return m_has_attr_language; }
|
---|
3559 | inline QString attributeLanguage() const { return m_attr_language; }
|
---|
3560 | inline void setAttributeLanguage(const QString& a) { m_attr_language = a; m_has_attr_language = true; }
|
---|
3561 | inline void clearAttributeLanguage() { m_has_attr_language = false; }
|
---|
3562 |
|
---|
3563 | // child element accessors
|
---|
3564 | private:
|
---|
3565 | QString m_text;
|
---|
3566 | void clear(bool clear_all = true);
|
---|
3567 |
|
---|
3568 | // attribute data
|
---|
3569 | QString m_attr_source;
|
---|
3570 | bool m_has_attr_source;
|
---|
3571 |
|
---|
3572 | QString m_attr_language;
|
---|
3573 | bool m_has_attr_language;
|
---|
3574 |
|
---|
3575 | // child element data
|
---|
3576 | uint m_children;
|
---|
3577 |
|
---|
3578 | DomScript(const DomScript &other);
|
---|
3579 | void operator = (const DomScript&other);
|
---|
3580 | };
|
---|
3581 |
|
---|
3582 | class QDESIGNER_UILIB_EXPORT DomWidgetData {
|
---|
3583 | public:
|
---|
3584 | DomWidgetData();
|
---|
3585 | ~DomWidgetData();
|
---|
3586 |
|
---|
3587 | void read(QXmlStreamReader &reader);
|
---|
3588 | #ifdef QUILOADER_QDOM_READ
|
---|
3589 | void read(const QDomElement &node);
|
---|
3590 | #endif
|
---|
3591 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3592 | inline QString text() const { return m_text; }
|
---|
3593 | inline void setText(const QString &s) { m_text = s; }
|
---|
3594 |
|
---|
3595 | // attribute accessors
|
---|
3596 | // child element accessors
|
---|
3597 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
3598 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
3599 |
|
---|
3600 | private:
|
---|
3601 | QString m_text;
|
---|
3602 | void clear(bool clear_all = true);
|
---|
3603 |
|
---|
3604 | // attribute data
|
---|
3605 | // child element data
|
---|
3606 | uint m_children;
|
---|
3607 | QList<DomProperty*> m_property;
|
---|
3608 | enum Child {
|
---|
3609 | Property = 1
|
---|
3610 | };
|
---|
3611 |
|
---|
3612 | DomWidgetData(const DomWidgetData &other);
|
---|
3613 | void operator = (const DomWidgetData&other);
|
---|
3614 | };
|
---|
3615 |
|
---|
3616 | class QDESIGNER_UILIB_EXPORT DomDesignerData {
|
---|
3617 | public:
|
---|
3618 | DomDesignerData();
|
---|
3619 | ~DomDesignerData();
|
---|
3620 |
|
---|
3621 | void read(QXmlStreamReader &reader);
|
---|
3622 | #ifdef QUILOADER_QDOM_READ
|
---|
3623 | void read(const QDomElement &node);
|
---|
3624 | #endif
|
---|
3625 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3626 | inline QString text() const { return m_text; }
|
---|
3627 | inline void setText(const QString &s) { m_text = s; }
|
---|
3628 |
|
---|
3629 | // attribute accessors
|
---|
3630 | // child element accessors
|
---|
3631 | inline QList<DomProperty*> elementProperty() const { return m_property; }
|
---|
3632 | void setElementProperty(const QList<DomProperty*>& a);
|
---|
3633 |
|
---|
3634 | private:
|
---|
3635 | QString m_text;
|
---|
3636 | void clear(bool clear_all = true);
|
---|
3637 |
|
---|
3638 | // attribute data
|
---|
3639 | // child element data
|
---|
3640 | uint m_children;
|
---|
3641 | QList<DomProperty*> m_property;
|
---|
3642 | enum Child {
|
---|
3643 | Property = 1
|
---|
3644 | };
|
---|
3645 |
|
---|
3646 | DomDesignerData(const DomDesignerData &other);
|
---|
3647 | void operator = (const DomDesignerData&other);
|
---|
3648 | };
|
---|
3649 |
|
---|
3650 | class QDESIGNER_UILIB_EXPORT DomSlots {
|
---|
3651 | public:
|
---|
3652 | DomSlots();
|
---|
3653 | ~DomSlots();
|
---|
3654 |
|
---|
3655 | void read(QXmlStreamReader &reader);
|
---|
3656 | #ifdef QUILOADER_QDOM_READ
|
---|
3657 | void read(const QDomElement &node);
|
---|
3658 | #endif
|
---|
3659 | void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
---|
3660 | inline QString text() const { return m_text; }
|
---|
3661 | inline void setText(const QString &s) { m_text = s; }
|
---|
3662 |
|
---|
3663 | // attribute accessors
|
---|
3664 | // child element accessors
|
---|
3665 | inline QStringList elementSignal() const { return m_signal; }
|
---|
3666 | void setElementSignal(const QStringList& a);
|
---|
3667 |
|
---|
3668 | inline QStringList elementSlot() const { return m_slot; }
|
---|
3669 | void setElementSlot(const QStringList& a);
|
---|
3670 |
|
---|
3671 | private:
|
---|
3672 | QString m_text;
|
---|
3673 | void clear(bool clear_all = true);
|
---|
3674 |
|
---|
3675 | // attribute data
|
---|
3676 | // child element data
|
---|
3677 | uint m_children;
|
---|
3678 | QStringList m_signal;
|
---|
3679 | QStringList m_slot;
|
---|
3680 | enum Child {
|
---|
3681 | Signal = 1,
|
---|
3682 | Slot = 2
|
---|
3683 | };
|
---|
3684 |
|
---|
3685 | DomSlots(const DomSlots &other);
|
---|
3686 | void operator = (const DomSlots&other);
|
---|
3687 | };
|
---|
3688 |
|
---|
3689 |
|
---|
3690 | #ifdef QFORMINTERNAL_NAMESPACE
|
---|
3691 | }
|
---|
3692 | #endif
|
---|
3693 |
|
---|
3694 | QT_END_NAMESPACE
|
---|
3695 |
|
---|
3696 | #endif // UI4_H
|
---|