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