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

source code of qtbase/src/tools/uic/ui4.h