Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef GLOBAL_DIALOGS_H
00024 #define GLOBAL_DIALOGS_H
00025
00026 #include "gui/dialog.h"
00027
00028 class Engine;
00029
00030 namespace GUI {
00031 class ButtonWidget;
00032 class CommandSender;
00033 class GraphicsWidget;
00034 class SaveLoadChooser;
00035 }
00036
00037 class MainMenuDialog : public GUI::Dialog {
00038 public:
00039 enum {
00040 kSaveCmd = 'SAVE',
00041 kLoadCmd = 'LOAD',
00042 kPlayCmd = 'PLAY',
00043 kOptionsCmd = 'OPTN',
00044 kHelpCmd = 'HELP',
00045 kAboutCmd = 'ABOU',
00046 kQuitCmd = 'QUIT',
00047 kRTLCmd = 'RTL ',
00048 kChooseCmd = 'CHOS'
00049 };
00050
00051 public:
00052 MainMenuDialog(Engine *engine);
00053 ~MainMenuDialog();
00054
00055 virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
00056
00057 virtual void reflowLayout();
00058
00059 protected:
00060 void save();
00061 void load();
00062
00063 protected:
00064 Engine *_engine;
00065
00066 GUI::GraphicsWidget *_logo;
00067
00068 GUI::ButtonWidget *_rtlButton;
00069 GUI::ButtonWidget *_loadButton;
00070 GUI::ButtonWidget *_saveButton;
00071 GUI::ButtonWidget *_helpButton;
00072
00073 GUI::Dialog *_aboutDialog;
00074 GUI::Dialog *_optionsDialog;
00075
00076 GUI::SaveLoadChooser *_loadDialog;
00077 GUI::SaveLoadChooser *_saveDialog;
00078 };
00079
00080 #endif