summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/main.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-05-30 01:47:35 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-05-30 01:47:35 +0000
commit9f2e1b1e1a1dae857fe74728b91c5393d5f1c283 (patch)
treebfb60801f71d8660766ae45f9bb9d81a51b5b3ef /utils/themeeditor/main.cpp
parent9843626b6941f63b964c3352e996032247115aad (diff)
downloadrockbox-9f2e1b1e1a1dae857fe74728b91c5393d5f1c283.tar.gz
rockbox-9f2e1b1e1a1dae857fe74728b91c5393d5f1c283.tar.bz2
rockbox-9f2e1b1e1a1dae857fe74728b91c5393d5f1c283.zip
Theme Editor: Got a barely functional treeview in place
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26401 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/main.cpp')
-rw-r--r--utils/themeeditor/main.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/utils/themeeditor/main.cpp b/utils/themeeditor/main.cpp
index 27ce2da23f..f876b1906e 100644
--- a/utils/themeeditor/main.cpp
+++ b/utils/themeeditor/main.cpp
@@ -36,12 +36,22 @@ extern "C"
int main(int argc, char* argv[])
{
+ QApplication app(argc, argv);
char doc[] = "#Comment\n%Vd(U);Hey\n%?bl(test,3,5,2,1)<param2|param3>";
+ ParseTreeModel tree(doc);
+
+ QTreeView view;
+ view.setModel(&tree);
+ view.show();
+
+ return app.exec();
+
+ /*
struct skin_element* test = skin_parse(doc);
- ParseTreeNode tree(test);
+ ParseTreeModel tree(doc);
std::cout << "----" << std::endl;
if(std::string(doc) == tree.genCode().toStdString())
std::cout << "Code in/out matches" << std::endl;
@@ -50,17 +60,7 @@ int main(int argc, char* argv[])
skin_free_tree(test);
+ */
-/*
- QApplication app(argc, argv);
-
- QTreeView tree;
- ParseTreeModel model(doc);
- tree.setModel(&model);
- tree.show();
-
- return app.exec();
-*/
- return 0;
}