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