aboutsummaryrefslogtreecommitdiff
path: root/scumm/dialogs.h
diff options
context:
space:
mode:
authorMax Horn2003-06-14 21:18:14 +0000
committerMax Horn2003-06-14 21:18:14 +0000
commitb8e32a5b6fb07424b5dc6329ee72a83c710a11fb (patch)
treee100fe8fe9b5cb2431fc205da1d796fb5a1536ad /scumm/dialogs.h
parent9f8338503aabee8f2c4bc44d33d6266d573009e9 (diff)
downloadscummvm-rg350-b8e32a5b6fb07424b5dc6329ee72a83c710a11fb.tar.gz
scummvm-rg350-b8e32a5b6fb07424b5dc6329ee72a83c710a11fb.tar.bz2
scummvm-rg350-b8e32a5b6fb07424b5dc6329ee72a83c710a11fb.zip
Patch #745843: Help Dialog; in addition, I moved the 'About' dialog button from the options dialog to the main save/load dialog and enlarged & rearranged that dialog
svn-id: r8485
Diffstat (limited to 'scumm/dialogs.h')
-rw-r--r--scumm/dialogs.h40
1 files changed, 38 insertions, 2 deletions
diff --git a/scumm/dialogs.h b/scumm/dialogs.h
index a114bafe99..573fbbaba2 100644
--- a/scumm/dialogs.h
+++ b/scumm/dialogs.h
@@ -24,6 +24,10 @@
#include "common/str.h"
#include "gui/dialog.h"
+#ifndef DISABLE_HELP
+#include "help.h"
+#endif
+
class ListWidget;
class Scumm;
@@ -50,16 +54,22 @@ protected:
class SaveLoadDialog : public ScummDialog {
public:
SaveLoadDialog(NewGui *gui, Scumm *scumm);
+ ~SaveLoadDialog();
virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
virtual void open();
virtual void close();
protected:
- ListWidget *_savegameList;
+ ListWidget *_savegameList;
PushButtonWidget *_saveButton;
PushButtonWidget *_loadButton;
+ Dialog *_aboutDialog;
+#ifndef DISABLE_HELP
+ Dialog *_helpDialog;
+#endif
+
bool _saveMode;
void fillList();
@@ -74,9 +84,35 @@ public:
AboutDialog(NewGui *gui, Scumm *scumm);
};
+#ifndef DISABLE_HELP
+
+class HelpDialog : public ScummDialog {
+public:
+ HelpDialog(NewGui *gui, Scumm *scumm);
+ virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
+
+protected:
+ typedef ScummVM::String String;
+
+ PushButtonWidget *_nextButton;
+ PushButtonWidget *_prevButton;
+
+ StaticTextWidget *_title;
+ StaticTextWidget *_key[HELP_NUM_LINES];
+ StaticTextWidget *_dsc[HELP_NUM_LINES];
+
+ int _page;
+ int _numPages;
+
+ byte _gameId;
+
+ void displayKeyBindings();
+};
+
+#endif
+
class OptionsDialog : public ScummDialog {
protected:
- Dialog *_aboutDialog;
#ifdef _WIN32_WCE
Dialog *_keysDialog;
#endif