|
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 #ifndef TREEWALKER_H |
|
43 #define TREEWALKER_H |
|
44 |
|
45 #include <QtCore/QList> |
|
46 |
|
47 QT_BEGIN_NAMESPACE |
|
48 |
|
49 class DomUI; |
|
50 class DomLayoutDefault; |
|
51 class DomLayoutFunction; |
|
52 class DomTabStops; |
|
53 class DomLayout; |
|
54 class DomLayoutItem; |
|
55 class DomWidget; |
|
56 class DomSpacer; |
|
57 class DomColor; |
|
58 class DomColorGroup; |
|
59 class DomPalette; |
|
60 class DomFont; |
|
61 class DomPoint; |
|
62 class DomRect; |
|
63 class DomSizePolicy; |
|
64 class DomSize; |
|
65 class DomDate; |
|
66 class DomTime; |
|
67 class DomDateTime; |
|
68 class DomProperty; |
|
69 class DomCustomWidgets; |
|
70 class DomCustomWidget; |
|
71 class DomAction; |
|
72 class DomActionGroup; |
|
73 class DomActionRef; |
|
74 class DomImages; |
|
75 class DomImage; |
|
76 class DomItem; |
|
77 class DomIncludes; |
|
78 class DomInclude; |
|
79 class DomString; |
|
80 class DomResourcePixmap; |
|
81 class DomResources; |
|
82 class DomResource; |
|
83 class DomConnections; |
|
84 class DomConnection; |
|
85 class DomConnectionHints; |
|
86 class DomConnectionHint; |
|
87 class DomScript; |
|
88 class DomButtonGroups; |
|
89 class DomButtonGroup; |
|
90 |
|
91 struct TreeWalker |
|
92 { |
|
93 inline virtual ~TreeWalker() {} |
|
94 |
|
95 virtual void acceptUI(DomUI *ui); |
|
96 virtual void acceptLayoutDefault(DomLayoutDefault *layoutDefault); |
|
97 virtual void acceptLayoutFunction(DomLayoutFunction *layoutFunction); |
|
98 virtual void acceptTabStops(DomTabStops *tabStops); |
|
99 virtual void acceptCustomWidgets(DomCustomWidgets *customWidgets); |
|
100 virtual void acceptCustomWidget(DomCustomWidget *customWidget); |
|
101 virtual void acceptLayout(DomLayout *layout); |
|
102 virtual void acceptLayoutItem(DomLayoutItem *layoutItem); |
|
103 virtual void acceptWidget(DomWidget *widget); |
|
104 virtual void acceptSpacer(DomSpacer *spacer); |
|
105 virtual void acceptColor(DomColor *color); |
|
106 virtual void acceptColorGroup(DomColorGroup *colorGroup); |
|
107 virtual void acceptPalette(DomPalette *palette); |
|
108 virtual void acceptFont(DomFont *font); |
|
109 virtual void acceptPoint(DomPoint *point); |
|
110 virtual void acceptRect(DomRect *rect); |
|
111 virtual void acceptSizePolicy(DomSizePolicy *sizePolicy); |
|
112 virtual void acceptSize(DomSize *size); |
|
113 virtual void acceptDate(DomDate *date); |
|
114 virtual void acceptTime(DomTime *time); |
|
115 virtual void acceptDateTime(DomDateTime *dateTime); |
|
116 virtual void acceptProperty(DomProperty *property); |
|
117 typedef QList<DomScript *> DomScripts; |
|
118 typedef QList<DomWidget *> DomWidgets; |
|
119 virtual void acceptWidgetScripts(const DomScripts &, DomWidget *node, const DomWidgets &childWidgets); |
|
120 virtual void acceptImages(DomImages *images); |
|
121 virtual void acceptImage(DomImage *image); |
|
122 virtual void acceptIncludes(DomIncludes *includes); |
|
123 virtual void acceptInclude(DomInclude *incl); |
|
124 virtual void acceptAction(DomAction *action); |
|
125 virtual void acceptActionGroup(DomActionGroup *actionGroup); |
|
126 virtual void acceptActionRef(DomActionRef *actionRef); |
|
127 virtual void acceptConnections(DomConnections *connections); |
|
128 virtual void acceptConnection(DomConnection *connection); |
|
129 virtual void acceptConnectionHints(DomConnectionHints *connectionHints); |
|
130 virtual void acceptConnectionHint(DomConnectionHint *connectionHint); |
|
131 virtual void acceptButtonGroups(const DomButtonGroups *buttonGroups); |
|
132 virtual void acceptButtonGroup(const DomButtonGroup *buttonGroup); |
|
133 }; |
|
134 |
|
135 QT_END_NAMESPACE |
|
136 |
|
137 #endif // TREEWALKER_H |