diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-08-05 00:43:33 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-08-05 00:43:33 +0000 |
commit | 054a85fdca651844f969f44755b8531ab2e962d7 (patch) | |
tree | d424970a137d4bbdd57102961a46653e67589820 /utils/themeeditor/models/parsetreemodel.h | |
parent | 467451878726a3755eb3b2b472a3b33299cb9245 (diff) | |
download | rockbox-054a85fdca651844f969f44755b8531ab2e962d7.tar.gz rockbox-054a85fdca651844f969f44755b8531ab2e962d7.zip |
Theme Editor: Added code generate/undo functionality to SkinViewer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27704 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreemodel.h')
-rw-r--r-- | utils/themeeditor/models/parsetreemodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.h b/utils/themeeditor/models/parsetreemodel.h index ec0a420a84..3c20a8ed3a 100644 --- a/utils/themeeditor/models/parsetreemodel.h +++ b/utils/themeeditor/models/parsetreemodel.h | |||
@@ -53,6 +53,8 @@ public: | |||
53 | QString genCode(); | 53 | QString genCode(); |
54 | /* Changes the parse tree to a new document */ | 54 | /* Changes the parse tree to a new document */ |
55 | QString changeTree(const char* document); | 55 | QString changeTree(const char* document); |
56 | |||
57 | /* Model implementation stuff */ | ||
56 | QModelIndex index(int row, int column, const QModelIndex& parent) const; | 58 | QModelIndex index(int row, int column, const QModelIndex& parent) const; |
57 | QModelIndex parent(const QModelIndex &child) const; | 59 | QModelIndex parent(const QModelIndex &child) const; |
58 | int rowCount(const QModelIndex &parent) const; | 60 | int rowCount(const QModelIndex &parent) const; |
@@ -74,6 +76,8 @@ public: | |||
74 | return fallback; | 76 | return fallback; |
75 | } | 77 | } |
76 | 78 | ||
79 | void paramChanged(ParseTreeNode* param); | ||
80 | QModelIndex indexFromPointer(ParseTreeNode* p); | ||
77 | 81 | ||
78 | private: | 82 | private: |
79 | ParseTreeNode* root; | 83 | ParseTreeNode* root; |