diff options
Diffstat (limited to 'utils/themeeditor/parsetreenode.h')
-rw-r--r-- | utils/themeeditor/parsetreenode.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/utils/themeeditor/parsetreenode.h b/utils/themeeditor/parsetreenode.h new file mode 100644 index 0000000000..bc091b9aa4 --- /dev/null +++ b/utils/themeeditor/parsetreenode.h | |||
@@ -0,0 +1,35 @@ | |||
1 | #ifndef PARSETREENODE_H | ||
2 | #define PARSETREENODE_H | ||
3 | |||
4 | extern "C" | ||
5 | { | ||
6 | #include "skin_parser.h" | ||
7 | } | ||
8 | |||
9 | #include <QString> | ||
10 | #include <QVariant> | ||
11 | #include <QList> | ||
12 | |||
13 | class ParseTreeNode | ||
14 | { | ||
15 | public: | ||
16 | ParseTreeNode(struct skin_element* data, ParseTreeNode* parent, bool stop = false); | ||
17 | virtual ~ParseTreeNode(); | ||
18 | |||
19 | void appendChild(ParseTreeNode* child); | ||
20 | |||
21 | ParseTreeNode* child(int row); | ||
22 | int childCount() const; | ||
23 | int columnCount() const; | ||
24 | QVariant data(int column) const; | ||
25 | int row() const; | ||
26 | ParseTreeNode* parent(); | ||
27 | |||
28 | private: | ||
29 | ParseTreeNode* parentLink; | ||
30 | QList<ParseTreeNode*> children; | ||
31 | struct skin_element* element; | ||
32 | |||
33 | }; | ||
34 | |||
35 | #endif // PARSETREENODE_H | ||