diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-05-29 00:04:04 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-05-29 00:04:04 +0000 |
commit | 6980c1e9988a7c959876ad77b760e042272a9ec2 (patch) | |
tree | 3b9ca757bfe83f8bef1ac9bcf544b1d47b542e8e /utils/themeeditor/parsetreemodel.h | |
parent | 1dcc21d8466a6279ff79c8b9ee02bc5cfc7f5167 (diff) | |
download | rockbox-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.h')
-rw-r--r-- | utils/themeeditor/parsetreemodel.h | 6 |
1 files changed, 5 insertions, 1 deletions
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: | |||
43 | ParseTreeModel(char* wps, QObject* parent = 0); | 43 | ParseTreeModel(char* wps, QObject* parent = 0); |
44 | virtual ~ParseTreeModel(); | 44 | virtual ~ParseTreeModel(); |
45 | 45 | ||
46 | QString genCode(); | ||
47 | |||
48 | /* | ||
46 | QModelIndex index(int row, int column, const QModelIndex& parent) const; | 49 | QModelIndex index(int row, int column, const QModelIndex& parent) const; |
47 | QModelIndex parent(const QModelIndex &child) const; | 50 | QModelIndex parent(const QModelIndex &child) const; |
48 | int rowCount(const QModelIndex &parent) const; | 51 | int rowCount(const QModelIndex &parent) const; |
49 | int columnCount(const QModelIndex &parent) const; | 52 | int columnCount(const QModelIndex &parent) const; |
50 | QVariant data(const QModelIndex &index, int role) const; | 53 | QVariant data(const QModelIndex &index, int role) const; |
54 | */ | ||
51 | 55 | ||
52 | private: | 56 | private: |
53 | ParseTreeNode* root; | 57 | ParseTreeNode* root; |
54 | struct skin_element* wps; | 58 | struct skin_element* tree; |
55 | }; | 59 | }; |
56 | 60 | ||
57 | 61 | ||