aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/dialogs.cpp
diff options
context:
space:
mode:
authorMax Horn2010-04-06 09:26:43 +0000
committerMax Horn2010-04-06 09:26:43 +0000
commit894e2aefe6042cea38b93439812193f8ceb8356b (patch)
tree7295f1cba5168928151bbee324cb5db1ab772ae1 /engines/scumm/dialogs.cpp
parent745edbadc7b3841556c2e8962725bfd3de8a4dd3 (diff)
downloadscummvm-rg350-894e2aefe6042cea38b93439812193f8ceb8356b.tar.gz
scummvm-rg350-894e2aefe6042cea38b93439812193f8ceb8356b.tar.bz2
scummvm-rg350-894e2aefe6042cea38b93439812193f8ceb8356b.zip
GUI: Unify various definitions of kOKCmd and move it to namespace GUI
svn-id: r48564
Diffstat (limited to 'engines/scumm/dialogs.cpp')
-rw-r--r--engines/scumm/dialogs.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/engines/scumm/dialogs.cpp b/engines/scumm/dialogs.cpp
index e0a70d80fe..1f153094c1 100644
--- a/engines/scumm/dialogs.cpp
+++ b/engines/scumm/dialogs.cpp
@@ -59,7 +59,6 @@
using GUI::CommandSender;
using GUI::StaticTextWidget;
-using GUI::kCloseCmd;
using Graphics::kTextAlignCenter;
using Graphics::kTextAlignLeft;
using GUI::WIDGET_ENABLED;
@@ -391,10 +390,6 @@ void ScummMenuDialog::load() {
#pragma mark -
enum {
- kOKCmd = 'ok '
-};
-
-enum {
kKeysCmd = 'KEYS'
};
@@ -443,8 +438,8 @@ ConfigDialog::ConfigDialog()
// Add the buttons
//
- new GUI::ButtonWidget(this, "ScummConfig.Ok", "OK", GUI::OptionsDialog::kOKCmd, 'O');
- new GUI::ButtonWidget(this, "ScummConfig.Cancel", "Cancel", kCloseCmd, 'C');
+ new GUI::ButtonWidget(this, "ScummConfig.Ok", "OK", GUI::kOKCmd, 'O');
+ new GUI::ButtonWidget(this, "ScummConfig.Cancel", "Cancel", GUI::kCloseCmd, 'C');
#ifdef SMALL_SCREEN_DEVICE
new GUI::ButtonWidget(this, "ScummConfig.Keys", "Keys", kKeysCmd, 'K');
_keysDialog = NULL;
@@ -495,7 +490,7 @@ HelpDialog::HelpDialog(const GameSettings &game)
_prevButton = new GUI::ButtonWidget(this, "ScummHelp.Prev", "Previous", kPrevCmd, 'P');
_nextButton = new GUI::ButtonWidget(this, "ScummHelp.Next", "Next", kNextCmd, 'N');
- new GUI::ButtonWidget(this, "ScummHelp.Close", "Close", kCloseCmd, 'C');
+ new GUI::ButtonWidget(this, "ScummHelp.Close", "Close", GUI::kCloseCmd, 'C');
_prevButton->clearFlags(WIDGET_ENABLED);
_numLines = HELP_NUM_LINES;