File indexing completed on 2024-04-21 04:04:57

0001 /*
0002     SPDX-FileCopyrightText: 1998-2001 Andreas Zehender <az@azweb.de>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef __MY_TOP_WIDGET_H
0008 #define __MY_TOP_WIDGET_H
0009 
0010 #include <KXmlGuiWindow>
0011 
0012 class PlayerInfo;
0013 class MyMainView;
0014 class QLabel;
0015 
0016 class MyTopLevelWidget:public KXmlGuiWindow
0017 {
0018    Q_OBJECT
0019 public:
0020    MyTopLevelWidget();
0021    void start();
0022 
0023 private Q_SLOTS:
0024    void setStatusText(const QString & text,int id);
0025    void keySetup();
0026    void energy(int pn,int en);
0027    void hitPoints(int pn,int hp);
0028    void wins(int pn,int w);
0029 
0030 protected:
0031    void setupActions( );
0032    void initStatusBar( );
0033    void initGameWidgets();
0034 
0035 private:
0036    PlayerInfo *playerinfo[2];
0037    MyMainView *playfield;
0038 
0039    QLabel *m_statusBarLabel[3];
0040 };
0041 
0042 #endif