2003-07-22 16:05:51 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
2006-01-18 17:39:49 +00:00
|
|
|
* Copyright (C) 2002-2006 The ScummVM project
|
2003-07-22 16:05:51 +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.
|
2003-07-22 16:05:51 +00:00
|
|
|
*
|
2006-02-11 10:08:56 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2003-07-22 16:05:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ABOUT_DIALOG_H
|
|
|
|
#define ABOUT_DIALOG_H
|
|
|
|
|
2004-12-19 19:17:43 +00:00
|
|
|
#include "gui/dialog.h"
|
|
|
|
#include "common/str.h"
|
2005-04-16 11:40:15 +00:00
|
|
|
#include "graphics/surface.h"
|
2003-07-22 16:05:51 +00:00
|
|
|
|
2003-11-10 23:40:48 +00:00
|
|
|
namespace GUI {
|
|
|
|
|
2003-07-22 16:05:51 +00:00
|
|
|
class AboutDialog : public Dialog {
|
2004-12-19 19:17:43 +00:00
|
|
|
typedef Common::StringList StringList;
|
|
|
|
protected:
|
|
|
|
int _scrollPos;
|
|
|
|
uint32 _scrollTime;
|
|
|
|
StringList _lines;
|
|
|
|
uint32 _lineHeight;
|
2004-12-30 14:21:16 +00:00
|
|
|
byte _modifiers;
|
2004-12-30 14:55:20 +00:00
|
|
|
bool _willClose;
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2005-05-17 23:41:35 +00:00
|
|
|
int xOff, yOff;
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2005-05-17 23:41:35 +00:00
|
|
|
void addLine(const char *str);
|
2004-12-19 19:17:43 +00:00
|
|
|
|
2003-07-22 16:05:51 +00:00
|
|
|
public:
|
2003-11-02 02:18:16 +00:00
|
|
|
AboutDialog();
|
2004-12-19 19:17:43 +00:00
|
|
|
|
|
|
|
void open();
|
2005-04-16 11:40:15 +00:00
|
|
|
void close();
|
2004-12-19 19:17:43 +00:00
|
|
|
void drawDialog();
|
|
|
|
void handleTickle();
|
|
|
|
void handleMouseUp(int x, int y, int button, int clickCount);
|
|
|
|
void handleKeyDown(uint16 ascii, int keycode, int modifiers);
|
|
|
|
void handleKeyUp(uint16 ascii, int keycode, int modifiers);
|
2006-04-19 01:05:28 +00:00
|
|
|
|
2006-08-04 13:55:53 +00:00
|
|
|
void reflowLayout();
|
2003-07-22 16:05:51 +00:00
|
|
|
};
|
|
|
|
|
2003-11-10 23:40:48 +00:00
|
|
|
} // End of namespace GUI
|
|
|
|
|
2003-07-22 16:05:51 +00:00
|
|
|
#endif
|