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

libtdegames

kgamedebugdialog.h

00001 /*
00002     This file is part of the TDE games library
00003     Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de)
00004     Copyright (C) 2001 Martin Heni (martin@heni-online.de)
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License version 2 as published by the Free Software Foundation.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __KGAMEDEBUGDIALOG_H__
00022 #define __KGAMEDEBUGDIALOG_H__
00023 
00024 #include <kdialogbase.h>
00025 #include <kdemacros.h>
00026 
00027 class KGame;
00028 class KGameIO;
00029 class KPlayer;
00030 class KGamePropertyBase;
00031 
00032 class KGameDebugDialogPrivate;
00033 
00034 class KDE_EXPORT KGameDebugDialog : public KDialogBase
00035 {
00036     Q_OBJECT
00037   
00038 public:
00039     KGameDebugDialog(KGame* g, TQWidget* parent, bool modal = false);
00040     ~KGameDebugDialog();
00041 
00048     void setKGame(const KGame* g);
00049 
00050 public slots:
00059     void slotUnsetKGame();
00060 
00064     void slotUpdateGameData();
00065 
00069     void slotUpdatePlayerData();
00070 
00075     void slotUpdatePlayerList();
00076 
00077     void slotClearMessages();
00078 
00079 signals:
00093     void signalRequestIdName(int messageid, bool userid, TQString& name);
00094 
00095 protected:
00096     void clearPages();
00097 
00102     void clearPlayerData();
00103 
00107     void clearGameData();
00108 
00112     void addPlayer(KPlayer* p);
00113 
00117     void removePlayer(TQListBoxItem* item);
00118 
00122     bool showId(int msgid);
00123 
00124 protected slots:
00130     void slotUpdatePlayerData(TQListBoxItem* item);
00131 
00132     void slotShowId();
00133     void slotHideId();
00134 
00138     void slotMessageUpdate(int msgid, TQ_UINT32 receiver, TQ_UINT32 sender);
00139 
00140 private:
00141     void initGamePage();
00142     void initPlayerPage();
00143     void initMessagePage();
00144 
00145 private:
00146     KGameDebugDialogPrivate* d;
00147 };
00148 
00149 
00150 #endif

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.7.1
This website is maintained by Timothy Pearson.