1 /* 2 SPDX-FileCopyrightText: 1998-2001 Andreas Zehender <az@azweb.de> 3 4 SPDX-License-Identifier: GPL-2.0-or-later 5 */ 6 7 #ifndef __MY_TOP_WIDGET_H 8 #define __MY_TOP_WIDGET_H 9 10 #include <KXmlGuiWindow> 11 12 class PlayerInfo; 13 class MyMainView; 14 class QLabel; 15 16 class MyTopLevelWidget:public KXmlGuiWindow 17 { 18 Q_OBJECT 19 public: 20 MyTopLevelWidget(); 21 void start(); 22 23 private Q_SLOTS: 24 void setStatusText(const QString & text,int id); 25 void keySetup(); 26 void energy(int pn,int en); 27 void hitPoints(int pn,int hp); 28 void wins(int pn,int w); 29 30 protected: 31 void setupActions( ); 32 void initStatusBar( ); 33 void initGameWidgets(); 34 35 private: 36 PlayerInfo *playerinfo[2]; 37 MyMainView *playfield; 38 39 QLabel *m_statusBarLabel[3]; 40 }; 41 42 #endif 43