1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef TREEWALKER_H |
5 | #define TREEWALKER_H |
6 | |
7 | #include <qlist.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class DomUI; |
12 | class DomLayoutDefault; |
13 | class DomLayoutFunction; |
14 | class DomTabStops; |
15 | class DomLayout; |
16 | class DomLayoutItem; |
17 | class DomWidget; |
18 | class DomSpacer; |
19 | class DomColor; |
20 | class DomColorGroup; |
21 | class DomPalette; |
22 | class DomFont; |
23 | class DomPoint; |
24 | class DomRect; |
25 | class DomSizePolicy; |
26 | class DomSize; |
27 | class DomDate; |
28 | class DomTime; |
29 | class DomDateTime; |
30 | class DomProperty; |
31 | class DomCustomWidgets; |
32 | class DomCustomWidget; |
33 | class DomAction; |
34 | class DomActionGroup; |
35 | class DomActionRef; |
36 | class DomImages; |
37 | class DomImage; |
38 | class DomItem; |
39 | class DomIncludes; |
40 | class DomInclude; |
41 | class DomString; |
42 | class DomResourcePixmap; |
43 | class DomResources; |
44 | class DomResource; |
45 | class DomConnections; |
46 | class DomConnection; |
47 | class DomConnectionHints; |
48 | class DomConnectionHint; |
49 | class DomScript; |
50 | class DomButtonGroups; |
51 | class DomButtonGroup; |
52 | |
53 | struct TreeWalker |
54 | { |
55 | Q_DISABLE_COPY_MOVE(TreeWalker) |
56 | |
57 | TreeWalker() = default; |
58 | inline virtual ~TreeWalker() = default; |
59 | |
60 | virtual void acceptUI(DomUI *ui); |
61 | virtual void acceptLayoutDefault(DomLayoutDefault *layoutDefault); |
62 | virtual void acceptLayoutFunction(DomLayoutFunction *layoutFunction); |
63 | virtual void acceptTabStops(DomTabStops *tabStops); |
64 | virtual void acceptCustomWidgets(DomCustomWidgets *customWidgets); |
65 | virtual void acceptCustomWidget(DomCustomWidget *customWidget); |
66 | virtual void acceptLayout(DomLayout *layout); |
67 | virtual void acceptLayoutItem(DomLayoutItem *layoutItem); |
68 | virtual void acceptWidget(DomWidget *widget); |
69 | virtual void acceptSpacer(DomSpacer *spacer); |
70 | virtual void acceptColor(DomColor *color); |
71 | virtual void acceptColorGroup(DomColorGroup *colorGroup); |
72 | virtual void acceptPalette(DomPalette *palette); |
73 | virtual void acceptFont(DomFont *font); |
74 | virtual void acceptPoint(DomPoint *point); |
75 | virtual void acceptRect(DomRect *rect); |
76 | virtual void acceptSizePolicy(DomSizePolicy *sizePolicy); |
77 | virtual void acceptSize(DomSize *size); |
78 | virtual void acceptDate(DomDate *date); |
79 | virtual void acceptTime(DomTime *time); |
80 | virtual void acceptDateTime(DomDateTime *dateTime); |
81 | virtual void acceptProperty(DomProperty *property); |
82 | using DomWidgets = QList<DomWidget *>; |
83 | virtual void acceptIncludes(DomIncludes *includes); |
84 | virtual void acceptInclude(DomInclude *incl); |
85 | virtual void acceptAction(DomAction *action); |
86 | virtual void acceptActionGroup(DomActionGroup *actionGroup); |
87 | virtual void acceptActionRef(DomActionRef *actionRef); |
88 | virtual void acceptConnections(DomConnections *connections); |
89 | virtual void acceptConnection(DomConnection *connection); |
90 | virtual void acceptConnectionHints(DomConnectionHints *connectionHints); |
91 | virtual void acceptConnectionHint(DomConnectionHint *connectionHint); |
92 | virtual void acceptButtonGroups(const DomButtonGroups *buttonGroups); |
93 | virtual void acceptButtonGroup(const DomButtonGroup *buttonGroup); |
94 | }; |
95 | |
96 | QT_END_NAMESPACE |
97 | |
98 | #endif // TREEWALKER_H |
99 | |