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

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