diff options
Diffstat (limited to 'rbutil/rbutilqt/gui')
-rw-r--r-- | rbutil/rbutilqt/gui/manualwidget.cpp | 16 | ||||
-rw-r--r-- | rbutil/rbutilqt/gui/selectiveinstallwidget.cpp | 36 |
2 files changed, 26 insertions, 26 deletions
diff --git a/rbutil/rbutilqt/gui/manualwidget.cpp b/rbutil/rbutilqt/gui/manualwidget.cpp index 0ba3012aea..23adc3cf46 100644 --- a/rbutil/rbutilqt/gui/manualwidget.cpp +++ b/rbutil/rbutilqt/gui/manualwidget.cpp | |||
@@ -42,9 +42,9 @@ void ManualWidget::updateManual() | |||
42 | if(!m_platform.isEmpty()) | 42 | if(!m_platform.isEmpty()) |
43 | { | 43 | { |
44 | ui.labelPdfManual->setText(tr("<a href='%1'>PDF Manual</a>") | 44 | ui.labelPdfManual->setText(tr("<a href='%1'>PDF Manual</a>") |
45 | .arg(ServerInfo::platformValue(m_platform, ServerInfo::ManualPdfUrl).toString())); | 45 | .arg(ServerInfo::platformValue(ServerInfo::ManualPdfUrl, m_platform).toString())); |
46 | ui.labelHtmlManual->setText(tr("<a href='%1'>HTML Manual (opens in browser)</a>") | 46 | ui.labelHtmlManual->setText(tr("<a href='%1'>HTML Manual (opens in browser)</a>") |
47 | .arg(ServerInfo::platformValue(m_platform, ServerInfo::ManualHtmlUrl).toString())); | 47 | .arg(ServerInfo::platformValue(ServerInfo::ManualHtmlUrl, m_platform).toString())); |
48 | } | 48 | } |
49 | else { | 49 | else { |
50 | ui.labelPdfManual->setText(tr("Select a device for a link to the correct manual")); | 50 | ui.labelPdfManual->setText(tr("Select a device for a link to the correct manual")); |
@@ -65,9 +65,9 @@ void ManualWidget::downloadManual(void) | |||
65 | QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) { | 65 | QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) { |
66 | return; | 66 | return; |
67 | } | 67 | } |
68 | QString manual = SystemInfo::value(SystemInfo::CurManual).toString(); | 68 | QString manual = SystemInfo::platformValue(SystemInfo::CurManual).toString(); |
69 | if(manual.isEmpty()) { | 69 | if(manual.isEmpty()) { |
70 | manual = "rockbox-" + SystemInfo::value(SystemInfo::CurBuildserverModel).toString(); | 70 | manual = "rockbox-" + SystemInfo::platformValue(SystemInfo::CurBuildserverModel).toString(); |
71 | } | 71 | } |
72 | 72 | ||
73 | ProgressLoggerGui* logger = new ProgressLoggerGui(this); | 73 | ProgressLoggerGui* logger = new ProgressLoggerGui(this); |
@@ -78,14 +78,14 @@ void ManualWidget::downloadManual(void) | |||
78 | installer->setCache(true); | 78 | installer->setCache(true); |
79 | 79 | ||
80 | if(ui.radioPdf->isChecked()) { | 80 | if(ui.radioPdf->isChecked()) { |
81 | installer->setUrl(ServerInfo::platformValue(m_platform, | 81 | installer->setUrl(ServerInfo::platformValue( |
82 | ServerInfo::ManualPdfUrl).toString()); | 82 | ServerInfo::ManualPdfUrl, m_platform).toString()); |
83 | installer->setLogSection("Manual (PDF)"); | 83 | installer->setLogSection("Manual (PDF)"); |
84 | installer->setTarget("/" + manual + ".pdf"); | 84 | installer->setTarget("/" + manual + ".pdf"); |
85 | } | 85 | } |
86 | else { | 86 | else { |
87 | installer->setUrl(ServerInfo::platformValue(m_platform, | 87 | installer->setUrl(ServerInfo::platformValue( |
88 | ServerInfo::ManualZipUrl).toString()); | 88 | ServerInfo::ManualZipUrl, m_platform).toString()); |
89 | installer->setLogSection("Manual (HTML)"); | 89 | installer->setLogSection("Manual (HTML)"); |
90 | installer->setTarget("/" + manual + "-" + "-html.zip"); | 90 | installer->setTarget("/" + manual + "-" + "-html.zip"); |
91 | } | 91 | } |
diff --git a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp index 9b5bc4d653..5baf774fc3 100644 --- a/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp +++ b/rbutil/rbutilqt/gui/selectiveinstallwidget.cpp | |||
@@ -69,7 +69,7 @@ void SelectiveInstallWidget::selectedVersionChanged(int index) | |||
69 | if(current == "development") | 69 | if(current == "development") |
70 | ui.selectedDescription->setText(tr("The development version is " | 70 | ui.selectedDescription->setText(tr("The development version is " |
71 | "updated on every code change. Last update was on %1").arg( | 71 | "updated on every code change. Last update was on %1").arg( |
72 | ServerInfo::value(ServerInfo::BleedingDate).toString())); | 72 | ServerInfo::platformValue(ServerInfo::BleedingDate).toString())); |
73 | if(current == "rc") | 73 | if(current == "rc") |
74 | ui.selectedDescription->setText(tr("This will eventually become the " | 74 | ui.selectedDescription->setText(tr("This will eventually become the " |
75 | "next Rockbox version. Install it to help testing.")); | 75 | "next Rockbox version. Install it to help testing.")); |
@@ -81,8 +81,8 @@ void SelectiveInstallWidget::updateVersion(void) | |||
81 | // get some configuration values globally | 81 | // get some configuration values globally |
82 | m_mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); | 82 | m_mountpoint = RbSettings::value(RbSettings::Mountpoint).toString(); |
83 | m_target = RbSettings::value(RbSettings::CurrentPlatform).toString(); | 83 | m_target = RbSettings::value(RbSettings::CurrentPlatform).toString(); |
84 | m_blmethod = SystemInfo::platformValue(m_target, | 84 | m_blmethod = SystemInfo::platformValue( |
85 | SystemInfo::CurBootloaderMethod).toString(); | 85 | SystemInfo::CurBootloaderMethod, m_target).toString(); |
86 | 86 | ||
87 | if(m_logger != NULL) { | 87 | if(m_logger != NULL) { |
88 | delete m_logger; | 88 | delete m_logger; |
@@ -91,11 +91,11 @@ void SelectiveInstallWidget::updateVersion(void) | |||
91 | 91 | ||
92 | // re-populate all version items | 92 | // re-populate all version items |
93 | m_versions.clear(); | 93 | m_versions.clear(); |
94 | m_versions.insert("release", ServerInfo::value(ServerInfo::CurReleaseVersion).toString()); | 94 | m_versions.insert("release", ServerInfo::platformValue(ServerInfo::CurReleaseVersion).toString()); |
95 | // Don't populate RC or development selections if target has been retired. | 95 | // Don't populate RC or development selections if target has been retired. |
96 | if (ServerInfo::value(ServerInfo::CurStatus) != tr("Stable (Retired)")) { | 96 | if (ServerInfo::platformValue(ServerInfo::CurStatus) != tr("Stable (Retired)")) { |
97 | m_versions.insert("development", ServerInfo::value(ServerInfo::BleedingRevision).toString()); | 97 | m_versions.insert("development", ServerInfo::platformValue(ServerInfo::BleedingRevision).toString()); |
98 | m_versions.insert("rc", ServerInfo::value(ServerInfo::RelCandidateVersion).toString()); | 98 | m_versions.insert("rc", ServerInfo::platformValue(ServerInfo::RelCandidateVersion).toString()); |
99 | } | 99 | } |
100 | 100 | ||
101 | ui.selectedVersion->clear(); | 101 | ui.selectedVersion->clear(); |
@@ -237,7 +237,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
237 | // create installer | 237 | // create installer |
238 | BootloaderInstallBase *bl = | 238 | BootloaderInstallBase *bl = |
239 | BootloaderInstallHelper::createBootloaderInstaller(this, | 239 | BootloaderInstallHelper::createBootloaderInstaller(this, |
240 | SystemInfo::value(SystemInfo::CurBootloaderMethod).toString()); | 240 | SystemInfo::platformValue(SystemInfo::CurBootloaderMethod).toString()); |
241 | if(bl == NULL) { | 241 | if(bl == NULL) { |
242 | m_logger->addItem(tr("No install method known."), LOGERROR); | 242 | m_logger->addItem(tr("No install method known."), LOGERROR); |
243 | m_logger->setFinished(); | 243 | m_logger->setFinished(); |
@@ -254,7 +254,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
254 | connect(m_logger, SIGNAL(aborted()), bl, SLOT(progressAborted())); | 254 | connect(m_logger, SIGNAL(aborted()), bl, SLOT(progressAborted())); |
255 | 255 | ||
256 | // set bootloader filename. Do this now as installed() needs it. | 256 | // set bootloader filename. Do this now as installed() needs it. |
257 | QStringList blfile = SystemInfo::value(SystemInfo::CurBootloaderFile).toStringList(); | 257 | QStringList blfile = SystemInfo::platformValue(SystemInfo::CurBootloaderFile).toStringList(); |
258 | QStringList blfilepath; | 258 | QStringList blfilepath; |
259 | for(int a = 0; a < blfile.size(); a++) { | 259 | for(int a = 0; a < blfile.size(); a++) { |
260 | blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString() | 260 | blfilepath.append(RbSettings::value(RbSettings::Mountpoint).toString() |
@@ -262,7 +262,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
262 | } | 262 | } |
263 | bl->setBlFile(blfilepath); | 263 | bl->setBlFile(blfilepath); |
264 | QUrl url(SystemInfo::value(SystemInfo::BootloaderUrl).toString() | 264 | QUrl url(SystemInfo::value(SystemInfo::BootloaderUrl).toString() |
265 | + SystemInfo::value(SystemInfo::CurBootloaderName).toString()); | 265 | + SystemInfo::platformValue(SystemInfo::CurBootloaderName).toString()); |
266 | bl->setBlUrl(url); | 266 | bl->setBlUrl(url); |
267 | bl->setLogfile(RbSettings::value(RbSettings::Mountpoint).toString() | 267 | bl->setLogfile(RbSettings::value(RbSettings::Mountpoint).toString() |
268 | + "/.rockbox/rbutil.log"); | 268 | + "/.rockbox/rbutil.log"); |
@@ -282,7 +282,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
282 | else if(bl->installed() == BootloaderInstallBase::BootloaderOther | 282 | else if(bl->installed() == BootloaderInstallBase::BootloaderOther |
283 | && bl->capabilities() & BootloaderInstallBase::Backup) | 283 | && bl->capabilities() & BootloaderInstallBase::Backup) |
284 | { | 284 | { |
285 | QString targetFolder = SystemInfo::value(SystemInfo::CurPlatformName).toString() | 285 | QString targetFolder = SystemInfo::platformValue(SystemInfo::CurPlatformName).toString() |
286 | + " Firmware Backup"; | 286 | + " Firmware Backup"; |
287 | // remove invalid character(s) | 287 | // remove invalid character(s) |
288 | targetFolder.remove(QRegExp("[:/]")); | 288 | targetFolder.remove(QRegExp("[:/]")); |
@@ -319,7 +319,7 @@ void SelectiveInstallWidget::installBootloader(void) | |||
319 | // open dialog to browse to of file | 319 | // open dialog to browse to of file |
320 | QString offile; | 320 | QString offile; |
321 | QString filter | 321 | QString filter |
322 | = SystemInfo::value(SystemInfo::CurBootloaderFilter).toString(); | 322 | = SystemInfo::platformValue(SystemInfo::CurBootloaderFilter).toString(); |
323 | if(!filter.isEmpty()) { | 323 | if(!filter.isEmpty()) { |
324 | filter = tr("Bootloader files (%1)").arg(filter) + ";;"; | 324 | filter = tr("Bootloader files (%1)").arg(filter) + ";;"; |
325 | } | 325 | } |
@@ -385,12 +385,12 @@ void SelectiveInstallWidget::installRockbox(void) | |||
385 | RbSettings::setValue(RbSettings::Build, selected); | 385 | RbSettings::setValue(RbSettings::Build, selected); |
386 | RbSettings::sync(); | 386 | RbSettings::sync(); |
387 | 387 | ||
388 | if(selected == "release") url = ServerInfo::platformValue(m_target, | 388 | if(selected == "release") url = ServerInfo::platformValue( |
389 | ServerInfo::CurReleaseUrl).toString(); | 389 | ServerInfo::CurReleaseUrl, m_target).toString(); |
390 | else if(selected == "development") url = ServerInfo::platformValue(m_target, | 390 | else if(selected == "development") url = ServerInfo::platformValue( |
391 | ServerInfo::CurDevelUrl).toString(); | 391 | ServerInfo::CurDevelUrl, m_target).toString(); |
392 | else if(selected == "rc") url = ServerInfo::platformValue(m_target, | 392 | else if(selected == "rc") url = ServerInfo::platformValue( |
393 | ServerInfo::RelCandidateUrl).toString(); | 393 | ServerInfo::RelCandidateUrl, m_target).toString(); |
394 | 394 | ||
395 | //! install build | 395 | //! install build |
396 | if(m_zipinstaller != NULL) m_zipinstaller->deleteLater(); | 396 | if(m_zipinstaller != NULL) m_zipinstaller->deleteLater(); |