1/*
2 * Copyright (C) 2010 Parker Coates <coates@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef MESSAGEBOX_H
19#define MESSAGEBOX_H
20
21#include <KGameRenderedItem>
22
23#include <QtGui/QFont>
24
25
26class MessageBox : public KGameRenderedItem
27{
28public:
29 MessageBox();
30
31 void setMessage( const QString & message );
32 QString message() const;
33
34 void setSize( const QSize & size );
35 QSize size() const;
36
37 virtual void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget );
38
39private:
40 QString m_message;
41 QFont m_font;
42 bool m_fontCached;
43};
44
45#endif
46