• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdegames
 

libtdegames

  • libtdegames
  • kgame
  • dialogs
kgamedebugdialog.h
1 /*
2  This file is part of the TDE games library
3  Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de)
4  Copyright (C) 2001 Martin Heni (martin@heni-online.de)
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __KGAMEDEBUGDIALOG_H__
22 #define __KGAMEDEBUGDIALOG_H__
23 
24 #include <kdialogbase.h>
25 #include <tdemacros.h>
26 
27 class KGame;
28 class KGameIO;
29 class KPlayer;
30 class KGamePropertyBase;
31 
32 class KGameDebugDialogPrivate;
33 
34 class TDE_EXPORT KGameDebugDialog : public KDialogBase
35 {
36  TQ_OBJECT
37 
38 public:
39  KGameDebugDialog(KGame* g, TQWidget* parent, bool modal = false);
40  ~KGameDebugDialog();
41 
48  void setKGame(const KGame* g);
49 
50 public slots:
59  void slotUnsetKGame();
60 
64  void slotUpdateGameData();
65 
69  void slotUpdatePlayerData();
70 
75  void slotUpdatePlayerList();
76 
77  void slotClearMessages();
78 
79 signals:
93  void signalRequestIdName(int messageid, bool userid, TQString& name);
94 
95 protected:
96  void clearPages();
97 
102  void clearPlayerData();
103 
107  void clearGameData();
108 
112  void addPlayer(KPlayer* p);
113 
117  void removePlayer(TQListBoxItem* item);
118 
122  bool showId(int msgid);
123 
124 protected slots:
130  void slotUpdatePlayerData(TQListBoxItem* item);
131 
132  void slotShowId();
133  void slotHideId();
134 
138  void slotMessageUpdate(int msgid, TQ_UINT32 receiver, TQ_UINT32 sender);
139 
140 private:
141  void initGamePage();
142  void initPlayerPage();
143  void initMessagePage();
144 
145 private:
146  KGameDebugDialogPrivate* d;
147 };
148 
149 
150 #endif
KGameIO
Base class for IO devices for games.
Definition: kgameio.h:56
KGamePropertyBase
Base class of KGameProperty.
Definition: kgameproperty.h:43
KGame
The main KDE game object.
Definition: kgame.h:63
KPlayer
Base class for a game player.
Definition: kplayer.h:70

libtdegames

Skip menu "libtdegames"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdegames

Skip menu "libtdegames"
  • libtdegames
Generated for libtdegames by doxygen 1.9.1
This website is maintained by Timothy Pearson.