summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-01-25 17:22:06 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-01-25 17:22:06 +0000
commit07894de36dd2af7054db87fc00dc953f73c72f0d (patch)
treeda0ef1080f54f31f930eb0cd22f6823d9539577c
parent21a0504d16bc15966bcd394239d5f757d284060b (diff)
downloadrockbox-07894de36dd2af7054db87fc00dc953f73c72f0d.tar.gz
rockbox-07894de36dd2af7054db87fc00dc953f73c72f0d.zip
Remove hard-coded release version numbers.
- get the target specific version number from the build-info file - disable Quick Start buttons until version info is available - only enable Quick Start buttons if a release is available. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19854 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--rbutil/rbutilqt/install.cpp3
-rw-r--r--rbutil/rbutilqt/rbsettings.cpp15
-rw-r--r--rbutil/rbutilqt/rbsettings.h2
-rw-r--r--rbutil/rbutilqt/rbutil.ini62
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp36
5 files changed, 25 insertions, 93 deletions
diff --git a/rbutil/rbutilqt/install.cpp b/rbutil/rbutilqt/install.cpp
index 34920e3951..0651e8ffe4 100644
--- a/rbutil/rbutilqt/install.cpp
+++ b/rbutil/rbutilqt/install.cpp
@@ -292,6 +292,9 @@ void Install::setVersionStrings(QMap<QString, QString> ver)
292 ui.radioArchived->setEnabled(false); 292 ui.radioArchived->setEnabled(false);
293 qDebug() << "no information about archived version available!"; 293 qDebug() << "no information about archived version available!";
294 } 294 }
295 if(version.value("rel_rev").isEmpty()) {
296 ui.radioStable->setEnabled(false);
297 }
295 298
296 // try to use the old selection first. If no selection has been made 299 // try to use the old selection first. If no selection has been made
297 // in the past, use a preselection based on released status. 300 // in the past, use a preselection based on released status.
diff --git a/rbutil/rbutilqt/rbsettings.cpp b/rbutil/rbutilqt/rbsettings.cpp
index 30552e6f3b..28e507fd6a 100644
--- a/rbutil/rbutilqt/rbsettings.cpp
+++ b/rbutil/rbutilqt/rbsettings.cpp
@@ -113,12 +113,6 @@ QString RbSettings::bleedingUrl()
113 return devices->value("bleeding_url").toString(); 113 return devices->value("bleeding_url").toString();
114} 114}
115 115
116QString RbSettings::lastRelease(QString platform)
117{
118 (void)platform;
119 return deviceSettingCurGet("last_release").toString();
120}
121
122QString RbSettings::cachePath() 116QString RbSettings::cachePath()
123{ 117{
124 return userSettings->value("cachepath", QDir::tempPath()).toString(); 118 return userSettings->value("cachepath", QDir::tempPath()).toString();
@@ -232,15 +226,6 @@ QString RbSettings::curManual()
232 devices->value("platform").toString()).toString(); 226 devices->value("platform").toString()).toString();
233} 227}
234 228
235bool RbSettings::curReleased()
236{
237 QString released = deviceSettingCurGet("released").toString();
238 if(released == "yes")
239 return true;
240 else
241 return false;
242}
243
244QString RbSettings::curBootloaderMethod() 229QString RbSettings::curBootloaderMethod()
245{ 230{
246 return deviceSettingCurGet("bootloadermethod").toString(); 231 return deviceSettingCurGet("bootloadermethod").toString();
diff --git a/rbutil/rbutilqt/rbsettings.h b/rbutil/rbutilqt/rbsettings.h
index f232a66c85..beea602977 100644
--- a/rbutil/rbutilqt/rbsettings.h
+++ b/rbutil/rbutilqt/rbsettings.h
@@ -48,7 +48,6 @@ class RbSettings : public QObject
48 QString mountpoint(); 48 QString mountpoint();
49 QString manualUrl(); 49 QString manualUrl();
50 QString bleedingUrl(); 50 QString bleedingUrl();
51 QString lastRelease(QString platform);
52 QString cachePath(); 51 QString cachePath();
53 QString build(void); 52 QString build(void);
54 QString bootloaderUrl(); 53 QString bootloaderUrl();
@@ -96,7 +95,6 @@ class RbSettings : public QObject
96 QString curPlatform(); 95 QString curPlatform();
97 QString curPlatformName(); 96 QString curPlatformName();
98 QString curManual(); 97 QString curManual();
99 bool curReleased();
100 QString curBootloaderMethod(); 98 QString curBootloaderMethod();
101 QString curBootloaderName(); 99 QString curBootloaderName();
102 QString curVoiceName(); 100 QString curVoiceName();
diff --git a/rbutil/rbutilqt/rbutil.ini b/rbutil/rbutilqt/rbutil.ini
index abf6bf78f5..fb500d4345 100644
--- a/rbutil/rbutilqt/rbutil.ini
+++ b/rbutil/rbutilqt/rbutil.ini
@@ -52,7 +52,6 @@ platform60=mrobe100
52[player] 52[player]
53name="Jukebox Player 6000 / Jukebox Studio 5 / 10 / 20" 53name="Jukebox Player 6000 / Jukebox Studio 5 / 10 / 20"
54platform=player 54platform=player
55released=yes
56needsbootloader=no 55needsbootloader=no
57bootloadermethod= 56bootloadermethod=
58bootloadername= 57bootloadername=
@@ -62,12 +61,10 @@ brand=Archos
62voicename=player 61voicename=player
63targetid=1 62targetid=1
64encoder=lame 63encoder=lame
65last_release=3.1
66 64
67[recorder] 65[recorder]
68name="Jukebox Recorder 6 / 10 / 15 / 20" 66name="Jukebox Recorder 6 / 10 / 15 / 20"
69platform=recorder 67platform=recorder
70released=yes
71needsbootloader=no 68needsbootloader=no
72bootloadermethod= 69bootloadermethod=
73bootloadername= 70bootloadername=
@@ -77,12 +74,10 @@ brand=Archos
77voicename=recorder 74voicename=recorder
78targetid=2 75targetid=2
79encoder=lame 76encoder=lame
80last_release=3.1
81 77
82[recorder8mb] 78[recorder8mb]
83name="Jukebox Recorder 6 / 10 / 15 / 20 (with 8MiB memory)" 79name="Jukebox Recorder 6 / 10 / 15 / 20 (with 8MiB memory)"
84platform=recorder8mb 80platform=recorder8mb
85released=yes
86needsbootloader=no 81needsbootloader=no
87bootloadermethod= 82bootloadermethod=
88bootloadername= 83bootloadername=
@@ -92,12 +87,10 @@ brand=Archos
92voicename=recorder 87voicename=recorder
93targetid=2 88targetid=2
94encoder=lame 89encoder=lame
95last_release=3.1
96 90
97[recorderv2] 91[recorderv2]
98name="Jukebox Recorder v2 (20GB)" 92name="Jukebox Recorder v2 (20GB)"
99platform=recorderv2 93platform=recorderv2
100released=yes
101needsbootloader=no 94needsbootloader=no
102bootloadermethod= 95bootloadermethod=
103bootloadername= 96bootloadername=
@@ -107,12 +100,10 @@ brand=Archos
107voicename=recorderv2 100voicename=recorderv2
108targetid=4 101targetid=4
109encoder=lame 102encoder=lame
110last_release=3.1
111 103
112[fmrecorder] 104[fmrecorder]
113name="Jukebox Recorder FM" 105name="Jukebox Recorder FM"
114platform=fmrecorder 106platform=fmrecorder
115released=yes
116needsbootloader=no 107needsbootloader=no
117bootloadermethod= 108bootloadermethod=
118bootloadername= 109bootloadername=
@@ -122,12 +113,10 @@ brand=Archos
122voicename=fmrecorder 113voicename=fmrecorder
123targetid=3 114targetid=3
124encoder=lame 115encoder=lame
125last_release=3.1
126 116
127[fmrecorder8mb] 117[fmrecorder8mb]
128name="Jukebox Recorder FM (with 8MiB memory)" 118name="Jukebox Recorder FM (with 8MiB memory)"
129platform=fmrecorder8mb 119platform=fmrecorder8mb
130released=yes
131needsbootloader=no 120needsbootloader=no
132bootloadermethod= 121bootloadermethod=
133bootloadername= 122bootloadername=
@@ -137,12 +126,10 @@ brand=Archos
137voicename=fmrecorder 126voicename=fmrecorder
138targetid=3 127targetid=3
139encoder=lame 128encoder=lame
140last_release=3.1
141 129
142[ondiosp] 130[ondiosp]
143name="Ondio SP" 131name="Ondio SP"
144platform=ondiosp 132platform=ondiosp
145released=yes
146needsbootloader=no 133needsbootloader=no
147bootloadermethod= 134bootloadermethod=
148bootloadername= 135bootloadername=
@@ -152,12 +139,10 @@ brand=Archos
152voicename=ondiosp 139voicename=ondiosp
153targetid=7 140targetid=7
154encoder=lame 141encoder=lame
155last_release=3.1
156 142
157[ondiofm] 143[ondiofm]
158name="Ondio FM" 144name="Ondio FM"
159platform=ondiofm 145platform=ondiofm
160released=yes
161needsbootloader=no 146needsbootloader=no
162bootloadermethod= 147bootloadermethod=
163bootloadername= 148bootloadername=
@@ -167,12 +152,10 @@ brand=Archos
167voicename=ondiofm 152voicename=ondiofm
168targetid=8 153targetid=8
169encoder=lame 154encoder=lame
170last_release=3.1
171 155
172[h100] 156[h100]
173name="iHP100 / iHP110" 157name="iHP100 / iHP110"
174platform=h100 158platform=h100
175released=yes
176needsbootloader=yes 159needsbootloader=yes
177bootloadermethod=hex 160bootloadermethod=hex
178bootloadername=/iriver/bootloader-h100.bin 161bootloadername=/iriver/bootloader-h100.bin
@@ -184,12 +167,10 @@ usbid=0x10063001
184voicename=h100 167voicename=h100
185targetid=11 168targetid=11
186encoder=rbspeex 169encoder=rbspeex
187last_release=3.1
188 170
189[h120] 171[h120]
190name="iHP120 / iHP140 / H120 / H140" 172name="iHP120 / iHP140 / H120 / H140"
191platform=h120 173platform=h120
192released=yes
193needsbootloader=yes 174needsbootloader=yes
194bootloadermethod=hex 175bootloadermethod=hex
195bootloadername=/iriver/bootloader-h120.bin 176bootloadername=/iriver/bootloader-h120.bin
@@ -201,12 +182,10 @@ usbid=0x10063002
201voicename=h120 182voicename=h120
202targetid=9 183targetid=9
203encoder=rbspeex 184encoder=rbspeex
204last_release=3.1
205 185
206[h300] 186[h300]
207name="H320 / H340" 187name="H320 / H340"
208platform=h300 188platform=h300
209released=yes
210needsbootloader=yes 189needsbootloader=yes
211bootloadermethod=hex 190bootloadermethod=hex
212bootloadername=/iriver/bootloader-h300.bin 191bootloadername=/iriver/bootloader-h300.bin
@@ -218,12 +197,10 @@ usbid=0x10063003
218voicename=h300 197voicename=h300
219targetid=10 198targetid=10
220encoder=rbspeex 199encoder=rbspeex
221last_release=3.1
222 200
223[h10_5gbums] 201[h10_5gbums]
224name="H10 (5 / 6GB) UMS" 202name="H10 (5 / 6GB) UMS"
225platform=h10_5gb 203platform=h10_5gb
226released=yes
227needsbootloader=yes 204needsbootloader=yes
228bootloadermethod=mi4 205bootloadermethod=mi4
229bootloadername=/iriver/H10.mi4 206bootloadername=/iriver/H10.mi4
@@ -235,12 +212,10 @@ usbid=0x41022002
235voicename=h10_5gb 212voicename=h10_5gb
236targetid=24 213targetid=24
237encoder=rbspeex 214encoder=rbspeex
238last_release=3.1
239 215
240[h10_5gbmtp] 216[h10_5gbmtp]
241name="H10 (5 / 6GB) MTP" 217name="H10 (5 / 6GB) MTP"
242platform=h10_5gb 218platform=h10_5gb
243released=yes
244needsbootloader=yes 219needsbootloader=yes
245bootloadermethod=mi4 220bootloadermethod=mi4
246bootloadername=/iriver/H10_5GB-MTP/H10.mi4 221bootloadername=/iriver/H10_5GB-MTP/H10.mi4
@@ -252,12 +227,10 @@ usbid=0x41022105
252voicename=h10_5gb 227voicename=h10_5gb
253targetid=24 228targetid=24
254encoder=rbspeex 229encoder=rbspeex
255last_release=3.1
256 230
257[h10] 231[h10]
258name="H10 (20GB)" 232name="H10 (20GB)"
259platform=h10 233platform=h10
260released=yes
261needsbootloader=yes 234needsbootloader=yes
262bootloadermethod=mi4 235bootloadermethod=mi4
263bootloadername=/iriver/H10_20GC.mi4 236bootloadername=/iriver/H10_20GC.mi4
@@ -270,12 +243,10 @@ usberror=0x41022101
270voicename=h10 243voicename=h10
271targetid=22 244targetid=22
272encoder=rbspeex 245encoder=rbspeex
273last_release=3.1
274 246
275[ipod1g2g] 247[ipod1g2g]
276name="Ipod (1st / 2nd gen)" 248name="Ipod (1st / 2nd gen)"
277platform=ipod1g2g 249platform=ipod1g2g
278released=yes
279needsbootloader=yes 250needsbootloader=yes
280bootloadermethod=ipod 251bootloadermethod=ipod
281bootloadername=/ipod/bootloader-ipod1g2g.ipod 252bootloadername=/ipod/bootloader-ipod1g2g.ipod
@@ -285,12 +256,10 @@ brand=Apple
285voicename=ipod1g2g 256voicename=ipod1g2g
286targetid=29 257targetid=29
287encoder=rbspeex 258encoder=rbspeex
288last_release=3.1
289 259
290[ipodcolor] 260[ipodcolor]
291name="Ipod Colour / Photo / U2 (4th gen)" 261name="Ipod Colour / Photo / U2 (4th gen)"
292platform=ipodcolor 262platform=ipodcolor
293released=yes
294needsbootloader=yes 263needsbootloader=yes
295bootloadermethod=ipod 264bootloadermethod=ipod
296bootloadername=/ipod/bootloader-ipodcolor.ipod 265bootloadername=/ipod/bootloader-ipodcolor.ipod
@@ -300,12 +269,10 @@ brand=Apple
300voicename=ipodcolor 269voicename=ipodcolor
301targetid=13 270targetid=13
302encoder=rbspeex 271encoder=rbspeex
303last_release=3.1
304 272
305[ipodnano] 273[ipodnano]
306name="Ipod Nano (1st gen)" 274name="Ipod Nano (1st gen)"
307platform=ipodnano 275platform=ipodnano
308released=yes
309needsbootloader=yes 276needsbootloader=yes
310bootloadermethod=ipod 277bootloadermethod=ipod
311bootloadername=/ipod/bootloader-ipodnano.ipod 278bootloadername=/ipod/bootloader-ipodnano.ipod
@@ -316,12 +283,10 @@ usbincompat=0x05ac1260
316voicename=ipodnano 283voicename=ipodnano
317targetid=14 284targetid=14
318encoder=rbspeex 285encoder=rbspeex
319last_release=3.1
320 286
321[ipod4gray] 287[ipod4gray]
322name="Ipod (4th gen, greyscale)" 288name="Ipod (4th gen, greyscale)"
323platform=ipod4gray 289platform=ipod4gray
324released=yes
325needsbootloader=yes 290needsbootloader=yes
326bootloadermethod=ipod 291bootloadermethod=ipod
327bootloadername=/ipod/bootloader-ipod4g.ipod 292bootloadername=/ipod/bootloader-ipod4g.ipod
@@ -331,12 +296,10 @@ brand=Apple
331voicename=ipod4gray 296voicename=ipod4gray
332targetid=17 297targetid=17
333encoder=rbspeex 298encoder=rbspeex
334last_release=3.1
335 299
336[ipodvideo] 300[ipodvideo]
337name="Ipod Video (5th gen) 30GB" 301name="Ipod Video (5th gen) 30GB"
338platform=ipodvideo 302platform=ipodvideo
339released=yes
340needsbootloader=yes 303needsbootloader=yes
341bootloadermethod=ipod 304bootloadermethod=ipod
342bootloadername=/ipod/bootloader-ipodvideo.ipod 305bootloadername=/ipod/bootloader-ipodvideo.ipod
@@ -346,12 +309,10 @@ brand=Apple
346voicename=ipodvideo 309voicename=ipodvideo
347targetid=15 310targetid=15
348encoder=rbspeex 311encoder=rbspeex
349last_release=3.1
350 312
351[ipodvideo64mb] 313[ipodvideo64mb]
352name="Ipod Video (5th gen) 60/80GB" 314name="Ipod Video (5th gen) 60/80GB"
353platform=ipodvideo64mb 315platform=ipodvideo64mb
354released=yes
355needsbootloader=yes 316needsbootloader=yes
356bootloadermethod=ipod 317bootloadermethod=ipod
357bootloadername=/ipod/bootloader-ipodvideo.ipod 318bootloadername=/ipod/bootloader-ipodvideo.ipod
@@ -362,12 +323,10 @@ voicename=ipodvideo
362usbincompat=0x05ac1261 323usbincompat=0x05ac1261
363targetid=15 324targetid=15
364encoder=rbspeex 325encoder=rbspeex
365last_release=3.1
366 326
367[ipod3g] 327[ipod3g]
368name="Ipod (3rd gen)" 328name="Ipod (3rd gen)"
369platform=ipod3g 329platform=ipod3g
370released=yes
371needsbootloader=yes 330needsbootloader=yes
372bootloadermethod=ipod 331bootloadermethod=ipod
373bootloadername=/ipod/bootloader-ipod3g.ipod 332bootloadername=/ipod/bootloader-ipod3g.ipod
@@ -378,12 +337,10 @@ usbid=0x05ac1201
378voicename=ipod3g 337voicename=ipod3g
379targetid=16 338targetid=16
380encoder=rbspeex 339encoder=rbspeex
381last_release=3.1
382 340
383[ipodmini1g] 341[ipodmini1g]
384name="Ipod Mini (1st gen)" 342name="Ipod Mini (1st gen)"
385platform=ipodmini1g 343platform=ipodmini1g
386released=yes
387needsbootloader=yes 344needsbootloader=yes
388bootloadermethod=ipod 345bootloadermethod=ipod
389bootloadername=/ipod/bootloader-ipodmini.ipod 346bootloadername=/ipod/bootloader-ipodmini.ipod
@@ -393,12 +350,10 @@ brand=Apple
393voicename=ipodmini1g 350voicename=ipodmini1g
394targetid=18 351targetid=18
395encoder=rbspeex 352encoder=rbspeex
396last_release=3.1
397 353
398[ipodmini2g] 354[ipodmini2g]
399name="Ipod Mini (2nd gen)" 355name="Ipod Mini (2nd gen)"
400platform=ipodmini2g 356platform=ipodmini2g
401released=yes
402needsbootloader=yes 357needsbootloader=yes
403bootloadermethod=ipod 358bootloadermethod=ipod
404bootloadername=/ipod/bootloader-ipodmini2g.ipod 359bootloadername=/ipod/bootloader-ipodmini2g.ipod
@@ -408,12 +363,10 @@ brand=Apple
408voicename=ipodmini2g 363voicename=ipodmini2g
409targetid=21 364targetid=21
410encoder=rbspeex 365encoder=rbspeex
411last_release=3.1
412 366
413[iaudiox5] 367[iaudiox5]
414name="iAudio X5 / X5L" 368name="iAudio X5 / X5L"
415platform=iaudiox5 369platform=iaudiox5
416released=yes
417needsbootloader=yes 370needsbootloader=yes
418bootloadermethod=file 371bootloadermethod=file
419bootloadername=/iaudio/x5_fw.bin 372bootloadername=/iaudio/x5_fw.bin
@@ -425,12 +378,10 @@ usbid=0x0e210510, 0x0e210513
425voicename=iaudiox5 378voicename=iaudiox5
426targetid=12 379targetid=12
427encoder=rbspeex 380encoder=rbspeex
428last_release=3.1
429 381
430[iaudiox5v] 382[iaudiox5v]
431name="iAudio X5V" 383name="iAudio X5V"
432platform=iaudiox5 384platform=iaudiox5
433released=yes
434needsbootloader=yes 385needsbootloader=yes
435bootloadermethod=file 386bootloadermethod=file
436bootloadername=/iaudio/x5v_fw.bin 387bootloadername=/iaudio/x5v_fw.bin
@@ -441,12 +392,10 @@ brand=Cowon
441voicename=iaudiox5v 392voicename=iaudiox5v
442targetid=12 393targetid=12
443encoder=rbspeex 394encoder=rbspeex
444last_release=3.1
445 395
446[iaudiom5] 396[iaudiom5]
447name="iAudio M5 / M5L" 397name="iAudio M5 / M5L"
448platform=iaudiom5 398platform=iaudiom5
449released=yes
450needsbootloader=yes 399needsbootloader=yes
451bootloadermethod=file 400bootloadermethod=file
452bootloadername=/iaudio/m5_fw.bin 401bootloadername=/iaudio/m5_fw.bin
@@ -458,12 +407,10 @@ usbid=0x0e210520
458voicename=iaudiom5 407voicename=iaudiom5
459targetid=28 408targetid=28
460encoder=rbspeex 409encoder=rbspeex
461last_release=3.1
462 410
463[iaudiom3] 411[iaudiom3]
464name="iAudio M3 / M3L" 412name="iAudio M3 / M3L"
465platform=iaudiom3 413platform=iaudiom3
466released=no
467needsbootloader=yes 414needsbootloader=yes
468bootloadermethod=file 415bootloadermethod=file
469bootloadername=/iaudio/cowon_m3.bin 416bootloadername=/iaudio/cowon_m3.bin
@@ -475,12 +422,10 @@ usbid=0x0e210500
475voicename=iaudiom3 422voicename=iaudiom3
476targetid=37 423targetid=37
477encoder=rbspeex 424encoder=rbspeex
478last_release=3.1
479 425
480[gigabeatf] 426[gigabeatf]
481name="Gigabeat F / X" 427name="Gigabeat F / X"
482platform=gigabeatf 428platform=gigabeatf
483released=yes
484needsbootloader=yes 429needsbootloader=yes
485bootloadermethod=file 430bootloadermethod=file
486bootloadername=/gigabeat/FWIMG01.DAT 431bootloadername=/gigabeat/FWIMG01.DAT
@@ -492,12 +437,10 @@ usbid=0x09300009
492voicename=gigabeatf 437voicename=gigabeatf
493targetid=20 438targetid=20
494encoder=rbspeex 439encoder=rbspeex
495last_release=3.1
496 440
497[sansae200] 441[sansae200]
498name="Sansa E200" 442name="Sansa E200"
499platform=sansae200 443platform=sansae200
500released=yes
501needsbootloader=yes 444needsbootloader=yes
502bootloadermethod=sansa 445bootloadermethod=sansa
503bootloadername=/sandisk-sansa/e200/PP5022.mi4 446bootloadername=/sandisk-sansa/e200/PP5022.mi4
@@ -510,12 +453,10 @@ usbincompat=0x07817422, 0x07817423
510voicename=sansae200 453voicename=sansae200
511targetid=23 454targetid=23
512encoder=rbspeex 455encoder=rbspeex
513last_release=3.1
514 456
515[sansac200] 457[sansac200]
516name="Sansa C200" 458name="Sansa C200"
517platform=sansac200 459platform=sansac200
518released=yes
519needsbootloader=yes 460needsbootloader=yes
520bootloadermethod=sansa 461bootloadermethod=sansa
521bootloadername=/sandisk-sansa/c200/firmware.mi4 462bootloadername=/sandisk-sansa/c200/firmware.mi4
@@ -526,12 +467,10 @@ usbid=0x07817450, 0x07817451
526voicename=sansac200 467voicename=sansac200
527targetid=30 468targetid=30
528encoder=rbspeex 469encoder=rbspeex
529last_release=3.1
530 470
531[mrobe100] 471[mrobe100]
532name="m:robe100" 472name="m:robe100"
533platform=mrobe100 473platform=mrobe100
534released=yes
535needsbootloader=yes 474needsbootloader=yes
536bootloadermethod=mi4 475bootloadermethod=mi4
537bootloadername=/olympus/mrobe100/pp5020.mi4 476bootloadername=/olympus/mrobe100/pp5020.mi4
@@ -543,7 +482,6 @@ usbid=0x07b40280
543voicename=mrobe100 482voicename=mrobe100
544targetid=33 483targetid=33
545encoder=rbspeex 484encoder=rbspeex
546last_release=3.1
547 485
548[languages] 486[languages]
549lang1=afrikaans 487lang1=afrikaans
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index c9efb5e81a..5ef43b6732 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -79,6 +79,9 @@ RbUtilQt::RbUtilQt(QWidget *parent) : QMainWindow(parent)
79 ui.treeInfo->setHeaderLabels(QStringList() << tr("File") << tr("Version")); 79 ui.treeInfo->setHeaderLabels(QStringList() << tr("File") << tr("Version"));
80 ui.treeInfo->expandAll(); 80 ui.treeInfo->expandAll();
81 ui.treeInfo->setColumnCount(2); 81 ui.treeInfo->setColumnCount(2);
82 // disable quick install until version info is available
83 ui.buttonSmall->setEnabled(false);
84 ui.buttonComplete->setEnabled(false);
82 85
83 connect(ui.tabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateTabs(int))); 86 connect(ui.tabWidget, SIGNAL(currentChanged(int)), this, SLOT(updateTabs(int)));
84 connect(ui.actionAbout_Qt, SIGNAL(triggered()), qApp, SLOT(aboutQt())); 87 connect(ui.actionAbout_Qt, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
@@ -177,6 +180,19 @@ void RbUtilQt::downloadDone(bool error)
177 versmap.insert("arch_rev", info.value("dailies/rev").toString()); 180 versmap.insert("arch_rev", info.value("dailies/rev").toString());
178 versmap.insert("arch_date", info.value("dailies/date").toString()); 181 versmap.insert("arch_date", info.value("dailies/date").toString());
179 182
183 info.beginGroup("release");
184 versmap.insert("rel_rev", info.value(settings->curPlatform()).toString());
185 info.endGroup();
186
187 if(versmap.value("rel_rev").isEmpty()) {
188 ui.buttonSmall->setEnabled(false);
189 ui.buttonComplete->setEnabled(false);
190 }
191 else {
192 ui.buttonSmall->setEnabled(true);
193 ui.buttonComplete->setEnabled(true);
194 }
195
180 bleeding = new HttpGet(this); 196 bleeding = new HttpGet(this);
181 connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool))); 197 connect(bleeding, SIGNAL(done(bool)), this, SLOT(downloadBleedingDone(bool)));
182 connect(bleeding, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool))); 198 connect(bleeding, SIGNAL(requestFinished(int, bool)), this, SLOT(downloadDone(int, bool)));
@@ -215,7 +231,7 @@ void RbUtilQt::downloadBleedingDone(bool error)
215 versmap.insert("bleed_rev", info.value("bleeding/rev").toString()); 231 versmap.insert("bleed_rev", info.value("bleeding/rev").toString());
216 versmap.insert("bleed_date", info.value("bleeding/timestamp").toString()); 232 versmap.insert("bleed_date", info.value("bleeding/timestamp").toString());
217 qDebug() << "versmap =" << versmap; 233 qDebug() << "versmap =" << versmap;
218 234
219 m_gotInfo = true; 235 m_gotInfo = true;
220} 236}
221 237
@@ -362,7 +378,7 @@ void RbUtilQt::completeInstall()
362 "This will install Rockbox %1. To install the most recent " 378 "This will install Rockbox %1. To install the most recent "
363 "development build available press \"Cancel\" and " 379 "development build available press \"Cancel\" and "
364 "use the \"Installation\" tab.") 380 "use the \"Installation\" tab.")
365 .arg(settings->lastRelease(settings->curPlatform())), 381 .arg(versmap.value("rel_rev")),
366 QMessageBox::Ok | QMessageBox::Cancel) != QMessageBox::Ok) 382 QMessageBox::Ok | QMessageBox::Cancel) != QMessageBox::Ok)
367 return; 383 return;
368 // create logger 384 // create logger
@@ -420,7 +436,7 @@ void RbUtilQt::smallInstall()
420 "This will install Rockbox %1. To install the most recent " 436 "This will install Rockbox %1. To install the most recent "
421 "development build available press \"Cancel\" and " 437 "development build available press \"Cancel\" and "
422 "use the \"Installation\" tab.") 438 "use the \"Installation\" tab.")
423 .arg(settings->lastRelease(settings->curPlatform())), 439 .arg(versmap.value("rel_rev")),
424 QMessageBox::Ok | QMessageBox::Cancel) != QMessageBox::Ok) 440 QMessageBox::Ok | QMessageBox::Cancel) != QMessageBox::Ok)
425 return; 441 return;
426 442
@@ -491,9 +507,8 @@ void RbUtilQt::installBtn()
491bool RbUtilQt::installAuto() 507bool RbUtilQt::installAuto()
492{ 508{
493 QString file = QString("%1/%2/rockbox-%3-%4.zip") 509 QString file = QString("%1/%2/rockbox-%3-%4.zip")
494 .arg(settings->releaseUrl(), settings->lastRelease(settings->curPlatform()), 510 .arg(settings->releaseUrl(), versmap.value(settings->curPlatform()),
495 settings->curPlatform(), settings->lastRelease(settings->curPlatform())); 511 settings->curPlatform(), versmap.value(settings->curPlatform()));
496
497 buildInfo.open(); 512 buildInfo.open();
498 QSettings info(buildInfo.fileName(), QSettings::IniFormat, this); 513 QSettings info(buildInfo.fileName(), QSettings::IniFormat, this);
499 buildInfo.close(); 514 buildInfo.close();
@@ -552,7 +567,7 @@ bool RbUtilQt::installAuto()
552 ZipInstaller* installer = new ZipInstaller(this); 567 ZipInstaller* installer = new ZipInstaller(this);
553 installer->setUrl(file); 568 installer->setUrl(file);
554 installer->setLogSection("Rockbox (Base)"); 569 installer->setLogSection("Rockbox (Base)");
555 installer->setLogVersion(settings->lastRelease(settings->curPlatform())); 570 installer->setLogVersion(versmap.value("rel_rev"));
556 if(!settings->cacheDisabled()) 571 if(!settings->cacheDisabled())
557 installer->setCache(true); 572 installer->setCache(true);
558 installer->setMountPoint(settings->mountpoint()); 573 installer->setMountPoint(settings->mountpoint());
@@ -571,13 +586,6 @@ void RbUtilQt::install()
571 buildInfo.open(); 586 buildInfo.open();
572 QSettings info(buildInfo.fileName(), QSettings::IniFormat, this); 587 QSettings info(buildInfo.fileName(), QSettings::IniFormat, this);
573 buildInfo.close(); 588 buildInfo.close();
574
575 if(settings->curReleased()) {
576 // only set the keys if needed -- querying will yield an empty string
577 // if not set.
578 versmap.insert("rel_rev", settings->lastRelease(settings->curPlatform()));
579 versmap.insert("rel_date", ""); // FIXME: provide the release timestamp
580 }
581 installWindow->setVersionStrings(versmap); 589 installWindow->setVersionStrings(versmap);
582 590
583 installWindow->show(); 591 installWindow->show();