diff options
author | Littleboy | 2011-04-04 12:49:49 -0400 |
---|---|---|
committer | Julien | 2011-06-16 14:23:12 -0400 |
commit | e1dc9cdc0b89609753d3558f9603bef1cc12f1d8 (patch) | |
tree | 58802cb0ee464fdd4e63787162ba5ef4f963ee29 /gui | |
parent | 6c14d8a95052b68c9f076d32e520c6befac3d959 (diff) | |
download | scummvm-rg350-e1dc9cdc0b89609753d3558f9603bef1cc12f1d8.tar.gz scummvm-rg350-e1dc9cdc0b89609753d3558f9603bef1cc12f1d8.tar.bz2 scummvm-rg350-e1dc9cdc0b89609753d3558f9603bef1cc12f1d8.zip |
BACKENDS: Add support for count status to TaskbarManager
- Show the number of found games when using the massadd dialog
Diffstat (limited to 'gui')
-rw-r--r-- | gui/massadd.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gui/massadd.cpp b/gui/massadd.cpp index 1578e75b25..29a2b1886a 100644 --- a/gui/massadd.cpp +++ b/gui/massadd.cpp @@ -71,14 +71,14 @@ MassAddDialog::MassAddDialog(const Common::FSNode &startDir) // The dir we start our scan at _scanStack.push(startDir); -// Removed for now... Why would you put a title on mass add dialog called "Mass Add Dialog"? -// new StaticTextWidget(this, "massadddialog_caption", "Mass Add Dialog"); + // Removed for now... Why would you put a title on mass add dialog called "Mass Add Dialog"? + // new StaticTextWidget(this, "massadddialog_caption", "Mass Add Dialog"); _dirProgressText = new StaticTextWidget(this, "MassAdd.DirProgressText", - _("... progress ...")); + _("... progress ...")); _gameProgressText = new StaticTextWidget(this, "MassAdd.GameProgressText", - _("... progress ...")); + _("... progress ...")); _dirProgressText->setAlign(Graphics::kTextAlignCenter); _gameProgressText->setAlign(Graphics::kTextAlignCenter); @@ -132,8 +132,9 @@ struct GameDescLess { void MassAddDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data) { - // Remove progress bar from taskbar + // Remove progress bar and count from taskbar g_system->getTaskbarManager()->setProgressState(Common::TaskbarManager::kTaskbarNoProgress); + g_system->getTaskbarManager()->setCount(0); // FIXME: It's a really bad thing that we use two arbitrary constants if (cmd == kOkCmd) { @@ -239,6 +240,7 @@ void MassAddDialog::handleTickle() { _dirsScanned++; g_system->getTaskbarManager()->setProgressValue(_dirsScanned, _dirTotal); + g_system->getTaskbarManager()->setCount(_games.size()); } |