0
|
1 |
/****************************************************************************
|
|
2 |
**
|
|
3 |
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
** All rights reserved.
|
|
5 |
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
6 |
**
|
|
7 |
** This file is part of the tools applications of the Qt Toolkit.
|
|
8 |
**
|
|
9 |
** $QT_BEGIN_LICENSE:LGPL$
|
|
10 |
** No Commercial Usage
|
|
11 |
** This file contains pre-release code and may not be distributed.
|
|
12 |
** You may use this file in accordance with the terms and conditions
|
|
13 |
** contained in the Technology Preview License Agreement accompanying
|
|
14 |
** this package.
|
|
15 |
**
|
|
16 |
** GNU Lesser General Public License Usage
|
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
18 |
** General Public License version 2.1 as published by the Free Software
|
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
20 |
** packaging of this file. Please review the following information to
|
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
23 |
**
|
|
24 |
** In addition, as a special exception, Nokia gives you certain additional
|
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
27 |
**
|
|
28 |
** If you have questions regarding the use of this file, please contact
|
|
29 |
** Nokia at qt-info@nokia.com.
|
|
30 |
**
|
|
31 |
**
|
|
32 |
**
|
|
33 |
**
|
|
34 |
**
|
|
35 |
**
|
|
36 |
**
|
|
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;
|
|
181 |
inline QString text() const { return m_text; }
|
|
182 |
inline void setText(const QString &s) { m_text = s; }
|
|
183 |
|
|
184 |
// attribute accessors
|
|
185 |
inline bool hasAttributeVersion() const { return m_has_attr_version; }
|
|
186 |
inline QString attributeVersion() const { return m_attr_version; }
|
|
187 |
inline void setAttributeVersion(const QString& a) { m_attr_version = a; m_has_attr_version = true; }
|
|
188 |
inline void clearAttributeVersion() { m_has_attr_version = false; }
|
|
189 |
|
|
190 |
inline bool hasAttributeLanguage() const { return m_has_attr_language; }
|
|
191 |
inline QString attributeLanguage() const { return m_attr_language; }
|
|
192 |
inline void setAttributeLanguage(const QString& a) { m_attr_language = a; m_has_attr_language = true; }
|
|
193 |
inline void clearAttributeLanguage() { m_has_attr_language = false; }
|
|
194 |
|
|
195 |
inline bool hasAttributeDisplayname() const { return m_has_attr_displayname; }
|
|
196 |
inline QString attributeDisplayname() const { return m_attr_displayname; }
|
|
197 |
inline void setAttributeDisplayname(const QString& a) { m_attr_displayname = a; m_has_attr_displayname = true; }
|
|
198 |
inline void clearAttributeDisplayname() { m_has_attr_displayname = false; }
|
|
199 |
|
|
200 |
inline bool hasAttributeStdsetdef() const { return m_has_attr_stdsetdef; }
|
|
201 |
inline int attributeStdsetdef() const { return m_attr_stdsetdef; }
|
|
202 |
inline void setAttributeStdsetdef(int a) { m_attr_stdsetdef = a; m_has_attr_stdsetdef = true; }
|
|
203 |
inline void clearAttributeStdsetdef() { m_has_attr_stdsetdef = false; }
|
|
204 |
|
|
205 |
inline bool hasAttributeStdSetDef() const { return m_has_attr_stdSetDef; }
|
|
206 |
inline int attributeStdSetDef() const { return m_attr_stdSetDef; }
|
|
207 |
inline void setAttributeStdSetDef(int a) { m_attr_stdSetDef = a; m_has_attr_stdSetDef = true; }
|
|
208 |
inline void clearAttributeStdSetDef() { m_has_attr_stdSetDef = false; }
|
|
209 |
|
|
210 |
// child element accessors
|
|
211 |
inline QString elementAuthor() const { return m_author; }
|
|
212 |
void setElementAuthor(const QString& a);
|
|
213 |
inline bool hasElementAuthor() const { return m_children & Author; }
|
|
214 |
void clearElementAuthor();
|
|
215 |
|
|
216 |
inline QString elementComment() const { return m_comment; }
|
|
217 |
void setElementComment(const QString& a);
|
|
218 |
inline bool hasElementComment() const { return m_children & Comment; }
|
|
219 |
void clearElementComment();
|
|
220 |
|
|
221 |
inline QString elementExportMacro() const { return m_exportMacro; }
|
|
222 |
void setElementExportMacro(const QString& a);
|
|
223 |
inline bool hasElementExportMacro() const { return m_children & ExportMacro; }
|
|
224 |
void clearElementExportMacro();
|
|
225 |
|
|
226 |
inline QString elementClass() const { return m_class; }
|
|
227 |
void setElementClass(const QString& a);
|
|
228 |
inline bool hasElementClass() const { return m_children & Class; }
|
|
229 |
void clearElementClass();
|
|
230 |
|
|
231 |
inline DomWidget* elementWidget() const { return m_widget; }
|
|
232 |
DomWidget* takeElementWidget();
|
|
233 |
void setElementWidget(DomWidget* a);
|
|
234 |
inline bool hasElementWidget() const { return m_children & Widget; }
|
|
235 |
void clearElementWidget();
|
|
236 |
|
|
237 |
inline DomLayoutDefault* elementLayoutDefault() const { return m_layoutDefault; }
|
|
238 |
DomLayoutDefault* takeElementLayoutDefault();
|
|
239 |
void setElementLayoutDefault(DomLayoutDefault* a);
|
|
240 |
inline bool hasElementLayoutDefault() const { return m_children & LayoutDefault; }
|
|
241 |
void clearElementLayoutDefault();
|
|
242 |
|
|
243 |
inline DomLayoutFunction* elementLayoutFunction() const { return m_layoutFunction; }
|
|
244 |
DomLayoutFunction* takeElementLayoutFunction();
|
|
245 |
void setElementLayoutFunction(DomLayoutFunction* a);
|
|
246 |
inline bool hasElementLayoutFunction() const { return m_children & LayoutFunction; }
|
|
247 |
void clearElementLayoutFunction();
|
|
248 |
|
|
249 |
inline QString elementPixmapFunction() const { return m_pixmapFunction; }
|
|
250 |
void setElementPixmapFunction(const QString& a);
|
|
251 |
inline bool hasElementPixmapFunction() const { return m_children & PixmapFunction; }
|
|
252 |
void clearElementPixmapFunction();
|
|
253 |
|
|
254 |
inline DomCustomWidgets* elementCustomWidgets() const { return m_customWidgets; }
|
|
255 |
DomCustomWidgets* takeElementCustomWidgets();
|
|
256 |
void setElementCustomWidgets(DomCustomWidgets* a);
|
|
257 |
inline bool hasElementCustomWidgets() const { return m_children & CustomWidgets; }
|
|
258 |
void clearElementCustomWidgets();
|
|
259 |
|
|
260 |
inline DomTabStops* elementTabStops() const { return m_tabStops; }
|
|
261 |
DomTabStops* takeElementTabStops();
|
|
262 |
void setElementTabStops(DomTabStops* a);
|
|
263 |
inline bool hasElementTabStops() const { return m_children & TabStops; }
|
|
264 |
void clearElementTabStops();
|
|
265 |
|
|
266 |
inline DomImages* elementImages() const { return m_images; }
|
|
267 |
DomImages* takeElementImages();
|
|
268 |
void setElementImages(DomImages* a);
|
|
269 |
inline bool hasElementImages() const { return m_children & Images; }
|
|
270 |
void clearElementImages();
|
|
271 |
|
|
272 |
inline DomIncludes* elementIncludes() const { return m_includes; }
|
|
273 |
DomIncludes* takeElementIncludes();
|
|
274 |
void setElementIncludes(DomIncludes* a);
|
|
275 |
inline bool hasElementIncludes() const { return m_children & Includes; }
|
|
276 |
void clearElementIncludes();
|
|
277 |
|
|
278 |
inline DomResources* elementResources() const { return m_resources; }
|
|
279 |
DomResources* takeElementResources();
|
|
280 |
void setElementResources(DomResources* a);
|
|
281 |
inline bool hasElementResources() const { return m_children & Resources; }
|
|
282 |
void clearElementResources();
|
|
283 |
|
|
284 |
inline DomConnections* elementConnections() const { return m_connections; }
|
|
285 |
DomConnections* takeElementConnections();
|
|
286 |
void setElementConnections(DomConnections* a);
|
|
287 |
inline bool hasElementConnections() const { return m_children & Connections; }
|
|
288 |
void clearElementConnections();
|
|
289 |
|
|
290 |
inline DomDesignerData* elementDesignerdata() const { return m_designerdata; }
|
|
291 |
DomDesignerData* takeElementDesignerdata();
|
|
292 |
void setElementDesignerdata(DomDesignerData* a);
|
|
293 |
inline bool hasElementDesignerdata() const { return m_children & Designerdata; }
|
|
294 |
void clearElementDesignerdata();
|
|
295 |
|
|
296 |
inline DomSlots* elementSlots() const { return m_slots; }
|
|
297 |
DomSlots* takeElementSlots();
|
|
298 |
void setElementSlots(DomSlots* a);
|
|
299 |
inline bool hasElementSlots() const { return m_children & Slots; }
|
|
300 |
void clearElementSlots();
|
|
301 |
|
|
302 |
inline DomButtonGroups* elementButtonGroups() const { return m_buttonGroups; }
|
|
303 |
DomButtonGroups* takeElementButtonGroups();
|
|
304 |
void setElementButtonGroups(DomButtonGroups* a);
|
|
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;
|
|
381 |
inline QString text() const { return m_text; }
|
|
382 |
inline void setText(const QString &s) { m_text = s; }
|
|
383 |
|
|
384 |
// attribute accessors
|
|
385 |
// child element accessors
|
|
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;
|
|
415 |
inline QString text() const { return m_text; }
|
|
416 |
inline void setText(const QString &s) { m_text = s; }
|
|
417 |
|
|
418 |
// attribute accessors
|
|
419 |
inline bool hasAttributeLocation() const { return m_has_attr_location; }
|
|
420 |
inline QString attributeLocation() const { return m_attr_location; }
|
|
421 |
inline void setAttributeLocation(const QString& a) { m_attr_location = a; m_has_attr_location = true; }
|
|
422 |
inline void clearAttributeLocation() { m_has_attr_location = false; }
|
|
423 |
|
|
424 |
inline bool hasAttributeImpldecl() const { return m_has_attr_impldecl; }
|
|
425 |
inline QString attributeImpldecl() const { return m_attr_impldecl; }
|
|
426 |
inline void setAttributeImpldecl(const QString& a) { m_attr_impldecl = a; m_has_attr_impldecl = true; }
|
|
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;
|
|
458 |
inline QString text() const { return m_text; }
|
|
459 |
inline void setText(const QString &s) { m_text = s; }
|
|
460 |
|
|
461 |
// attribute accessors
|
|
462 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
463 |
inline QString attributeName() const { return m_attr_name; }
|
|
464 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
465 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
466 |
|
|
467 |
// child element accessors
|
|
468 |
inline QList<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;
|
|
500 |
inline QString text() const { return m_text; }
|
|
501 |
inline void setText(const QString &s) { m_text = s; }
|
|
502 |
|
|
503 |
// attribute accessors
|
|
504 |
inline bool hasAttributeLocation() const { return m_has_attr_location; }
|
|
505 |
inline QString attributeLocation() const { return m_attr_location; }
|
|
506 |
inline void setAttributeLocation(const QString& a) { m_attr_location = a; m_has_attr_location = true; }
|
|
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;
|
|
535 |
inline QString text() const { return m_text; }
|
|
536 |
inline void setText(const QString &s) { m_text = s; }
|
|
537 |
|
|
538 |
// attribute accessors
|
|
539 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
540 |
inline QString attributeName() const { return m_attr_name; }
|
|
541 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
542 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
543 |
|
|
544 |
// child element accessors
|
|
545 |
inline QList<DomAction*> elementAction() const { return m_action; }
|
|
546 |
void setElementAction(const QList<DomAction*>& a);
|
|
547 |
|
|
548 |
inline QList<DomActionGroup*> elementActionGroup() const { return m_actionGroup; }
|
|
549 |
void setElementActionGroup(const QList<DomActionGroup*>& a);
|
|
550 |
|
|
551 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
552 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
553 |
|
|
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;
|
|
592 |
inline QString text() const { return m_text; }
|
|
593 |
inline void setText(const QString &s) { m_text = s; }
|
|
594 |
|
|
595 |
// attribute accessors
|
|
596 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
597 |
inline QString attributeName() const { return m_attr_name; }
|
|
598 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
599 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
600 |
|
|
601 |
inline bool hasAttributeMenu() const { return m_has_attr_menu; }
|
|
602 |
inline QString attributeMenu() const { return m_attr_menu; }
|
|
603 |
inline void setAttributeMenu(const QString& a) { m_attr_menu = a; m_has_attr_menu = true; }
|
|
604 |
inline void clearAttributeMenu() { m_has_attr_menu = false; }
|
|
605 |
|
|
606 |
// child element accessors
|
|
607 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
608 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
609 |
|
|
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;
|
|
647 |
inline QString text() const { return m_text; }
|
|
648 |
inline void setText(const QString &s) { m_text = s; }
|
|
649 |
|
|
650 |
// attribute accessors
|
|
651 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
652 |
inline QString attributeName() const { return m_attr_name; }
|
|
653 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
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;
|
|
682 |
inline QString text() const { return m_text; }
|
|
683 |
inline void setText(const QString &s) { m_text = s; }
|
|
684 |
|
|
685 |
// attribute accessors
|
|
686 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
687 |
inline QString attributeName() const { return m_attr_name; }
|
|
688 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
689 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
690 |
|
|
691 |
// child element accessors
|
|
692 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
693 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
694 |
|
|
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;
|
|
729 |
inline QString text() const { return m_text; }
|
|
730 |
inline void setText(const QString &s) { m_text = s; }
|
|
731 |
|
|
732 |
// attribute accessors
|
|
733 |
// child element accessors
|
|
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;
|
|
763 |
inline QString text() const { return m_text; }
|
|
764 |
inline void setText(const QString &s) { m_text = s; }
|
|
765 |
|
|
766 |
// attribute accessors
|
|
767 |
// child element accessors
|
|
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;
|
|
797 |
inline QString text() const { return m_text; }
|
|
798 |
inline void setText(const QString &s) { m_text = s; }
|
|
799 |
|
|
800 |
// attribute accessors
|
|
801 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
802 |
inline QString attributeName() const { return m_attr_name; }
|
|
803 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
804 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
805 |
|
|
806 |
// child element accessors
|
|
807 |
inline DomImageData* elementData() const { return m_data; }
|
|
808 |
DomImageData* takeElementData();
|
|
809 |
void setElementData(DomImageData* a);
|
|
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;
|
|
842 |
inline QString text() const { return m_text; }
|
|
843 |
inline void setText(const QString &s) { m_text = s; }
|
|
844 |
|
|
845 |
// attribute accessors
|
|
846 |
inline bool hasAttributeFormat() const { return m_has_attr_format; }
|
|
847 |
inline QString attributeFormat() const { return m_attr_format; }
|
|
848 |
inline void setAttributeFormat(const QString& a) { m_attr_format = a; m_has_attr_format = true; }
|
|
849 |
inline void clearAttributeFormat() { m_has_attr_format = false; }
|
|
850 |
|
|
851 |
inline bool hasAttributeLength() const { return m_has_attr_length; }
|
|
852 |
inline int attributeLength() const { return m_attr_length; }
|
|
853 |
inline void setAttributeLength(int a) { m_attr_length = a; m_has_attr_length = true; }
|
|
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;
|
|
885 |
inline QString text() const { return m_text; }
|
|
886 |
inline void setText(const QString &s) { m_text = s; }
|
|
887 |
|
|
888 |
// attribute accessors
|
|
889 |
// child element accessors
|
|
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;
|
|
919 |
inline QString text() const { return m_text; }
|
|
920 |
inline void setText(const QString &s) { m_text = s; }
|
|
921 |
|
|
922 |
// attribute accessors
|
|
923 |
inline bool hasAttributeLocation() const { return m_has_attr_location; }
|
|
924 |
inline QString attributeLocation() const { return m_attr_location; }
|
|
925 |
inline void setAttributeLocation(const QString& a) { m_attr_location = a; m_has_attr_location = true; }
|
|
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;
|
|
954 |
inline QString text() const { return m_text; }
|
|
955 |
inline void setText(const QString &s) { m_text = s; }
|
|
956 |
|
|
957 |
// attribute accessors
|
|
958 |
// child element accessors
|
|
959 |
inline QString elementClass() const { return m_class; }
|
|
960 |
void setElementClass(const QString& a);
|
|
961 |
inline bool hasElementClass() const { return m_children & Class; }
|
|
962 |
void clearElementClass();
|
|
963 |
|
|
964 |
inline QString elementExtends() const { return m_extends; }
|
|
965 |
void setElementExtends(const QString& a);
|
|
966 |
inline bool hasElementExtends() const { return m_children & Extends; }
|
|
967 |
void clearElementExtends();
|
|
968 |
|
|
969 |
inline DomHeader* elementHeader() const { return m_header; }
|
|
970 |
DomHeader* takeElementHeader();
|
|
971 |
void setElementHeader(DomHeader* a);
|
|
972 |
inline bool hasElementHeader() const { return m_children & Header; }
|
|
973 |
void clearElementHeader();
|
|
974 |
|
|
975 |
inline DomSize* elementSizeHint() const { return m_sizeHint; }
|
|
976 |
DomSize* takeElementSizeHint();
|
|
977 |
void setElementSizeHint(DomSize* a);
|
|
978 |
inline bool hasElementSizeHint() const { return m_children & SizeHint; }
|
|
979 |
void clearElementSizeHint();
|
|
980 |
|
|
981 |
inline QString elementAddPageMethod() const { return m_addPageMethod; }
|
|
982 |
void setElementAddPageMethod(const QString& a);
|
|
983 |
inline bool hasElementAddPageMethod() const { return m_children & AddPageMethod; }
|
|
984 |
void clearElementAddPageMethod();
|
|
985 |
|
|
986 |
inline int elementContainer() const { return m_container; }
|
|
987 |
void setElementContainer(int a);
|
|
988 |
inline bool hasElementContainer() const { return m_children & Container; }
|
|
989 |
void clearElementContainer();
|
|
990 |
|
|
991 |
inline DomSizePolicyData* elementSizePolicy() const { return m_sizePolicy; }
|
|
992 |
DomSizePolicyData* takeElementSizePolicy();
|
|
993 |
void setElementSizePolicy(DomSizePolicyData* a);
|
|
994 |
inline bool hasElementSizePolicy() const { return m_children & SizePolicy; }
|
|
995 |
void clearElementSizePolicy();
|
|
996 |
|
|
997 |
inline QString elementPixmap() const { return m_pixmap; }
|
|
998 |
void setElementPixmap(const QString& a);
|
|
999 |
inline bool hasElementPixmap() const { return m_children & Pixmap; }
|
|
1000 |
void clearElementPixmap();
|
|
1001 |
|
|
1002 |
inline DomScript* elementScript() const { return m_script; }
|
|
1003 |
DomScript* takeElementScript();
|
|
1004 |
void setElementScript(DomScript* a);
|
|
1005 |
inline bool hasElementScript() const { return m_children & Script; }
|
|
1006 |
void clearElementScript();
|
|
1007 |
|
|
1008 |
inline DomProperties* elementProperties() const { return m_properties; }
|
|
1009 |
DomProperties* takeElementProperties();
|
|
1010 |
void setElementProperties(DomProperties* a);
|
|
1011 |
inline bool hasElementProperties() const { return m_children & Properties; }
|
|
1012 |
void clearElementProperties();
|
|
1013 |
|
|
1014 |
inline DomSlots* elementSlots() const { return m_slots; }
|
|
1015 |
DomSlots* takeElementSlots();
|
|
1016 |
void setElementSlots(DomSlots* a);
|
|
1017 |
inline bool hasElementSlots() const { return m_children & Slots; }
|
|
1018 |
void clearElementSlots();
|
|
1019 |
|
|
1020 |
inline DomPropertySpecifications* elementPropertyspecifications() const { return m_propertyspecifications; }
|
|
1021 |
DomPropertySpecifications* takeElementPropertyspecifications();
|
|
1022 |
void setElementPropertyspecifications(DomPropertySpecifications* a);
|
|
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;
|
|
1074 |
inline QString text() const { return m_text; }
|
|
1075 |
inline void setText(const QString &s) { m_text = s; }
|
|
1076 |
|
|
1077 |
// attribute accessors
|
|
1078 |
// child element accessors
|
|
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;
|
|
1108 |
inline QString text() const { return m_text; }
|
|
1109 |
inline void setText(const QString &s) { m_text = s; }
|
|
1110 |
|
|
1111 |
// attribute accessors
|
|
1112 |
inline bool hasAttributeType() const { return m_has_attr_type; }
|
|
1113 |
inline QString attributeType() const { return m_attr_type; }
|
|
1114 |
inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; }
|
|
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;
|
|
1143 |
inline QString text() const { return m_text; }
|
|
1144 |
inline void setText(const QString &s) { m_text = s; }
|
|
1145 |
|
|
1146 |
// attribute accessors
|
|
1147 |
// child element accessors
|
|
1148 |
inline int elementHorData() const { return m_horData; }
|
|
1149 |
void setElementHorData(int a);
|
|
1150 |
inline bool hasElementHorData() const { return m_children & HorData; }
|
|
1151 |
void clearElementHorData();
|
|
1152 |
|
|
1153 |
inline int elementVerData() const { return m_verData; }
|
|
1154 |
void setElementVerData(int a);
|
|
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;
|
|
1186 |
inline QString text() const { return m_text; }
|
|
1187 |
inline void setText(const QString &s) { m_text = s; }
|
|
1188 |
|
|
1189 |
// attribute accessors
|
|
1190 |
inline bool hasAttributeSpacing() const { return m_has_attr_spacing; }
|
|
1191 |
inline int attributeSpacing() const { return m_attr_spacing; }
|
|
1192 |
inline void setAttributeSpacing(int a) { m_attr_spacing = a; m_has_attr_spacing = true; }
|
|
1193 |
inline void clearAttributeSpacing() { m_has_attr_spacing = false; }
|
|
1194 |
|
|
1195 |
inline bool hasAttributeMargin() const { return m_has_attr_margin; }
|
|
1196 |
inline int attributeMargin() const { return m_attr_margin; }
|
|
1197 |
inline void setAttributeMargin(int a) { m_attr_margin = a; m_has_attr_margin = true; }
|
|
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;
|
|
1229 |
inline QString text() const { return m_text; }
|
|
1230 |
inline void setText(const QString &s) { m_text = s; }
|
|
1231 |
|
|
1232 |
// attribute accessors
|
|
1233 |
inline bool hasAttributeSpacing() const { return m_has_attr_spacing; }
|
|
1234 |
inline QString attributeSpacing() const { return m_attr_spacing; }
|
|
1235 |
inline void setAttributeSpacing(const QString& a) { m_attr_spacing = a; m_has_attr_spacing = true; }
|
|
1236 |
inline void clearAttributeSpacing() { m_has_attr_spacing = false; }
|
|
1237 |
|
|
1238 |
inline bool hasAttributeMargin() const { return m_has_attr_margin; }
|
|
1239 |
inline QString attributeMargin() const { return m_attr_margin; }
|
|
1240 |
inline void setAttributeMargin(const QString& a) { m_attr_margin = a; m_has_attr_margin = true; }
|
|
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;
|
|
1272 |
inline QString text() const { return m_text; }
|
|
1273 |
inline void setText(const QString &s) { m_text = s; }
|
|
1274 |
|
|
1275 |
// attribute accessors
|
|
1276 |
// child element accessors
|
|
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;
|
|
1306 |
inline QString text() const { return m_text; }
|
|
1307 |
inline void setText(const QString &s) { m_text = s; }
|
|
1308 |
|
|
1309 |
// attribute accessors
|
|
1310 |
inline bool hasAttributeClass() const { return m_has_attr_class; }
|
|
1311 |
inline QString attributeClass() const { return m_attr_class; }
|
|
1312 |
inline void setAttributeClass(const QString& a) { m_attr_class = a; m_has_attr_class = true; }
|
|
1313 |
inline void clearAttributeClass() { m_has_attr_class = false; }
|
|
1314 |
|
|
1315 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
1316 |
inline QString attributeName() const { return m_attr_name; }
|
|
1317 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
1318 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
1319 |
|
|
1320 |
inline bool hasAttributeStretch() const { return m_has_attr_stretch; }
|
|
1321 |
inline QString attributeStretch() const { return m_attr_stretch; }
|
|
1322 |
inline void setAttributeStretch(const QString& a) { m_attr_stretch = a; m_has_attr_stretch = true; }
|
|
1323 |
inline void clearAttributeStretch() { m_has_attr_stretch = false; }
|
|
1324 |
|
|
1325 |
inline bool hasAttributeRowStretch() const { return m_has_attr_rowStretch; }
|
|
1326 |
inline QString attributeRowStretch() const { return m_attr_rowStretch; }
|
|
1327 |
inline void setAttributeRowStretch(const QString& a) { m_attr_rowStretch = a; m_has_attr_rowStretch = true; }
|
|
1328 |
inline void clearAttributeRowStretch() { m_has_attr_rowStretch = false; }
|
|
1329 |
|
|
1330 |
inline bool hasAttributeColumnStretch() const { return m_has_attr_columnStretch; }
|
|
1331 |
inline QString attributeColumnStretch() const { return m_attr_columnStretch; }
|
|
1332 |
inline void setAttributeColumnStretch(const QString& a) { m_attr_columnStretch = a; m_has_attr_columnStretch = true; }
|
|
1333 |
inline void clearAttributeColumnStretch() { m_has_attr_columnStretch = false; }
|
|
1334 |
|
|
1335 |
inline bool hasAttributeRowMinimumHeight() const { return m_has_attr_rowMinimumHeight; }
|
|
1336 |
inline QString attributeRowMinimumHeight() const { return m_attr_rowMinimumHeight; }
|
|
1337 |
inline void setAttributeRowMinimumHeight(const QString& a) { m_attr_rowMinimumHeight = a; m_has_attr_rowMinimumHeight = true; }
|
|
1338 |
inline void clearAttributeRowMinimumHeight() { m_has_attr_rowMinimumHeight = false; }
|
|
1339 |
|
|
1340 |
inline bool hasAttributeColumnMinimumWidth() const { return m_has_attr_columnMinimumWidth; }
|
|
1341 |
inline QString attributeColumnMinimumWidth() const { return m_attr_columnMinimumWidth; }
|
|
1342 |
inline void setAttributeColumnMinimumWidth(const QString& a) { m_attr_columnMinimumWidth = a; m_has_attr_columnMinimumWidth = true; }
|
|
1343 |
inline void clearAttributeColumnMinimumWidth() { m_has_attr_columnMinimumWidth = false; }
|
|
1344 |
|
|
1345 |
// child element accessors
|
|
1346 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
1347 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
1348 |
|
|
1349 |
inline QList<DomProperty*> elementAttribute() const { return m_attribute; }
|
|
1350 |
void setElementAttribute(const QList<DomProperty*>& a);
|
|
1351 |
|
|
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;
|
|
1406 |
inline QString text() const { return m_text; }
|
|
1407 |
inline void setText(const QString &s) { m_text = s; }
|
|
1408 |
|
|
1409 |
// attribute accessors
|
|
1410 |
inline bool hasAttributeRow() const { return m_has_attr_row; }
|
|
1411 |
inline int attributeRow() const { return m_attr_row; }
|
|
1412 |
inline void setAttributeRow(int a) { m_attr_row = a; m_has_attr_row = true; }
|
|
1413 |
inline void clearAttributeRow() { m_has_attr_row = false; }
|
|
1414 |
|
|
1415 |
inline bool hasAttributeColumn() const { return m_has_attr_column; }
|
|
1416 |
inline int attributeColumn() const { return m_attr_column; }
|
|
1417 |
inline void setAttributeColumn(int a) { m_attr_column = a; m_has_attr_column = true; }
|
|
1418 |
inline void clearAttributeColumn() { m_has_attr_column = false; }
|
|
1419 |
|
|
1420 |
inline bool hasAttributeRowSpan() const { return m_has_attr_rowSpan; }
|
|
1421 |
inline int attributeRowSpan() const { return m_attr_rowSpan; }
|
|
1422 |
inline void setAttributeRowSpan(int a) { m_attr_rowSpan = a; m_has_attr_rowSpan = true; }
|
|
1423 |
inline void clearAttributeRowSpan() { m_has_attr_rowSpan = false; }
|
|
1424 |
|
|
1425 |
inline bool hasAttributeColSpan() const { return m_has_attr_colSpan; }
|
|
1426 |
inline int attributeColSpan() const { return m_attr_colSpan; }
|
|
1427 |
inline void setAttributeColSpan(int a) { m_attr_colSpan = a; m_has_attr_colSpan = true; }
|
|
1428 |
inline void clearAttributeColSpan() { m_has_attr_colSpan = false; }
|
|
1429 |
|
|
1430 |
// child element accessors
|
|
1431 |
enum Kind { Unknown = 0, Widget, Layout, Spacer };
|
|
1432 |
inline Kind kind() const { return m_kind; }
|
|
1433 |
|
|
1434 |
inline DomWidget* elementWidget() const { return m_widget; }
|
|
1435 |
DomWidget* takeElementWidget();
|
|
1436 |
void setElementWidget(DomWidget* a);
|
|
1437 |
|
|
1438 |
inline DomLayout* elementLayout() const { return m_layout; }
|
|
1439 |
DomLayout* takeElementLayout();
|
|
1440 |
void setElementLayout(DomLayout* a);
|
|
1441 |
|
|
1442 |
inline DomSpacer* elementSpacer() const { return m_spacer; }
|
|
1443 |
DomSpacer* takeElementSpacer();
|
|
1444 |
void setElementSpacer(DomSpacer* a);
|
|
1445 |
|
|
1446 |
private:
|
|
1447 |
QString m_text;
|
|
1448 |
void clear(bool clear_all = true);
|
|
1449 |
|
|
1450 |
// attribute data
|
|
1451 |
int m_attr_row;
|
|
1452 |
bool m_has_attr_row;
|
|
1453 |
|
|
1454 |
int m_attr_column;
|
|
1455 |
bool m_has_attr_column;
|
|
1456 |
|
|
1457 |
int m_attr_rowSpan;
|
|
1458 |
bool m_has_attr_rowSpan;
|
|
1459 |
|
|
1460 |
int m_attr_colSpan;
|
|
1461 |
bool m_has_attr_colSpan;
|
|
1462 |
|
|
1463 |
// child element data
|
|
1464 |
Kind m_kind;
|
|
1465 |
DomWidget* m_widget;
|
|
1466 |
DomLayout* m_layout;
|
|
1467 |
DomSpacer* m_spacer;
|
|
1468 |
|
|
1469 |
DomLayoutItem(const DomLayoutItem &other);
|
|
1470 |
void operator = (const DomLayoutItem&other);
|
|
1471 |
};
|
|
1472 |
|
|
1473 |
class QDESIGNER_UILIB_EXPORT DomRow {
|
|
1474 |
public:
|
|
1475 |
DomRow();
|
|
1476 |
~DomRow();
|
|
1477 |
|
|
1478 |
void read(QXmlStreamReader &reader);
|
|
1479 |
#ifdef QUILOADER_QDOM_READ
|
|
1480 |
void read(const QDomElement &node);
|
|
1481 |
#endif
|
|
1482 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1483 |
inline QString text() const { return m_text; }
|
|
1484 |
inline void setText(const QString &s) { m_text = s; }
|
|
1485 |
|
|
1486 |
// attribute accessors
|
|
1487 |
// child element accessors
|
|
1488 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
1489 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
1490 |
|
|
1491 |
private:
|
|
1492 |
QString m_text;
|
|
1493 |
void clear(bool clear_all = true);
|
|
1494 |
|
|
1495 |
// attribute data
|
|
1496 |
// child element data
|
|
1497 |
uint m_children;
|
|
1498 |
QList<DomProperty*> m_property;
|
|
1499 |
enum Child {
|
|
1500 |
Property = 1
|
|
1501 |
};
|
|
1502 |
|
|
1503 |
DomRow(const DomRow &other);
|
|
1504 |
void operator = (const DomRow&other);
|
|
1505 |
};
|
|
1506 |
|
|
1507 |
class QDESIGNER_UILIB_EXPORT DomColumn {
|
|
1508 |
public:
|
|
1509 |
DomColumn();
|
|
1510 |
~DomColumn();
|
|
1511 |
|
|
1512 |
void read(QXmlStreamReader &reader);
|
|
1513 |
#ifdef QUILOADER_QDOM_READ
|
|
1514 |
void read(const QDomElement &node);
|
|
1515 |
#endif
|
|
1516 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1517 |
inline QString text() const { return m_text; }
|
|
1518 |
inline void setText(const QString &s) { m_text = s; }
|
|
1519 |
|
|
1520 |
// attribute accessors
|
|
1521 |
// child element accessors
|
|
1522 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
1523 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
1524 |
|
|
1525 |
private:
|
|
1526 |
QString m_text;
|
|
1527 |
void clear(bool clear_all = true);
|
|
1528 |
|
|
1529 |
// attribute data
|
|
1530 |
// child element data
|
|
1531 |
uint m_children;
|
|
1532 |
QList<DomProperty*> m_property;
|
|
1533 |
enum Child {
|
|
1534 |
Property = 1
|
|
1535 |
};
|
|
1536 |
|
|
1537 |
DomColumn(const DomColumn &other);
|
|
1538 |
void operator = (const DomColumn&other);
|
|
1539 |
};
|
|
1540 |
|
|
1541 |
class QDESIGNER_UILIB_EXPORT DomItem {
|
|
1542 |
public:
|
|
1543 |
DomItem();
|
|
1544 |
~DomItem();
|
|
1545 |
|
|
1546 |
void read(QXmlStreamReader &reader);
|
|
1547 |
#ifdef QUILOADER_QDOM_READ
|
|
1548 |
void read(const QDomElement &node);
|
|
1549 |
#endif
|
|
1550 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1551 |
inline QString text() const { return m_text; }
|
|
1552 |
inline void setText(const QString &s) { m_text = s; }
|
|
1553 |
|
|
1554 |
// attribute accessors
|
|
1555 |
inline bool hasAttributeRow() const { return m_has_attr_row; }
|
|
1556 |
inline int attributeRow() const { return m_attr_row; }
|
|
1557 |
inline void setAttributeRow(int a) { m_attr_row = a; m_has_attr_row = true; }
|
|
1558 |
inline void clearAttributeRow() { m_has_attr_row = false; }
|
|
1559 |
|
|
1560 |
inline bool hasAttributeColumn() const { return m_has_attr_column; }
|
|
1561 |
inline int attributeColumn() const { return m_attr_column; }
|
|
1562 |
inline void setAttributeColumn(int a) { m_attr_column = a; m_has_attr_column = true; }
|
|
1563 |
inline void clearAttributeColumn() { m_has_attr_column = false; }
|
|
1564 |
|
|
1565 |
// child element accessors
|
|
1566 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
1567 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
1568 |
|
|
1569 |
inline QList<DomItem*> elementItem() const { return m_item; }
|
|
1570 |
void setElementItem(const QList<DomItem*>& a);
|
|
1571 |
|
|
1572 |
private:
|
|
1573 |
QString m_text;
|
|
1574 |
void clear(bool clear_all = true);
|
|
1575 |
|
|
1576 |
// attribute data
|
|
1577 |
int m_attr_row;
|
|
1578 |
bool m_has_attr_row;
|
|
1579 |
|
|
1580 |
int m_attr_column;
|
|
1581 |
bool m_has_attr_column;
|
|
1582 |
|
|
1583 |
// child element data
|
|
1584 |
uint m_children;
|
|
1585 |
QList<DomProperty*> m_property;
|
|
1586 |
QList<DomItem*> m_item;
|
|
1587 |
enum Child {
|
|
1588 |
Property = 1,
|
|
1589 |
Item = 2
|
|
1590 |
};
|
|
1591 |
|
|
1592 |
DomItem(const DomItem &other);
|
|
1593 |
void operator = (const DomItem&other);
|
|
1594 |
};
|
|
1595 |
|
|
1596 |
class QDESIGNER_UILIB_EXPORT DomWidget {
|
|
1597 |
public:
|
|
1598 |
DomWidget();
|
|
1599 |
~DomWidget();
|
|
1600 |
|
|
1601 |
void read(QXmlStreamReader &reader);
|
|
1602 |
#ifdef QUILOADER_QDOM_READ
|
|
1603 |
void read(const QDomElement &node);
|
|
1604 |
#endif
|
|
1605 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1606 |
inline QString text() const { return m_text; }
|
|
1607 |
inline void setText(const QString &s) { m_text = s; }
|
|
1608 |
|
|
1609 |
// attribute accessors
|
|
1610 |
inline bool hasAttributeClass() const { return m_has_attr_class; }
|
|
1611 |
inline QString attributeClass() const { return m_attr_class; }
|
|
1612 |
inline void setAttributeClass(const QString& a) { m_attr_class = a; m_has_attr_class = true; }
|
|
1613 |
inline void clearAttributeClass() { m_has_attr_class = false; }
|
|
1614 |
|
|
1615 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
1616 |
inline QString attributeName() const { return m_attr_name; }
|
|
1617 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
1618 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
1619 |
|
|
1620 |
inline bool hasAttributeNative() const { return m_has_attr_native; }
|
|
1621 |
inline bool attributeNative() const { return m_attr_native; }
|
|
1622 |
inline void setAttributeNative(bool a) { m_attr_native = a; m_has_attr_native = true; }
|
|
1623 |
inline void clearAttributeNative() { m_has_attr_native = false; }
|
|
1624 |
|
|
1625 |
// child element accessors
|
|
1626 |
inline QStringList elementClass() const { return m_class; }
|
|
1627 |
void setElementClass(const QStringList& a);
|
|
1628 |
|
|
1629 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
1630 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
1631 |
|
|
1632 |
inline QList<DomScript*> elementScript() const { return m_script; }
|
|
1633 |
void setElementScript(const QList<DomScript*>& a);
|
|
1634 |
|
|
1635 |
inline QList<DomWidgetData*> elementWidgetData() const { return m_widgetData; }
|
|
1636 |
void setElementWidgetData(const QList<DomWidgetData*>& a);
|
|
1637 |
|
|
1638 |
inline QList<DomProperty*> elementAttribute() const { return m_attribute; }
|
|
1639 |
void setElementAttribute(const QList<DomProperty*>& a);
|
|
1640 |
|
|
1641 |
inline QList<DomRow*> elementRow() const { return m_row; }
|
|
1642 |
void setElementRow(const QList<DomRow*>& a);
|
|
1643 |
|
|
1644 |
inline QList<DomColumn*> elementColumn() const { return m_column; }
|
|
1645 |
void setElementColumn(const QList<DomColumn*>& a);
|
|
1646 |
|
|
1647 |
inline QList<DomItem*> elementItem() const { return m_item; }
|
|
1648 |
void setElementItem(const QList<DomItem*>& a);
|
|
1649 |
|
|
1650 |
inline QList<DomLayout*> elementLayout() const { return m_layout; }
|
|
1651 |
void setElementLayout(const QList<DomLayout*>& a);
|
|
1652 |
|
|
1653 |
inline QList<DomWidget*> elementWidget() const { return m_widget; }
|
|
1654 |
void setElementWidget(const QList<DomWidget*>& a);
|
|
1655 |
|
|
1656 |
inline QList<DomAction*> elementAction() const { return m_action; }
|
|
1657 |
void setElementAction(const QList<DomAction*>& a);
|
|
1658 |
|
|
1659 |
inline QList<DomActionGroup*> elementActionGroup() const { return m_actionGroup; }
|
|
1660 |
void setElementActionGroup(const QList<DomActionGroup*>& a);
|
|
1661 |
|
|
1662 |
inline QList<DomActionRef*> elementAddAction() const { return m_addAction; }
|
|
1663 |
void setElementAddAction(const QList<DomActionRef*>& a);
|
|
1664 |
|
|
1665 |
inline QStringList elementZOrder() const { return m_zOrder; }
|
|
1666 |
void setElementZOrder(const QStringList& a);
|
|
1667 |
|
|
1668 |
private:
|
|
1669 |
QString m_text;
|
|
1670 |
void clear(bool clear_all = true);
|
|
1671 |
|
|
1672 |
// attribute data
|
|
1673 |
QString m_attr_class;
|
|
1674 |
bool m_has_attr_class;
|
|
1675 |
|
|
1676 |
QString m_attr_name;
|
|
1677 |
bool m_has_attr_name;
|
|
1678 |
|
|
1679 |
bool m_attr_native;
|
|
1680 |
bool m_has_attr_native;
|
|
1681 |
|
|
1682 |
// child element data
|
|
1683 |
uint m_children;
|
|
1684 |
QStringList m_class;
|
|
1685 |
QList<DomProperty*> m_property;
|
|
1686 |
QList<DomScript*> m_script;
|
|
1687 |
QList<DomWidgetData*> m_widgetData;
|
|
1688 |
QList<DomProperty*> m_attribute;
|
|
1689 |
QList<DomRow*> m_row;
|
|
1690 |
QList<DomColumn*> m_column;
|
|
1691 |
QList<DomItem*> m_item;
|
|
1692 |
QList<DomLayout*> m_layout;
|
|
1693 |
QList<DomWidget*> m_widget;
|
|
1694 |
QList<DomAction*> m_action;
|
|
1695 |
QList<DomActionGroup*> m_actionGroup;
|
|
1696 |
QList<DomActionRef*> m_addAction;
|
|
1697 |
QStringList m_zOrder;
|
|
1698 |
enum Child {
|
|
1699 |
Class = 1,
|
|
1700 |
Property = 2,
|
|
1701 |
Script = 4,
|
|
1702 |
WidgetData = 8,
|
|
1703 |
Attribute = 16,
|
|
1704 |
Row = 32,
|
|
1705 |
Column = 64,
|
|
1706 |
Item = 128,
|
|
1707 |
Layout = 256,
|
|
1708 |
Widget = 512,
|
|
1709 |
Action = 1024,
|
|
1710 |
ActionGroup = 2048,
|
|
1711 |
AddAction = 4096,
|
|
1712 |
ZOrder = 8192
|
|
1713 |
};
|
|
1714 |
|
|
1715 |
DomWidget(const DomWidget &other);
|
|
1716 |
void operator = (const DomWidget&other);
|
|
1717 |
};
|
|
1718 |
|
|
1719 |
class QDESIGNER_UILIB_EXPORT DomSpacer {
|
|
1720 |
public:
|
|
1721 |
DomSpacer();
|
|
1722 |
~DomSpacer();
|
|
1723 |
|
|
1724 |
void read(QXmlStreamReader &reader);
|
|
1725 |
#ifdef QUILOADER_QDOM_READ
|
|
1726 |
void read(const QDomElement &node);
|
|
1727 |
#endif
|
|
1728 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1729 |
inline QString text() const { return m_text; }
|
|
1730 |
inline void setText(const QString &s) { m_text = s; }
|
|
1731 |
|
|
1732 |
// attribute accessors
|
|
1733 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
1734 |
inline QString attributeName() const { return m_attr_name; }
|
|
1735 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
1736 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
1737 |
|
|
1738 |
// child element accessors
|
|
1739 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
1740 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
1741 |
|
|
1742 |
private:
|
|
1743 |
QString m_text;
|
|
1744 |
void clear(bool clear_all = true);
|
|
1745 |
|
|
1746 |
// attribute data
|
|
1747 |
QString m_attr_name;
|
|
1748 |
bool m_has_attr_name;
|
|
1749 |
|
|
1750 |
// child element data
|
|
1751 |
uint m_children;
|
|
1752 |
QList<DomProperty*> m_property;
|
|
1753 |
enum Child {
|
|
1754 |
Property = 1
|
|
1755 |
};
|
|
1756 |
|
|
1757 |
DomSpacer(const DomSpacer &other);
|
|
1758 |
void operator = (const DomSpacer&other);
|
|
1759 |
};
|
|
1760 |
|
|
1761 |
class QDESIGNER_UILIB_EXPORT DomColor {
|
|
1762 |
public:
|
|
1763 |
DomColor();
|
|
1764 |
~DomColor();
|
|
1765 |
|
|
1766 |
void read(QXmlStreamReader &reader);
|
|
1767 |
#ifdef QUILOADER_QDOM_READ
|
|
1768 |
void read(const QDomElement &node);
|
|
1769 |
#endif
|
|
1770 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1771 |
inline QString text() const { return m_text; }
|
|
1772 |
inline void setText(const QString &s) { m_text = s; }
|
|
1773 |
|
|
1774 |
// attribute accessors
|
|
1775 |
inline bool hasAttributeAlpha() const { return m_has_attr_alpha; }
|
|
1776 |
inline int attributeAlpha() const { return m_attr_alpha; }
|
|
1777 |
inline void setAttributeAlpha(int a) { m_attr_alpha = a; m_has_attr_alpha = true; }
|
|
1778 |
inline void clearAttributeAlpha() { m_has_attr_alpha = false; }
|
|
1779 |
|
|
1780 |
// child element accessors
|
|
1781 |
inline int elementRed() const { return m_red; }
|
|
1782 |
void setElementRed(int a);
|
|
1783 |
inline bool hasElementRed() const { return m_children & Red; }
|
|
1784 |
void clearElementRed();
|
|
1785 |
|
|
1786 |
inline int elementGreen() const { return m_green; }
|
|
1787 |
void setElementGreen(int a);
|
|
1788 |
inline bool hasElementGreen() const { return m_children & Green; }
|
|
1789 |
void clearElementGreen();
|
|
1790 |
|
|
1791 |
inline int elementBlue() const { return m_blue; }
|
|
1792 |
void setElementBlue(int a);
|
|
1793 |
inline bool hasElementBlue() const { return m_children & Blue; }
|
|
1794 |
void clearElementBlue();
|
|
1795 |
|
|
1796 |
private:
|
|
1797 |
QString m_text;
|
|
1798 |
void clear(bool clear_all = true);
|
|
1799 |
|
|
1800 |
// attribute data
|
|
1801 |
int m_attr_alpha;
|
|
1802 |
bool m_has_attr_alpha;
|
|
1803 |
|
|
1804 |
// child element data
|
|
1805 |
uint m_children;
|
|
1806 |
int m_red;
|
|
1807 |
int m_green;
|
|
1808 |
int m_blue;
|
|
1809 |
enum Child {
|
|
1810 |
Red = 1,
|
|
1811 |
Green = 2,
|
|
1812 |
Blue = 4
|
|
1813 |
};
|
|
1814 |
|
|
1815 |
DomColor(const DomColor &other);
|
|
1816 |
void operator = (const DomColor&other);
|
|
1817 |
};
|
|
1818 |
|
|
1819 |
class QDESIGNER_UILIB_EXPORT DomGradientStop {
|
|
1820 |
public:
|
|
1821 |
DomGradientStop();
|
|
1822 |
~DomGradientStop();
|
|
1823 |
|
|
1824 |
void read(QXmlStreamReader &reader);
|
|
1825 |
#ifdef QUILOADER_QDOM_READ
|
|
1826 |
void read(const QDomElement &node);
|
|
1827 |
#endif
|
|
1828 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1829 |
inline QString text() const { return m_text; }
|
|
1830 |
inline void setText(const QString &s) { m_text = s; }
|
|
1831 |
|
|
1832 |
// attribute accessors
|
|
1833 |
inline bool hasAttributePosition() const { return m_has_attr_position; }
|
|
1834 |
inline double attributePosition() const { return m_attr_position; }
|
|
1835 |
inline void setAttributePosition(double a) { m_attr_position = a; m_has_attr_position = true; }
|
|
1836 |
inline void clearAttributePosition() { m_has_attr_position = false; }
|
|
1837 |
|
|
1838 |
// child element accessors
|
|
1839 |
inline DomColor* elementColor() const { return m_color; }
|
|
1840 |
DomColor* takeElementColor();
|
|
1841 |
void setElementColor(DomColor* a);
|
|
1842 |
inline bool hasElementColor() const { return m_children & Color; }
|
|
1843 |
void clearElementColor();
|
|
1844 |
|
|
1845 |
private:
|
|
1846 |
QString m_text;
|
|
1847 |
void clear(bool clear_all = true);
|
|
1848 |
|
|
1849 |
// attribute data
|
|
1850 |
double m_attr_position;
|
|
1851 |
bool m_has_attr_position;
|
|
1852 |
|
|
1853 |
// child element data
|
|
1854 |
uint m_children;
|
|
1855 |
DomColor* m_color;
|
|
1856 |
enum Child {
|
|
1857 |
Color = 1
|
|
1858 |
};
|
|
1859 |
|
|
1860 |
DomGradientStop(const DomGradientStop &other);
|
|
1861 |
void operator = (const DomGradientStop&other);
|
|
1862 |
};
|
|
1863 |
|
|
1864 |
class QDESIGNER_UILIB_EXPORT DomGradient {
|
|
1865 |
public:
|
|
1866 |
DomGradient();
|
|
1867 |
~DomGradient();
|
|
1868 |
|
|
1869 |
void read(QXmlStreamReader &reader);
|
|
1870 |
#ifdef QUILOADER_QDOM_READ
|
|
1871 |
void read(const QDomElement &node);
|
|
1872 |
#endif
|
|
1873 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
1874 |
inline QString text() const { return m_text; }
|
|
1875 |
inline void setText(const QString &s) { m_text = s; }
|
|
1876 |
|
|
1877 |
// attribute accessors
|
|
1878 |
inline bool hasAttributeStartX() const { return m_has_attr_startX; }
|
|
1879 |
inline double attributeStartX() const { return m_attr_startX; }
|
|
1880 |
inline void setAttributeStartX(double a) { m_attr_startX = a; m_has_attr_startX = true; }
|
|
1881 |
inline void clearAttributeStartX() { m_has_attr_startX = false; }
|
|
1882 |
|
|
1883 |
inline bool hasAttributeStartY() const { return m_has_attr_startY; }
|
|
1884 |
inline double attributeStartY() const { return m_attr_startY; }
|
|
1885 |
inline void setAttributeStartY(double a) { m_attr_startY = a; m_has_attr_startY = true; }
|
|
1886 |
inline void clearAttributeStartY() { m_has_attr_startY = false; }
|
|
1887 |
|
|
1888 |
inline bool hasAttributeEndX() const { return m_has_attr_endX; }
|
|
1889 |
inline double attributeEndX() const { return m_attr_endX; }
|
|
1890 |
inline void setAttributeEndX(double a) { m_attr_endX = a; m_has_attr_endX = true; }
|
|
1891 |
inline void clearAttributeEndX() { m_has_attr_endX = false; }
|
|
1892 |
|
|
1893 |
inline bool hasAttributeEndY() const { return m_has_attr_endY; }
|
|
1894 |
inline double attributeEndY() const { return m_attr_endY; }
|
|
1895 |
inline void setAttributeEndY(double a) { m_attr_endY = a; m_has_attr_endY = true; }
|
|
1896 |
inline void clearAttributeEndY() { m_has_attr_endY = false; }
|
|
1897 |
|
|
1898 |
inline bool hasAttributeCentralX() const { return m_has_attr_centralX; }
|
|
1899 |
inline double attributeCentralX() const { return m_attr_centralX; }
|
|
1900 |
inline void setAttributeCentralX(double a) { m_attr_centralX = a; m_has_attr_centralX = true; }
|
|
1901 |
inline void clearAttributeCentralX() { m_has_attr_centralX = false; }
|
|
1902 |
|
|
1903 |
inline bool hasAttributeCentralY() const { return m_has_attr_centralY; }
|
|
1904 |
inline double attributeCentralY() const { return m_attr_centralY; }
|
|
1905 |
inline void setAttributeCentralY(double a) { m_attr_centralY = a; m_has_attr_centralY = true; }
|
|
1906 |
inline void clearAttributeCentralY() { m_has_attr_centralY = false; }
|
|
1907 |
|
|
1908 |
inline bool hasAttributeFocalX() const { return m_has_attr_focalX; }
|
|
1909 |
inline double attributeFocalX() const { return m_attr_focalX; }
|
|
1910 |
inline void setAttributeFocalX(double a) { m_attr_focalX = a; m_has_attr_focalX = true; }
|
|
1911 |
inline void clearAttributeFocalX() { m_has_attr_focalX = false; }
|
|
1912 |
|
|
1913 |
inline bool hasAttributeFocalY() const { return m_has_attr_focalY; }
|
|
1914 |
inline double attributeFocalY() const { return m_attr_focalY; }
|
|
1915 |
inline void setAttributeFocalY(double a) { m_attr_focalY = a; m_has_attr_focalY = true; }
|
|
1916 |
inline void clearAttributeFocalY() { m_has_attr_focalY = false; }
|
|
1917 |
|
|
1918 |
inline bool hasAttributeRadius() const { return m_has_attr_radius; }
|
|
1919 |
inline double attributeRadius() const { return m_attr_radius; }
|
|
1920 |
inline void setAttributeRadius(double a) { m_attr_radius = a; m_has_attr_radius = true; }
|
|
1921 |
inline void clearAttributeRadius() { m_has_attr_radius = false; }
|
|
1922 |
|
|
1923 |
inline bool hasAttributeAngle() const { return m_has_attr_angle; }
|
|
1924 |
inline double attributeAngle() const { return m_attr_angle; }
|
|
1925 |
inline void setAttributeAngle(double a) { m_attr_angle = a; m_has_attr_angle = true; }
|
|
1926 |
inline void clearAttributeAngle() { m_has_attr_angle = false; }
|
|
1927 |
|
|
1928 |
inline bool hasAttributeType() const { return m_has_attr_type; }
|
|
1929 |
inline QString attributeType() const { return m_attr_type; }
|
|
1930 |
inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; }
|
|
1931 |
inline void clearAttributeType() { m_has_attr_type = false; }
|
|
1932 |
|
|
1933 |
inline bool hasAttributeSpread() const { return m_has_attr_spread; }
|
|
1934 |
inline QString attributeSpread() const { return m_attr_spread; }
|
|
1935 |
inline void setAttributeSpread(const QString& a) { m_attr_spread = a; m_has_attr_spread = true; }
|
|
1936 |
inline void clearAttributeSpread() { m_has_attr_spread = false; }
|
|
1937 |
|
|
1938 |
inline bool hasAttributeCoordinateMode() const { return m_has_attr_coordinateMode; }
|
|
1939 |
inline QString attributeCoordinateMode() const { return m_attr_coordinateMode; }
|
|
1940 |
inline void setAttributeCoordinateMode(const QString& a) { m_attr_coordinateMode = a; m_has_attr_coordinateMode = true; }
|
|
1941 |
inline void clearAttributeCoordinateMode() { m_has_attr_coordinateMode = false; }
|
|
1942 |
|
|
1943 |
// child element accessors
|
|
1944 |
inline QList<DomGradientStop*> elementGradientStop() const { return m_gradientStop; }
|
|
1945 |
void setElementGradientStop(const QList<DomGradientStop*>& a);
|
|
1946 |
|
|
1947 |
private:
|
|
1948 |
QString m_text;
|
|
1949 |
void clear(bool clear_all = true);
|
|
1950 |
|
|
1951 |
// attribute data
|
|
1952 |
double m_attr_startX;
|
|
1953 |
bool m_has_attr_startX;
|
|
1954 |
|
|
1955 |
double m_attr_startY;
|
|
1956 |
bool m_has_attr_startY;
|
|
1957 |
|
|
1958 |
double m_attr_endX;
|
|
1959 |
bool m_has_attr_endX;
|
|
1960 |
|
|
1961 |
double m_attr_endY;
|
|
1962 |
bool m_has_attr_endY;
|
|
1963 |
|
|
1964 |
double m_attr_centralX;
|
|
1965 |
bool m_has_attr_centralX;
|
|
1966 |
|
|
1967 |
double m_attr_centralY;
|
|
1968 |
bool m_has_attr_centralY;
|
|
1969 |
|
|
1970 |
double m_attr_focalX;
|
|
1971 |
bool m_has_attr_focalX;
|
|
1972 |
|
|
1973 |
double m_attr_focalY;
|
|
1974 |
bool m_has_attr_focalY;
|
|
1975 |
|
|
1976 |
double m_attr_radius;
|
|
1977 |
bool m_has_attr_radius;
|
|
1978 |
|
|
1979 |
double m_attr_angle;
|
|
1980 |
bool m_has_attr_angle;
|
|
1981 |
|
|
1982 |
QString m_attr_type;
|
|
1983 |
bool m_has_attr_type;
|
|
1984 |
|
|
1985 |
QString m_attr_spread;
|
|
1986 |
bool m_has_attr_spread;
|
|
1987 |
|
|
1988 |
QString m_attr_coordinateMode;
|
|
1989 |
bool m_has_attr_coordinateMode;
|
|
1990 |
|
|
1991 |
// child element data
|
|
1992 |
uint m_children;
|
|
1993 |
QList<DomGradientStop*> m_gradientStop;
|
|
1994 |
enum Child {
|
|
1995 |
GradientStop = 1
|
|
1996 |
};
|
|
1997 |
|
|
1998 |
DomGradient(const DomGradient &other);
|
|
1999 |
void operator = (const DomGradient&other);
|
|
2000 |
};
|
|
2001 |
|
|
2002 |
class QDESIGNER_UILIB_EXPORT DomBrush {
|
|
2003 |
public:
|
|
2004 |
DomBrush();
|
|
2005 |
~DomBrush();
|
|
2006 |
|
|
2007 |
void read(QXmlStreamReader &reader);
|
|
2008 |
#ifdef QUILOADER_QDOM_READ
|
|
2009 |
void read(const QDomElement &node);
|
|
2010 |
#endif
|
|
2011 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2012 |
inline QString text() const { return m_text; }
|
|
2013 |
inline void setText(const QString &s) { m_text = s; }
|
|
2014 |
|
|
2015 |
// attribute accessors
|
|
2016 |
inline bool hasAttributeBrushStyle() const { return m_has_attr_brushStyle; }
|
|
2017 |
inline QString attributeBrushStyle() const { return m_attr_brushStyle; }
|
|
2018 |
inline void setAttributeBrushStyle(const QString& a) { m_attr_brushStyle = a; m_has_attr_brushStyle = true; }
|
|
2019 |
inline void clearAttributeBrushStyle() { m_has_attr_brushStyle = false; }
|
|
2020 |
|
|
2021 |
// child element accessors
|
|
2022 |
enum Kind { Unknown = 0, Color, Texture, Gradient };
|
|
2023 |
inline Kind kind() const { return m_kind; }
|
|
2024 |
|
|
2025 |
inline DomColor* elementColor() const { return m_color; }
|
|
2026 |
DomColor* takeElementColor();
|
|
2027 |
void setElementColor(DomColor* a);
|
|
2028 |
|
|
2029 |
inline DomProperty* elementTexture() const { return m_texture; }
|
|
2030 |
DomProperty* takeElementTexture();
|
|
2031 |
void setElementTexture(DomProperty* a);
|
|
2032 |
|
|
2033 |
inline DomGradient* elementGradient() const { return m_gradient; }
|
|
2034 |
DomGradient* takeElementGradient();
|
|
2035 |
void setElementGradient(DomGradient* a);
|
|
2036 |
|
|
2037 |
private:
|
|
2038 |
QString m_text;
|
|
2039 |
void clear(bool clear_all = true);
|
|
2040 |
|
|
2041 |
// attribute data
|
|
2042 |
QString m_attr_brushStyle;
|
|
2043 |
bool m_has_attr_brushStyle;
|
|
2044 |
|
|
2045 |
// child element data
|
|
2046 |
Kind m_kind;
|
|
2047 |
DomColor* m_color;
|
|
2048 |
DomProperty* m_texture;
|
|
2049 |
DomGradient* m_gradient;
|
|
2050 |
|
|
2051 |
DomBrush(const DomBrush &other);
|
|
2052 |
void operator = (const DomBrush&other);
|
|
2053 |
};
|
|
2054 |
|
|
2055 |
class QDESIGNER_UILIB_EXPORT DomColorRole {
|
|
2056 |
public:
|
|
2057 |
DomColorRole();
|
|
2058 |
~DomColorRole();
|
|
2059 |
|
|
2060 |
void read(QXmlStreamReader &reader);
|
|
2061 |
#ifdef QUILOADER_QDOM_READ
|
|
2062 |
void read(const QDomElement &node);
|
|
2063 |
#endif
|
|
2064 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2065 |
inline QString text() const { return m_text; }
|
|
2066 |
inline void setText(const QString &s) { m_text = s; }
|
|
2067 |
|
|
2068 |
// attribute accessors
|
|
2069 |
inline bool hasAttributeRole() const { return m_has_attr_role; }
|
|
2070 |
inline QString attributeRole() const { return m_attr_role; }
|
|
2071 |
inline void setAttributeRole(const QString& a) { m_attr_role = a; m_has_attr_role = true; }
|
|
2072 |
inline void clearAttributeRole() { m_has_attr_role = false; }
|
|
2073 |
|
|
2074 |
// child element accessors
|
|
2075 |
inline DomBrush* elementBrush() const { return m_brush; }
|
|
2076 |
DomBrush* takeElementBrush();
|
|
2077 |
void setElementBrush(DomBrush* a);
|
|
2078 |
inline bool hasElementBrush() const { return m_children & Brush; }
|
|
2079 |
void clearElementBrush();
|
|
2080 |
|
|
2081 |
private:
|
|
2082 |
QString m_text;
|
|
2083 |
void clear(bool clear_all = true);
|
|
2084 |
|
|
2085 |
// attribute data
|
|
2086 |
QString m_attr_role;
|
|
2087 |
bool m_has_attr_role;
|
|
2088 |
|
|
2089 |
// child element data
|
|
2090 |
uint m_children;
|
|
2091 |
DomBrush* m_brush;
|
|
2092 |
enum Child {
|
|
2093 |
Brush = 1
|
|
2094 |
};
|
|
2095 |
|
|
2096 |
DomColorRole(const DomColorRole &other);
|
|
2097 |
void operator = (const DomColorRole&other);
|
|
2098 |
};
|
|
2099 |
|
|
2100 |
class QDESIGNER_UILIB_EXPORT DomColorGroup {
|
|
2101 |
public:
|
|
2102 |
DomColorGroup();
|
|
2103 |
~DomColorGroup();
|
|
2104 |
|
|
2105 |
void read(QXmlStreamReader &reader);
|
|
2106 |
#ifdef QUILOADER_QDOM_READ
|
|
2107 |
void read(const QDomElement &node);
|
|
2108 |
#endif
|
|
2109 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2110 |
inline QString text() const { return m_text; }
|
|
2111 |
inline void setText(const QString &s) { m_text = s; }
|
|
2112 |
|
|
2113 |
// attribute accessors
|
|
2114 |
// child element accessors
|
|
2115 |
inline QList<DomColorRole*> elementColorRole() const { return m_colorRole; }
|
|
2116 |
void setElementColorRole(const QList<DomColorRole*>& a);
|
|
2117 |
|
|
2118 |
inline QList<DomColor*> elementColor() const { return m_color; }
|
|
2119 |
void setElementColor(const QList<DomColor*>& a);
|
|
2120 |
|
|
2121 |
private:
|
|
2122 |
QString m_text;
|
|
2123 |
void clear(bool clear_all = true);
|
|
2124 |
|
|
2125 |
// attribute data
|
|
2126 |
// child element data
|
|
2127 |
uint m_children;
|
|
2128 |
QList<DomColorRole*> m_colorRole;
|
|
2129 |
QList<DomColor*> m_color;
|
|
2130 |
enum Child {
|
|
2131 |
ColorRole = 1,
|
|
2132 |
Color = 2
|
|
2133 |
};
|
|
2134 |
|
|
2135 |
DomColorGroup(const DomColorGroup &other);
|
|
2136 |
void operator = (const DomColorGroup&other);
|
|
2137 |
};
|
|
2138 |
|
|
2139 |
class QDESIGNER_UILIB_EXPORT DomPalette {
|
|
2140 |
public:
|
|
2141 |
DomPalette();
|
|
2142 |
~DomPalette();
|
|
2143 |
|
|
2144 |
void read(QXmlStreamReader &reader);
|
|
2145 |
#ifdef QUILOADER_QDOM_READ
|
|
2146 |
void read(const QDomElement &node);
|
|
2147 |
#endif
|
|
2148 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2149 |
inline QString text() const { return m_text; }
|
|
2150 |
inline void setText(const QString &s) { m_text = s; }
|
|
2151 |
|
|
2152 |
// attribute accessors
|
|
2153 |
// child element accessors
|
|
2154 |
inline DomColorGroup* elementActive() const { return m_active; }
|
|
2155 |
DomColorGroup* takeElementActive();
|
|
2156 |
void setElementActive(DomColorGroup* a);
|
|
2157 |
inline bool hasElementActive() const { return m_children & Active; }
|
|
2158 |
void clearElementActive();
|
|
2159 |
|
|
2160 |
inline DomColorGroup* elementInactive() const { return m_inactive; }
|
|
2161 |
DomColorGroup* takeElementInactive();
|
|
2162 |
void setElementInactive(DomColorGroup* a);
|
|
2163 |
inline bool hasElementInactive() const { return m_children & Inactive; }
|
|
2164 |
void clearElementInactive();
|
|
2165 |
|
|
2166 |
inline DomColorGroup* elementDisabled() const { return m_disabled; }
|
|
2167 |
DomColorGroup* takeElementDisabled();
|
|
2168 |
void setElementDisabled(DomColorGroup* a);
|
|
2169 |
inline bool hasElementDisabled() const { return m_children & Disabled; }
|
|
2170 |
void clearElementDisabled();
|
|
2171 |
|
|
2172 |
private:
|
|
2173 |
QString m_text;
|
|
2174 |
void clear(bool clear_all = true);
|
|
2175 |
|
|
2176 |
// attribute data
|
|
2177 |
// child element data
|
|
2178 |
uint m_children;
|
|
2179 |
DomColorGroup* m_active;
|
|
2180 |
DomColorGroup* m_inactive;
|
|
2181 |
DomColorGroup* m_disabled;
|
|
2182 |
enum Child {
|
|
2183 |
Active = 1,
|
|
2184 |
Inactive = 2,
|
|
2185 |
Disabled = 4
|
|
2186 |
};
|
|
2187 |
|
|
2188 |
DomPalette(const DomPalette &other);
|
|
2189 |
void operator = (const DomPalette&other);
|
|
2190 |
};
|
|
2191 |
|
|
2192 |
class QDESIGNER_UILIB_EXPORT DomFont {
|
|
2193 |
public:
|
|
2194 |
DomFont();
|
|
2195 |
~DomFont();
|
|
2196 |
|
|
2197 |
void read(QXmlStreamReader &reader);
|
|
2198 |
#ifdef QUILOADER_QDOM_READ
|
|
2199 |
void read(const QDomElement &node);
|
|
2200 |
#endif
|
|
2201 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2202 |
inline QString text() const { return m_text; }
|
|
2203 |
inline void setText(const QString &s) { m_text = s; }
|
|
2204 |
|
|
2205 |
// attribute accessors
|
|
2206 |
// child element accessors
|
|
2207 |
inline QString elementFamily() const { return m_family; }
|
|
2208 |
void setElementFamily(const QString& a);
|
|
2209 |
inline bool hasElementFamily() const { return m_children & Family; }
|
|
2210 |
void clearElementFamily();
|
|
2211 |
|
|
2212 |
inline int elementPointSize() const { return m_pointSize; }
|
|
2213 |
void setElementPointSize(int a);
|
|
2214 |
inline bool hasElementPointSize() const { return m_children & PointSize; }
|
|
2215 |
void clearElementPointSize();
|
|
2216 |
|
|
2217 |
inline int elementWeight() const { return m_weight; }
|
|
2218 |
void setElementWeight(int a);
|
|
2219 |
inline bool hasElementWeight() const { return m_children & Weight; }
|
|
2220 |
void clearElementWeight();
|
|
2221 |
|
|
2222 |
inline bool elementItalic() const { return m_italic; }
|
|
2223 |
void setElementItalic(bool a);
|
|
2224 |
inline bool hasElementItalic() const { return m_children & Italic; }
|
|
2225 |
void clearElementItalic();
|
|
2226 |
|
|
2227 |
inline bool elementBold() const { return m_bold; }
|
|
2228 |
void setElementBold(bool a);
|
|
2229 |
inline bool hasElementBold() const { return m_children & Bold; }
|
|
2230 |
void clearElementBold();
|
|
2231 |
|
|
2232 |
inline bool elementUnderline() const { return m_underline; }
|
|
2233 |
void setElementUnderline(bool a);
|
|
2234 |
inline bool hasElementUnderline() const { return m_children & Underline; }
|
|
2235 |
void clearElementUnderline();
|
|
2236 |
|
|
2237 |
inline bool elementStrikeOut() const { return m_strikeOut; }
|
|
2238 |
void setElementStrikeOut(bool a);
|
|
2239 |
inline bool hasElementStrikeOut() const { return m_children & StrikeOut; }
|
|
2240 |
void clearElementStrikeOut();
|
|
2241 |
|
|
2242 |
inline bool elementAntialiasing() const { return m_antialiasing; }
|
|
2243 |
void setElementAntialiasing(bool a);
|
|
2244 |
inline bool hasElementAntialiasing() const { return m_children & Antialiasing; }
|
|
2245 |
void clearElementAntialiasing();
|
|
2246 |
|
|
2247 |
inline QString elementStyleStrategy() const { return m_styleStrategy; }
|
|
2248 |
void setElementStyleStrategy(const QString& a);
|
|
2249 |
inline bool hasElementStyleStrategy() const { return m_children & StyleStrategy; }
|
|
2250 |
void clearElementStyleStrategy();
|
|
2251 |
|
|
2252 |
inline bool elementKerning() const { return m_kerning; }
|
|
2253 |
void setElementKerning(bool a);
|
|
2254 |
inline bool hasElementKerning() const { return m_children & Kerning; }
|
|
2255 |
void clearElementKerning();
|
|
2256 |
|
|
2257 |
private:
|
|
2258 |
QString m_text;
|
|
2259 |
void clear(bool clear_all = true);
|
|
2260 |
|
|
2261 |
// attribute data
|
|
2262 |
// child element data
|
|
2263 |
uint m_children;
|
|
2264 |
QString m_family;
|
|
2265 |
int m_pointSize;
|
|
2266 |
int m_weight;
|
|
2267 |
bool m_italic;
|
|
2268 |
bool m_bold;
|
|
2269 |
bool m_underline;
|
|
2270 |
bool m_strikeOut;
|
|
2271 |
bool m_antialiasing;
|
|
2272 |
QString m_styleStrategy;
|
|
2273 |
bool m_kerning;
|
|
2274 |
enum Child {
|
|
2275 |
Family = 1,
|
|
2276 |
PointSize = 2,
|
|
2277 |
Weight = 4,
|
|
2278 |
Italic = 8,
|
|
2279 |
Bold = 16,
|
|
2280 |
Underline = 32,
|
|
2281 |
StrikeOut = 64,
|
|
2282 |
Antialiasing = 128,
|
|
2283 |
StyleStrategy = 256,
|
|
2284 |
Kerning = 512
|
|
2285 |
};
|
|
2286 |
|
|
2287 |
DomFont(const DomFont &other);
|
|
2288 |
void operator = (const DomFont&other);
|
|
2289 |
};
|
|
2290 |
|
|
2291 |
class QDESIGNER_UILIB_EXPORT DomPoint {
|
|
2292 |
public:
|
|
2293 |
DomPoint();
|
|
2294 |
~DomPoint();
|
|
2295 |
|
|
2296 |
void read(QXmlStreamReader &reader);
|
|
2297 |
#ifdef QUILOADER_QDOM_READ
|
|
2298 |
void read(const QDomElement &node);
|
|
2299 |
#endif
|
|
2300 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2301 |
inline QString text() const { return m_text; }
|
|
2302 |
inline void setText(const QString &s) { m_text = s; }
|
|
2303 |
|
|
2304 |
// attribute accessors
|
|
2305 |
// child element accessors
|
|
2306 |
inline int elementX() const { return m_x; }
|
|
2307 |
void setElementX(int a);
|
|
2308 |
inline bool hasElementX() const { return m_children & X; }
|
|
2309 |
void clearElementX();
|
|
2310 |
|
|
2311 |
inline int elementY() const { return m_y; }
|
|
2312 |
void setElementY(int a);
|
|
2313 |
inline bool hasElementY() const { return m_children & Y; }
|
|
2314 |
void clearElementY();
|
|
2315 |
|
|
2316 |
private:
|
|
2317 |
QString m_text;
|
|
2318 |
void clear(bool clear_all = true);
|
|
2319 |
|
|
2320 |
// attribute data
|
|
2321 |
// child element data
|
|
2322 |
uint m_children;
|
|
2323 |
int m_x;
|
|
2324 |
int m_y;
|
|
2325 |
enum Child {
|
|
2326 |
X = 1,
|
|
2327 |
Y = 2
|
|
2328 |
};
|
|
2329 |
|
|
2330 |
DomPoint(const DomPoint &other);
|
|
2331 |
void operator = (const DomPoint&other);
|
|
2332 |
};
|
|
2333 |
|
|
2334 |
class QDESIGNER_UILIB_EXPORT DomRect {
|
|
2335 |
public:
|
|
2336 |
DomRect();
|
|
2337 |
~DomRect();
|
|
2338 |
|
|
2339 |
void read(QXmlStreamReader &reader);
|
|
2340 |
#ifdef QUILOADER_QDOM_READ
|
|
2341 |
void read(const QDomElement &node);
|
|
2342 |
#endif
|
|
2343 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2344 |
inline QString text() const { return m_text; }
|
|
2345 |
inline void setText(const QString &s) { m_text = s; }
|
|
2346 |
|
|
2347 |
// attribute accessors
|
|
2348 |
// child element accessors
|
|
2349 |
inline int elementX() const { return m_x; }
|
|
2350 |
void setElementX(int a);
|
|
2351 |
inline bool hasElementX() const { return m_children & X; }
|
|
2352 |
void clearElementX();
|
|
2353 |
|
|
2354 |
inline int elementY() const { return m_y; }
|
|
2355 |
void setElementY(int a);
|
|
2356 |
inline bool hasElementY() const { return m_children & Y; }
|
|
2357 |
void clearElementY();
|
|
2358 |
|
|
2359 |
inline int elementWidth() const { return m_width; }
|
|
2360 |
void setElementWidth(int a);
|
|
2361 |
inline bool hasElementWidth() const { return m_children & Width; }
|
|
2362 |
void clearElementWidth();
|
|
2363 |
|
|
2364 |
inline int elementHeight() const { return m_height; }
|
|
2365 |
void setElementHeight(int a);
|
|
2366 |
inline bool hasElementHeight() const { return m_children & Height; }
|
|
2367 |
void clearElementHeight();
|
|
2368 |
|
|
2369 |
private:
|
|
2370 |
QString m_text;
|
|
2371 |
void clear(bool clear_all = true);
|
|
2372 |
|
|
2373 |
// attribute data
|
|
2374 |
// child element data
|
|
2375 |
uint m_children;
|
|
2376 |
int m_x;
|
|
2377 |
int m_y;
|
|
2378 |
int m_width;
|
|
2379 |
int m_height;
|
|
2380 |
enum Child {
|
|
2381 |
X = 1,
|
|
2382 |
Y = 2,
|
|
2383 |
Width = 4,
|
|
2384 |
Height = 8
|
|
2385 |
};
|
|
2386 |
|
|
2387 |
DomRect(const DomRect &other);
|
|
2388 |
void operator = (const DomRect&other);
|
|
2389 |
};
|
|
2390 |
|
|
2391 |
class QDESIGNER_UILIB_EXPORT DomLocale {
|
|
2392 |
public:
|
|
2393 |
DomLocale();
|
|
2394 |
~DomLocale();
|
|
2395 |
|
|
2396 |
void read(QXmlStreamReader &reader);
|
|
2397 |
#ifdef QUILOADER_QDOM_READ
|
|
2398 |
void read(const QDomElement &node);
|
|
2399 |
#endif
|
|
2400 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2401 |
inline QString text() const { return m_text; }
|
|
2402 |
inline void setText(const QString &s) { m_text = s; }
|
|
2403 |
|
|
2404 |
// attribute accessors
|
|
2405 |
inline bool hasAttributeLanguage() const { return m_has_attr_language; }
|
|
2406 |
inline QString attributeLanguage() const { return m_attr_language; }
|
|
2407 |
inline void setAttributeLanguage(const QString& a) { m_attr_language = a; m_has_attr_language = true; }
|
|
2408 |
inline void clearAttributeLanguage() { m_has_attr_language = false; }
|
|
2409 |
|
|
2410 |
inline bool hasAttributeCountry() const { return m_has_attr_country; }
|
|
2411 |
inline QString attributeCountry() const { return m_attr_country; }
|
|
2412 |
inline void setAttributeCountry(const QString& a) { m_attr_country = a; m_has_attr_country = true; }
|
|
2413 |
inline void clearAttributeCountry() { m_has_attr_country = false; }
|
|
2414 |
|
|
2415 |
// child element accessors
|
|
2416 |
private:
|
|
2417 |
QString m_text;
|
|
2418 |
void clear(bool clear_all = true);
|
|
2419 |
|
|
2420 |
// attribute data
|
|
2421 |
QString m_attr_language;
|
|
2422 |
bool m_has_attr_language;
|
|
2423 |
|
|
2424 |
QString m_attr_country;
|
|
2425 |
bool m_has_attr_country;
|
|
2426 |
|
|
2427 |
// child element data
|
|
2428 |
uint m_children;
|
|
2429 |
|
|
2430 |
DomLocale(const DomLocale &other);
|
|
2431 |
void operator = (const DomLocale&other);
|
|
2432 |
};
|
|
2433 |
|
|
2434 |
class QDESIGNER_UILIB_EXPORT DomSizePolicy {
|
|
2435 |
public:
|
|
2436 |
DomSizePolicy();
|
|
2437 |
~DomSizePolicy();
|
|
2438 |
|
|
2439 |
void read(QXmlStreamReader &reader);
|
|
2440 |
#ifdef QUILOADER_QDOM_READ
|
|
2441 |
void read(const QDomElement &node);
|
|
2442 |
#endif
|
|
2443 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2444 |
inline QString text() const { return m_text; }
|
|
2445 |
inline void setText(const QString &s) { m_text = s; }
|
|
2446 |
|
|
2447 |
// attribute accessors
|
|
2448 |
inline bool hasAttributeHSizeType() const { return m_has_attr_hSizeType; }
|
|
2449 |
inline QString attributeHSizeType() const { return m_attr_hSizeType; }
|
|
2450 |
inline void setAttributeHSizeType(const QString& a) { m_attr_hSizeType = a; m_has_attr_hSizeType = true; }
|
|
2451 |
inline void clearAttributeHSizeType() { m_has_attr_hSizeType = false; }
|
|
2452 |
|
|
2453 |
inline bool hasAttributeVSizeType() const { return m_has_attr_vSizeType; }
|
|
2454 |
inline QString attributeVSizeType() const { return m_attr_vSizeType; }
|
|
2455 |
inline void setAttributeVSizeType(const QString& a) { m_attr_vSizeType = a; m_has_attr_vSizeType = true; }
|
|
2456 |
inline void clearAttributeVSizeType() { m_has_attr_vSizeType = false; }
|
|
2457 |
|
|
2458 |
// child element accessors
|
|
2459 |
inline int elementHSizeType() const { return m_hSizeType; }
|
|
2460 |
void setElementHSizeType(int a);
|
|
2461 |
inline bool hasElementHSizeType() const { return m_children & HSizeType; }
|
|
2462 |
void clearElementHSizeType();
|
|
2463 |
|
|
2464 |
inline int elementVSizeType() const { return m_vSizeType; }
|
|
2465 |
void setElementVSizeType(int a);
|
|
2466 |
inline bool hasElementVSizeType() const { return m_children & VSizeType; }
|
|
2467 |
void clearElementVSizeType();
|
|
2468 |
|
|
2469 |
inline int elementHorStretch() const { return m_horStretch; }
|
|
2470 |
void setElementHorStretch(int a);
|
|
2471 |
inline bool hasElementHorStretch() const { return m_children & HorStretch; }
|
|
2472 |
void clearElementHorStretch();
|
|
2473 |
|
|
2474 |
inline int elementVerStretch() const { return m_verStretch; }
|
|
2475 |
void setElementVerStretch(int a);
|
|
2476 |
inline bool hasElementVerStretch() const { return m_children & VerStretch; }
|
|
2477 |
void clearElementVerStretch();
|
|
2478 |
|
|
2479 |
private:
|
|
2480 |
QString m_text;
|
|
2481 |
void clear(bool clear_all = true);
|
|
2482 |
|
|
2483 |
// attribute data
|
|
2484 |
QString m_attr_hSizeType;
|
|
2485 |
bool m_has_attr_hSizeType;
|
|
2486 |
|
|
2487 |
QString m_attr_vSizeType;
|
|
2488 |
bool m_has_attr_vSizeType;
|
|
2489 |
|
|
2490 |
// child element data
|
|
2491 |
uint m_children;
|
|
2492 |
int m_hSizeType;
|
|
2493 |
int m_vSizeType;
|
|
2494 |
int m_horStretch;
|
|
2495 |
int m_verStretch;
|
|
2496 |
enum Child {
|
|
2497 |
HSizeType = 1,
|
|
2498 |
VSizeType = 2,
|
|
2499 |
HorStretch = 4,
|
|
2500 |
VerStretch = 8
|
|
2501 |
};
|
|
2502 |
|
|
2503 |
DomSizePolicy(const DomSizePolicy &other);
|
|
2504 |
void operator = (const DomSizePolicy&other);
|
|
2505 |
};
|
|
2506 |
|
|
2507 |
class QDESIGNER_UILIB_EXPORT DomSize {
|
|
2508 |
public:
|
|
2509 |
DomSize();
|
|
2510 |
~DomSize();
|
|
2511 |
|
|
2512 |
void read(QXmlStreamReader &reader);
|
|
2513 |
#ifdef QUILOADER_QDOM_READ
|
|
2514 |
void read(const QDomElement &node);
|
|
2515 |
#endif
|
|
2516 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2517 |
inline QString text() const { return m_text; }
|
|
2518 |
inline void setText(const QString &s) { m_text = s; }
|
|
2519 |
|
|
2520 |
// attribute accessors
|
|
2521 |
// child element accessors
|
|
2522 |
inline int elementWidth() const { return m_width; }
|
|
2523 |
void setElementWidth(int a);
|
|
2524 |
inline bool hasElementWidth() const { return m_children & Width; }
|
|
2525 |
void clearElementWidth();
|
|
2526 |
|
|
2527 |
inline int elementHeight() const { return m_height; }
|
|
2528 |
void setElementHeight(int a);
|
|
2529 |
inline bool hasElementHeight() const { return m_children & Height; }
|
|
2530 |
void clearElementHeight();
|
|
2531 |
|
|
2532 |
private:
|
|
2533 |
QString m_text;
|
|
2534 |
void clear(bool clear_all = true);
|
|
2535 |
|
|
2536 |
// attribute data
|
|
2537 |
// child element data
|
|
2538 |
uint m_children;
|
|
2539 |
int m_width;
|
|
2540 |
int m_height;
|
|
2541 |
enum Child {
|
|
2542 |
Width = 1,
|
|
2543 |
Height = 2
|
|
2544 |
};
|
|
2545 |
|
|
2546 |
DomSize(const DomSize &other);
|
|
2547 |
void operator = (const DomSize&other);
|
|
2548 |
};
|
|
2549 |
|
|
2550 |
class QDESIGNER_UILIB_EXPORT DomDate {
|
|
2551 |
public:
|
|
2552 |
DomDate();
|
|
2553 |
~DomDate();
|
|
2554 |
|
|
2555 |
void read(QXmlStreamReader &reader);
|
|
2556 |
#ifdef QUILOADER_QDOM_READ
|
|
2557 |
void read(const QDomElement &node);
|
|
2558 |
#endif
|
|
2559 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2560 |
inline QString text() const { return m_text; }
|
|
2561 |
inline void setText(const QString &s) { m_text = s; }
|
|
2562 |
|
|
2563 |
// attribute accessors
|
|
2564 |
// child element accessors
|
|
2565 |
inline int elementYear() const { return m_year; }
|
|
2566 |
void setElementYear(int a);
|
|
2567 |
inline bool hasElementYear() const { return m_children & Year; }
|
|
2568 |
void clearElementYear();
|
|
2569 |
|
|
2570 |
inline int elementMonth() const { return m_month; }
|
|
2571 |
void setElementMonth(int a);
|
|
2572 |
inline bool hasElementMonth() const { return m_children & Month; }
|
|
2573 |
void clearElementMonth();
|
|
2574 |
|
|
2575 |
inline int elementDay() const { return m_day; }
|
|
2576 |
void setElementDay(int a);
|
|
2577 |
inline bool hasElementDay() const { return m_children & Day; }
|
|
2578 |
void clearElementDay();
|
|
2579 |
|
|
2580 |
private:
|
|
2581 |
QString m_text;
|
|
2582 |
void clear(bool clear_all = true);
|
|
2583 |
|
|
2584 |
// attribute data
|
|
2585 |
// child element data
|
|
2586 |
uint m_children;
|
|
2587 |
int m_year;
|
|
2588 |
int m_month;
|
|
2589 |
int m_day;
|
|
2590 |
enum Child {
|
|
2591 |
Year = 1,
|
|
2592 |
Month = 2,
|
|
2593 |
Day = 4
|
|
2594 |
};
|
|
2595 |
|
|
2596 |
DomDate(const DomDate &other);
|
|
2597 |
void operator = (const DomDate&other);
|
|
2598 |
};
|
|
2599 |
|
|
2600 |
class QDESIGNER_UILIB_EXPORT DomTime {
|
|
2601 |
public:
|
|
2602 |
DomTime();
|
|
2603 |
~DomTime();
|
|
2604 |
|
|
2605 |
void read(QXmlStreamReader &reader);
|
|
2606 |
#ifdef QUILOADER_QDOM_READ
|
|
2607 |
void read(const QDomElement &node);
|
|
2608 |
#endif
|
|
2609 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2610 |
inline QString text() const { return m_text; }
|
|
2611 |
inline void setText(const QString &s) { m_text = s; }
|
|
2612 |
|
|
2613 |
// attribute accessors
|
|
2614 |
// child element accessors
|
|
2615 |
inline int elementHour() const { return m_hour; }
|
|
2616 |
void setElementHour(int a);
|
|
2617 |
inline bool hasElementHour() const { return m_children & Hour; }
|
|
2618 |
void clearElementHour();
|
|
2619 |
|
|
2620 |
inline int elementMinute() const { return m_minute; }
|
|
2621 |
void setElementMinute(int a);
|
|
2622 |
inline bool hasElementMinute() const { return m_children & Minute; }
|
|
2623 |
void clearElementMinute();
|
|
2624 |
|
|
2625 |
inline int elementSecond() const { return m_second; }
|
|
2626 |
void setElementSecond(int a);
|
|
2627 |
inline bool hasElementSecond() const { return m_children & Second; }
|
|
2628 |
void clearElementSecond();
|
|
2629 |
|
|
2630 |
private:
|
|
2631 |
QString m_text;
|
|
2632 |
void clear(bool clear_all = true);
|
|
2633 |
|
|
2634 |
// attribute data
|
|
2635 |
// child element data
|
|
2636 |
uint m_children;
|
|
2637 |
int m_hour;
|
|
2638 |
int m_minute;
|
|
2639 |
int m_second;
|
|
2640 |
enum Child {
|
|
2641 |
Hour = 1,
|
|
2642 |
Minute = 2,
|
|
2643 |
Second = 4
|
|
2644 |
};
|
|
2645 |
|
|
2646 |
DomTime(const DomTime &other);
|
|
2647 |
void operator = (const DomTime&other);
|
|
2648 |
};
|
|
2649 |
|
|
2650 |
class QDESIGNER_UILIB_EXPORT DomDateTime {
|
|
2651 |
public:
|
|
2652 |
DomDateTime();
|
|
2653 |
~DomDateTime();
|
|
2654 |
|
|
2655 |
void read(QXmlStreamReader &reader);
|
|
2656 |
#ifdef QUILOADER_QDOM_READ
|
|
2657 |
void read(const QDomElement &node);
|
|
2658 |
#endif
|
|
2659 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2660 |
inline QString text() const { return m_text; }
|
|
2661 |
inline void setText(const QString &s) { m_text = s; }
|
|
2662 |
|
|
2663 |
// attribute accessors
|
|
2664 |
// child element accessors
|
|
2665 |
inline int elementHour() const { return m_hour; }
|
|
2666 |
void setElementHour(int a);
|
|
2667 |
inline bool hasElementHour() const { return m_children & Hour; }
|
|
2668 |
void clearElementHour();
|
|
2669 |
|
|
2670 |
inline int elementMinute() const { return m_minute; }
|
|
2671 |
void setElementMinute(int a);
|
|
2672 |
inline bool hasElementMinute() const { return m_children & Minute; }
|
|
2673 |
void clearElementMinute();
|
|
2674 |
|
|
2675 |
inline int elementSecond() const { return m_second; }
|
|
2676 |
void setElementSecond(int a);
|
|
2677 |
inline bool hasElementSecond() const { return m_children & Second; }
|
|
2678 |
void clearElementSecond();
|
|
2679 |
|
|
2680 |
inline int elementYear() const { return m_year; }
|
|
2681 |
void setElementYear(int a);
|
|
2682 |
inline bool hasElementYear() const { return m_children & Year; }
|
|
2683 |
void clearElementYear();
|
|
2684 |
|
|
2685 |
inline int elementMonth() const { return m_month; }
|
|
2686 |
void setElementMonth(int a);
|
|
2687 |
inline bool hasElementMonth() const { return m_children & Month; }
|
|
2688 |
void clearElementMonth();
|
|
2689 |
|
|
2690 |
inline int elementDay() const { return m_day; }
|
|
2691 |
void setElementDay(int a);
|
|
2692 |
inline bool hasElementDay() const { return m_children & Day; }
|
|
2693 |
void clearElementDay();
|
|
2694 |
|
|
2695 |
private:
|
|
2696 |
QString m_text;
|
|
2697 |
void clear(bool clear_all = true);
|
|
2698 |
|
|
2699 |
// attribute data
|
|
2700 |
// child element data
|
|
2701 |
uint m_children;
|
|
2702 |
int m_hour;
|
|
2703 |
int m_minute;
|
|
2704 |
int m_second;
|
|
2705 |
int m_year;
|
|
2706 |
int m_month;
|
|
2707 |
int m_day;
|
|
2708 |
enum Child {
|
|
2709 |
Hour = 1,
|
|
2710 |
Minute = 2,
|
|
2711 |
Second = 4,
|
|
2712 |
Year = 8,
|
|
2713 |
Month = 16,
|
|
2714 |
Day = 32
|
|
2715 |
};
|
|
2716 |
|
|
2717 |
DomDateTime(const DomDateTime &other);
|
|
2718 |
void operator = (const DomDateTime&other);
|
|
2719 |
};
|
|
2720 |
|
|
2721 |
class QDESIGNER_UILIB_EXPORT DomStringList {
|
|
2722 |
public:
|
|
2723 |
DomStringList();
|
|
2724 |
~DomStringList();
|
|
2725 |
|
|
2726 |
void read(QXmlStreamReader &reader);
|
|
2727 |
#ifdef QUILOADER_QDOM_READ
|
|
2728 |
void read(const QDomElement &node);
|
|
2729 |
#endif
|
|
2730 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2731 |
inline QString text() const { return m_text; }
|
|
2732 |
inline void setText(const QString &s) { m_text = s; }
|
|
2733 |
|
|
2734 |
// attribute accessors
|
|
2735 |
// child element accessors
|
|
2736 |
inline QStringList elementString() const { return m_string; }
|
|
2737 |
void setElementString(const QStringList& a);
|
|
2738 |
|
|
2739 |
private:
|
|
2740 |
QString m_text;
|
|
2741 |
void clear(bool clear_all = true);
|
|
2742 |
|
|
2743 |
// attribute data
|
|
2744 |
// child element data
|
|
2745 |
uint m_children;
|
|
2746 |
QStringList m_string;
|
|
2747 |
enum Child {
|
|
2748 |
String = 1
|
|
2749 |
};
|
|
2750 |
|
|
2751 |
DomStringList(const DomStringList &other);
|
|
2752 |
void operator = (const DomStringList&other);
|
|
2753 |
};
|
|
2754 |
|
|
2755 |
class QDESIGNER_UILIB_EXPORT DomResourcePixmap {
|
|
2756 |
public:
|
|
2757 |
DomResourcePixmap();
|
|
2758 |
~DomResourcePixmap();
|
|
2759 |
|
|
2760 |
void read(QXmlStreamReader &reader);
|
|
2761 |
#ifdef QUILOADER_QDOM_READ
|
|
2762 |
void read(const QDomElement &node);
|
|
2763 |
#endif
|
|
2764 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2765 |
inline QString text() const { return m_text; }
|
|
2766 |
inline void setText(const QString &s) { m_text = s; }
|
|
2767 |
|
|
2768 |
// attribute accessors
|
|
2769 |
inline bool hasAttributeResource() const { return m_has_attr_resource; }
|
|
2770 |
inline QString attributeResource() const { return m_attr_resource; }
|
|
2771 |
inline void setAttributeResource(const QString& a) { m_attr_resource = a; m_has_attr_resource = true; }
|
|
2772 |
inline void clearAttributeResource() { m_has_attr_resource = false; }
|
|
2773 |
|
|
2774 |
inline bool hasAttributeAlias() const { return m_has_attr_alias; }
|
|
2775 |
inline QString attributeAlias() const { return m_attr_alias; }
|
|
2776 |
inline void setAttributeAlias(const QString& a) { m_attr_alias = a; m_has_attr_alias = true; }
|
|
2777 |
inline void clearAttributeAlias() { m_has_attr_alias = false; }
|
|
2778 |
|
|
2779 |
// child element accessors
|
|
2780 |
private:
|
|
2781 |
QString m_text;
|
|
2782 |
void clear(bool clear_all = true);
|
|
2783 |
|
|
2784 |
// attribute data
|
|
2785 |
QString m_attr_resource;
|
|
2786 |
bool m_has_attr_resource;
|
|
2787 |
|
|
2788 |
QString m_attr_alias;
|
|
2789 |
bool m_has_attr_alias;
|
|
2790 |
|
|
2791 |
// child element data
|
|
2792 |
uint m_children;
|
|
2793 |
|
|
2794 |
DomResourcePixmap(const DomResourcePixmap &other);
|
|
2795 |
void operator = (const DomResourcePixmap&other);
|
|
2796 |
};
|
|
2797 |
|
|
2798 |
class QDESIGNER_UILIB_EXPORT DomResourceIcon {
|
|
2799 |
public:
|
|
2800 |
DomResourceIcon();
|
|
2801 |
~DomResourceIcon();
|
|
2802 |
|
|
2803 |
void read(QXmlStreamReader &reader);
|
|
2804 |
#ifdef QUILOADER_QDOM_READ
|
|
2805 |
void read(const QDomElement &node);
|
|
2806 |
#endif
|
|
2807 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2808 |
inline QString text() const { return m_text; }
|
|
2809 |
inline void setText(const QString &s) { m_text = s; }
|
|
2810 |
|
|
2811 |
// attribute accessors
|
|
2812 |
inline bool hasAttributeResource() const { return m_has_attr_resource; }
|
|
2813 |
inline QString attributeResource() const { return m_attr_resource; }
|
|
2814 |
inline void setAttributeResource(const QString& a) { m_attr_resource = a; m_has_attr_resource = true; }
|
|
2815 |
inline void clearAttributeResource() { m_has_attr_resource = false; }
|
|
2816 |
|
|
2817 |
// child element accessors
|
|
2818 |
inline DomResourcePixmap* elementNormalOff() const { return m_normalOff; }
|
|
2819 |
DomResourcePixmap* takeElementNormalOff();
|
|
2820 |
void setElementNormalOff(DomResourcePixmap* a);
|
|
2821 |
inline bool hasElementNormalOff() const { return m_children & NormalOff; }
|
|
2822 |
void clearElementNormalOff();
|
|
2823 |
|
|
2824 |
inline DomResourcePixmap* elementNormalOn() const { return m_normalOn; }
|
|
2825 |
DomResourcePixmap* takeElementNormalOn();
|
|
2826 |
void setElementNormalOn(DomResourcePixmap* a);
|
|
2827 |
inline bool hasElementNormalOn() const { return m_children & NormalOn; }
|
|
2828 |
void clearElementNormalOn();
|
|
2829 |
|
|
2830 |
inline DomResourcePixmap* elementDisabledOff() const { return m_disabledOff; }
|
|
2831 |
DomResourcePixmap* takeElementDisabledOff();
|
|
2832 |
void setElementDisabledOff(DomResourcePixmap* a);
|
|
2833 |
inline bool hasElementDisabledOff() const { return m_children & DisabledOff; }
|
|
2834 |
void clearElementDisabledOff();
|
|
2835 |
|
|
2836 |
inline DomResourcePixmap* elementDisabledOn() const { return m_disabledOn; }
|
|
2837 |
DomResourcePixmap* takeElementDisabledOn();
|
|
2838 |
void setElementDisabledOn(DomResourcePixmap* a);
|
|
2839 |
inline bool hasElementDisabledOn() const { return m_children & DisabledOn; }
|
|
2840 |
void clearElementDisabledOn();
|
|
2841 |
|
|
2842 |
inline DomResourcePixmap* elementActiveOff() const { return m_activeOff; }
|
|
2843 |
DomResourcePixmap* takeElementActiveOff();
|
|
2844 |
void setElementActiveOff(DomResourcePixmap* a);
|
|
2845 |
inline bool hasElementActiveOff() const { return m_children & ActiveOff; }
|
|
2846 |
void clearElementActiveOff();
|
|
2847 |
|
|
2848 |
inline DomResourcePixmap* elementActiveOn() const { return m_activeOn; }
|
|
2849 |
DomResourcePixmap* takeElementActiveOn();
|
|
2850 |
void setElementActiveOn(DomResourcePixmap* a);
|
|
2851 |
inline bool hasElementActiveOn() const { return m_children & ActiveOn; }
|
|
2852 |
void clearElementActiveOn();
|
|
2853 |
|
|
2854 |
inline DomResourcePixmap* elementSelectedOff() const { return m_selectedOff; }
|
|
2855 |
DomResourcePixmap* takeElementSelectedOff();
|
|
2856 |
void setElementSelectedOff(DomResourcePixmap* a);
|
|
2857 |
inline bool hasElementSelectedOff() const { return m_children & SelectedOff; }
|
|
2858 |
void clearElementSelectedOff();
|
|
2859 |
|
|
2860 |
inline DomResourcePixmap* elementSelectedOn() const { return m_selectedOn; }
|
|
2861 |
DomResourcePixmap* takeElementSelectedOn();
|
|
2862 |
void setElementSelectedOn(DomResourcePixmap* a);
|
|
2863 |
inline bool hasElementSelectedOn() const { return m_children & SelectedOn; }
|
|
2864 |
void clearElementSelectedOn();
|
|
2865 |
|
|
2866 |
private:
|
|
2867 |
QString m_text;
|
|
2868 |
void clear(bool clear_all = true);
|
|
2869 |
|
|
2870 |
// attribute data
|
|
2871 |
QString m_attr_resource;
|
|
2872 |
bool m_has_attr_resource;
|
|
2873 |
|
|
2874 |
// child element data
|
|
2875 |
uint m_children;
|
|
2876 |
DomResourcePixmap* m_normalOff;
|
|
2877 |
DomResourcePixmap* m_normalOn;
|
|
2878 |
DomResourcePixmap* m_disabledOff;
|
|
2879 |
DomResourcePixmap* m_disabledOn;
|
|
2880 |
DomResourcePixmap* m_activeOff;
|
|
2881 |
DomResourcePixmap* m_activeOn;
|
|
2882 |
DomResourcePixmap* m_selectedOff;
|
|
2883 |
DomResourcePixmap* m_selectedOn;
|
|
2884 |
enum Child {
|
|
2885 |
NormalOff = 1,
|
|
2886 |
NormalOn = 2,
|
|
2887 |
DisabledOff = 4,
|
|
2888 |
DisabledOn = 8,
|
|
2889 |
ActiveOff = 16,
|
|
2890 |
ActiveOn = 32,
|
|
2891 |
SelectedOff = 64,
|
|
2892 |
SelectedOn = 128
|
|
2893 |
};
|
|
2894 |
|
|
2895 |
DomResourceIcon(const DomResourceIcon &other);
|
|
2896 |
void operator = (const DomResourceIcon&other);
|
|
2897 |
};
|
|
2898 |
|
|
2899 |
class QDESIGNER_UILIB_EXPORT DomString {
|
|
2900 |
public:
|
|
2901 |
DomString();
|
|
2902 |
~DomString();
|
|
2903 |
|
|
2904 |
void read(QXmlStreamReader &reader);
|
|
2905 |
#ifdef QUILOADER_QDOM_READ
|
|
2906 |
void read(const QDomElement &node);
|
|
2907 |
#endif
|
|
2908 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2909 |
inline QString text() const { return m_text; }
|
|
2910 |
inline void setText(const QString &s) { m_text = s; }
|
|
2911 |
|
|
2912 |
// attribute accessors
|
|
2913 |
inline bool hasAttributeNotr() const { return m_has_attr_notr; }
|
|
2914 |
inline QString attributeNotr() const { return m_attr_notr; }
|
|
2915 |
inline void setAttributeNotr(const QString& a) { m_attr_notr = a; m_has_attr_notr = true; }
|
|
2916 |
inline void clearAttributeNotr() { m_has_attr_notr = false; }
|
|
2917 |
|
|
2918 |
inline bool hasAttributeComment() const { return m_has_attr_comment; }
|
|
2919 |
inline QString attributeComment() const { return m_attr_comment; }
|
|
2920 |
inline void setAttributeComment(const QString& a) { m_attr_comment = a; m_has_attr_comment = true; }
|
|
2921 |
inline void clearAttributeComment() { m_has_attr_comment = false; }
|
|
2922 |
|
|
2923 |
inline bool hasAttributeExtraComment() const { return m_has_attr_extraComment; }
|
|
2924 |
inline QString attributeExtraComment() const { return m_attr_extraComment; }
|
|
2925 |
inline void setAttributeExtraComment(const QString& a) { m_attr_extraComment = a; m_has_attr_extraComment = true; }
|
|
2926 |
inline void clearAttributeExtraComment() { m_has_attr_extraComment = false; }
|
|
2927 |
|
|
2928 |
// child element accessors
|
|
2929 |
private:
|
|
2930 |
QString m_text;
|
|
2931 |
void clear(bool clear_all = true);
|
|
2932 |
|
|
2933 |
// attribute data
|
|
2934 |
QString m_attr_notr;
|
|
2935 |
bool m_has_attr_notr;
|
|
2936 |
|
|
2937 |
QString m_attr_comment;
|
|
2938 |
bool m_has_attr_comment;
|
|
2939 |
|
|
2940 |
QString m_attr_extraComment;
|
|
2941 |
bool m_has_attr_extraComment;
|
|
2942 |
|
|
2943 |
// child element data
|
|
2944 |
uint m_children;
|
|
2945 |
|
|
2946 |
DomString(const DomString &other);
|
|
2947 |
void operator = (const DomString&other);
|
|
2948 |
};
|
|
2949 |
|
|
2950 |
class QDESIGNER_UILIB_EXPORT DomPointF {
|
|
2951 |
public:
|
|
2952 |
DomPointF();
|
|
2953 |
~DomPointF();
|
|
2954 |
|
|
2955 |
void read(QXmlStreamReader &reader);
|
|
2956 |
#ifdef QUILOADER_QDOM_READ
|
|
2957 |
void read(const QDomElement &node);
|
|
2958 |
#endif
|
|
2959 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
2960 |
inline QString text() const { return m_text; }
|
|
2961 |
inline void setText(const QString &s) { m_text = s; }
|
|
2962 |
|
|
2963 |
// attribute accessors
|
|
2964 |
// child element accessors
|
|
2965 |
inline double elementX() const { return m_x; }
|
|
2966 |
void setElementX(double a);
|
|
2967 |
inline bool hasElementX() const { return m_children & X; }
|
|
2968 |
void clearElementX();
|
|
2969 |
|
|
2970 |
inline double elementY() const { return m_y; }
|
|
2971 |
void setElementY(double a);
|
|
2972 |
inline bool hasElementY() const { return m_children & Y; }
|
|
2973 |
void clearElementY();
|
|
2974 |
|
|
2975 |
private:
|
|
2976 |
QString m_text;
|
|
2977 |
void clear(bool clear_all = true);
|
|
2978 |
|
|
2979 |
// attribute data
|
|
2980 |
// child element data
|
|
2981 |
uint m_children;
|
|
2982 |
double m_x;
|
|
2983 |
double m_y;
|
|
2984 |
enum Child {
|
|
2985 |
X = 1,
|
|
2986 |
Y = 2
|
|
2987 |
};
|
|
2988 |
|
|
2989 |
DomPointF(const DomPointF &other);
|
|
2990 |
void operator = (const DomPointF&other);
|
|
2991 |
};
|
|
2992 |
|
|
2993 |
class QDESIGNER_UILIB_EXPORT DomRectF {
|
|
2994 |
public:
|
|
2995 |
DomRectF();
|
|
2996 |
~DomRectF();
|
|
2997 |
|
|
2998 |
void read(QXmlStreamReader &reader);
|
|
2999 |
#ifdef QUILOADER_QDOM_READ
|
|
3000 |
void read(const QDomElement &node);
|
|
3001 |
#endif
|
|
3002 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3003 |
inline QString text() const { return m_text; }
|
|
3004 |
inline void setText(const QString &s) { m_text = s; }
|
|
3005 |
|
|
3006 |
// attribute accessors
|
|
3007 |
// child element accessors
|
|
3008 |
inline double elementX() const { return m_x; }
|
|
3009 |
void setElementX(double a);
|
|
3010 |
inline bool hasElementX() const { return m_children & X; }
|
|
3011 |
void clearElementX();
|
|
3012 |
|
|
3013 |
inline double elementY() const { return m_y; }
|
|
3014 |
void setElementY(double a);
|
|
3015 |
inline bool hasElementY() const { return m_children & Y; }
|
|
3016 |
void clearElementY();
|
|
3017 |
|
|
3018 |
inline double elementWidth() const { return m_width; }
|
|
3019 |
void setElementWidth(double a);
|
|
3020 |
inline bool hasElementWidth() const { return m_children & Width; }
|
|
3021 |
void clearElementWidth();
|
|
3022 |
|
|
3023 |
inline double elementHeight() const { return m_height; }
|
|
3024 |
void setElementHeight(double a);
|
|
3025 |
inline bool hasElementHeight() const { return m_children & Height; }
|
|
3026 |
void clearElementHeight();
|
|
3027 |
|
|
3028 |
private:
|
|
3029 |
QString m_text;
|
|
3030 |
void clear(bool clear_all = true);
|
|
3031 |
|
|
3032 |
// attribute data
|
|
3033 |
// child element data
|
|
3034 |
uint m_children;
|
|
3035 |
double m_x;
|
|
3036 |
double m_y;
|
|
3037 |
double m_width;
|
|
3038 |
double m_height;
|
|
3039 |
enum Child {
|
|
3040 |
X = 1,
|
|
3041 |
Y = 2,
|
|
3042 |
Width = 4,
|
|
3043 |
Height = 8
|
|
3044 |
};
|
|
3045 |
|
|
3046 |
DomRectF(const DomRectF &other);
|
|
3047 |
void operator = (const DomRectF&other);
|
|
3048 |
};
|
|
3049 |
|
|
3050 |
class QDESIGNER_UILIB_EXPORT DomSizeF {
|
|
3051 |
public:
|
|
3052 |
DomSizeF();
|
|
3053 |
~DomSizeF();
|
|
3054 |
|
|
3055 |
void read(QXmlStreamReader &reader);
|
|
3056 |
#ifdef QUILOADER_QDOM_READ
|
|
3057 |
void read(const QDomElement &node);
|
|
3058 |
#endif
|
|
3059 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3060 |
inline QString text() const { return m_text; }
|
|
3061 |
inline void setText(const QString &s) { m_text = s; }
|
|
3062 |
|
|
3063 |
// attribute accessors
|
|
3064 |
// child element accessors
|
|
3065 |
inline double elementWidth() const { return m_width; }
|
|
3066 |
void setElementWidth(double a);
|
|
3067 |
inline bool hasElementWidth() const { return m_children & Width; }
|
|
3068 |
void clearElementWidth();
|
|
3069 |
|
|
3070 |
inline double elementHeight() const { return m_height; }
|
|
3071 |
void setElementHeight(double a);
|
|
3072 |
inline bool hasElementHeight() const { return m_children & Height; }
|
|
3073 |
void clearElementHeight();
|
|
3074 |
|
|
3075 |
private:
|
|
3076 |
QString m_text;
|
|
3077 |
void clear(bool clear_all = true);
|
|
3078 |
|
|
3079 |
// attribute data
|
|
3080 |
// child element data
|
|
3081 |
uint m_children;
|
|
3082 |
double m_width;
|
|
3083 |
double m_height;
|
|
3084 |
enum Child {
|
|
3085 |
Width = 1,
|
|
3086 |
Height = 2
|
|
3087 |
};
|
|
3088 |
|
|
3089 |
DomSizeF(const DomSizeF &other);
|
|
3090 |
void operator = (const DomSizeF&other);
|
|
3091 |
};
|
|
3092 |
|
|
3093 |
class QDESIGNER_UILIB_EXPORT DomChar {
|
|
3094 |
public:
|
|
3095 |
DomChar();
|
|
3096 |
~DomChar();
|
|
3097 |
|
|
3098 |
void read(QXmlStreamReader &reader);
|
|
3099 |
#ifdef QUILOADER_QDOM_READ
|
|
3100 |
void read(const QDomElement &node);
|
|
3101 |
#endif
|
|
3102 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3103 |
inline QString text() const { return m_text; }
|
|
3104 |
inline void setText(const QString &s) { m_text = s; }
|
|
3105 |
|
|
3106 |
// attribute accessors
|
|
3107 |
// child element accessors
|
|
3108 |
inline int elementUnicode() const { return m_unicode; }
|
|
3109 |
void setElementUnicode(int a);
|
|
3110 |
inline bool hasElementUnicode() const { return m_children & Unicode; }
|
|
3111 |
void clearElementUnicode();
|
|
3112 |
|
|
3113 |
private:
|
|
3114 |
QString m_text;
|
|
3115 |
void clear(bool clear_all = true);
|
|
3116 |
|
|
3117 |
// attribute data
|
|
3118 |
// child element data
|
|
3119 |
uint m_children;
|
|
3120 |
int m_unicode;
|
|
3121 |
enum Child {
|
|
3122 |
Unicode = 1
|
|
3123 |
};
|
|
3124 |
|
|
3125 |
DomChar(const DomChar &other);
|
|
3126 |
void operator = (const DomChar&other);
|
|
3127 |
};
|
|
3128 |
|
|
3129 |
class QDESIGNER_UILIB_EXPORT DomUrl {
|
|
3130 |
public:
|
|
3131 |
DomUrl();
|
|
3132 |
~DomUrl();
|
|
3133 |
|
|
3134 |
void read(QXmlStreamReader &reader);
|
|
3135 |
#ifdef QUILOADER_QDOM_READ
|
|
3136 |
void read(const QDomElement &node);
|
|
3137 |
#endif
|
|
3138 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3139 |
inline QString text() const { return m_text; }
|
|
3140 |
inline void setText(const QString &s) { m_text = s; }
|
|
3141 |
|
|
3142 |
// attribute accessors
|
|
3143 |
// child element accessors
|
|
3144 |
inline DomString* elementString() const { return m_string; }
|
|
3145 |
DomString* takeElementString();
|
|
3146 |
void setElementString(DomString* a);
|
|
3147 |
inline bool hasElementString() const { return m_children & String; }
|
|
3148 |
void clearElementString();
|
|
3149 |
|
|
3150 |
private:
|
|
3151 |
QString m_text;
|
|
3152 |
void clear(bool clear_all = true);
|
|
3153 |
|
|
3154 |
// attribute data
|
|
3155 |
// child element data
|
|
3156 |
uint m_children;
|
|
3157 |
DomString* m_string;
|
|
3158 |
enum Child {
|
|
3159 |
String = 1
|
|
3160 |
};
|
|
3161 |
|
|
3162 |
DomUrl(const DomUrl &other);
|
|
3163 |
void operator = (const DomUrl&other);
|
|
3164 |
};
|
|
3165 |
|
|
3166 |
class QDESIGNER_UILIB_EXPORT DomProperty {
|
|
3167 |
public:
|
|
3168 |
DomProperty();
|
|
3169 |
~DomProperty();
|
|
3170 |
|
|
3171 |
void read(QXmlStreamReader &reader);
|
|
3172 |
#ifdef QUILOADER_QDOM_READ
|
|
3173 |
void read(const QDomElement &node);
|
|
3174 |
#endif
|
|
3175 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3176 |
inline QString text() const { return m_text; }
|
|
3177 |
inline void setText(const QString &s) { m_text = s; }
|
|
3178 |
|
|
3179 |
// attribute accessors
|
|
3180 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
3181 |
inline QString attributeName() const { return m_attr_name; }
|
|
3182 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
3183 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
3184 |
|
|
3185 |
inline bool hasAttributeStdset() const { return m_has_attr_stdset; }
|
|
3186 |
inline int attributeStdset() const { return m_attr_stdset; }
|
|
3187 |
inline void setAttributeStdset(int a) { m_attr_stdset = a; m_has_attr_stdset = true; }
|
|
3188 |
inline void clearAttributeStdset() { m_has_attr_stdset = false; }
|
|
3189 |
|
|
3190 |
// child element accessors
|
|
3191 |
enum Kind { Unknown = 0, Bool, Color, Cstring, Cursor, CursorShape, Enum, Font, IconSet, Pixmap, Palette, Point, Rect, Set, Locale, SizePolicy, Size, String, StringList, Number, Float, Double, Date, Time, DateTime, PointF, RectF, SizeF, LongLong, Char, Url, UInt, ULongLong, Brush };
|
|
3192 |
inline Kind kind() const { return m_kind; }
|
|
3193 |
|
|
3194 |
inline QString elementBool() const { return m_bool; }
|
|
3195 |
void setElementBool(const QString& a);
|
|
3196 |
|
|
3197 |
inline DomColor* elementColor() const { return m_color; }
|
|
3198 |
DomColor* takeElementColor();
|
|
3199 |
void setElementColor(DomColor* a);
|
|
3200 |
|
|
3201 |
inline QString elementCstring() const { return m_cstring; }
|
|
3202 |
void setElementCstring(const QString& a);
|
|
3203 |
|
|
3204 |
inline int elementCursor() const { return m_cursor; }
|
|
3205 |
void setElementCursor(int a);
|
|
3206 |
|
|
3207 |
inline QString elementCursorShape() const { return m_cursorShape; }
|
|
3208 |
void setElementCursorShape(const QString& a);
|
|
3209 |
|
|
3210 |
inline QString elementEnum() const { return m_enum; }
|
|
3211 |
void setElementEnum(const QString& a);
|
|
3212 |
|
|
3213 |
inline DomFont* elementFont() const { return m_font; }
|
|
3214 |
DomFont* takeElementFont();
|
|
3215 |
void setElementFont(DomFont* a);
|
|
3216 |
|
|
3217 |
inline DomResourceIcon* elementIconSet() const { return m_iconSet; }
|
|
3218 |
DomResourceIcon* takeElementIconSet();
|
|
3219 |
void setElementIconSet(DomResourceIcon* a);
|
|
3220 |
|
|
3221 |
inline DomResourcePixmap* elementPixmap() const { return m_pixmap; }
|
|
3222 |
DomResourcePixmap* takeElementPixmap();
|
|
3223 |
void setElementPixmap(DomResourcePixmap* a);
|
|
3224 |
|
|
3225 |
inline DomPalette* elementPalette() const { return m_palette; }
|
|
3226 |
DomPalette* takeElementPalette();
|
|
3227 |
void setElementPalette(DomPalette* a);
|
|
3228 |
|
|
3229 |
inline DomPoint* elementPoint() const { return m_point; }
|
|
3230 |
DomPoint* takeElementPoint();
|
|
3231 |
void setElementPoint(DomPoint* a);
|
|
3232 |
|
|
3233 |
inline DomRect* elementRect() const { return m_rect; }
|
|
3234 |
DomRect* takeElementRect();
|
|
3235 |
void setElementRect(DomRect* a);
|
|
3236 |
|
|
3237 |
inline QString elementSet() const { return m_set; }
|
|
3238 |
void setElementSet(const QString& a);
|
|
3239 |
|
|
3240 |
inline DomLocale* elementLocale() const { return m_locale; }
|
|
3241 |
DomLocale* takeElementLocale();
|
|
3242 |
void setElementLocale(DomLocale* a);
|
|
3243 |
|
|
3244 |
inline DomSizePolicy* elementSizePolicy() const { return m_sizePolicy; }
|
|
3245 |
DomSizePolicy* takeElementSizePolicy();
|
|
3246 |
void setElementSizePolicy(DomSizePolicy* a);
|
|
3247 |
|
|
3248 |
inline DomSize* elementSize() const { return m_size; }
|
|
3249 |
DomSize* takeElementSize();
|
|
3250 |
void setElementSize(DomSize* a);
|
|
3251 |
|
|
3252 |
inline DomString* elementString() const { return m_string; }
|
|
3253 |
DomString* takeElementString();
|
|
3254 |
void setElementString(DomString* a);
|
|
3255 |
|
|
3256 |
inline DomStringList* elementStringList() const { return m_stringList; }
|
|
3257 |
DomStringList* takeElementStringList();
|
|
3258 |
void setElementStringList(DomStringList* a);
|
|
3259 |
|
|
3260 |
inline int elementNumber() const { return m_number; }
|
|
3261 |
void setElementNumber(int a);
|
|
3262 |
|
|
3263 |
inline float elementFloat() const { return m_float; }
|
|
3264 |
void setElementFloat(float a);
|
|
3265 |
|
|
3266 |
inline double elementDouble() const { return m_double; }
|
|
3267 |
void setElementDouble(double a);
|
|
3268 |
|
|
3269 |
inline DomDate* elementDate() const { return m_date; }
|
|
3270 |
DomDate* takeElementDate();
|
|
3271 |
void setElementDate(DomDate* a);
|
|
3272 |
|
|
3273 |
inline DomTime* elementTime() const { return m_time; }
|
|
3274 |
DomTime* takeElementTime();
|
|
3275 |
void setElementTime(DomTime* a);
|
|
3276 |
|
|
3277 |
inline DomDateTime* elementDateTime() const { return m_dateTime; }
|
|
3278 |
DomDateTime* takeElementDateTime();
|
|
3279 |
void setElementDateTime(DomDateTime* a);
|
|
3280 |
|
|
3281 |
inline DomPointF* elementPointF() const { return m_pointF; }
|
|
3282 |
DomPointF* takeElementPointF();
|
|
3283 |
void setElementPointF(DomPointF* a);
|
|
3284 |
|
|
3285 |
inline DomRectF* elementRectF() const { return m_rectF; }
|
|
3286 |
DomRectF* takeElementRectF();
|
|
3287 |
void setElementRectF(DomRectF* a);
|
|
3288 |
|
|
3289 |
inline DomSizeF* elementSizeF() const { return m_sizeF; }
|
|
3290 |
DomSizeF* takeElementSizeF();
|
|
3291 |
void setElementSizeF(DomSizeF* a);
|
|
3292 |
|
|
3293 |
inline qlonglong elementLongLong() const { return m_longLong; }
|
|
3294 |
void setElementLongLong(qlonglong a);
|
|
3295 |
|
|
3296 |
inline DomChar* elementChar() const { return m_char; }
|
|
3297 |
DomChar* takeElementChar();
|
|
3298 |
void setElementChar(DomChar* a);
|
|
3299 |
|
|
3300 |
inline DomUrl* elementUrl() const { return m_url; }
|
|
3301 |
DomUrl* takeElementUrl();
|
|
3302 |
void setElementUrl(DomUrl* a);
|
|
3303 |
|
|
3304 |
inline uint elementUInt() const { return m_UInt; }
|
|
3305 |
void setElementUInt(uint a);
|
|
3306 |
|
|
3307 |
inline qulonglong elementULongLong() const { return m_uLongLong; }
|
|
3308 |
void setElementULongLong(qulonglong a);
|
|
3309 |
|
|
3310 |
inline DomBrush* elementBrush() const { return m_brush; }
|
|
3311 |
DomBrush* takeElementBrush();
|
|
3312 |
void setElementBrush(DomBrush* a);
|
|
3313 |
|
|
3314 |
private:
|
|
3315 |
QString m_text;
|
|
3316 |
void clear(bool clear_all = true);
|
|
3317 |
|
|
3318 |
// attribute data
|
|
3319 |
QString m_attr_name;
|
|
3320 |
bool m_has_attr_name;
|
|
3321 |
|
|
3322 |
int m_attr_stdset;
|
|
3323 |
bool m_has_attr_stdset;
|
|
3324 |
|
|
3325 |
// child element data
|
|
3326 |
Kind m_kind;
|
|
3327 |
QString m_bool;
|
|
3328 |
DomColor* m_color;
|
|
3329 |
QString m_cstring;
|
|
3330 |
int m_cursor;
|
|
3331 |
QString m_cursorShape;
|
|
3332 |
QString m_enum;
|
|
3333 |
DomFont* m_font;
|
|
3334 |
DomResourceIcon* m_iconSet;
|
|
3335 |
DomResourcePixmap* m_pixmap;
|
|
3336 |
DomPalette* m_palette;
|
|
3337 |
DomPoint* m_point;
|
|
3338 |
DomRect* m_rect;
|
|
3339 |
QString m_set;
|
|
3340 |
DomLocale* m_locale;
|
|
3341 |
DomSizePolicy* m_sizePolicy;
|
|
3342 |
DomSize* m_size;
|
|
3343 |
DomString* m_string;
|
|
3344 |
DomStringList* m_stringList;
|
|
3345 |
int m_number;
|
|
3346 |
float m_float;
|
|
3347 |
double m_double;
|
|
3348 |
DomDate* m_date;
|
|
3349 |
DomTime* m_time;
|
|
3350 |
DomDateTime* m_dateTime;
|
|
3351 |
DomPointF* m_pointF;
|
|
3352 |
DomRectF* m_rectF;
|
|
3353 |
DomSizeF* m_sizeF;
|
|
3354 |
qlonglong m_longLong;
|
|
3355 |
DomChar* m_char;
|
|
3356 |
DomUrl* m_url;
|
|
3357 |
uint m_UInt;
|
|
3358 |
qulonglong m_uLongLong;
|
|
3359 |
DomBrush* m_brush;
|
|
3360 |
|
|
3361 |
DomProperty(const DomProperty &other);
|
|
3362 |
void operator = (const DomProperty&other);
|
|
3363 |
};
|
|
3364 |
|
|
3365 |
class QDESIGNER_UILIB_EXPORT DomConnections {
|
|
3366 |
public:
|
|
3367 |
DomConnections();
|
|
3368 |
~DomConnections();
|
|
3369 |
|
|
3370 |
void read(QXmlStreamReader &reader);
|
|
3371 |
#ifdef QUILOADER_QDOM_READ
|
|
3372 |
void read(const QDomElement &node);
|
|
3373 |
#endif
|
|
3374 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3375 |
inline QString text() const { return m_text; }
|
|
3376 |
inline void setText(const QString &s) { m_text = s; }
|
|
3377 |
|
|
3378 |
// attribute accessors
|
|
3379 |
// child element accessors
|
|
3380 |
inline QList<DomConnection*> elementConnection() const { return m_connection; }
|
|
3381 |
void setElementConnection(const QList<DomConnection*>& a);
|
|
3382 |
|
|
3383 |
private:
|
|
3384 |
QString m_text;
|
|
3385 |
void clear(bool clear_all = true);
|
|
3386 |
|
|
3387 |
// attribute data
|
|
3388 |
// child element data
|
|
3389 |
uint m_children;
|
|
3390 |
QList<DomConnection*> m_connection;
|
|
3391 |
enum Child {
|
|
3392 |
Connection = 1
|
|
3393 |
};
|
|
3394 |
|
|
3395 |
DomConnections(const DomConnections &other);
|
|
3396 |
void operator = (const DomConnections&other);
|
|
3397 |
};
|
|
3398 |
|
|
3399 |
class QDESIGNER_UILIB_EXPORT DomConnection {
|
|
3400 |
public:
|
|
3401 |
DomConnection();
|
|
3402 |
~DomConnection();
|
|
3403 |
|
|
3404 |
void read(QXmlStreamReader &reader);
|
|
3405 |
#ifdef QUILOADER_QDOM_READ
|
|
3406 |
void read(const QDomElement &node);
|
|
3407 |
#endif
|
|
3408 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3409 |
inline QString text() const { return m_text; }
|
|
3410 |
inline void setText(const QString &s) { m_text = s; }
|
|
3411 |
|
|
3412 |
// attribute accessors
|
|
3413 |
// child element accessors
|
|
3414 |
inline QString elementSender() const { return m_sender; }
|
|
3415 |
void setElementSender(const QString& a);
|
|
3416 |
inline bool hasElementSender() const { return m_children & Sender; }
|
|
3417 |
void clearElementSender();
|
|
3418 |
|
|
3419 |
inline QString elementSignal() const { return m_signal; }
|
|
3420 |
void setElementSignal(const QString& a);
|
|
3421 |
inline bool hasElementSignal() const { return m_children & Signal; }
|
|
3422 |
void clearElementSignal();
|
|
3423 |
|
|
3424 |
inline QString elementReceiver() const { return m_receiver; }
|
|
3425 |
void setElementReceiver(const QString& a);
|
|
3426 |
inline bool hasElementReceiver() const { return m_children & Receiver; }
|
|
3427 |
void clearElementReceiver();
|
|
3428 |
|
|
3429 |
inline QString elementSlot() const { return m_slot; }
|
|
3430 |
void setElementSlot(const QString& a);
|
|
3431 |
inline bool hasElementSlot() const { return m_children & Slot; }
|
|
3432 |
void clearElementSlot();
|
|
3433 |
|
|
3434 |
inline DomConnectionHints* elementHints() const { return m_hints; }
|
|
3435 |
DomConnectionHints* takeElementHints();
|
|
3436 |
void setElementHints(DomConnectionHints* a);
|
|
3437 |
inline bool hasElementHints() const { return m_children & Hints; }
|
|
3438 |
void clearElementHints();
|
|
3439 |
|
|
3440 |
private:
|
|
3441 |
QString m_text;
|
|
3442 |
void clear(bool clear_all = true);
|
|
3443 |
|
|
3444 |
// attribute data
|
|
3445 |
// child element data
|
|
3446 |
uint m_children;
|
|
3447 |
QString m_sender;
|
|
3448 |
QString m_signal;
|
|
3449 |
QString m_receiver;
|
|
3450 |
QString m_slot;
|
|
3451 |
DomConnectionHints* m_hints;
|
|
3452 |
enum Child {
|
|
3453 |
Sender = 1,
|
|
3454 |
Signal = 2,
|
|
3455 |
Receiver = 4,
|
|
3456 |
Slot = 8,
|
|
3457 |
Hints = 16
|
|
3458 |
};
|
|
3459 |
|
|
3460 |
DomConnection(const DomConnection &other);
|
|
3461 |
void operator = (const DomConnection&other);
|
|
3462 |
};
|
|
3463 |
|
|
3464 |
class QDESIGNER_UILIB_EXPORT DomConnectionHints {
|
|
3465 |
public:
|
|
3466 |
DomConnectionHints();
|
|
3467 |
~DomConnectionHints();
|
|
3468 |
|
|
3469 |
void read(QXmlStreamReader &reader);
|
|
3470 |
#ifdef QUILOADER_QDOM_READ
|
|
3471 |
void read(const QDomElement &node);
|
|
3472 |
#endif
|
|
3473 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3474 |
inline QString text() const { return m_text; }
|
|
3475 |
inline void setText(const QString &s) { m_text = s; }
|
|
3476 |
|
|
3477 |
// attribute accessors
|
|
3478 |
// child element accessors
|
|
3479 |
inline QList<DomConnectionHint*> elementHint() const { return m_hint; }
|
|
3480 |
void setElementHint(const QList<DomConnectionHint*>& a);
|
|
3481 |
|
|
3482 |
private:
|
|
3483 |
QString m_text;
|
|
3484 |
void clear(bool clear_all = true);
|
|
3485 |
|
|
3486 |
// attribute data
|
|
3487 |
// child element data
|
|
3488 |
uint m_children;
|
|
3489 |
QList<DomConnectionHint*> m_hint;
|
|
3490 |
enum Child {
|
|
3491 |
Hint = 1
|
|
3492 |
};
|
|
3493 |
|
|
3494 |
DomConnectionHints(const DomConnectionHints &other);
|
|
3495 |
void operator = (const DomConnectionHints&other);
|
|
3496 |
};
|
|
3497 |
|
|
3498 |
class QDESIGNER_UILIB_EXPORT DomConnectionHint {
|
|
3499 |
public:
|
|
3500 |
DomConnectionHint();
|
|
3501 |
~DomConnectionHint();
|
|
3502 |
|
|
3503 |
void read(QXmlStreamReader &reader);
|
|
3504 |
#ifdef QUILOADER_QDOM_READ
|
|
3505 |
void read(const QDomElement &node);
|
|
3506 |
#endif
|
|
3507 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3508 |
inline QString text() const { return m_text; }
|
|
3509 |
inline void setText(const QString &s) { m_text = s; }
|
|
3510 |
|
|
3511 |
// attribute accessors
|
|
3512 |
inline bool hasAttributeType() const { return m_has_attr_type; }
|
|
3513 |
inline QString attributeType() const { return m_attr_type; }
|
|
3514 |
inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; }
|
|
3515 |
inline void clearAttributeType() { m_has_attr_type = false; }
|
|
3516 |
|
|
3517 |
// child element accessors
|
|
3518 |
inline int elementX() const { return m_x; }
|
|
3519 |
void setElementX(int a);
|
|
3520 |
inline bool hasElementX() const { return m_children & X; }
|
|
3521 |
void clearElementX();
|
|
3522 |
|
|
3523 |
inline int elementY() const { return m_y; }
|
|
3524 |
void setElementY(int a);
|
|
3525 |
inline bool hasElementY() const { return m_children & Y; }
|
|
3526 |
void clearElementY();
|
|
3527 |
|
|
3528 |
private:
|
|
3529 |
QString m_text;
|
|
3530 |
void clear(bool clear_all = true);
|
|
3531 |
|
|
3532 |
// attribute data
|
|
3533 |
QString m_attr_type;
|
|
3534 |
bool m_has_attr_type;
|
|
3535 |
|
|
3536 |
// child element data
|
|
3537 |
uint m_children;
|
|
3538 |
int m_x;
|
|
3539 |
int m_y;
|
|
3540 |
enum Child {
|
|
3541 |
X = 1,
|
|
3542 |
Y = 2
|
|
3543 |
};
|
|
3544 |
|
|
3545 |
DomConnectionHint(const DomConnectionHint &other);
|
|
3546 |
void operator = (const DomConnectionHint&other);
|
|
3547 |
};
|
|
3548 |
|
|
3549 |
class QDESIGNER_UILIB_EXPORT DomScript {
|
|
3550 |
public:
|
|
3551 |
DomScript();
|
|
3552 |
~DomScript();
|
|
3553 |
|
|
3554 |
void read(QXmlStreamReader &reader);
|
|
3555 |
#ifdef QUILOADER_QDOM_READ
|
|
3556 |
void read(const QDomElement &node);
|
|
3557 |
#endif
|
|
3558 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3559 |
inline QString text() const { return m_text; }
|
|
3560 |
inline void setText(const QString &s) { m_text = s; }
|
|
3561 |
|
|
3562 |
// attribute accessors
|
|
3563 |
inline bool hasAttributeSource() const { return m_has_attr_source; }
|
|
3564 |
inline QString attributeSource() const { return m_attr_source; }
|
|
3565 |
inline void setAttributeSource(const QString& a) { m_attr_source = a; m_has_attr_source = true; }
|
|
3566 |
inline void clearAttributeSource() { m_has_attr_source = false; }
|
|
3567 |
|
|
3568 |
inline bool hasAttributeLanguage() const { return m_has_attr_language; }
|
|
3569 |
inline QString attributeLanguage() const { return m_attr_language; }
|
|
3570 |
inline void setAttributeLanguage(const QString& a) { m_attr_language = a; m_has_attr_language = true; }
|
|
3571 |
inline void clearAttributeLanguage() { m_has_attr_language = false; }
|
|
3572 |
|
|
3573 |
// child element accessors
|
|
3574 |
private:
|
|
3575 |
QString m_text;
|
|
3576 |
void clear(bool clear_all = true);
|
|
3577 |
|
|
3578 |
// attribute data
|
|
3579 |
QString m_attr_source;
|
|
3580 |
bool m_has_attr_source;
|
|
3581 |
|
|
3582 |
QString m_attr_language;
|
|
3583 |
bool m_has_attr_language;
|
|
3584 |
|
|
3585 |
// child element data
|
|
3586 |
uint m_children;
|
|
3587 |
|
|
3588 |
DomScript(const DomScript &other);
|
|
3589 |
void operator = (const DomScript&other);
|
|
3590 |
};
|
|
3591 |
|
|
3592 |
class QDESIGNER_UILIB_EXPORT DomWidgetData {
|
|
3593 |
public:
|
|
3594 |
DomWidgetData();
|
|
3595 |
~DomWidgetData();
|
|
3596 |
|
|
3597 |
void read(QXmlStreamReader &reader);
|
|
3598 |
#ifdef QUILOADER_QDOM_READ
|
|
3599 |
void read(const QDomElement &node);
|
|
3600 |
#endif
|
|
3601 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3602 |
inline QString text() const { return m_text; }
|
|
3603 |
inline void setText(const QString &s) { m_text = s; }
|
|
3604 |
|
|
3605 |
// attribute accessors
|
|
3606 |
// child element accessors
|
|
3607 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
3608 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
3609 |
|
|
3610 |
private:
|
|
3611 |
QString m_text;
|
|
3612 |
void clear(bool clear_all = true);
|
|
3613 |
|
|
3614 |
// attribute data
|
|
3615 |
// child element data
|
|
3616 |
uint m_children;
|
|
3617 |
QList<DomProperty*> m_property;
|
|
3618 |
enum Child {
|
|
3619 |
Property = 1
|
|
3620 |
};
|
|
3621 |
|
|
3622 |
DomWidgetData(const DomWidgetData &other);
|
|
3623 |
void operator = (const DomWidgetData&other);
|
|
3624 |
};
|
|
3625 |
|
|
3626 |
class QDESIGNER_UILIB_EXPORT DomDesignerData {
|
|
3627 |
public:
|
|
3628 |
DomDesignerData();
|
|
3629 |
~DomDesignerData();
|
|
3630 |
|
|
3631 |
void read(QXmlStreamReader &reader);
|
|
3632 |
#ifdef QUILOADER_QDOM_READ
|
|
3633 |
void read(const QDomElement &node);
|
|
3634 |
#endif
|
|
3635 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3636 |
inline QString text() const { return m_text; }
|
|
3637 |
inline void setText(const QString &s) { m_text = s; }
|
|
3638 |
|
|
3639 |
// attribute accessors
|
|
3640 |
// child element accessors
|
|
3641 |
inline QList<DomProperty*> elementProperty() const { return m_property; }
|
|
3642 |
void setElementProperty(const QList<DomProperty*>& a);
|
|
3643 |
|
|
3644 |
private:
|
|
3645 |
QString m_text;
|
|
3646 |
void clear(bool clear_all = true);
|
|
3647 |
|
|
3648 |
// attribute data
|
|
3649 |
// child element data
|
|
3650 |
uint m_children;
|
|
3651 |
QList<DomProperty*> m_property;
|
|
3652 |
enum Child {
|
|
3653 |
Property = 1
|
|
3654 |
};
|
|
3655 |
|
|
3656 |
DomDesignerData(const DomDesignerData &other);
|
|
3657 |
void operator = (const DomDesignerData&other);
|
|
3658 |
};
|
|
3659 |
|
|
3660 |
class QDESIGNER_UILIB_EXPORT DomSlots {
|
|
3661 |
public:
|
|
3662 |
DomSlots();
|
|
3663 |
~DomSlots();
|
|
3664 |
|
|
3665 |
void read(QXmlStreamReader &reader);
|
|
3666 |
#ifdef QUILOADER_QDOM_READ
|
|
3667 |
void read(const QDomElement &node);
|
|
3668 |
#endif
|
|
3669 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3670 |
inline QString text() const { return m_text; }
|
|
3671 |
inline void setText(const QString &s) { m_text = s; }
|
|
3672 |
|
|
3673 |
// attribute accessors
|
|
3674 |
// child element accessors
|
|
3675 |
inline QStringList elementSignal() const { return m_signal; }
|
|
3676 |
void setElementSignal(const QStringList& a);
|
|
3677 |
|
|
3678 |
inline QStringList elementSlot() const { return m_slot; }
|
|
3679 |
void setElementSlot(const QStringList& a);
|
|
3680 |
|
|
3681 |
private:
|
|
3682 |
QString m_text;
|
|
3683 |
void clear(bool clear_all = true);
|
|
3684 |
|
|
3685 |
// attribute data
|
|
3686 |
// child element data
|
|
3687 |
uint m_children;
|
|
3688 |
QStringList m_signal;
|
|
3689 |
QStringList m_slot;
|
|
3690 |
enum Child {
|
|
3691 |
Signal = 1,
|
|
3692 |
Slot = 2
|
|
3693 |
};
|
|
3694 |
|
|
3695 |
DomSlots(const DomSlots &other);
|
|
3696 |
void operator = (const DomSlots&other);
|
|
3697 |
};
|
|
3698 |
|
|
3699 |
class QDESIGNER_UILIB_EXPORT DomPropertySpecifications {
|
|
3700 |
public:
|
|
3701 |
DomPropertySpecifications();
|
|
3702 |
~DomPropertySpecifications();
|
|
3703 |
|
|
3704 |
void read(QXmlStreamReader &reader);
|
|
3705 |
#ifdef QUILOADER_QDOM_READ
|
|
3706 |
void read(const QDomElement &node);
|
|
3707 |
#endif
|
|
3708 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3709 |
inline QString text() const { return m_text; }
|
|
3710 |
inline void setText(const QString &s) { m_text = s; }
|
|
3711 |
|
|
3712 |
// attribute accessors
|
|
3713 |
// child element accessors
|
|
3714 |
inline QList<DomStringPropertySpecification*> elementStringpropertyspecification() const { return m_stringpropertyspecification; }
|
|
3715 |
void setElementStringpropertyspecification(const QList<DomStringPropertySpecification*>& a);
|
|
3716 |
|
|
3717 |
private:
|
|
3718 |
QString m_text;
|
|
3719 |
void clear(bool clear_all = true);
|
|
3720 |
|
|
3721 |
// attribute data
|
|
3722 |
// child element data
|
|
3723 |
uint m_children;
|
|
3724 |
QList<DomStringPropertySpecification*> m_stringpropertyspecification;
|
|
3725 |
enum Child {
|
|
3726 |
Stringpropertyspecification = 1
|
|
3727 |
};
|
|
3728 |
|
|
3729 |
DomPropertySpecifications(const DomPropertySpecifications &other);
|
|
3730 |
void operator = (const DomPropertySpecifications&other);
|
|
3731 |
};
|
|
3732 |
|
|
3733 |
class QDESIGNER_UILIB_EXPORT DomStringPropertySpecification {
|
|
3734 |
public:
|
|
3735 |
DomStringPropertySpecification();
|
|
3736 |
~DomStringPropertySpecification();
|
|
3737 |
|
|
3738 |
void read(QXmlStreamReader &reader);
|
|
3739 |
#ifdef QUILOADER_QDOM_READ
|
|
3740 |
void read(const QDomElement &node);
|
|
3741 |
#endif
|
|
3742 |
void write(QXmlStreamWriter &writer, const QString &tagName = QString()) const;
|
|
3743 |
inline QString text() const { return m_text; }
|
|
3744 |
inline void setText(const QString &s) { m_text = s; }
|
|
3745 |
|
|
3746 |
// attribute accessors
|
|
3747 |
inline bool hasAttributeName() const { return m_has_attr_name; }
|
|
3748 |
inline QString attributeName() const { return m_attr_name; }
|
|
3749 |
inline void setAttributeName(const QString& a) { m_attr_name = a; m_has_attr_name = true; }
|
|
3750 |
inline void clearAttributeName() { m_has_attr_name = false; }
|
|
3751 |
|
|
3752 |
inline bool hasAttributeType() const { return m_has_attr_type; }
|
|
3753 |
inline QString attributeType() const { return m_attr_type; }
|
|
3754 |
inline void setAttributeType(const QString& a) { m_attr_type = a; m_has_attr_type = true; }
|
|
3755 |
inline void clearAttributeType() { m_has_attr_type = false; }
|
|
3756 |
|
|
3757 |
inline bool hasAttributeNotr() const { return m_has_attr_notr; }
|
|
3758 |
inline QString attributeNotr() const { return m_attr_notr; }
|
|
3759 |
inline void setAttributeNotr(const QString& a) { m_attr_notr = a; m_has_attr_notr = true; }
|
|
3760 |
inline void clearAttributeNotr() { m_has_attr_notr = false; }
|
|
3761 |
|
|
3762 |
// child element accessors
|
|
3763 |
private:
|
|
3764 |
QString m_text;
|
|
3765 |
void clear(bool clear_all = true);
|
|
3766 |
|
|
3767 |
// attribute data
|
|
3768 |
QString m_attr_name;
|
|
3769 |
bool m_has_attr_name;
|
|
3770 |
|
|
3771 |
QString m_attr_type;
|
|
3772 |
bool m_has_attr_type;
|
|
3773 |
|
|
3774 |
QString m_attr_notr;
|
|
3775 |
bool m_has_attr_notr;
|
|
3776 |
|
|
3777 |
// child element data
|
|
3778 |
uint m_children;
|
|
3779 |
|
|
3780 |
DomStringPropertySpecification(const DomStringPropertySpecification &other);
|
|
3781 |
void operator = (const DomStringPropertySpecification&other);
|
|
3782 |
};
|
|
3783 |
|
|
3784 |
|
|
3785 |
#ifdef QFORMINTERNAL_NAMESPACE
|
|
3786 |
}
|
|
3787 |
#endif
|
|
3788 |
|
|
3789 |
QT_END_NAMESPACE
|
|
3790 |
|
|
3791 |
#endif // UI4_H
|