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