aboutsummaryrefslogtreecommitdiff
path: root/gui/message.cpp
diff options
context:
space:
mode:
authorMax Horn2003-11-02 14:50:53 +0000
committerMax Horn2003-11-02 14:50:53 +0000
commite9ae86bb76bf6087a1bb11f6158fd96676572866 (patch)
tree6d2035662a6c88338b15e5e884f7a2da8a4fe155 /gui/message.cpp
parent70a1d438154a2becf5f55224cb34ba44317c2e86 (diff)
downloadscummvm-rg350-e9ae86bb76bf6087a1bb11f6158fd96676572866.tar.gz
scummvm-rg350-e9ae86bb76bf6087a1bb11f6158fd96676572866.tar.bz2
scummvm-rg350-e9ae86bb76bf6087a1bb11f6158fd96676572866.zip
introduced common base class GuiObject for Dialog/Widget -> step towards making it possible to nest widgets (needed for TabWidget)
svn-id: r11052
Diffstat (limited to 'gui/message.cpp')
-rw-r--r--gui/message.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/message.cpp b/gui/message.cpp
index f82f0086c9..4d60e876c0 100644
--- a/gui/message.cpp
+++ b/gui/message.cpp
@@ -19,16 +19,19 @@
*/
#include "stdafx.h"
-#include "gui/message.h"
-#include "gui/newgui.h"
#include "common/str.h"
#include "common/list.h"
+#include "gui/message.h"
+#include "gui/newgui.h"
+#include "gui/widget.h"
enum {
kOkCmd = 'OK ',
kCancelCmd = 'CNCL'
};
+// TODO: The default button should be visibly distinct from the alternate button
+
MessageDialog::MessageDialog(const String &message, const char *defaultButton, const char *altButton)
: Dialog(30, 20, 260, 124) {
// First, determine the size the dialog needs. For this we have to break