| 1 | /****************************************************************************
|
|---|
| 2 | **
|
|---|
| 3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|---|
| 4 | ** Contact: Qt Software Information (qt-info@nokia.com)
|
|---|
| 5 | **
|
|---|
| 6 | ** This file is part of the tools applications of the Qt Toolkit.
|
|---|
| 7 | **
|
|---|
| 8 | ** $QT_BEGIN_LICENSE:LGPL$
|
|---|
| 9 | ** Commercial Usage
|
|---|
| 10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
|---|
| 11 | ** accordance with the Qt Commercial License Agreement provided with the
|
|---|
| 12 | ** Software or, alternatively, in accordance with the terms contained in
|
|---|
| 13 | ** a written agreement between you and Nokia.
|
|---|
| 14 | **
|
|---|
| 15 | ** GNU Lesser General Public License Usage
|
|---|
| 16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
|---|
| 17 | ** General Public License version 2.1 as published by the Free Software
|
|---|
| 18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
|---|
| 19 | ** packaging of this file. Please review the following information to
|
|---|
| 20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
|---|
| 21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|---|
| 22 | **
|
|---|
| 23 | ** In addition, as a special exception, Nokia gives you certain
|
|---|
| 24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
|---|
| 25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
|---|
| 26 | ** package.
|
|---|
| 27 | **
|
|---|
| 28 | ** GNU General Public License Usage
|
|---|
| 29 | ** Alternatively, this file may be used under the terms of the GNU
|
|---|
| 30 | ** General Public License version 3.0 as published by the Free Software
|
|---|
| 31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
|---|
| 32 | ** packaging of this file. Please review the following information to
|
|---|
| 33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
|---|
| 34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
|---|
| 35 | **
|
|---|
| 36 | ** If you are unsure which license is appropriate for your use, please
|
|---|
| 37 | ** contact the sales department at qt-sales@nokia.com.
|
|---|
| 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
|
|---|