summaryrefslogtreecommitdiff
path: root/utils/themeeditor/models/targetdata.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-18 00:39:40 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-18 00:39:40 +0000
commiteb52a45a0c1f42386dbc0e148e81972ae3878b71 (patch)
tree28e33cf907e90ab9e3868fe2c1528a65b5d80adb /utils/themeeditor/models/targetdata.h
parentced4080bc3a4de9788da135add5b2a150a7f94d6 (diff)
downloadrockbox-eb52a45a0c1f42386dbc0e148e81972ae3878b71.tar.gz
rockbox-eb52a45a0c1f42386dbc0e148e81972ae3878b71.zip
Theme Editor: If a pr project specifies a valid #target value, its settings are now loaded into the device configuration panel when the theme is loaded
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27476 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/targetdata.h')
-rw-r--r--utils/themeeditor/models/targetdata.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/themeeditor/models/targetdata.h b/utils/themeeditor/models/targetdata.h
index ef7ac5c8a9..09276c5966 100644
--- a/utils/themeeditor/models/targetdata.h
+++ b/utils/themeeditor/models/targetdata.h
@@ -52,14 +52,15 @@ public:
52 ScreenDepth screenDepth(int index){ return entries[index].depth; } 52 ScreenDepth screenDepth(int index){ return entries[index].depth; }
53 ScreenDepth remoteDepth(int index){ return entries[index].rDepth; } 53 ScreenDepth remoteDepth(int index){ return entries[index].rDepth; }
54 bool fm(int index){ return entries[index].fm; } 54 bool fm(int index){ return entries[index].fm; }
55 bool canRecord(int index){ return entries[index].record; }
55 56
56private: 57private:
57 struct Entry 58 struct Entry
58 { 59 {
59 Entry(QString name, QRect size, ScreenDepth depth, QRect rSize, 60 Entry(QString name, QRect size, ScreenDepth depth, QRect rSize,
60 ScreenDepth rDepth, bool fm) 61 ScreenDepth rDepth, bool fm, bool record)
61 : name(name), size(size), depth(depth), rSize(rSize), 62 : name(name), size(size), depth(depth), rSize(rSize),
62 rDepth(rDepth), fm(fm){ } 63 rDepth(rDepth), fm(fm), record(record){ }
63 64
64 QString name; 65 QString name;
65 QRect size; 66 QRect size;
@@ -67,6 +68,7 @@ private:
67 QRect rSize; 68 QRect rSize;
68 ScreenDepth rDepth; 69 ScreenDepth rDepth;
69 bool fm; 70 bool fm;
71 bool record;
70 }; 72 };
71 73
72 static const QString reserved; 74 static const QString reserved;