2008-06-24 23:19:23 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2014-02-18 01:34:20 +00:00
|
|
|
*
|
2008-06-24 23:19:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GLOBAL_DIALOGS_H
|
|
|
|
#define GLOBAL_DIALOGS_H
|
|
|
|
|
|
|
|
#include "gui/dialog.h"
|
|
|
|
|
2008-11-12 22:25:19 +00:00
|
|
|
class Engine;
|
2008-06-24 23:19:23 +00:00
|
|
|
|
2008-11-12 22:25:19 +00:00
|
|
|
namespace GUI {
|
2011-04-25 19:29:26 +00:00
|
|
|
class ButtonWidget;
|
2011-04-24 08:34:27 +00:00
|
|
|
class CommandSender;
|
2011-04-25 19:29:26 +00:00
|
|
|
class GraphicsWidget;
|
|
|
|
class SaveLoadChooser;
|
2008-11-12 22:25:19 +00:00
|
|
|
}
|
2008-06-24 23:19:23 +00:00
|
|
|
|
2008-11-12 12:50:21 +00:00
|
|
|
class MainMenuDialog : public GUI::Dialog {
|
2010-05-26 19:54:50 +00:00
|
|
|
public:
|
|
|
|
enum {
|
|
|
|
kSaveCmd = 'SAVE',
|
|
|
|
kLoadCmd = 'LOAD',
|
|
|
|
kPlayCmd = 'PLAY',
|
|
|
|
kOptionsCmd = 'OPTN',
|
|
|
|
kHelpCmd = 'HELP',
|
|
|
|
kAboutCmd = 'ABOU',
|
|
|
|
kQuitCmd = 'QUIT',
|
|
|
|
kRTLCmd = 'RTL ',
|
|
|
|
kChooseCmd = 'CHOS'
|
|
|
|
};
|
|
|
|
|
2008-06-24 23:19:23 +00:00
|
|
|
public:
|
|
|
|
MainMenuDialog(Engine *engine);
|
|
|
|
~MainMenuDialog();
|
2008-07-02 00:30:49 +00:00
|
|
|
|
2008-06-24 23:19:23 +00:00
|
|
|
virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
|
|
|
|
|
2008-09-14 20:42:50 +00:00
|
|
|
virtual void reflowLayout();
|
|
|
|
|
2010-04-06 09:26:20 +00:00
|
|
|
protected:
|
|
|
|
void save();
|
|
|
|
void load();
|
|
|
|
|
2008-06-24 23:19:23 +00:00
|
|
|
protected:
|
2010-05-26 19:54:50 +00:00
|
|
|
Engine *_engine;
|
2008-06-24 23:19:23 +00:00
|
|
|
|
2010-05-26 19:54:50 +00:00
|
|
|
GUI::GraphicsWidget *_logo;
|
2008-06-24 23:19:23 +00:00
|
|
|
|
2010-05-26 19:54:50 +00:00
|
|
|
GUI::ButtonWidget *_rtlButton;
|
|
|
|
GUI::ButtonWidget *_loadButton;
|
|
|
|
GUI::ButtonWidget *_saveButton;
|
|
|
|
GUI::ButtonWidget *_helpButton;
|
2008-06-24 23:19:23 +00:00
|
|
|
|
2010-05-26 19:54:50 +00:00
|
|
|
GUI::Dialog *_aboutDialog;
|
|
|
|
GUI::Dialog *_optionsDialog;
|
2008-06-24 23:19:23 +00:00
|
|
|
|
2010-05-26 19:54:50 +00:00
|
|
|
GUI::SaveLoadChooser *_loadDialog;
|
|
|
|
GUI::SaveLoadChooser *_saveDialog;
|
2008-06-24 23:19:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|