summaryrefslogtreecommitdiff
path: root/utils/themeeditor/parsetreemodel.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-05-29 00:04:04 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-05-29 00:04:04 +0000
commit6980c1e9988a7c959876ad77b760e042272a9ec2 (patch)
tree3b9ca757bfe83f8bef1ac9bcf544b1d47b542e8e /utils/themeeditor/parsetreemodel.cpp
parent1dcc21d8466a6279ff79c8b9ee02bc5cfc7f5167 (diff)
downloadrockbox-6980c1e9988a7c959876ad77b760e042272a9ec2.tar.gz
rockbox-6980c1e9988a7c959876ad77b760e042272a9ec2.zip
Theme Editor: Got code generation tentatively working along with a solid C++ tree structure for WPS parse trees
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26367 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/parsetreemodel.cpp')
-rw-r--r--utils/themeeditor/parsetreemodel.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/themeeditor/parsetreemodel.cpp b/utils/themeeditor/parsetreemodel.cpp
index aa5fb5cdb8..c99f166c41 100644
--- a/utils/themeeditor/parsetreemodel.cpp
+++ b/utils/themeeditor/parsetreemodel.cpp
@@ -26,8 +26,8 @@
26ParseTreeModel::ParseTreeModel(char* wps, QObject* parent): 26ParseTreeModel::ParseTreeModel(char* wps, QObject* parent):
27 QAbstractItemModel(parent) 27 QAbstractItemModel(parent)
28{ 28{
29 this->wps = skin_parse(wps); 29 this->tree = skin_parse(wps);
30 this->root = new ParseTreeNode(this->wps, 0, true); 30 this->root = new ParseTreeNode(tree, 0);
31} 31}
32 32
33 33
@@ -36,6 +36,12 @@ ParseTreeModel::~ParseTreeModel()
36 delete root; 36 delete root;
37} 37}
38 38
39QString genCode()
40{
41 return QString();
42}
43
44/*
39QModelIndex ParseTreeModel::index(int row, int column, 45QModelIndex ParseTreeModel::index(int row, int column,
40 const QModelIndex& parent) const 46 const QModelIndex& parent) const
41{ 47{
@@ -98,3 +104,4 @@ QVariant ParseTreeModel::data(const QModelIndex &index, int role) const
98 ParseTreeNode* item = static_cast<ParseTreeNode*>(index.internalPointer()); 104 ParseTreeNode* item = static_cast<ParseTreeNode*>(index.internalPointer());
99 return item->data(index.column()); 105 return item->data(index.column());
100} 106}
107*/