diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-18 00:39:40 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-18 00:39:40 +0000 |
commit | eb52a45a0c1f42386dbc0e148e81972ae3878b71 (patch) | |
tree | 28e33cf907e90ab9e3868fe2c1528a65b5d80adb /utils/themeeditor/models/targetdata.cpp | |
parent | ced4080bc3a4de9788da135add5b2a150a7f94d6 (diff) | |
download | rockbox-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.cpp')
-rw-r--r-- | utils/themeeditor/models/targetdata.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/utils/themeeditor/models/targetdata.cpp b/utils/themeeditor/models/targetdata.cpp index a20a4cf18f..70d231988b 100644 --- a/utils/themeeditor/models/targetdata.cpp +++ b/utils/themeeditor/models/targetdata.cpp | |||
@@ -49,6 +49,7 @@ TargetData::TargetData(QString file) | |||
49 | QRect rSize(0, 0, 0, 0); | 49 | QRect rSize(0, 0, 0, 0); |
50 | ScreenDepth rDepth = None; | 50 | ScreenDepth rDepth = None; |
51 | bool fm = false; | 51 | bool fm = false; |
52 | bool record = false; | ||
52 | 53 | ||
53 | if(id == "") | 54 | if(id == "") |
54 | break; | 55 | break; |
@@ -119,13 +120,19 @@ TargetData::TargetData(QString file) | |||
119 | if(s.toLower() == "yes") | 120 | if(s.toLower() == "yes") |
120 | fm = true; | 121 | fm = true; |
121 | } | 122 | } |
123 | else if(key.toLower() == "record") | ||
124 | { | ||
125 | QString s = scanString(data, cursor); | ||
126 | if(s.toLower() == "yes") | ||
127 | record = true; | ||
128 | } | ||
122 | } | 129 | } |
123 | } | 130 | } |
124 | 131 | ||
125 | /* Checking for the closing '}' and adding the entry */ | 132 | /* Checking for the closing '}' and adding the entry */ |
126 | if(require('}', data, cursor)) | 133 | if(require('}', data, cursor)) |
127 | { | 134 | { |
128 | entries.append(Entry(name, size, depth, rSize, rDepth, fm)); | 135 | entries.append(Entry(name, size, depth, rSize, rDepth, fm, record)); |
129 | indices.insert(id, index); | 136 | indices.insert(id, index); |
130 | index++; | 137 | index++; |
131 | } | 138 | } |