2007-05-30 21:56:52 +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.
|
2004-01-26 08:14:04 +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
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2004-01-26 08:14:04 +00:00
|
|
|
*
|
2006-02-11 10:08:56 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2004-01-26 08:14:04 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
#ifndef KEYSDIALOG_H
|
|
|
|
#define KEYSDIALOG_H
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2010-11-16 10:19:01 +00:00
|
|
|
#include "gui/gui-manager.h"
|
2005-07-05 20:22:56 +00:00
|
|
|
#include "gui/dialog.h"
|
2010-11-16 10:11:57 +00:00
|
|
|
#include "gui/widgets/list.h"
|
2005-07-05 20:22:56 +00:00
|
|
|
#include "common/str.h"
|
2010-09-30 18:09:01 +00:00
|
|
|
#include "common/translation.h"
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
namespace GUI {
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
class KeysDialog : public GUI::Dialog {
|
|
|
|
public:
|
2010-09-30 18:09:01 +00:00
|
|
|
KeysDialog(const Common::String &title = _("Choose an action to map"));
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
virtual void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data);
|
2007-06-30 12:26:59 +00:00
|
|
|
virtual void handleKeyUp(Common::KeyState state);
|
|
|
|
virtual void handleKeyDown(Common::KeyState state);
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
protected:
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
GUI::ListWidget *_actionsList;
|
|
|
|
GUI::StaticTextWidget *_actionTitle;
|
|
|
|
GUI::StaticTextWidget *_keyMapping;
|
|
|
|
int _actionSelected;
|
|
|
|
};
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
} // namespace GUI
|
2004-01-26 08:14:04 +00:00
|
|
|
|
2005-07-05 20:22:56 +00:00
|
|
|
#endif
|