summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-05-19 16:30:45 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-05-19 16:37:45 +0200
commit45782df278f65626b761bbb8b70b1932436033e5 (patch)
tree2db92838ef48796ce40a452162b348b3ecd24cea
parent12c64a4b79e043d8e8d77a278b340310f867a588 (diff)
downloadrockbox-45782df278f65626b761bbb8b70b1932436033e5.tar.gz
rockbox-45782df278f65626b761bbb8b70b1932436033e5.zip
Remove "daily builds" from Rockbox Utility.
Since Rockbox Utility could only install the most recent "daily build" there is not much difference to the most recent development build so the option was not really useful. Additionally update naming. Former "daily" builds are now "archived builds" and can get installed manually (if necessary), and "current" builds are renamed to "development build". Change-Id: I748688d544b6d9868f7495f30933637bf9ff5e50
-rw-r--r--rbutil/rbutilqt/base/serverinfo.cpp2
-rw-r--r--rbutil/rbutilqt/base/serverinfo.h1
-rw-r--r--rbutil/rbutilqt/installwindow.cpp45
-rw-r--r--rbutil/rbutilqt/installwindow.h1
-rw-r--r--rbutil/rbutilqt/installwindowfrm.ui16
5 files changed, 8 insertions, 57 deletions
diff --git a/rbutil/rbutilqt/base/serverinfo.cpp b/rbutil/rbutilqt/base/serverinfo.cpp
index d75f2c82a8..e288bbfe34 100644
--- a/rbutil/rbutilqt/base/serverinfo.cpp
+++ b/rbutil/rbutilqt/base/serverinfo.cpp
@@ -32,7 +32,6 @@ const static struct {
32} ServerInfoList[] = { 32} ServerInfoList[] = {
33 { ServerInfo::CurReleaseVersion, ":platform:/releaseversion", "" }, 33 { ServerInfo::CurReleaseVersion, ":platform:/releaseversion", "" },
34 { ServerInfo::CurStatus, ":platform:/status", "Unknown" }, 34 { ServerInfo::CurStatus, ":platform:/status", "Unknown" },
35 { ServerInfo::DailyRevision, "dailyrev", "" },
36 { ServerInfo::DailyDate, "dailydate", "" }, 35 { ServerInfo::DailyDate, "dailydate", "" },
37 { ServerInfo::BleedingRevision, "bleedingrev", "" }, 36 { ServerInfo::BleedingRevision, "bleedingrev", "" },
38 { ServerInfo::BleedingDate, "bleedingdate", "" }, 37 { ServerInfo::BleedingDate, "bleedingdate", "" },
@@ -44,7 +43,6 @@ void ServerInfo::readBuildInfo(QString file)
44{ 43{
45 QSettings info(file, QSettings::IniFormat); 44 QSettings info(file, QSettings::IniFormat);
46 45
47 setValue(ServerInfo::DailyRevision,info.value("dailies/rev"));
48 QDate date = QDate::fromString(info.value("dailies/date").toString(), "yyyyMMdd"); 46 QDate date = QDate::fromString(info.value("dailies/date").toString(), "yyyyMMdd");
49 setValue(ServerInfo::DailyDate,date.toString(Qt::ISODate)); 47 setValue(ServerInfo::DailyDate,date.toString(Qt::ISODate));
50 48
diff --git a/rbutil/rbutilqt/base/serverinfo.h b/rbutil/rbutilqt/base/serverinfo.h
index d7e944c425..37a0953e3d 100644
--- a/rbutil/rbutilqt/base/serverinfo.h
+++ b/rbutil/rbutilqt/base/serverinfo.h
@@ -32,7 +32,6 @@ class ServerInfo : public QObject
32 enum ServerInfos { 32 enum ServerInfos {
33 CurReleaseVersion, 33 CurReleaseVersion,
34 CurStatus, 34 CurStatus,
35 DailyRevision,
36 DailyDate, 35 DailyDate,
37 BleedingRevision, 36 BleedingRevision,
38 BleedingDate, 37 BleedingDate,
diff --git a/rbutil/rbutilqt/installwindow.cpp b/rbutil/rbutilqt/installwindow.cpp
index 584b014ae8..8abc342690 100644
--- a/rbutil/rbutilqt/installwindow.cpp
+++ b/rbutil/rbutilqt/installwindow.cpp
@@ -32,7 +32,6 @@ InstallWindow::InstallWindow(QWidget *parent) : QDialog(parent)
32 32
33 connect(ui.radioStable, SIGNAL(toggled(bool)), this, SLOT(setDetailsStable(bool))); 33 connect(ui.radioStable, SIGNAL(toggled(bool)), this, SLOT(setDetailsStable(bool)));
34 connect(ui.radioCurrent, SIGNAL(toggled(bool)), this, SLOT(setDetailsCurrent(bool))); 34 connect(ui.radioCurrent, SIGNAL(toggled(bool)), this, SLOT(setDetailsCurrent(bool)));
35 connect(ui.radioArchived, SIGNAL(toggled(bool)), this, SLOT(setDetailsArchived(bool)));
36 connect(ui.changeBackup, SIGNAL(pressed()), this, SLOT(changeBackupPath())); 35 connect(ui.changeBackup, SIGNAL(pressed()), this, SLOT(changeBackupPath()));
37 connect(ui.backup, SIGNAL(stateChanged(int)), this, SLOT(backupCheckboxChanged(int))); 36 connect(ui.backup, SIGNAL(stateChanged(int)), this, SLOT(backupCheckboxChanged(int)));
38 37
@@ -56,10 +55,6 @@ InstallWindow::InstallWindow(QWidget *parent) : QDialog(parent)
56 backupCheckboxChanged(Qt::Unchecked); 55 backupCheckboxChanged(Qt::Unchecked);
57 56
58 57
59 if(ServerInfo::value(ServerInfo::DailyRevision).toString().isEmpty()) {
60 ui.radioArchived->setEnabled(false);
61 qDebug() << "[Install] no information about archived version available!";
62 }
63 if(ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty()) { 58 if(ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty()) {
64 ui.radioStable->setEnabled(false); 59 ui.radioStable->setEnabled(false);
65 } 60 }
@@ -69,24 +64,16 @@ InstallWindow::InstallWindow(QWidget *parent) : QDialog(parent)
69 if(RbSettings::value(RbSettings::Build).toString() == "stable" 64 if(RbSettings::value(RbSettings::Build).toString() == "stable"
70 && !ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty()) 65 && !ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty())
71 ui.radioStable->setChecked(true); 66 ui.radioStable->setChecked(true);
72 else if(RbSettings::value(RbSettings::Build).toString() == "archived")
73 ui.radioArchived->setChecked(true);
74 else if(RbSettings::value(RbSettings::Build).toString() == "current") 67 else if(RbSettings::value(RbSettings::Build).toString() == "current")
75 ui.radioCurrent->setChecked(true); 68 ui.radioCurrent->setChecked(true);
76 else if(!ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty()) { 69 else if(!ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty()) {
77 ui.radioStable->setChecked(true); 70 ui.radioStable->setChecked(true);
78 ui.radioStable->setEnabled(true); 71 ui.radioStable->setEnabled(true);
79 QFont font;
80 font.setBold(true);
81 ui.radioStable->setFont(font);
82 } 72 }
83 else { 73 else {
84 ui.radioCurrent->setChecked(true); 74 ui.radioCurrent->setChecked(true);
85 ui.radioStable->setEnabled(false); 75 ui.radioStable->setEnabled(false);
86 ui.radioStable->setChecked(false); 76 ui.radioStable->setChecked(false);
87 QFont font;
88 font.setBold(true);
89 ui.radioCurrent->setFont(font);
90 } 77 }
91 78
92} 79}
@@ -146,12 +133,6 @@ void InstallWindow::accept()
146 RbSettings::setValue(RbSettings::Build, "stable"); 133 RbSettings::setValue(RbSettings::Build, "stable");
147 myversion = ServerInfo::value(ServerInfo::CurReleaseVersion).toString(); 134 myversion = ServerInfo::value(ServerInfo::CurReleaseVersion).toString();
148 } 135 }
149 else if(ui.radioArchived->isChecked()) {
150 file = SystemInfo::value(SystemInfo::DailyUrl).toString();
151 RbSettings::setValue(RbSettings::Build, "archived");
152 myversion = "r" + ServerInfo::value(ServerInfo::DailyRevision).toString()
153 + "-" + ServerInfo::value(ServerInfo::DailyDate).toString();
154 }
155 else if(ui.radioCurrent->isChecked()) { 136 else if(ui.radioCurrent->isChecked()) {
156 file = SystemInfo::value(SystemInfo::BleedingUrl).toString(); 137 file = SystemInfo::value(SystemInfo::BleedingUrl).toString();
157 RbSettings::setValue(RbSettings::Build, "current"); 138 RbSettings::setValue(RbSettings::Build, "current");
@@ -163,7 +144,6 @@ void InstallWindow::accept()
163 } 144 }
164 file.replace("%MODEL%", buildname); 145 file.replace("%MODEL%", buildname);
165 file.replace("%RELVERSION%", ServerInfo::value(ServerInfo::CurReleaseVersion).toString()); 146 file.replace("%RELVERSION%", ServerInfo::value(ServerInfo::CurReleaseVersion).toString());
166 file.replace("%REVISION%", ServerInfo::value(ServerInfo::DailyRevision).toString());
167 file.replace("%DATE%", ServerInfo::value(ServerInfo::DailyDate).toString()); 147 file.replace("%DATE%", ServerInfo::value(ServerInfo::DailyDate).toString());
168 148
169 RbSettings::sync(); 149 RbSettings::sync();
@@ -274,14 +254,10 @@ void InstallWindow::setDetailsCurrent(bool show)
274{ 254{
275 if(show) { 255 if(show) {
276 ui.labelDetails->setText(tr("This is the absolute up to the minute " 256 ui.labelDetails->setText(tr("This is the absolute up to the minute "
277 "Rockbox built. A current build will get updated every time " 257 "Rockbox built. The development version will get updated every time "
278 "a change is made. Latest version is %1 (%2).") 258 "a change is made. Latest development version is %1 (%2).")
279 .arg(ServerInfo::value(ServerInfo::BleedingRevision).toString(), 259 .arg(ServerInfo::value(ServerInfo::BleedingRevision).toString(),
280 ServerInfo::value(ServerInfo::BleedingDate).toString())); 260 ServerInfo::value(ServerInfo::BleedingDate).toString()));
281 if(ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty())
282 ui.labelNote->setText(tr("<b>This is the recommended version.</b>"));
283 else
284 ui.labelNote->setText("");
285 } 261 }
286} 262}
287 263
@@ -294,28 +270,13 @@ void InstallWindow::setDetailsStable(bool show)
294 270
295 if(!ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty()) 271 if(!ServerInfo::value(ServerInfo::CurReleaseVersion).toString().isEmpty())
296 ui.labelNote->setText(tr("<b>Note:</b> " 272 ui.labelNote->setText(tr("<b>Note:</b> "
297 "The lastest released version is %1. " 273 "The lastest stable version is %1.")
298 "<b>This is the recommended version.</b>")
299 .arg(ServerInfo::value(ServerInfo::CurReleaseVersion).toString())); 274 .arg(ServerInfo::value(ServerInfo::CurReleaseVersion).toString()));
300 else ui.labelNote->setText(""); 275 else ui.labelNote->setText("");
301 } 276 }
302} 277}
303 278
304 279
305void InstallWindow::setDetailsArchived(bool show)
306{
307 if(show) {
308 ui.labelDetails->setText(tr("These are automatically built each day "
309 "from the current development source code. This generally has more "
310 "features than the last stable release but may be much less stable. "
311 "Features may change regularly."));
312 ui.labelNote->setText(tr("<b>Note:</b> archived version is %1 (%2).")
313 .arg(ServerInfo::value(ServerInfo::DailyRevision).toString(),
314 ServerInfo::value(ServerInfo::DailyDate).toString()));
315 }
316}
317
318
319void InstallWindow::changeEvent(QEvent *e) 280void InstallWindow::changeEvent(QEvent *e)
320{ 281{
321 if(e->type() == QEvent::LanguageChange) { 282 if(e->type() == QEvent::LanguageChange) {
diff --git a/rbutil/rbutilqt/installwindow.h b/rbutil/rbutilqt/installwindow.h
index bbccfa7464..67c06c1f9a 100644
--- a/rbutil/rbutilqt/installwindow.h
+++ b/rbutil/rbutilqt/installwindow.h
@@ -53,7 +53,6 @@ class InstallWindow : public QDialog
53 private slots: 53 private slots:
54 void setDetailsCurrent(bool); 54 void setDetailsCurrent(bool);
55 void setDetailsStable(bool); 55 void setDetailsStable(bool);
56 void setDetailsArchived(bool);
57 void done(bool); 56 void done(bool);
58 void changeBackupPath(void); 57 void changeBackupPath(void);
59 void backupCheckboxChanged(int state); 58 void backupCheckboxChanged(int state);
diff --git a/rbutil/rbutilqt/installwindowfrm.ui b/rbutil/rbutilqt/installwindowfrm.ui
index 9b1d09688d..92fe65e7c2 100644
--- a/rbutil/rbutilqt/installwindowfrm.ui
+++ b/rbutil/rbutilqt/installwindowfrm.ui
@@ -1,3 +1,4 @@
1<?xml version="1.0" encoding="UTF-8"?>
1<ui version="4.0" > 2<ui version="4.0" >
2 <class>InstallWindowFrm</class> 3 <class>InstallWindowFrm</class>
3 <widget class="QDialog" name="InstallWindowFrm" > 4 <widget class="QDialog" name="InstallWindowFrm" >
@@ -16,7 +17,7 @@
16 <string>Install Rockbox</string> 17 <string>Install Rockbox</string>
17 </property> 18 </property>
18 <layout class="QGridLayout" name="gridLayout_2" > 19 <layout class="QGridLayout" name="gridLayout_2" >
19 <item rowspan="9" row="0" column="0" > 20 <item row="0" column="0" rowspan="9" >
20 <widget class="QLabel" name="label" > 21 <widget class="QLabel" name="label" >
21 <property name="text" > 22 <property name="text" >
22 <string/> 23 <string/>
@@ -48,21 +49,14 @@
48 <item> 49 <item>
49 <widget class="QRadioButton" name="radioStable" > 50 <widget class="QRadioButton" name="radioStable" >
50 <property name="text" > 51 <property name="text" >
51 <string>Rockbox &amp;stable</string> 52 <string>&amp;Stable release</string>
52 </property>
53 </widget>
54 </item>
55 <item>
56 <widget class="QRadioButton" name="radioArchived" >
57 <property name="text" >
58 <string>&amp;Archived Build</string>
59 </property> 53 </property>
60 </widget> 54 </widget>
61 </item> 55 </item>
62 <item> 56 <item>
63 <widget class="QRadioButton" name="radioCurrent" > 57 <widget class="QRadioButton" name="radioCurrent" >
64 <property name="text" > 58 <property name="text" >
65 <string>&amp;Current Build</string> 59 <string>&amp;Development build</string>
66 </property> 60 </property>
67 </widget> 61 </widget>
68 </item> 62 </item>
@@ -173,7 +167,7 @@
173 <item row="1" column="2" > 167 <item row="1" column="2" >
174 <widget class="QPushButton" name="changeBackup" > 168 <widget class="QPushButton" name="changeBackup" >
175 <property name="sizePolicy" > 169 <property name="sizePolicy" >
176 <sizepolicy vsizetype="Fixed" hsizetype="Minimum" > 170 <sizepolicy hsizetype="Minimum" vsizetype="Fixed" >
177 <horstretch>0</horstretch> 171 <horstretch>0</horstretch>
178 <verstretch>0</verstretch> 172 <verstretch>0</verstretch>
179 </sizepolicy> 173 </sizepolicy>