diff options
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r-- | utils/themeeditor/main.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp new file mode 100644 index 0000000000..3d7a01e7f2 --- /dev/null +++ b/utils/themeeditor/main.cpp | |||
@@ -0,0 +1,31 @@ | |||
1 | namespace wps | ||
2 | { | ||
3 | extern "C" | ||
4 | { | ||
5 | #include "skin_parser.h" | ||
6 | #include "skin_debug.h" | ||
7 | } | ||
8 | } | ||
9 | |||
10 | #include <cstdlib> | ||
11 | #include <cstdio> | ||
12 | |||
13 | #include <QtGui/QApplication> | ||
14 | #include <QFileSystemModel> | ||
15 | #include <QTreeView> | ||
16 | |||
17 | int main(int argc, char* argv[]) | ||
18 | { | ||
19 | |||
20 | char* doc = "%Vd(U)\n\n%?bl(test,3,5,2,1)<param2|param3>"; | ||
21 | |||
22 | struct wps::skin_element* test = wps::skin_parse(doc); | ||
23 | |||
24 | wps::skin_debug_tree(test); | ||
25 | |||
26 | wps::skin_free_tree(test); | ||
27 | |||
28 | |||
29 | return 0; | ||
30 | } | ||
31 | |||