From 6980c1e9988a7c959876ad77b760e042272a9ec2 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sat, 29 May 2010 00:04:04 +0000 Subject: 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 --- utils/themeeditor/parsetreemodel.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/parsetreemodel.cpp') 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(index.internalPointer()); return item->data(index.column()); } +*/ -- cgit v1.2.3