2016-02-23 20:59:57 -05: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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-04-18 17:25:58 -04:00
|
|
|
#ifndef TITANIC_PET_QUIT_H
|
|
|
|
#define TITANIC_PET_QUIT_H
|
2016-02-23 20:59:57 -05:00
|
|
|
|
2016-04-18 17:25:58 -04:00
|
|
|
#include "titanic/pet_control/pet_gfx_element.h"
|
2016-04-16 18:42:29 -04:00
|
|
|
#include "titanic/pet_control/pet_glyphs.h"
|
2017-01-01 05:24:31 -05:00
|
|
|
#include "titanic/gfx/text_control.h"
|
2016-02-23 20:59:57 -05:00
|
|
|
|
|
|
|
namespace Titanic {
|
|
|
|
|
2016-04-18 17:25:58 -04:00
|
|
|
class CPetQuit : public CPetGlyph {
|
2016-03-04 23:37:40 -05:00
|
|
|
private:
|
2017-01-01 05:24:31 -05:00
|
|
|
CTextControl _text;
|
2016-04-19 13:23:30 -04:00
|
|
|
CPetGfxElement _btnYes;
|
2016-02-23 20:59:57 -05:00
|
|
|
public:
|
2016-04-18 22:52:11 -04:00
|
|
|
/**
|
|
|
|
* Setup the glyph
|
|
|
|
*/
|
2016-04-19 22:00:47 -04:00
|
|
|
virtual bool setup(CPetControl *petControl, CPetGlyphs *owner);
|
2016-04-18 22:52:11 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Reset the glyph
|
|
|
|
*/
|
|
|
|
virtual bool reset();
|
2016-04-19 21:23:52 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handles any secondary drawing of the glyph
|
|
|
|
*/
|
|
|
|
virtual void draw2(CScreenManager *screenManager);
|
|
|
|
|
2016-04-21 22:13:44 -04:00
|
|
|
/**
|
2016-04-28 18:33:01 -04:00
|
|
|
* Called for mouse button down messages
|
2016-04-21 22:13:44 -04:00
|
|
|
*/
|
2016-04-28 18:33:01 -04:00
|
|
|
virtual bool MouseButtonDownMsg(const Point &pt);
|
2016-04-19 21:23:52 -04:00
|
|
|
|
2016-04-23 16:46:17 -04:00
|
|
|
/**
|
|
|
|
* Handles mouse button up messages
|
|
|
|
*/
|
|
|
|
virtual bool MouseButtonUpMsg(const Point &pt);
|
2016-10-09 14:59:58 +02:00
|
|
|
|
2016-04-19 21:23:52 -04:00
|
|
|
/**
|
|
|
|
* Returns the tooltip text for when the glyph is selected
|
|
|
|
*/
|
2017-01-01 05:24:31 -05:00
|
|
|
virtual void getTooltip(CTextControl *text);
|
2016-06-26 17:20:33 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get a reference to the tooltip text associated with the section
|
|
|
|
*/
|
2017-01-01 05:24:31 -05:00
|
|
|
virtual CTextControl *getText() { return &_text; }
|
2016-02-23 20:59:57 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End of namespace Titanic
|
|
|
|
|
2016-04-18 17:25:58 -04:00
|
|
|
#endif /* TITANIC_PET_QUIT_H */
|