summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/parsetreenode.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-02 20:36:30 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-02 20:36:30 +0000
commite5a3ec2baf5bc57f93f5ea19fa9198e2a3e080db (patch)
tree68002e6e06420e7b6453cc00a8f049114b19a721 /utils/themeeditor/parsetreenode.h
parent87174d83fdde79a70bc3daad20729df585b7bbff (diff)
downloadrockbox-e5a3ec2baf5bc57f93f5ea19fa9198e2a3e080db.tar.gz
rockbox-e5a3ec2baf5bc57f93f5ea19fa9198e2a3e080db.tar.bz2
rockbox-e5a3ec2baf5bc57f93f5ea19fa9198e2a3e080db.zip
Changed build subdirectory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26492 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/parsetreenode.h')
-rw-r--r--utils/themeeditor/parsetreenode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/themeeditor/parsetreenode.h b/utils/themeeditor/parsetreenode.h
index 12f1d364d9..7a0807bb0d 100644
--- a/utils/themeeditor/parsetreenode.h
+++ b/utils/themeeditor/parsetreenode.h
@@ -37,6 +37,8 @@ public:
virtual ~ParseTreeNode();
QString genCode() const;
+ int genHash() const;
+
bool isParam() const{ if(param) return true; else return false; }
struct skin_tag_parameter* getParam(){ return param;}
struct skin_element* getElement(){return element;}
@@ -46,6 +48,13 @@ public:
QVariant data(int column) const;
int getRow() const;
ParseTreeNode* getParent() const;
+ ParseTreeNode* getChild(int row) const
+ {
+ if(row < children.count())
+ return children[row];
+ else
+ return 0;
+ }
private:
ParseTreeNode* parent;