aboutsummaryrefslogtreecommitdiff
path: root/gui/browser.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-06-15 10:47:31 +0000
committerEugene Sandulenko2010-06-15 10:47:31 +0000
commit3fafa07ab0aeb65fedad159fb0cf345cc8f5f278 (patch)
tree3de22adc06c73fb49c19f553dfd4e83159134c05 /gui/browser.cpp
parent9ebed7b3d9c1f3f93d44d5e94cdf8669f3f441b6 (diff)
downloadscummvm-rg350-3fafa07ab0aeb65fedad159fb0cf345cc8f5f278.tar.gz
scummvm-rg350-3fafa07ab0aeb65fedad159fb0cf345cc8f5f278.tar.bz2
scummvm-rg350-3fafa07ab0aeb65fedad159fb0cf345cc8f5f278.zip
GUI: Added in-place hotkeys for widgets.
Now it is possible to specify hotkeys in place for ButtonWidget and CheckboxWidget (the only widgets with hotkeys now). Use de-facto standard with putting hotkey between tildes (~). Like '~O~pen'. The tildes gets stripped before after hotkey is extracted. This is done for giving translators possibility to specify their own hotkeys. Old hotkeys defined at widget instance creation are left for leaving possibility to specify non-printable hotkeys such as Common::ASCII_ESCAPE. Translation files were updated respectively. svn-id: r49766
Diffstat (limited to 'gui/browser.cpp')
-rw-r--r--gui/browser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp
index 86fadf667e..000359e1e7 100644
--- a/gui/browser.cpp
+++ b/gui/browser.cpp
@@ -66,9 +66,9 @@ BrowserDialog::BrowserDialog(const char *title, bool dirBrowser)
_backgroundType = GUI::ThemeEngine::kDialogBackgroundPlain;
// Buttons
- new ButtonWidget(this, "Browser.Up", _("Go up"), kGoUpCmd, 0);
- new ButtonWidget(this, "Browser.Cancel", _("Cancel"), kCloseCmd, 0);
- new ButtonWidget(this, "Browser.Choose", _("Choose"), kChooseCmd, 0);
+ new ButtonWidget(this, "Browser.Up", _("Go up"), kGoUpCmd);
+ new ButtonWidget(this, "Browser.Cancel", _("Cancel"), kCloseCmd);
+ new ButtonWidget(this, "Browser.Choose", _("Choose"), kChooseCmd);
}
void BrowserDialog::open() {