1/*
2 Copyright (C) 1998-2001 Andreas Zehender <az@azweb.de>
3
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.
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, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17*/
18
19#ifndef __MY_TOP_WIDGET_H
20#define __MY_TOP_WIDGET_H
21
22#include <kxmlguiwindow.h>
23
24class PlayerInfo;
25class MyMainView;
26
27class MyTopLevelWidget:public KXmlGuiWindow
28{
29 Q_OBJECT
30public:
31 MyTopLevelWidget();
32 void start();
33
34private slots:
35 void setStatusText(const QString & text,int id);
36 void keySetup();
37 void energy(int pn,int en);
38 void hitPoints(int pn,int hp);
39 void wins(int pn,int w);
40
41protected:
42 void setupActions( );
43 void initStatusBar( );
44 void initGameWidgets();
45
46private:
47 PlayerInfo *playerinfo[2];
48 MyMainView *playfield;
49};
50
51#endif
52