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.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GLOBAL_DIALOGS_H
|
|
|
|
#define GLOBAL_DIALOGS_H
|
|
|
|
|
|
|
|
#include "common/str.h"
|
|
|
|
#include "gui/dialog.h"
|
|
|
|
#include "gui/options.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 {
|
|
|
|
class ButtonWidget;
|
|
|
|
class GraphicsWidget;
|
|
|
|
class SaveLoadChooser;
|
|
|
|
}
|
2008-06-24 23:19:23 +00:00
|
|
|
|
2008-11-12 12:50:21 +00:00
|
|
|
class MainMenuDialog : public GUI::Dialog {
|
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();
|
|
|
|
|
2008-06-24 23:19:23 +00:00
|
|
|
protected:
|
|
|
|
Engine *_engine;
|
|
|
|
|
2008-09-14 20:42:50 +00:00
|
|
|
GUI::GraphicsWidget *_logo;
|
2008-08-16 02:53:16 +00:00
|
|
|
GUI::ButtonWidget *_rtlButton;
|
2008-11-03 18:32:16 +00:00
|
|
|
GUI::ButtonWidget *_loadButton;
|
|
|
|
GUI::ButtonWidget *_saveButton;
|
2008-06-24 23:19:23 +00:00
|
|
|
GUI::Dialog *_aboutDialog;
|
|
|
|
GUI::Dialog *_optionsDialog;
|
2008-11-03 18:32:16 +00:00
|
|
|
GUI::SaveLoadChooser *_loadDialog;
|
2008-11-06 20:26:19 +00:00
|
|
|
GUI::SaveLoadChooser *_saveDialog;
|
2008-06-24 23:19:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class ConfigDialog : public GUI::OptionsDialog {
|
|
|
|
protected:
|
|
|
|
#ifdef SMALL_SCREEN_DEVICE
|
|
|
|
GUI::Dialog *_keysDialog;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
public:
|
2009-02-07 06:47:19 +00:00
|
|
|
ConfigDialog(bool subtitleControls);
|
2008-06-24 23:19:23 +00:00
|
|
|
~ConfigDialog();
|
|
|
|
|
|
|
|
virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|