diff options
Diffstat (limited to 'libkdegames/kgame/dialogs')
-rw-r--r-- | libkdegames/kgame/dialogs/kgameconnectdialog.cpp | 12 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgameconnectdialog.h | 12 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgamedebugdialog.cpp | 4 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgamedebugdialog.h | 2 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgamedialog.cpp | 34 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgamedialog.h | 24 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgamedialogconfig.cpp | 22 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgamedialogconfig.h | 18 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgameerrordialog.cpp | 18 | ||||
-rw-r--r-- | libkdegames/kgame/dialogs/kgameerrordialog.h | 6 |
10 files changed, 76 insertions, 76 deletions
diff --git a/libkdegames/kgame/dialogs/kgameconnectdialog.cpp b/libkdegames/kgame/dialogs/kgameconnectdialog.cpp index f0e0c606..98958ffd 100644 --- a/libkdegames/kgame/dialogs/kgameconnectdialog.cpp +++ b/libkdegames/kgame/dialogs/kgameconnectdialog.cpp @@ -56,7 +56,7 @@ class KGameConnectWidgetPrivate TQString mType; }; -KGameConnectWidget::KGameConnectWidget(TQWidget* tqparent) : TQWidget(tqparent) +KGameConnectWidget::KGameConnectWidget(TQWidget* parent) : TQWidget(parent) { d = new KGameConnectWidgetPrivate; @@ -212,9 +212,9 @@ class KGameConnectDialogPrivate KGameConnectWidget* mConnect; }; -// buttontqmask =Ok|Cancel -KGameConnectDialog::KGameConnectDialog(TQWidget* tqparent,int buttontqmask) : KDialogBase(Plain, - i18n("Network Game"),buttontqmask , Ok, tqparent, 0, true, buttontqmask!=0) +// buttonmask =Ok|Cancel +KGameConnectDialog::KGameConnectDialog(TQWidget* parent,int buttonmask) : KDialogBase(Plain, + i18n("Network Game"),buttonmask , Ok, parent, 0, true, buttonmask!=0) { d = new KGameConnectDialogPrivate; TQVBoxLayout* vb = new TQVBoxLayout(plainPage(), spacingHint()); @@ -228,9 +228,9 @@ KGameConnectDialog::~KGameConnectDialog() } int KGameConnectDialog::initConnection( unsigned short int& port, - TQString& host, TQWidget* tqparent, bool server) + TQString& host, TQWidget* parent, bool server) { - KGameConnectDialog d(tqparent); + KGameConnectDialog d(parent); d.setHost(host); d.setPort(port); if (server) { diff --git a/libkdegames/kgame/dialogs/kgameconnectdialog.h b/libkdegames/kgame/dialogs/kgameconnectdialog.h index ad4ff7d1..0a14183d 100644 --- a/libkdegames/kgame/dialogs/kgameconnectdialog.h +++ b/libkdegames/kgame/dialogs/kgameconnectdialog.h @@ -31,7 +31,7 @@ class KGameConnectWidget : public TQWidget Q_OBJECT TQ_OBJECT public: - KGameConnectWidget(TQWidget* tqparent); + KGameConnectWidget(TQWidget* parent); virtual ~KGameConnectWidget(); /** @@ -109,8 +109,8 @@ private: * @short Dialog to ask for host and port * * This Dialog is used to create a game. You call initConnection(port, - * TQString(), tqparent, true) to create a network game (as a server) - * or initConnection(port, host, tqparent) to join a network game. + * TQString(), parent, true) to create a network game (as a server) + * or initConnection(port, host, parent) to join a network game. * * @author Andreas Beckermann <b_mann@gmx.de> **/ @@ -119,7 +119,7 @@ class KGameConnectDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - KGameConnectDialog(TQWidget* tqparent = 0,int buttontqmask=Ok|Cancel); + KGameConnectDialog(TQWidget* parent = 0,int buttonmask=Ok|Cancel); virtual ~KGameConnectDialog(); /** @@ -128,11 +128,11 @@ public: * @param port The port the user wants to connect to. * @param host The host the user wants to connect to. Will be * TQString() if server game is chosen - * @param tqparent The tqparent of the dialog + * @param parent The parent of the dialog * @param server True to create a network game per default, false to * join a game by default **/ - static int initConnection(unsigned short int& port, TQString& host, TQWidget* tqparent, bool server = false); + static int initConnection(unsigned short int& port, TQString& host, TQWidget* parent, bool server = false); /** * @param host The host to connect to by default diff --git a/libkdegames/kgame/dialogs/kgamedebugdialog.cpp b/libkdegames/kgame/dialogs/kgamedebugdialog.cpp index 06987aad..6a7e1155 100644 --- a/libkdegames/kgame/dialogs/kgamedebugdialog.cpp +++ b/libkdegames/kgame/dialogs/kgamedebugdialog.cpp @@ -120,9 +120,9 @@ public: KListBox* mHideIdList; }; -KGameDebugDialog::KGameDebugDialog(KGame* g, TQWidget* tqparent, bool modal) : +KGameDebugDialog::KGameDebugDialog(KGame* g, TQWidget* parent, bool modal) : KDialogBase(Tabbed, i18n("KGame Debug Dialog"), Close, Close, - tqparent, 0, modal, true) + parent, 0, modal, true) { d = new KGameDebugDialogPrivate; diff --git a/libkdegames/kgame/dialogs/kgamedebugdialog.h b/libkdegames/kgame/dialogs/kgamedebugdialog.h index 8682ce69..92b35597 100644 --- a/libkdegames/kgame/dialogs/kgamedebugdialog.h +++ b/libkdegames/kgame/dialogs/kgamedebugdialog.h @@ -36,7 +36,7 @@ class KDE_EXPORT KGameDebugDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - KGameDebugDialog(KGame* g, TQWidget* tqparent, bool modal = false); + KGameDebugDialog(KGame* g, TQWidget* parent, bool modal = false); ~KGameDebugDialog(); /** diff --git a/libkdegames/kgame/dialogs/kgamedialog.cpp b/libkdegames/kgame/dialogs/kgamedialog.cpp index f589333e..c03df4ff 100644 --- a/libkdegames/kgame/dialogs/kgamedialog.cpp +++ b/libkdegames/kgame/dialogs/kgamedialog.cpp @@ -64,17 +64,17 @@ public: }; KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title, - TQWidget* tqparent, bool modal) + TQWidget* parent, bool modal) : KDialogBase(Tabbed, title, Ok|Default|Apply, - Ok, tqparent, 0, modal, true) + Ok, parent, 0, modal, true) { init(g, owner); } KGameDialog::KGameDialog(KGame* g, KPlayer* owner, const TQString& title, - TQWidget* tqparent, long initConfigs, int chatMsgId, bool modal) + TQWidget* parent, long initConfigs, int chatMsgId, bool modal) : KDialogBase(Tabbed, title, Ok|Default|Apply, - Ok, tqparent, 0, modal, true) + Ok, parent, 0, modal, true) { init(g, owner); if ((ConfigOptions)initConfigs!=NoConfig) { @@ -165,34 +165,34 @@ void KGameDialog::addMsgServerConfig(KGameDialogMsgServerConfig* msgConf) d->mMsgServerPage = addConfigPage(msgConf, i18n("&Message Server")); } -void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, TQVBox* tqparent) +void KGameDialog::addChatWidget(KGameDialogChatConfig* chat, TQVBox* parent) { if (!chat) { return; } - if (!tqparent) { - tqparent = d->mGamePage; + if (!parent) { + parent = d->mGamePage; } - if (!tqparent) { + if (!parent) { kdError(11001) << "cannot add chat widget without page" << endl; return; } - addConfigWidget(chat, tqparent); + addConfigWidget(chat, parent); } -void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, TQVBox* tqparent) +void KGameDialog::addConnectionList(KGameDialogConnectionConfig* c, TQVBox* parent) { if (!c) { return; } - if (!tqparent) { - tqparent = d->mNetworkPage; + if (!parent) { + parent = d->mNetworkPage; } - if (!tqparent) { + if (!parent) { kdError(11001) << "Cannot add connection list without page" << endl; return; } - addConfigWidget(c, tqparent); + addConfigWidget(c, parent); } TQVBox *KGameDialog::configPage(ConfigOptions which) @@ -226,18 +226,18 @@ TQVBox* KGameDialog::addConfigPage(KGameDialogConfig* widget, const TQString& ti return page; } -void KGameDialog::addConfigWidget(KGameDialogConfig* widget, TQWidget* tqparent) +void KGameDialog::addConfigWidget(KGameDialogConfig* widget, TQWidget* parent) { if (!widget) { kdError(11001) << "Cannot add NULL config widget" << endl; return; } - if (!tqparent) { + if (!parent) { kdError(11001) << "Cannot reparent to NULL widget" << endl; return; } // kdDebug(11001) << "reparenting widget" << endl; - widget->reparent(tqparent, TQPoint(0,0)); + widget->reparent(parent, TQPoint(0,0)); d->mConfigWidgets.append(widget); connect(widget, TQT_SIGNAL(destroyed(TQObject*)), this, TQT_SLOT(slotRemoveConfigWidget(TQObject*))); if (!d->mGame) { diff --git a/libkdegames/kgame/dialogs/kgamedialog.h b/libkdegames/kgame/dialogs/kgamedialog.h index cb731993..423f5de1 100644 --- a/libkdegames/kgame/dialogs/kgamedialog.h +++ b/libkdegames/kgame/dialogs/kgamedialog.h @@ -95,11 +95,11 @@ public: * @param owner The KPlayer object who is responsible for this * dialog, aka "the local player" * @param title The title of the dialog - see KDialog::setCaption - * @param tqparent The tqparent of the dialog + * @param parent The parent of the dialog * @param modal Whether the dialog is modal or not **/ KGameDialog(KGame* g, KPlayer* owner, const TQString& title, - TQWidget* tqparent, bool modal = false); + TQWidget* parent, bool modal = false); /** * Create a KGameDialog with the standard configuration widgets. This @@ -122,7 +122,7 @@ public: * @param owner The KPlayer object who is responsible for this * dialog, aka "the local player" * @param title The title of the dialog - see KDialog::setCaption - * @param tqparent The tqparent of the dialog + * @param parent The parent of the dialog * @param modal Whether the dialog is modal or not * @param initConfigs whether the default KGameDialogConfig widgets * shall be created using initDefaultDialog. Use false if you want @@ -131,7 +131,7 @@ public: * if initConfigs = false **/ KGameDialog(KGame* g, KPlayer* owner, const TQString& title, - TQWidget* tqparent, long initConfigs = AllConfig, + TQWidget* parent, long initConfigs = AllConfig, int chatMsgId = 15432, bool modal = false); virtual ~KGameDialog(); @@ -169,14 +169,14 @@ public: virtual void submitToKGame(); /** - * Adds a KGameChat to the dialog. If no tqparent is specified the + * Adds a KGameChat to the dialog. If no parent is specified the * game page will be used. * @param chat The chat widget - * @param tqparent The tqparent of the chat widget. This MUST be an + * @param parent The parent of the chat widget. This MUST be an * already added config widget. Note that the game page will be used - * if tqparent is 0. + * if parent is 0. **/ - void addChatWidget(KGameDialogChatConfig* chat, TQVBox* tqparent = 0); + void addChatWidget(KGameDialogChatConfig* chat, TQVBox* parent = 0); /** * Add a connection list to the dialog. The list consists of a @@ -187,10 +187,10 @@ public: * This is another not-really-config-config-widget. It just displays the * connections and lets you ban players. * @param c The KGameDialogConnectionConfig object - * @param tqparent The tqparent of the widget. If 0 the networkConfig + * @param parent The parent of the widget. If 0 the networkConfig * page is used. **/ - void addConnectionList(KGameDialogConnectionConfig* c, TQVBox* tqparent = 0); + void addConnectionList(KGameDialogConnectionConfig* c, TQVBox* parent = 0); /** * Add a new page to the dialog. The page will contain you new config @@ -223,12 +223,12 @@ public: KGameDialogGeneralConfig* gameConfig() const; /** - * Add a config widget to the specified tqparent. Usually you call + * Add a config widget to the specified parent. Usually you call * addConfigPage for one widget and addConfigWidget for another to add * it to the same page. Just use the returned page of * addConfigPage. **/ - void addConfigWidget(KGameDialogConfig* widget, TQWidget* tqparent); + void addConfigWidget(KGameDialogConfig* widget, TQWidget* parent); /** * Used to add the main network config widget in a new page. Use this to diff --git a/libkdegames/kgame/dialogs/kgamedialogconfig.cpp b/libkdegames/kgame/dialogs/kgamedialogconfig.cpp index eeaf50e1..f6845650 100644 --- a/libkdegames/kgame/dialogs/kgamedialogconfig.cpp +++ b/libkdegames/kgame/dialogs/kgamedialogconfig.cpp @@ -57,7 +57,7 @@ public: KPlayer* mOwner; }; -KGameDialogConfig::KGameDialogConfig(TQWidget* tqparent) : TQWidget(tqparent) +KGameDialogConfig::KGameDialogConfig(TQWidget* parent) : TQWidget(parent) { d = new KGameDialogConfigPrivate; } @@ -116,8 +116,8 @@ public: }; -KGameDialogNetworkConfig::KGameDialogNetworkConfig(TQWidget* tqparent) - : KGameDialogConfig(tqparent) +KGameDialogNetworkConfig::KGameDialogNetworkConfig(TQWidget* parent) + : KGameDialogConfig(parent) { // kdDebug(11001) << k_funcinfo << ": this=" << this << endl; d = new KGameDialogNetworkConfigPrivate(); @@ -261,8 +261,8 @@ public: TQVBoxLayout* mTopLayout; }; -KGameDialogGeneralConfig::KGameDialogGeneralConfig(TQWidget* tqparent, bool initializeGUI) - : KGameDialogConfig(tqparent) +KGameDialogGeneralConfig::KGameDialogGeneralConfig(TQWidget* parent, bool initializeGUI) + : KGameDialogConfig(parent) { // kdDebug(11001) << k_funcinfo << ": this=" << this << endl; d = new KGameDialogGeneralConfigPrivate; @@ -388,8 +388,8 @@ public: // TODO: change ADMIN ID, remove CLIENTS, change MAXCLIENTS // we do everything here with TQPushButtons as we want to wait a moment before // continuing - the message must be sent over network first -KGameDialogMsgServerConfig::KGameDialogMsgServerConfig(TQWidget* tqparent) - : KGameDialogConfig(tqparent) +KGameDialogMsgServerConfig::KGameDialogMsgServerConfig(TQWidget* parent) + : KGameDialogConfig(parent) { d = new KGameDialogMsgServerConfigPrivate; @@ -547,8 +547,8 @@ public: KGameChat* mChat; }; -KGameDialogChatConfig::KGameDialogChatConfig(int chatMsgId, TQWidget* tqparent) - : KGameDialogConfig(tqparent) +KGameDialogChatConfig::KGameDialogChatConfig(int chatMsgId, TQWidget* parent) + : KGameDialogConfig(parent) { d = new KGameDialogChatConfigPrivate; TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); @@ -599,8 +599,8 @@ public: KListBox* mPlayerBox; }; -KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* tqparent) - : KGameDialogConfig(tqparent) +KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* parent) + : KGameDialogConfig(parent) { //TODO: prevent player to ban himself d = new KGameDialogConnectionConfigPrivate; diff --git a/libkdegames/kgame/dialogs/kgamedialogconfig.h b/libkdegames/kgame/dialogs/kgamedialogconfig.h index 7c42d05d..a7f309ac 100644 --- a/libkdegames/kgame/dialogs/kgamedialogconfig.h +++ b/libkdegames/kgame/dialogs/kgamedialogconfig.h @@ -53,7 +53,7 @@ class KDE_EXPORT KGameDialogConfig : public TQWidget Q_OBJECT TQ_OBJECT public: - KGameDialogConfig(TQWidget* tqparent = 0); + KGameDialogConfig(TQWidget* parent = 0); virtual ~KGameDialogConfig(); /** @@ -137,7 +137,7 @@ private: * The main game configuration widget. * * It currently contains a line edit for the name of the player only. You can - * add widgets by using the KGameDialogGeneralConfig as tqparent parameter as it + * add widgets by using the KGameDialogGeneralConfig as parent parameter as it * uses TQLayout::autoAdd == true. * @author Andreas Beckermann <b_mann@gmx.de> **/ @@ -152,17 +152,17 @@ public: * edit widget to change the player name only. * * If you just want to add more widgets you can just create your widgets - * with the KGameDialogGeneralConfig as tqparent as it uses + * with the KGameDialogGeneralConfig as parent as it uses * TQLayout::setAutoAdd(true). * - * @param tqparent Parent widget for this dialog. + * @param parent Parent widget for this dialog. * @param initializeGUI If you really don't want to use the * predefined widget and/or tqlayout use FALSE here. Note that then none * of the predefined widgets (currently only the name of the player) * will exist anymore. * **/ - KGameDialogGeneralConfig(TQWidget* tqparent = 0, bool initializeGUI = true); + KGameDialogGeneralConfig(TQWidget* parent = 0, bool initializeGUI = true); virtual ~KGameDialogGeneralConfig(); /** @@ -215,7 +215,7 @@ class KDE_EXPORT KGameDialogNetworkConfig : public KGameDialogConfig Q_OBJECT TQ_OBJECT public: - KGameDialogNetworkConfig(TQWidget* tqparent = 0); + KGameDialogNetworkConfig(TQWidget* parent = 0); virtual ~KGameDialogNetworkConfig(); @@ -282,7 +282,7 @@ class KGameDialogMsgServerConfig : public KGameDialogConfig Q_OBJECT TQ_OBJECT public: - KGameDialogMsgServerConfig(TQWidget* tqparent = 0); + KGameDialogMsgServerConfig(TQWidget* parent = 0); virtual ~KGameDialogMsgServerConfig(); virtual void submitToKGame(KGame*, KPlayer*) {} @@ -316,7 +316,7 @@ class KGameDialogChatConfig : public KGameDialogConfig Q_OBJECT TQ_OBJECT public: - KGameDialogChatConfig(int chatMsgId, TQWidget* tqparent = 0); + KGameDialogChatConfig(int chatMsgId, TQWidget* parent = 0); virtual ~KGameDialogChatConfig(); virtual void setKGame(KGame* g); @@ -338,7 +338,7 @@ class KGameDialogConnectionConfig : public KGameDialogConfig Q_OBJECT TQ_OBJECT public: - KGameDialogConnectionConfig(TQWidget* tqparent = 0); + KGameDialogConnectionConfig(TQWidget* parent = 0); virtual ~KGameDialogConnectionConfig(); virtual void setKGame(KGame* g); diff --git a/libkdegames/kgame/dialogs/kgameerrordialog.cpp b/libkdegames/kgame/dialogs/kgameerrordialog.cpp index d5df6ba3..6ab9d71c 100644 --- a/libkdegames/kgame/dialogs/kgameerrordialog.cpp +++ b/libkdegames/kgame/dialogs/kgameerrordialog.cpp @@ -37,7 +37,7 @@ public: const KGame* mGame; }; -KGameErrorDialog::KGameErrorDialog(TQWidget* tqparent) : TQObject(tqparent) +KGameErrorDialog::KGameErrorDialog(TQWidget* parent) : TQObject(parent) { d = new KGameErrorDialogPrivate; } @@ -71,14 +71,14 @@ void KGameErrorDialog::slotUnsetKGame() d->mGame = 0; } -void KGameErrorDialog::error(const TQString& errorText, TQWidget* tqparent) -{ KMessageBox::error(tqparent, errorText); } +void KGameErrorDialog::error(const TQString& errorText, TQWidget* parent) +{ KMessageBox::error(parent, errorText); } void KGameErrorDialog::slotServerConnectionLost() { // TODO: add IP/port of the server TQString message = i18n("Connection to the server has been lost!"); - error(message, (TQWidget*)tqparent()); + error(message, (TQWidget*)parent()); } void KGameErrorDialog::slotClientConnectionLost(TQ_UINT32 /*id*/,bool) @@ -91,13 +91,13 @@ void KGameErrorDialog::slotClientConnectionLost(TQ_UINT32 /*id*/,bool) // message = i18n("Connection to client has been lost!"); // } message = i18n("Connection to client has been lost!"); - error(message, (TQWidget*)tqparent()); + error(message, (TQWidget*)parent()); } void KGameErrorDialog::slotError(int errorNo, TQString text) { TQString message = i18n("Received a network error!\nError number: %1\nError message: %2").tqarg(errorNo).tqarg(text); - error(message, (TQWidget*)tqparent()); + error(message, (TQWidget*)parent()); } void KGameErrorDialog::connectionError(TQString s) @@ -108,15 +108,15 @@ void KGameErrorDialog::connectionError(TQString s) } else { message = i18n("No connection could be created.\nThe error message was:\n%1").tqarg(s); } - error(message, (TQWidget*)tqparent()); + error(message, (TQWidget*)parent()); } // should become the real dialog - currently we just use messageboxes // -> maybe unused forever -KGameErrorMessageDialog::KGameErrorMessageDialog(TQWidget* tqparent) - : KDialogBase(Plain, i18n("Error"), Ok, Ok, tqparent, 0, true, true) +KGameErrorMessageDialog::KGameErrorMessageDialog(TQWidget* parent) + : KDialogBase(Plain, i18n("Error"), Ok, Ok, parent, 0, true, true) { } diff --git a/libkdegames/kgame/dialogs/kgameerrordialog.h b/libkdegames/kgame/dialogs/kgameerrordialog.h index b8d34c1a..08726dc2 100644 --- a/libkdegames/kgame/dialogs/kgameerrordialog.h +++ b/libkdegames/kgame/dialogs/kgameerrordialog.h @@ -41,7 +41,7 @@ class KGameErrorDialog : public TQObject Q_OBJECT TQ_OBJECT public: - KGameErrorDialog(TQWidget* tqparent); + KGameErrorDialog(TQWidget* parent); ~KGameErrorDialog(); /** @@ -88,7 +88,7 @@ public slots: void slotUnsetKGame(); protected: - void error(const TQString& errorText, TQWidget* tqparent = 0); + void error(const TQString& errorText, TQWidget* parent = 0); private: KGameErrorDialogPrivate* d; @@ -106,7 +106,7 @@ class KGameErrorMessageDialog : public KDialogBase Q_OBJECT TQ_OBJECT public: - KGameErrorMessageDialog(TQWidget* tqparent); + KGameErrorMessageDialog(TQWidget* parent); ~KGameErrorMessageDialog(); private: |