SVN_SILENT made messages (.desktop file)
[kdegames.git] / kbreakout / src / textitems.h
blob6dbec481fc3c37fc9cf885160d7c0d7ebd09e59a
1 /*
2 Copyright 2008 Fela Winkelmolen <fela.kde@gmail.com>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
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.
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/>.
18 #ifndef TEXT_ITEMS_H
19 #define TEXT_ITEMS_H
21 #include "item.h"
23 class TextItem : public Item
25 public:
26 TextItem();
28 void setText(const QString &text);
30 protected:
31 virtual void loadSprite();
33 QString m_text;
36 class Score : public TextItem
38 public:
39 Score();
40 void setScore(int newScore);
43 class LevelInfo : public TextItem
45 public:
46 LevelInfo();
47 void setLevel(int newLevel);
50 class MessageBox : public TextItem
52 public:
53 MessageBox();
57 class InfoMessage : public TextItem
59 public:
60 InfoMessage();
63 #endif // TEXT_ITEMS_H