summaryrefslogtreecommitdiff
path: root/utils/themeeditor/parsetreemodel.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-01 19:55:20 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-01 19:55:20 +0000
commit5943f4c5e239475a32ac2b341a6df8189c8f1768 (patch)
treee010d5f5a600d06d947cffa8087d42274269caf3 /utils/themeeditor/parsetreemodel.h
parent253cfbcd47adfe3d7ccbd6f1646b1486397682df (diff)
downloadrockbox-5943f4c5e239475a32ac2b341a6df8189c8f1768.tar.gz
rockbox-5943f4c5e239475a32ac2b341a6df8189c8f1768.zip
Theme Editor: Enabled editing tag parameters from a treeview
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26452 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/parsetreemodel.h')
-rw-r--r--utils/themeeditor/parsetreemodel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/themeeditor/parsetreemodel.h b/utils/themeeditor/parsetreemodel.h
index 2d19452546..6d1f153d25 100644
--- a/utils/themeeditor/parsetreemodel.h
+++ b/utils/themeeditor/parsetreemodel.h
@@ -36,6 +36,12 @@ class ParseTreeModel : public QAbstractItemModel
36 Q_OBJECT 36 Q_OBJECT
37 37
38public: 38public:
39 /* Constants */
40 static const int numColumns = 3;
41 static const int typeColumn = 0;
42 static const int lineColumn = 1;
43 static const int valueColumn = 2;
44
39 /* Initializes a tree with a skin document in a string */ 45 /* Initializes a tree with a skin document in a string */
40 ParseTreeModel(char* document, QObject* parent = 0); 46 ParseTreeModel(char* document, QObject* parent = 0);
41 virtual ~ParseTreeModel(); 47 virtual ~ParseTreeModel();
@@ -47,6 +53,9 @@ public:
47 int rowCount(const QModelIndex &parent) const; 53 int rowCount(const QModelIndex &parent) const;
48 int columnCount(const QModelIndex &parent) const; 54 int columnCount(const QModelIndex &parent) const;
49 QVariant data(const QModelIndex &index, int role) const; 55 QVariant data(const QModelIndex &index, int role) const;
56 QVariant headerData(int col, Qt::Orientation orientation, int role) const;
57 Qt::ItemFlags flags(const QModelIndex &index) const;
58 bool setData(const QModelIndex &index, const QVariant &value, int role);
50 59
51private: 60private:
52 ParseTreeNode* root; 61 ParseTreeNode* root;