2002-09-27 23:27:14 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
2005-01-01 16:09:25 +00:00
|
|
|
* Copyright (C) 2002-2005 The ScummVM project
|
2002-09-27 23:27:14 +00:00
|
|
|
*
|
|
|
|
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LAUNCHER_DIALOG_H
|
|
|
|
#define LAUNCHER_DIALOG_H
|
|
|
|
|
2003-10-17 12:18:58 +00:00
|
|
|
#include "gui/dialog.h"
|
2002-09-27 23:27:14 +00:00
|
|
|
#include "common/str.h"
|
2002-09-30 00:55:47 +00:00
|
|
|
|
|
|
|
class GameDetector;
|
2003-11-10 23:40:48 +00:00
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
2005-04-16 17:55:09 +00:00
|
|
|
class BrowserDialog;
|
2002-09-30 00:55:47 +00:00
|
|
|
class ListWidget;
|
2002-09-27 23:27:14 +00:00
|
|
|
|
|
|
|
class LauncherDialog : public Dialog {
|
2003-10-02 17:43:02 +00:00
|
|
|
typedef Common::String String;
|
|
|
|
typedef Common::StringList StringList;
|
2002-09-27 23:27:14 +00:00
|
|
|
public:
|
2003-11-02 02:18:16 +00:00
|
|
|
LauncherDialog(GameDetector &detector);
|
2002-11-21 02:19:02 +00:00
|
|
|
~LauncherDialog();
|
2002-09-27 23:27:14 +00:00
|
|
|
|
2002-11-21 15:20:52 +00:00
|
|
|
virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
|
2002-09-27 23:27:14 +00:00
|
|
|
|
|
|
|
protected:
|
2002-11-21 02:19:02 +00:00
|
|
|
ListWidget *_list;
|
|
|
|
Widget *_startButton;
|
2002-11-21 13:11:29 +00:00
|
|
|
Widget *_editButton;
|
|
|
|
Widget *_removeButton;
|
2002-11-21 14:12:55 +00:00
|
|
|
StringList _domains;
|
2002-11-21 02:19:02 +00:00
|
|
|
GameDetector &_detector;
|
2005-04-16 17:55:09 +00:00
|
|
|
BrowserDialog *_browser;
|
2002-11-21 02:19:02 +00:00
|
|
|
|
|
|
|
void updateListing();
|
2002-12-01 12:47:13 +00:00
|
|
|
void updateButtons();
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-10-01 21:12:18 +00:00
|
|
|
void close();
|
2004-01-26 07:34:53 +00:00
|
|
|
virtual void addGame();
|
2003-11-05 12:25:42 +00:00
|
|
|
void removeGame(int item);
|
|
|
|
void editGame(int item);
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2005-01-05 01:42:52 +00:00
|
|
|
void selectGame(const String &name);
|
2002-09-27 23:27:14 +00:00
|
|
|
};
|
|
|
|
|
2003-11-10 23:40:48 +00:00
|
|
|
} // End of namespace GUI
|
|
|
|
|
2002-09-27 23:27:14 +00:00
|
|
|
#endif
|