aboutsummaryrefslogtreecommitdiff
path: root/gui/saveload.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/saveload.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/saveload.cpp')
-rw-r--r--gui/saveload.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/saveload.cpp b/gui/saveload.cpp
index 85bbd252c7..bd5aadc206 100644
--- a/gui/saveload.cpp
+++ b/gui/saveload.cpp
@@ -62,11 +62,11 @@ SaveLoadChooser::SaveLoadChooser(const String &title, const String &buttonLabel)
_playtime = new StaticTextWidget(this, 0, 0, 10, 10, _("No playtime saved"), Graphics::kTextAlignCenter);
// Buttons
- new GUI::ButtonWidget(this, "SaveLoadChooser.Cancel", _("Cancel"), kCloseCmd, 0);
- _chooseButton = new GUI::ButtonWidget(this, "SaveLoadChooser.Choose", buttonLabel, kChooseCmd, 0);
+ new GUI::ButtonWidget(this, "SaveLoadChooser.Cancel", _("Cancel"), kCloseCmd);
+ _chooseButton = new GUI::ButtonWidget(this, "SaveLoadChooser.Choose", buttonLabel, kChooseCmd);
_chooseButton->setEnabled(false);
- _deleteButton = new GUI::ButtonWidget(this, "SaveLoadChooser.Delete", _("Delete"), kDelCmd, 0);
+ _deleteButton = new GUI::ButtonWidget(this, "SaveLoadChooser.Delete", _("Delete"), kDelCmd);
_deleteButton->setEnabled(false);
_delSupport = _metaInfoSupport = _thumbnailSupport = false;