diff options
author | Max Horn | 2002-09-19 17:44:41 +0000 |
---|---|---|
committer | Max Horn | 2002-09-19 17:44:41 +0000 |
commit | 859ef578dc6faa881cab115fd0059a88b6a5899a (patch) | |
tree | c79215a60053ab0fe7d2966ddfbf7d5511389708 /gui/dialog.h | |
parent | f644bea112becce051fb7faa85d2c1bb47c8eee5 (diff) | |
download | scummvm-rg350-859ef578dc6faa881cab115fd0059a88b6a5899a.tar.gz scummvm-rg350-859ef578dc6faa881cab115fd0059a88b6a5899a.tar.bz2 scummvm-rg350-859ef578dc6faa881cab115fd0059a88b6a5899a.zip |
moved the Scumm specific dialogs to scumm/dialogs.*
svn-id: r4973
Diffstat (limited to 'gui/dialog.h')
-rw-r--r-- | gui/dialog.h | 96 |
1 files changed, 1 insertions, 95 deletions
diff --git a/gui/dialog.h b/gui/dialog.h index 3d1577b9e3..a530a79075 100644 --- a/gui/dialog.h +++ b/gui/dialog.h @@ -22,14 +22,9 @@ #define DIALOG_H #include "scummsys.h" -#include "widget.h" -#include "ListWidget.h" +#include "widget.h" // For CommandReceiver class NewGui; -class Scumm; - -#define RES_STRING(id) _gui->queryResString(id) -#define CUSTOM_STRING(id) _gui->queryCustomString(id) // Some "common" commands sent to handleCommand() enum { @@ -75,96 +70,7 @@ public: protected: Widget* findWidget(int x, int y); // Find the widget at pos x,y if any - void addResText(int x, int y, int w, int h, int resID); void addButton(int x, int y, int w, int h, const char *label, uint32 cmd, char hotkey); }; - -class SaveLoadDialog : public Dialog { -public: - SaveLoadDialog(NewGui *gui, Scumm *scumm); - - virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); - -protected: - Scumm *_scumm; - ListWidget *_savegameList; -}; - - -class AboutDialog : public Dialog { -public: - AboutDialog(NewGui *gui); -}; - -class SoundDialog; -class KeysDialog; -class MiscDialog; - -class OptionsDialog : public Dialog { -protected: - SoundDialog *_soundDialog; - KeysDialog *_keysDialog; - MiscDialog *_miscDialog; - -public: - OptionsDialog(NewGui *gui); - - virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); -}; - -class PauseDialog : public Dialog { -public: - PauseDialog(NewGui *gui); - - virtual void handleMouseDown(int x, int y, int button, int clickCount) - { close(); } - virtual void handleKeyDown(char key, int modifiers) - { - if (key == 32) - close(); - else - Dialog::handleKeyDown(key, modifiers); - } - - // Enforce no transparency! - virtual void setupScreenBuf() {} - virtual void teardownScreenBuf() {} - -}; - - -class SoundDialog : public Dialog { -public: - SoundDialog(NewGui *gui, Scumm *scumm); - - enum { - kMasterVolumeChanged = 'mavc', - kMusicVolumeChanged = 'muvc', - kSfxVolumeChanged = 'sfvc', - kOKCmd = 'ok ', - kCancelCmd = 'cncl', - }; - - virtual void open(); - - virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data); - -protected: - Scumm *_scumm; - - int _soundVolumeMaster; - int _soundVolumeMusic; - int _soundVolumeSfx; - - SliderWidget *masterVolumeSlider; - SliderWidget *musicVolumeSlider; - SliderWidget *sfxVolumeSlider; - - StaticTextWidget *masterVolumeLabel; - StaticTextWidget *musicVolumeLabel; - StaticTextWidget *sfxVolumeLabel; -}; - - #endif |