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.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'utils/themeeditor/parsetreemodel.h') diff --git a/utils/themeeditor/parsetreemodel.h b/utils/themeeditor/parsetreemodel.h index 78484eb5f4..64365ed038 100644 --- a/utils/themeeditor/parsetreemodel.h +++ b/utils/themeeditor/parsetreemodel.h @@ -43,15 +43,19 @@ public: ParseTreeModel(char* wps, QObject* parent = 0); virtual ~ParseTreeModel(); + QString genCode(); + + /* QModelIndex index(int row, int column, const QModelIndex& parent) const; QModelIndex parent(const QModelIndex &child) const; int rowCount(const QModelIndex &parent) const; int columnCount(const QModelIndex &parent) const; QVariant data(const QModelIndex &index, int role) const; + */ private: ParseTreeNode* root; - struct skin_element* wps; + struct skin_element* tree; }; -- cgit v1.2.3