summaryrefslogtreecommitdiffstats
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.tar.bz2
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 @@
ParseTreeModel::ParseTreeModel(char* wps, QObject* parent):
QAbstractItemModel(parent)
{
- this->wps = skin_parse(wps);
- this->root = new ParseTreeNode(this->wps, 0, true);
+ this->tree = skin_parse(wps);
+ this->root = new ParseTreeNode(tree, 0);
}
@@ -36,6 +36,12 @@ ParseTreeModel::~ParseTreeModel()
delete root;
}
+QString genCode()
+{
+ return QString();
+}
+
+/*
QModelIndex ParseTreeModel::index(int row, int column,
const QModelIndex& parent) const
{
@@ -98,3 +104,4 @@ QVariant ParseTreeModel::data(const QModelIndex &index, int role) const
ParseTreeNode* item = static_cast<ParseTreeNode*>(index.internalPointer());
return item->data(index.column());
}
+*/