Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-12-29 05:47:35 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:31:03 +0300
commit96c556e962bba2845d0e39c0ec7c98637725daae (patch)
treecdbc9ef725cf8010bc4691d37ce0c27dfb3ab95e /qt/update_dialog.cpp
parent29a245c35561c3808cbafa11448225c2fafb6517 (diff)
[search] Add EGeneratingIndex status for country.
Diffstat (limited to 'qt/update_dialog.cpp')
-rw-r--r--qt/update_dialog.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/qt/update_dialog.cpp b/qt/update_dialog.cpp
index cda4080b8c..51c657254e 100644
--- a/qt/update_dialog.cpp
+++ b/qt/update_dialog.cpp
@@ -115,7 +115,8 @@ namespace qt
switch (m_storage.CountryStatus(countryIndex))
{
case EOnDisk:
- { // aha.. map is already downloaded, so ask user about deleting!
+ {
+ // map is already downloaded, so ask user about deleting!
QMessageBox ask(this);
ask.setText(tr("Do you want to delete %1?").arg(item->text(KColumnIndexCountry)));
ask.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
@@ -135,7 +136,8 @@ namespace qt
m_storage.DeleteCountry(countryIndex);
break;
- default:
+ case EGeneratingIndex:
+ // we can't stop index genertion at this moment
break;
}
}
@@ -206,28 +208,36 @@ namespace qt
rowColor = COLOR_NOTDOWNLOADED;
size = m_storage.CountrySizeInBytes(index);
break;
+
case EOnDisk:
statusString = tr("Installed (click to delete)");
rowColor = COLOR_ONDISK;
size = m_storage.CountrySizeInBytes(index);
break;
+
case EDownloadFailed:
statusString = tr("Download has failed");
rowColor = COLOR_DOWNLOADFAILED;
size = m_storage.CountrySizeInBytes(index);
break;
+
case EDownloading:
- statusString = tr("Downloading...");
+ statusString = tr("Downloading ...");
rowColor = COLOR_INPROGRESS;
break;
+
case EInQueue:
statusString = tr("Marked for download");
rowColor = COLOR_INQUEUE;
size = m_storage.CountrySizeInBytes(index);
break;
- default:
+
+ case EGeneratingIndex:
+ statusString = tr("Generatin search index ...");
+ rowColor = COLOR_INPROGRESS;
break;
}
+
if (statusString.size())
item->setText(KColumnIndexStatus, statusString);