aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorStephen Kennedy2008-08-15 01:22:09 +0000
committerStephen Kennedy2008-08-15 01:22:09 +0000
commit6f09c4f10ebe16200f3bd40e21defaa733cf712e (patch)
treebf54cbb3a1b0b85427a7f0b13253670fe009c12f /backends
parentfca5a0ad340da0fd0fd86d00f2c4cedbfd7a3ab8 (diff)
downloadscummvm-rg350-6f09c4f10ebe16200f3bd40e21defaa733cf712e.tar.gz
scummvm-rg350-6f09c4f10ebe16200f3bd40e21defaa733cf712e.tar.bz2
scummvm-rg350-6f09c4f10ebe16200f3bd40e21defaa733cf712e.zip
Added close button on remap dialog
svn-id: r33888
Diffstat (limited to 'backends')
-rw-r--r--backends/keymapper/remap-dialog.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/backends/keymapper/remap-dialog.cpp b/backends/keymapper/remap-dialog.cpp
index a6917fea7d..09d976a766 100644
--- a/backends/keymapper/remap-dialog.cpp
+++ b/backends/keymapper/remap-dialog.cpp
@@ -31,7 +31,8 @@
namespace Common {
enum {
- kRemapCmd = 'REMP'
+ kRemapCmd = 'REMP',
+ kCloseCmd = 'CLOS'
};
RemapDialog::RemapDialog()
@@ -44,6 +45,8 @@ RemapDialog::RemapDialog()
_kmPopUp = new GUI::PopUpWidget(this, "remap_popup", "Keymap: ", labelWidth);
_scrollBar = new GUI::ScrollBarWidget(this, 0, 0, 0, 0);
+
+ new GUI::ButtonWidget(this, "remap_close_button", "Close", kCloseCmd);
}
RemapDialog::~RemapDialog() {
@@ -181,6 +184,8 @@ void RemapDialog::handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 d
loadKeymap();
} else if (cmd == GUI::kSetPositionCmd) {
refreshKeymap();
+ } else if (cmd == kCloseCmd) {
+ close();
} else {
GUI::Dialog::handleCommand(sender, cmd, data);
}