diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-02-04 21:10:20 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-02-04 21:10:20 +0000 |
commit | a9ab407f8460017d3c7189f0cbf4bd464e7a90ce (patch) | |
tree | fafa566f1921ac87fa639167d8db4dbc15020ea2 | |
parent | 69fe1ad830cd339d76507b96aca365c0ea0dfe11 (diff) | |
download | rockbox-a9ab407f8460017d3c7189f0cbf4bd464e7a90ce.tar.gz rockbox-a9ab407f8460017d3c7189f0cbf4bd464e7a90ce.zip |
Add option to show disabled targets in the configuration dialog.
Note that disabled targets support is not intended for use by end users.
This is to make development (and testing of svn) easier and should get
disabled for releases.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24513 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | rbutil/rbutilqt/base/systeminfo.cpp | 3 | ||||
-rw-r--r-- | rbutil/rbutilqt/base/systeminfo.h | 1 | ||||
-rw-r--r-- | rbutil/rbutilqt/configure.cpp | 31 | ||||
-rw-r--r-- | rbutil/rbutilqt/configure.h | 1 | ||||
-rw-r--r-- | rbutil/rbutilqt/configurefrm.ui | 449 |
5 files changed, 268 insertions, 217 deletions
diff --git a/rbutil/rbutilqt/base/systeminfo.cpp b/rbutil/rbutilqt/base/systeminfo.cpp index ff221db63d..d5de5fff2a 100644 --- a/rbutil/rbutilqt/base/systeminfo.cpp +++ b/rbutil/rbutilqt/base/systeminfo.cpp | |||
@@ -119,7 +119,8 @@ QStringList SystemInfo::platforms(enum SystemInfo::PlatformType type, QString va | |||
119 | { | 119 | { |
120 | QString target = systemInfos->value("platforms/"+a.at(i), "null").toString(); | 120 | QString target = systemInfos->value("platforms/"+a.at(i), "null").toString(); |
121 | // only add target if its not disabled | 121 | // only add target if its not disabled |
122 | if(systemInfos->value(target+"/status").toString() == "disabled") | 122 | if(type != PlatformAllDisabled |
123 | && systemInfos->value(target+"/status").toString() == "disabled") | ||
123 | continue; | 124 | continue; |
124 | // report only base targets when PlatformBase is requested | 125 | // report only base targets when PlatformBase is requested |
125 | if(type == PlatformBase && target.contains('.')) | 126 | if(type == PlatformBase && target.contains('.')) |
diff --git a/rbutil/rbutilqt/base/systeminfo.h b/rbutil/rbutilqt/base/systeminfo.h index 45984d4789..bab4815421 100644 --- a/rbutil/rbutilqt/base/systeminfo.h +++ b/rbutil/rbutilqt/base/systeminfo.h | |||
@@ -65,6 +65,7 @@ class SystemInfo : public QObject | |||
65 | 65 | ||
66 | enum PlatformType { | 66 | enum PlatformType { |
67 | PlatformAll, | 67 | PlatformAll, |
68 | PlatformAllDisabled, | ||
68 | PlatformBase, | 69 | PlatformBase, |
69 | PlatformVariant | 70 | PlatformVariant |
70 | }; | 71 | }; |
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp index dafa9997a4..1f433d8903 100644 --- a/rbutil/rbutilqt/configure.cpp +++ b/rbutil/rbutilqt/configure.cpp | |||
@@ -99,6 +99,7 @@ Config::Config(QWidget *parent,int index) : QDialog(parent) | |||
99 | connect(ui.comboTts, SIGNAL(currentIndexChanged(int)), this, SLOT(updateTtsState(int))); | 99 | connect(ui.comboTts, SIGNAL(currentIndexChanged(int)), this, SLOT(updateTtsState(int))); |
100 | connect(ui.treeDevices, SIGNAL(itemSelectionChanged()), this, SLOT(updateEncState())); | 100 | connect(ui.treeDevices, SIGNAL(itemSelectionChanged()), this, SLOT(updateEncState())); |
101 | connect(ui.testTTS,SIGNAL(clicked()),this,SLOT(testTts())); | 101 | connect(ui.testTTS,SIGNAL(clicked()),this,SLOT(testTts())); |
102 | connect(ui.showDisabled, SIGNAL(toggled(bool)), this, SLOT(showDisabled(bool))); | ||
102 | setUserSettings(); | 103 | setUserSettings(); |
103 | setDevices(); | 104 | setDevices(); |
104 | } | 105 | } |
@@ -282,20 +283,38 @@ void Config::updateCacheInfo(QString path) | |||
282 | } | 283 | } |
283 | 284 | ||
284 | 285 | ||
286 | void Config::showDisabled(bool show) | ||
287 | { | ||
288 | qDebug() << "[Config] disabled targets shown:" << show; | ||
289 | if(show) | ||
290 | QMessageBox::warning(this, tr("Showing disabled targets"), | ||
291 | tr("You just enabled showing targets that are marked disabled. " | ||
292 | "Disabled targets are not recommended to end users. Please " | ||
293 | "use this option only if you know what you are doing.")); | ||
294 | setDevices(); | ||
295 | |||
296 | } | ||
297 | |||
298 | |||
285 | void Config::setDevices() | 299 | void Config::setDevices() |
286 | { | 300 | { |
287 | 301 | ||
288 | // setup devices table | 302 | // setup devices table |
289 | qDebug() << "[Config] setting up devices list"; | 303 | qDebug() << "[Config] setting up devices list"; |
290 | 304 | ||
291 | QStringList platformList = SystemInfo::platforms(); | 305 | QStringList platformList; |
306 | if(ui.showDisabled->isChecked()) | ||
307 | platformList = SystemInfo::platforms(SystemInfo::PlatformAllDisabled); | ||
308 | else | ||
309 | platformList = SystemInfo::platforms(SystemInfo::PlatformAll); | ||
292 | 310 | ||
293 | QMap <QString, QString> manuf; | 311 | QMap <QString, QString> manuf; |
294 | QMap <QString, QString> devcs; | 312 | QMap <QString, QString> devcs; |
295 | for(int it = 0; it < platformList.size(); it++) | 313 | for(int it = 0; it < platformList.size(); it++) |
296 | { | 314 | { |
297 | QString curname = SystemInfo::name(platformList.at(it)) + | 315 | QString curname = SystemInfo::name(platformList.at(it)) + |
298 | " (" +ServerInfo::platformValue(platformList.at(it),ServerInfo::CurStatus).toString() + ")"; | 316 | " (" +ServerInfo::platformValue(platformList.at(it), |
317 | ServerInfo::CurStatus).toString() + ")"; | ||
299 | QString curbrand = SystemInfo::brand(platformList.at(it)); | 318 | QString curbrand = SystemInfo::brand(platformList.at(it)); |
300 | manuf.insertMulti(curbrand, platformList.at(it)); | 319 | manuf.insertMulti(curbrand, platformList.at(it)); |
301 | devcs.insert(platformList.at(it), curname); | 320 | devcs.insert(platformList.at(it), curname); |
@@ -341,6 +360,14 @@ void Config::setDevices() | |||
341 | items.append(w2); | 360 | items.append(w2); |
342 | } | 361 | } |
343 | } | 362 | } |
363 | // remove any old items in list | ||
364 | QTreeWidgetItem* widgetitem; | ||
365 | do { | ||
366 | widgetitem = ui.treeDevices->takeTopLevelItem(0); | ||
367 | delete widgetitem; | ||
368 | } | ||
369 | while(widgetitem); | ||
370 | // add new items | ||
344 | ui.treeDevices->insertTopLevelItems(0, items); | 371 | ui.treeDevices->insertTopLevelItems(0, items); |
345 | if(w3 != 0) | 372 | if(w3 != 0) |
346 | ui.treeDevices->setCurrentItem(w3); // hilight old selection | 373 | ui.treeDevices->setCurrentItem(w3); // hilight old selection |
diff --git a/rbutil/rbutilqt/configure.h b/rbutil/rbutilqt/configure.h index 2ca54af5f5..d2654907c1 100644 --- a/rbutil/rbutilqt/configure.h +++ b/rbutil/rbutilqt/configure.h | |||
@@ -71,6 +71,7 @@ class Config : public QDialog | |||
71 | void updateTtsState(int); | 71 | void updateTtsState(int); |
72 | void updateEncState(); | 72 | void updateEncState(); |
73 | void testTts(); | 73 | void testTts(); |
74 | void showDisabled(bool); | ||
74 | }; | 75 | }; |
75 | 76 | ||
76 | #endif | 77 | #endif |
diff --git a/rbutil/rbutilqt/configurefrm.ui b/rbutil/rbutilqt/configurefrm.ui index bfd87cb5bc..cd5fbb159a 100644 --- a/rbutil/rbutilqt/configurefrm.ui +++ b/rbutil/rbutilqt/configurefrm.ui | |||
@@ -1,7 +1,8 @@ | |||
1 | <ui version="4.0" > | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <ui version="4.0"> | ||
2 | <class>ConfigForm</class> | 3 | <class>ConfigForm</class> |
3 | <widget class="QDialog" name="ConfigForm" > | 4 | <widget class="QDialog" name="ConfigForm"> |
4 | <property name="geometry" > | 5 | <property name="geometry"> |
5 | <rect> | 6 | <rect> |
6 | <x>0</x> | 7 | <x>0</x> |
7 | <y>0</y> | 8 | <y>0</y> |
@@ -9,195 +10,215 @@ | |||
9 | <height>465</height> | 10 | <height>465</height> |
10 | </rect> | 11 | </rect> |
11 | </property> | 12 | </property> |
12 | <property name="windowTitle" > | 13 | <property name="windowTitle"> |
13 | <string>Configuration</string> | 14 | <string>Configuration</string> |
14 | </property> | 15 | </property> |
15 | <layout class="QGridLayout" > | 16 | <layout class="QGridLayout"> |
16 | <item row="0" column="0" colspan="3" > | 17 | <item row="0" column="0" colspan="3"> |
17 | <widget class="QLabel" name="labelTitle" > | 18 | <widget class="QLabel" name="labelTitle"> |
18 | <property name="text" > | 19 | <property name="text"> |
19 | <string>Configure Rockbox Utility</string> | 20 | <string>Configure Rockbox Utility</string> |
20 | </property> | 21 | </property> |
21 | </widget> | 22 | </widget> |
22 | </item> | 23 | </item> |
23 | <item row="1" column="0" colspan="3" > | 24 | <item row="1" column="0" colspan="3"> |
24 | <widget class="QTabWidget" name="tabConfiguration" > | 25 | <widget class="QTabWidget" name="tabConfiguration"> |
25 | <property name="currentIndex" > | 26 | <property name="currentIndex"> |
26 | <number>0</number> | 27 | <number>0</number> |
27 | </property> | 28 | </property> |
28 | <widget class="QWidget" name="tabDevice" > | 29 | <widget class="QWidget" name="tabDevice"> |
29 | <attribute name="title" > | 30 | <attribute name="icon"> |
30 | <string>&Device</string> | 31 | <iconset resource="rbutilqt.qrc"> |
31 | </attribute> | ||
32 | <attribute name="icon" > | ||
33 | <iconset resource="rbutilqt.qrc" > | ||
34 | <normaloff>:/icons/rbutil.png</normaloff>:/icons/rbutil.png</iconset> | 32 | <normaloff>:/icons/rbutil.png</normaloff>:/icons/rbutil.png</iconset> |
35 | </attribute> | 33 | </attribute> |
36 | <layout class="QGridLayout" > | 34 | <attribute name="title"> |
37 | <item row="0" column="0" > | 35 | <string>&Device</string> |
38 | <widget class="QLabel" name="labelMountPoint" > | 36 | </attribute> |
39 | <property name="text" > | 37 | <layout class="QGridLayout" name="gridLayout"> |
38 | <item row="0" column="0" colspan="2"> | ||
39 | <widget class="QLabel" name="labelMountPoint"> | ||
40 | <property name="text"> | ||
40 | <string>Select your device in the &filesystem</string> | 41 | <string>Select your device in the &filesystem</string> |
41 | </property> | 42 | </property> |
42 | <property name="buddy" > | 43 | <property name="buddy"> |
43 | <cstring>mountPoint</cstring> | 44 | <cstring>mountPoint</cstring> |
44 | </property> | 45 | </property> |
45 | </widget> | 46 | </widget> |
46 | </item> | 47 | </item> |
47 | <item row="1" column="0" colspan="2" > | 48 | <item row="1" column="0" colspan="3"> |
48 | <layout class="QHBoxLayout" > | 49 | <layout class="QHBoxLayout"> |
49 | <item> | 50 | <item> |
50 | <widget class="QLineEdit" name="mountPoint" /> | 51 | <widget class="QLineEdit" name="mountPoint"/> |
51 | </item> | 52 | </item> |
52 | <item> | 53 | <item> |
53 | <widget class="QPushButton" name="browseMountPoint" > | 54 | <widget class="QPushButton" name="browseMountPoint"> |
54 | <property name="text" > | 55 | <property name="text"> |
55 | <string>&Browse</string> | 56 | <string>&Browse</string> |
56 | </property> | 57 | </property> |
57 | <property name="icon" > | 58 | <property name="icon"> |
58 | <iconset resource="rbutilqt.qrc" > | 59 | <iconset resource="rbutilqt.qrc"> |
59 | <normaloff>:/icons/system-search.png</normaloff>:/icons/system-search.png</iconset> | 60 | <normaloff>:/icons/system-search.png</normaloff>:/icons/system-search.png</iconset> |
60 | </property> | 61 | </property> |
61 | <property name="autoDefault" > | 62 | <property name="autoDefault"> |
62 | <bool>false</bool> | 63 | <bool>false</bool> |
63 | </property> | 64 | </property> |
64 | </widget> | 65 | </widget> |
65 | </item> | 66 | </item> |
66 | </layout> | 67 | </layout> |
67 | </item> | 68 | </item> |
68 | <item row="2" column="0" > | 69 | <item row="2" column="0"> |
69 | <widget class="QLabel" name="labelPlayer" > | 70 | <widget class="QLabel" name="labelPlayer"> |
70 | <property name="text" > | 71 | <property name="text"> |
71 | <string>&Select your audio player</string> | 72 | <string>&Select your audio player</string> |
72 | </property> | 73 | </property> |
73 | <property name="buddy" > | 74 | <property name="buddy"> |
74 | <cstring>treeDevices</cstring> | 75 | <cstring>treeDevices</cstring> |
75 | </property> | 76 | </property> |
76 | </widget> | 77 | </widget> |
77 | </item> | 78 | </item> |
78 | <item row="3" column="0" colspan="2" > | 79 | <item row="2" column="1"> |
79 | <widget class="QTreeWidget" name="treeDevices" > | 80 | <spacer name="horizontalSpacer"> |
81 | <property name="orientation"> | ||
82 | <enum>Qt::Horizontal</enum> | ||
83 | </property> | ||
84 | <property name="sizeHint" stdset="0"> | ||
85 | <size> | ||
86 | <width>118</width> | ||
87 | <height>20</height> | ||
88 | </size> | ||
89 | </property> | ||
90 | </spacer> | ||
91 | </item> | ||
92 | <item row="2" column="2"> | ||
93 | <widget class="QCheckBox" name="showDisabled"> | ||
94 | <property name="text"> | ||
95 | <string>Show disabled targets</string> | ||
96 | </property> | ||
97 | </widget> | ||
98 | </item> | ||
99 | <item row="3" column="0" colspan="3"> | ||
100 | <widget class="QTreeWidget" name="treeDevices"> | ||
80 | <column> | 101 | <column> |
81 | <property name="text" > | 102 | <property name="text"> |
82 | <string>1</string> | 103 | <string>1</string> |
83 | </property> | 104 | </property> |
84 | </column> | 105 | </column> |
85 | </widget> | 106 | </widget> |
86 | </item> | 107 | </item> |
87 | <item row="4" column="0" colspan="2" > | 108 | <item row="4" column="0"> |
88 | <widget class="QPushButton" name="buttonAutodetect" > | 109 | <widget class="QPushButton" name="buttonAutodetect"> |
89 | <property name="text" > | 110 | <property name="text"> |
90 | <string>&Autodetect</string> | 111 | <string>&Autodetect</string> |
91 | </property> | 112 | </property> |
92 | <property name="icon" > | 113 | <property name="icon"> |
93 | <iconset resource="rbutilqt.qrc" > | 114 | <iconset resource="rbutilqt.qrc"> |
94 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> | 115 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> |
95 | </property> | 116 | </property> |
96 | <property name="default" > | 117 | <property name="default"> |
97 | <bool>true</bool> | 118 | <bool>true</bool> |
98 | </property> | 119 | </property> |
99 | <property name="flat" > | 120 | <property name="flat"> |
100 | <bool>false</bool> | 121 | <bool>false</bool> |
101 | </property> | 122 | </property> |
102 | </widget> | 123 | </widget> |
103 | </item> | 124 | </item> |
104 | </layout> | 125 | </layout> |
105 | </widget> | 126 | </widget> |
106 | <widget class="QWidget" name="tabProxy" > | 127 | <widget class="QWidget" name="tabProxy"> |
107 | <attribute name="title" > | 128 | <attribute name="icon"> |
108 | <string>&Proxy</string> | 129 | <iconset resource="rbutilqt.qrc"> |
109 | </attribute> | ||
110 | <attribute name="icon" > | ||
111 | <iconset resource="rbutilqt.qrc" > | ||
112 | <normaloff>:/icons/network-idle.png</normaloff>:/icons/network-idle.png</iconset> | 130 | <normaloff>:/icons/network-idle.png</normaloff>:/icons/network-idle.png</iconset> |
113 | </attribute> | 131 | </attribute> |
114 | <layout class="QGridLayout" > | 132 | <attribute name="title"> |
115 | <item row="0" column="0" > | 133 | <string>&Proxy</string> |
116 | <widget class="QRadioButton" name="radioNoProxy" > | 134 | </attribute> |
117 | <property name="text" > | 135 | <layout class="QGridLayout"> |
136 | <item row="0" column="0"> | ||
137 | <widget class="QRadioButton" name="radioNoProxy"> | ||
138 | <property name="text"> | ||
118 | <string>&No Proxy</string> | 139 | <string>&No Proxy</string> |
119 | </property> | 140 | </property> |
120 | <property name="checked" > | 141 | <property name="checked"> |
121 | <bool>true</bool> | 142 | <bool>true</bool> |
122 | </property> | 143 | </property> |
123 | </widget> | 144 | </widget> |
124 | </item> | 145 | </item> |
125 | <item row="1" column="0" > | 146 | <item row="1" column="0"> |
126 | <widget class="QRadioButton" name="radioSystemProxy" > | 147 | <widget class="QRadioButton" name="radioSystemProxy"> |
127 | <property name="text" > | 148 | <property name="text"> |
128 | <string>Use S&ystem values</string> | 149 | <string>Use S&ystem values</string> |
129 | </property> | 150 | </property> |
130 | </widget> | 151 | </widget> |
131 | </item> | 152 | </item> |
132 | <item row="2" column="0" > | 153 | <item row="2" column="0"> |
133 | <widget class="QRadioButton" name="radioManualProxy" > | 154 | <widget class="QRadioButton" name="radioManualProxy"> |
134 | <property name="text" > | 155 | <property name="text"> |
135 | <string>&Manual Proxy settings</string> | 156 | <string>&Manual Proxy settings</string> |
136 | </property> | 157 | </property> |
137 | </widget> | 158 | </widget> |
138 | </item> | 159 | </item> |
139 | <item row="3" column="0" > | 160 | <item row="3" column="0"> |
140 | <widget class="QGroupBox" name="groupBox" > | 161 | <widget class="QGroupBox" name="groupBox"> |
141 | <property name="title" > | 162 | <property name="title"> |
142 | <string>Proxy Values</string> | 163 | <string>Proxy Values</string> |
143 | </property> | 164 | </property> |
144 | <layout class="QGridLayout" > | 165 | <layout class="QGridLayout"> |
145 | <item row="0" column="0" > | 166 | <item row="0" column="0"> |
146 | <widget class="QLabel" name="label" > | 167 | <widget class="QLabel" name="label"> |
147 | <property name="text" > | 168 | <property name="text"> |
148 | <string>&Host:</string> | 169 | <string>&Host:</string> |
149 | </property> | 170 | </property> |
150 | <property name="buddy" > | 171 | <property name="buddy"> |
151 | <cstring>proxyHost</cstring> | 172 | <cstring>proxyHost</cstring> |
152 | </property> | 173 | </property> |
153 | </widget> | 174 | </widget> |
154 | </item> | 175 | </item> |
155 | <item row="0" column="1" > | 176 | <item row="0" column="1"> |
156 | <widget class="QLineEdit" name="proxyHost" > | 177 | <widget class="QLineEdit" name="proxyHost"> |
157 | <property name="frame" > | 178 | <property name="frame"> |
158 | <bool>true</bool> | 179 | <bool>true</bool> |
159 | </property> | 180 | </property> |
160 | </widget> | 181 | </widget> |
161 | </item> | 182 | </item> |
162 | <item row="1" column="0" > | 183 | <item row="1" column="0"> |
163 | <widget class="QLabel" name="label_2" > | 184 | <widget class="QLabel" name="label_2"> |
164 | <property name="text" > | 185 | <property name="text"> |
165 | <string>&Port:</string> | 186 | <string>&Port:</string> |
166 | </property> | 187 | </property> |
167 | <property name="buddy" > | 188 | <property name="buddy"> |
168 | <cstring>proxyPort</cstring> | 189 | <cstring>proxyPort</cstring> |
169 | </property> | 190 | </property> |
170 | </widget> | 191 | </widget> |
171 | </item> | 192 | </item> |
172 | <item row="1" column="1" > | 193 | <item row="1" column="1"> |
173 | <widget class="QLineEdit" name="proxyPort" /> | 194 | <widget class="QLineEdit" name="proxyPort"/> |
174 | </item> | 195 | </item> |
175 | <item row="2" column="1" > | 196 | <item row="2" column="1"> |
176 | <widget class="QLineEdit" name="proxyUser" /> | 197 | <widget class="QLineEdit" name="proxyUser"/> |
177 | </item> | 198 | </item> |
178 | <item row="3" column="1" > | 199 | <item row="3" column="1"> |
179 | <widget class="QLineEdit" name="proxyPass" > | 200 | <widget class="QLineEdit" name="proxyPass"> |
180 | <property name="echoMode" > | 201 | <property name="echoMode"> |
181 | <enum>QLineEdit::Password</enum> | 202 | <enum>QLineEdit::Password</enum> |
182 | </property> | 203 | </property> |
183 | </widget> | 204 | </widget> |
184 | </item> | 205 | </item> |
185 | <item row="2" column="0" > | 206 | <item row="2" column="0"> |
186 | <widget class="QLabel" name="label_3" > | 207 | <widget class="QLabel" name="label_3"> |
187 | <property name="text" > | 208 | <property name="text"> |
188 | <string>&Username</string> | 209 | <string>&Username</string> |
189 | </property> | 210 | </property> |
190 | <property name="buddy" > | 211 | <property name="buddy"> |
191 | <cstring>proxyUser</cstring> | 212 | <cstring>proxyUser</cstring> |
192 | </property> | 213 | </property> |
193 | </widget> | 214 | </widget> |
194 | </item> | 215 | </item> |
195 | <item row="3" column="0" > | 216 | <item row="3" column="0"> |
196 | <widget class="QLabel" name="label_4" > | 217 | <widget class="QLabel" name="label_4"> |
197 | <property name="text" > | 218 | <property name="text"> |
198 | <string>Pass&word</string> | 219 | <string>Pass&word</string> |
199 | </property> | 220 | </property> |
200 | <property name="buddy" > | 221 | <property name="buddy"> |
201 | <cstring>proxyPass</cstring> | 222 | <cstring>proxyPass</cstring> |
202 | </property> | 223 | </property> |
203 | </widget> | 224 | </widget> |
@@ -205,12 +226,12 @@ | |||
205 | </layout> | 226 | </layout> |
206 | </widget> | 227 | </widget> |
207 | </item> | 228 | </item> |
208 | <item row="4" column="0" > | 229 | <item row="4" column="0"> |
209 | <spacer> | 230 | <spacer> |
210 | <property name="orientation" > | 231 | <property name="orientation"> |
211 | <enum>Qt::Vertical</enum> | 232 | <enum>Qt::Vertical</enum> |
212 | </property> | 233 | </property> |
213 | <property name="sizeHint" stdset="0" > | 234 | <property name="sizeHint" stdset="0"> |
214 | <size> | 235 | <size> |
215 | <width>20</width> | 236 | <width>20</width> |
216 | <height>40</height> | 237 | <height>40</height> |
@@ -220,108 +241,108 @@ | |||
220 | </item> | 241 | </item> |
221 | </layout> | 242 | </layout> |
222 | </widget> | 243 | </widget> |
223 | <widget class="QWidget" name="tabLanguage" > | 244 | <widget class="QWidget" name="tabLanguage"> |
224 | <attribute name="title" > | 245 | <attribute name="icon"> |
225 | <string>&Language</string> | 246 | <iconset resource="rbutilqt.qrc"> |
226 | </attribute> | ||
227 | <attribute name="icon" > | ||
228 | <iconset resource="rbutilqt.qrc" > | ||
229 | <normaloff>:/icons/preferences-desktop-locale.png</normaloff>:/icons/preferences-desktop-locale.png</iconset> | 247 | <normaloff>:/icons/preferences-desktop-locale.png</normaloff>:/icons/preferences-desktop-locale.png</iconset> |
230 | </attribute> | 248 | </attribute> |
231 | <layout class="QGridLayout" > | 249 | <attribute name="title"> |
232 | <item row="0" column="0" > | 250 | <string>&Language</string> |
233 | <widget class="QListWidget" name="listLanguages" /> | 251 | </attribute> |
252 | <layout class="QGridLayout"> | ||
253 | <item row="0" column="0"> | ||
254 | <widget class="QListWidget" name="listLanguages"/> | ||
234 | </item> | 255 | </item> |
235 | </layout> | 256 | </layout> |
236 | </widget> | 257 | </widget> |
237 | <widget class="QWidget" name="tabCache" > | 258 | <widget class="QWidget" name="tabCache"> |
238 | <attribute name="title" > | 259 | <attribute name="icon"> |
239 | <string>Cac&he</string> | 260 | <iconset resource="rbutilqt.qrc"> |
240 | </attribute> | ||
241 | <attribute name="icon" > | ||
242 | <iconset resource="rbutilqt.qrc" > | ||
243 | <normaloff>:/icons/package-x-generic.png</normaloff>:/icons/package-x-generic.png</iconset> | 261 | <normaloff>:/icons/package-x-generic.png</normaloff>:/icons/package-x-generic.png</iconset> |
244 | </attribute> | 262 | </attribute> |
245 | <attribute name="toolTip" > | 263 | <attribute name="title"> |
264 | <string>Cac&he</string> | ||
265 | </attribute> | ||
266 | <attribute name="toolTip"> | ||
246 | <string>Download cache settings</string> | 267 | <string>Download cache settings</string> |
247 | </attribute> | 268 | </attribute> |
248 | <layout class="QGridLayout" > | 269 | <layout class="QGridLayout"> |
249 | <item row="0" column="0" colspan="2" > | 270 | <item row="0" column="0" colspan="2"> |
250 | <widget class="QLabel" name="cacheDescription" > | 271 | <widget class="QLabel" name="cacheDescription"> |
251 | <property name="text" > | 272 | <property name="text"> |
252 | <string>Rockbox Utility uses a local download cache to save network traffic. You can change the path to the cache and use it as local repository by enabling Offline mode.</string> | 273 | <string>Rockbox Utility uses a local download cache to save network traffic. You can change the path to the cache and use it as local repository by enabling Offline mode.</string> |
253 | </property> | 274 | </property> |
254 | <property name="wordWrap" > | 275 | <property name="wordWrap"> |
255 | <bool>true</bool> | 276 | <bool>true</bool> |
256 | </property> | 277 | </property> |
257 | </widget> | 278 | </widget> |
258 | </item> | 279 | </item> |
259 | <item row="1" column="0" > | 280 | <item row="1" column="0"> |
260 | <widget class="QLabel" name="cacheSize" > | 281 | <widget class="QLabel" name="cacheSize"> |
261 | <property name="text" > | 282 | <property name="text"> |
262 | <string>Current cache size is %1</string> | 283 | <string>Current cache size is %1</string> |
263 | </property> | 284 | </property> |
264 | </widget> | 285 | </widget> |
265 | </item> | 286 | </item> |
266 | <item row="2" column="0" colspan="2" > | 287 | <item row="2" column="0" colspan="2"> |
267 | <layout class="QHBoxLayout" > | 288 | <layout class="QHBoxLayout"> |
268 | <item> | 289 | <item> |
269 | <widget class="QLabel" name="label_5" > | 290 | <widget class="QLabel" name="label_5"> |
270 | <property name="text" > | 291 | <property name="text"> |
271 | <string>P&ath</string> | 292 | <string>P&ath</string> |
272 | </property> | 293 | </property> |
273 | <property name="buddy" > | 294 | <property name="buddy"> |
274 | <cstring>cachePath</cstring> | 295 | <cstring>cachePath</cstring> |
275 | </property> | 296 | </property> |
276 | </widget> | 297 | </widget> |
277 | </item> | 298 | </item> |
278 | <item> | 299 | <item> |
279 | <widget class="QLineEdit" name="cachePath" > | 300 | <widget class="QLineEdit" name="cachePath"> |
280 | <property name="toolTip" > | 301 | <property name="toolTip"> |
281 | <string>Entering an invalid folder will reset the path to the systems temporary path.</string> | 302 | <string>Entering an invalid folder will reset the path to the systems temporary path.</string> |
282 | </property> | 303 | </property> |
283 | </widget> | 304 | </widget> |
284 | </item> | 305 | </item> |
285 | <item> | 306 | <item> |
286 | <widget class="QPushButton" name="buttonCacheBrowse" > | 307 | <widget class="QPushButton" name="buttonCacheBrowse"> |
287 | <property name="text" > | 308 | <property name="text"> |
288 | <string>&Browse</string> | 309 | <string>&Browse</string> |
289 | </property> | 310 | </property> |
290 | <property name="icon" > | 311 | <property name="icon"> |
291 | <iconset resource="rbutilqt.qrc" > | 312 | <iconset resource="rbutilqt.qrc"> |
292 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> | 313 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> |
293 | </property> | 314 | </property> |
294 | </widget> | 315 | </widget> |
295 | </item> | 316 | </item> |
296 | </layout> | 317 | </layout> |
297 | </item> | 318 | </item> |
298 | <item row="3" column="0" colspan="2" > | 319 | <item row="3" column="0" colspan="2"> |
299 | <layout class="QVBoxLayout" > | 320 | <layout class="QVBoxLayout"> |
300 | <item> | 321 | <item> |
301 | <widget class="QCheckBox" name="cacheDisable" > | 322 | <widget class="QCheckBox" name="cacheDisable"> |
302 | <property name="text" > | 323 | <property name="text"> |
303 | <string>Disable local &download cache</string> | 324 | <string>Disable local &download cache</string> |
304 | </property> | 325 | </property> |
305 | </widget> | 326 | </widget> |
306 | </item> | 327 | </item> |
307 | <item> | 328 | <item> |
308 | <widget class="QCheckBox" name="cacheOfflineMode" > | 329 | <widget class="QCheckBox" name="cacheOfflineMode"> |
309 | <property name="toolTip" > | 330 | <property name="toolTip"> |
310 | <string>This will try to use all information from the cache, even information about updates. Only use this option if you want to install without network connection. Note: you need to do the same install you want to perform later with network access first to download all required files to the cache.</string> | 331 | <string>This will try to use all information from the cache, even information about updates. Only use this option if you want to install without network connection. Note: you need to do the same install you want to perform later with network access first to download all required files to the cache.</string> |
311 | </property> | 332 | </property> |
312 | <property name="text" > | 333 | <property name="text"> |
313 | <string>O&ffline mode</string> | 334 | <string>O&ffline mode</string> |
314 | </property> | 335 | </property> |
315 | </widget> | 336 | </widget> |
316 | </item> | 337 | </item> |
317 | </layout> | 338 | </layout> |
318 | </item> | 339 | </item> |
319 | <item row="4" column="1" > | 340 | <item row="4" column="1"> |
320 | <spacer> | 341 | <spacer> |
321 | <property name="orientation" > | 342 | <property name="orientation"> |
322 | <enum>Qt::Vertical</enum> | 343 | <enum>Qt::Vertical</enum> |
323 | </property> | 344 | </property> |
324 | <property name="sizeHint" stdset="0" > | 345 | <property name="sizeHint" stdset="0"> |
325 | <size> | 346 | <size> |
326 | <width>20</width> | 347 | <width>20</width> |
327 | <height>61</height> | 348 | <height>61</height> |
@@ -329,12 +350,12 @@ | |||
329 | </property> | 350 | </property> |
330 | </spacer> | 351 | </spacer> |
331 | </item> | 352 | </item> |
332 | <item row="5" column="0" > | 353 | <item row="5" column="0"> |
333 | <spacer> | 354 | <spacer> |
334 | <property name="orientation" > | 355 | <property name="orientation"> |
335 | <enum>Qt::Horizontal</enum> | 356 | <enum>Qt::Horizontal</enum> |
336 | </property> | 357 | </property> |
337 | <property name="sizeHint" stdset="0" > | 358 | <property name="sizeHint" stdset="0"> |
338 | <size> | 359 | <size> |
339 | <width>40</width> | 360 | <width>40</width> |
340 | <height>20</height> | 361 | <height>20</height> |
@@ -342,78 +363,78 @@ | |||
342 | </property> | 363 | </property> |
343 | </spacer> | 364 | </spacer> |
344 | </item> | 365 | </item> |
345 | <item row="5" column="1" > | 366 | <item row="5" column="1"> |
346 | <widget class="QPushButton" name="buttonCacheClear" > | 367 | <widget class="QPushButton" name="buttonCacheClear"> |
347 | <property name="text" > | 368 | <property name="text"> |
348 | <string>Clean cache &now</string> | 369 | <string>Clean cache &now</string> |
349 | </property> | 370 | </property> |
350 | <property name="icon" > | 371 | <property name="icon"> |
351 | <iconset resource="rbutilqt.qrc" > | 372 | <iconset resource="rbutilqt.qrc"> |
352 | <normaloff>:/icons/user-trash-full.png</normaloff>:/icons/user-trash-full.png</iconset> | 373 | <normaloff>:/icons/user-trash-full.png</normaloff>:/icons/user-trash-full.png</iconset> |
353 | </property> | 374 | </property> |
354 | </widget> | 375 | </widget> |
355 | </item> | 376 | </item> |
356 | </layout> | 377 | </layout> |
357 | </widget> | 378 | </widget> |
358 | <widget class="QWidget" name="tabTts" > | 379 | <widget class="QWidget" name="tabTts"> |
359 | <attribute name="title" > | 380 | <attribute name="icon"> |
360 | <string>&TTS && Encoder</string> | 381 | <iconset resource="rbutilqt.qrc"> |
361 | </attribute> | ||
362 | <attribute name="icon" > | ||
363 | <iconset resource="rbutilqt.qrc" > | ||
364 | <normaloff>:/icons/audio-input-microphone.png</normaloff>:/icons/audio-input-microphone.png</iconset> | 382 | <normaloff>:/icons/audio-input-microphone.png</normaloff>:/icons/audio-input-microphone.png</iconset> |
365 | </attribute> | 383 | </attribute> |
366 | <layout class="QVBoxLayout" > | 384 | <attribute name="title"> |
385 | <string>&TTS && Encoder</string> | ||
386 | </attribute> | ||
387 | <layout class="QVBoxLayout"> | ||
367 | <item> | 388 | <item> |
368 | <widget class="QGroupBox" name="groupBox_2" > | 389 | <widget class="QGroupBox" name="groupBox_2"> |
369 | <property name="title" > | 390 | <property name="title"> |
370 | <string>TTS Engine</string> | 391 | <string>TTS Engine</string> |
371 | </property> | 392 | </property> |
372 | <layout class="QGridLayout" > | 393 | <layout class="QGridLayout"> |
373 | <item row="0" column="0" > | 394 | <item row="0" column="0"> |
374 | <widget class="QLabel" name="labelTts" > | 395 | <widget class="QLabel" name="labelTts"> |
375 | <property name="text" > | 396 | <property name="text"> |
376 | <string>&Select TTS Engine</string> | 397 | <string>&Select TTS Engine</string> |
377 | </property> | 398 | </property> |
378 | <property name="buddy" > | 399 | <property name="buddy"> |
379 | <cstring>comboTts</cstring> | 400 | <cstring>comboTts</cstring> |
380 | </property> | 401 | </property> |
381 | </widget> | 402 | </widget> |
382 | </item> | 403 | </item> |
383 | <item row="0" column="1" colspan="2" > | 404 | <item row="0" column="1" colspan="2"> |
384 | <widget class="QComboBox" name="comboTts" /> | 405 | <widget class="QComboBox" name="comboTts"/> |
385 | </item> | 406 | </item> |
386 | <item row="1" column="0" > | 407 | <item row="1" column="0"> |
387 | <widget class="QLabel" name="labelTtsExecutable" > | 408 | <widget class="QLabel" name="labelTtsExecutable"> |
388 | <property name="text" > | 409 | <property name="text"> |
389 | <string>Configure TTS Engine</string> | 410 | <string>Configure TTS Engine</string> |
390 | </property> | 411 | </property> |
391 | </widget> | 412 | </widget> |
392 | </item> | 413 | </item> |
393 | <item row="1" column="1" > | 414 | <item row="1" column="1"> |
394 | <widget class="QLabel" name="configTTSstatus" > | 415 | <widget class="QLabel" name="configTTSstatus"> |
395 | <property name="text" > | 416 | <property name="text"> |
396 | <string>Configuration invalid!</string> | 417 | <string>Configuration invalid!</string> |
397 | </property> | 418 | </property> |
398 | </widget> | 419 | </widget> |
399 | </item> | 420 | </item> |
400 | <item row="1" column="2" > | 421 | <item row="1" column="2"> |
401 | <widget class="QLabel" name="configTTSstatusimg" > | 422 | <widget class="QLabel" name="configTTSstatusimg"> |
402 | <property name="text" > | 423 | <property name="text"> |
403 | <string/> | 424 | <string/> |
404 | </property> | 425 | </property> |
405 | <property name="pixmap" > | 426 | <property name="pixmap"> |
406 | <pixmap resource="rbutilqt.qrc" >:/icons/dialog-error.png</pixmap> | 427 | <pixmap resource="rbutilqt.qrc">:/icons/dialog-error.png</pixmap> |
407 | </property> | 428 | </property> |
408 | </widget> | 429 | </widget> |
409 | </item> | 430 | </item> |
410 | <item row="1" column="3" > | 431 | <item row="1" column="3"> |
411 | <widget class="QPushButton" name="configTts" > | 432 | <widget class="QPushButton" name="configTts"> |
412 | <property name="text" > | 433 | <property name="text"> |
413 | <string>Configure &TTS</string> | 434 | <string>Configure &TTS</string> |
414 | </property> | 435 | </property> |
415 | <property name="icon" > | 436 | <property name="icon"> |
416 | <iconset resource="rbutilqt.qrc" > | 437 | <iconset resource="rbutilqt.qrc"> |
417 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> | 438 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> |
418 | </property> | 439 | </property> |
419 | </widget> | 440 | </widget> |
@@ -429,42 +450,42 @@ | |||
429 | </widget> | 450 | </widget> |
430 | </item> | 451 | </item> |
431 | <item> | 452 | <item> |
432 | <widget class="QGroupBox" name="groupBox_3" > | 453 | <widget class="QGroupBox" name="groupBox_3"> |
433 | <property name="title" > | 454 | <property name="title"> |
434 | <string>Encoder Engine</string> | 455 | <string>Encoder Engine</string> |
435 | </property> | 456 | </property> |
436 | <layout class="QGridLayout" > | 457 | <layout class="QGridLayout"> |
437 | <item row="0" column="1" > | 458 | <item row="0" column="1"> |
438 | <widget class="QLabel" name="configEncstatus" > | 459 | <widget class="QLabel" name="configEncstatus"> |
439 | <property name="text" > | 460 | <property name="text"> |
440 | <string>Configuration invalid!</string> | 461 | <string>Configuration invalid!</string> |
441 | </property> | 462 | </property> |
442 | </widget> | 463 | </widget> |
443 | </item> | 464 | </item> |
444 | <item row="0" column="2" > | 465 | <item row="0" column="2"> |
445 | <widget class="QLabel" name="configEncstatusimg" > | 466 | <widget class="QLabel" name="configEncstatusimg"> |
446 | <property name="text" > | 467 | <property name="text"> |
447 | <string/> | 468 | <string/> |
448 | </property> | 469 | </property> |
449 | <property name="pixmap" > | 470 | <property name="pixmap"> |
450 | <pixmap resource="rbutilqt.qrc" >:/icons/dialog-error.png</pixmap> | 471 | <pixmap resource="rbutilqt.qrc">:/icons/dialog-error.png</pixmap> |
451 | </property> | 472 | </property> |
452 | </widget> | 473 | </widget> |
453 | </item> | 474 | </item> |
454 | <item row="0" column="3" > | 475 | <item row="0" column="3"> |
455 | <widget class="QPushButton" name="configEncoder" > | 476 | <widget class="QPushButton" name="configEncoder"> |
456 | <property name="text" > | 477 | <property name="text"> |
457 | <string>Configure &Enc</string> | 478 | <string>Configure &Enc</string> |
458 | </property> | 479 | </property> |
459 | <property name="icon" > | 480 | <property name="icon"> |
460 | <iconset resource="rbutilqt.qrc" > | 481 | <iconset resource="rbutilqt.qrc"> |
461 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> | 482 | <normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset> |
462 | </property> | 483 | </property> |
463 | </widget> | 484 | </widget> |
464 | </item> | 485 | </item> |
465 | <item row="0" column="0" > | 486 | <item row="0" column="0"> |
466 | <widget class="QLabel" name="encoderName" > | 487 | <widget class="QLabel" name="encoderName"> |
467 | <property name="text" > | 488 | <property name="text"> |
468 | <string>encoder name</string> | 489 | <string>encoder name</string> |
469 | </property> | 490 | </property> |
470 | </widget> | 491 | </widget> |
@@ -474,10 +495,10 @@ | |||
474 | </item> | 495 | </item> |
475 | <item> | 496 | <item> |
476 | <spacer> | 497 | <spacer> |
477 | <property name="orientation" > | 498 | <property name="orientation"> |
478 | <enum>Qt::Vertical</enum> | 499 | <enum>Qt::Vertical</enum> |
479 | </property> | 500 | </property> |
480 | <property name="sizeHint" stdset="0" > | 501 | <property name="sizeHint" stdset="0"> |
481 | <size> | 502 | <size> |
482 | <width>458</width> | 503 | <width>458</width> |
483 | <height>131</height> | 504 | <height>131</height> |
@@ -489,12 +510,12 @@ | |||
489 | </widget> | 510 | </widget> |
490 | </widget> | 511 | </widget> |
491 | </item> | 512 | </item> |
492 | <item row="2" column="0" > | 513 | <item row="2" column="0"> |
493 | <spacer> | 514 | <spacer> |
494 | <property name="orientation" > | 515 | <property name="orientation"> |
495 | <enum>Qt::Horizontal</enum> | 516 | <enum>Qt::Horizontal</enum> |
496 | </property> | 517 | </property> |
497 | <property name="sizeHint" stdset="0" > | 518 | <property name="sizeHint" stdset="0"> |
498 | <size> | 519 | <size> |
499 | <width>40</width> | 520 | <width>40</width> |
500 | <height>20</height> | 521 | <height>20</height> |
@@ -502,24 +523,24 @@ | |||
502 | </property> | 523 | </property> |
503 | </spacer> | 524 | </spacer> |
504 | </item> | 525 | </item> |
505 | <item row="2" column="1" > | 526 | <item row="2" column="1"> |
506 | <widget class="QPushButton" name="buttonOk" > | 527 | <widget class="QPushButton" name="buttonOk"> |
507 | <property name="text" > | 528 | <property name="text"> |
508 | <string>&Ok</string> | 529 | <string>&Ok</string> |
509 | </property> | 530 | </property> |
510 | <property name="icon" > | 531 | <property name="icon"> |
511 | <iconset resource="rbutilqt.qrc" > | 532 | <iconset resource="rbutilqt.qrc"> |
512 | <normaloff>:/icons/go-next.png</normaloff>:/icons/go-next.png</iconset> | 533 | <normaloff>:/icons/go-next.png</normaloff>:/icons/go-next.png</iconset> |
513 | </property> | 534 | </property> |
514 | </widget> | 535 | </widget> |
515 | </item> | 536 | </item> |
516 | <item row="2" column="2" > | 537 | <item row="2" column="2"> |
517 | <widget class="QPushButton" name="buttonCancel" > | 538 | <widget class="QPushButton" name="buttonCancel"> |
518 | <property name="text" > | 539 | <property name="text"> |
519 | <string>&Cancel</string> | 540 | <string>&Cancel</string> |
520 | </property> | 541 | </property> |
521 | <property name="icon" > | 542 | <property name="icon"> |
522 | <iconset resource="rbutilqt.qrc" > | 543 | <iconset resource="rbutilqt.qrc"> |
523 | <normaloff>:/icons/process-stop.png</normaloff>:/icons/process-stop.png</iconset> | 544 | <normaloff>:/icons/process-stop.png</normaloff>:/icons/process-stop.png</iconset> |
524 | </property> | 545 | </property> |
525 | </widget> | 546 | </widget> |
@@ -527,7 +548,7 @@ | |||
527 | </layout> | 548 | </layout> |
528 | </widget> | 549 | </widget> |
529 | <resources> | 550 | <resources> |
530 | <include location="rbutilqt.qrc" /> | 551 | <include location="rbutilqt.qrc"/> |
531 | </resources> | 552 | </resources> |
532 | <connections/> | 553 | <connections/> |
533 | </ui> | 554 | </ui> |