diff options
Diffstat (limited to 'knights/dlg_newmatch.cpp')
-rw-r--r-- | knights/dlg_newmatch.cpp | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/knights/dlg_newmatch.cpp b/knights/dlg_newmatch.cpp index ff85497..f49c825 100644 --- a/knights/dlg_newmatch.cpp +++ b/knights/dlg_newmatch.cpp @@ -17,15 +17,15 @@ #include "dlg_newmatch.moc" #include <kcombobox.h> -#include <qgroupbox.h> -#include <qbuttongroup.h> -#include <qspinbox.h> -#include <qradiobutton.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qvbox.h> -#include <qhbox.h> -#include <qgrid.h> +#include <tqgroupbox.h> +#include <tqbuttongroup.h> +#include <tqspinbox.h> +#include <tqradiobutton.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqvbox.h> +#include <tqhbox.h> +#include <tqgrid.h> #include "resource.h" #include "dlg_selectengine.h" #include "dlg_selectemail.h" @@ -34,39 +34,39 @@ #define _TYPE_PC_ 1 #define _TYPE_EMAIL_ 2 -dlg_newmatch::dlg_newmatch(QWidget *parent, const char *name, resource *Rsrc ) : -KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, TRUE ) +dlg_newmatch::dlg_newmatch(TQWidget *tqparent, const char *name, resource *Rsrc ) : +KDialogBase(tqparent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, TRUE ) { myResource = Rsrc; Param = new match_param( myResource ); BOX_Parent = makeHBoxMainWidget(); - BOX_Players = new QVBox( BOX_Parent ); + BOX_Players = new TQVBox( BOX_Parent ); - BOX_White = new QGroupBox(3, Qt::Horizontal, i18n("White"), BOX_Players ); - BOX_Black = new QGroupBox(3, Qt::Horizontal, i18n("Black"), BOX_Players ); + BOX_White = new TQGroupBox(3, Qt::Horizontal, i18n("White"), BOX_Players ); + BOX_Black = new TQGroupBox(3, Qt::Horizontal, i18n("Black"), BOX_Players ); - IMAGE_White = new QLabel( BOX_White ); - IMAGE_Black = new QLabel( BOX_Black ); + IMAGE_White = new TQLabel( BOX_White ); + IMAGE_Black = new TQLabel( BOX_Black ); - BOX_White_Detail = new QVBox( BOX_White ); - BOX_Black_Detail = new QVBox( BOX_Black ); + BOX_White_Detail = new TQVBox( BOX_White ); + BOX_Black_Detail = new TQVBox( BOX_Black ); - LABEL_White_Name = new QLabel( BOX_White_Detail ); - LABEL_Black_Name = new QLabel( BOX_Black_Detail ); + LABEL_White_Name = new TQLabel( BOX_White_Detail ); + LABEL_Black_Name = new TQLabel( BOX_Black_Detail ); - GROUP_White_Type = new QButtonGroup( 3, Qt::Vertical, BOX_White_Detail ); + GROUP_White_Type = new TQButtonGroup( 3, Qt::Vertical, BOX_White_Detail ); GROUP_White_Type->setExclusive( TRUE ); - RADIO_White_Human = new QRadioButton( i18n("Human"), GROUP_White_Type ); - RADIO_White_PC = new QRadioButton( i18n("Computer"), GROUP_White_Type ); - RADIO_White_Email = new QRadioButton( i18n("Email"), GROUP_White_Type ); - connect( GROUP_White_Type, SIGNAL( clicked(int)), this, SLOT( slotWhiteType(int))); + RADIO_White_Human = new TQRadioButton( i18n("Human"), GROUP_White_Type ); + RADIO_White_PC = new TQRadioButton( i18n("Computer"), GROUP_White_Type ); + RADIO_White_Email = new TQRadioButton( i18n("Email"), GROUP_White_Type ); + connect( GROUP_White_Type, TQT_SIGNAL( clicked(int)), this, TQT_SLOT( slotWhiteType(int))); - GROUP_Black_Type = new QButtonGroup( 3, Qt::Vertical, BOX_Black_Detail ); + GROUP_Black_Type = new TQButtonGroup( 3, Qt::Vertical, BOX_Black_Detail ); GROUP_Black_Type->setExclusive( TRUE ); - RADIO_Black_Human = new QRadioButton( i18n("Human"), GROUP_Black_Type ); - RADIO_Black_PC = new QRadioButton( i18n("Computer"), GROUP_Black_Type ); - RADIO_Black_Email = new QRadioButton( i18n("Email"), GROUP_Black_Type ); - connect( GROUP_Black_Type, SIGNAL( clicked(int)), this, SLOT( slotBlackType(int))); + RADIO_Black_Human = new TQRadioButton( i18n("Human"), GROUP_Black_Type ); + RADIO_Black_PC = new TQRadioButton( i18n("Computer"), GROUP_Black_Type ); + RADIO_Black_Email = new TQRadioButton( i18n("Email"), GROUP_Black_Type ); + connect( GROUP_Black_Type, TQT_SIGNAL( clicked(int)), this, TQT_SLOT( slotBlackType(int))); /* Disable Unconfigured Types */ if( !myResource->engines.count() ) @@ -81,44 +81,44 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T } /* Time for White */ - GRID_White_Time = new QGrid( 2, Qt::Horizontal, BOX_White ); - LABEL_White_Base = new QLabel( i18n("Base Time:"), GRID_White_Time ); - SPIN_White_Base = new QSpinBox( 0, 120, 1, GRID_White_Time ); + GRID_White_Time = new TQGrid( 2, Qt::Horizontal, BOX_White ); + LABEL_White_Base = new TQLabel( i18n("Base Time:"), GRID_White_Time ); + SPIN_White_Base = new TQSpinBox( 0, 120, 1, GRID_White_Time ); SPIN_White_Base->setSuffix( i18n(" min.") ); - connect( SPIN_White_Base, SIGNAL( valueChanged(int)), this, SLOT( slotWhiteBase(int))); + connect( SPIN_White_Base, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteBase(int))); - LABEL_White_Moves = new QLabel( i18n("Moves Per Base Time"), GRID_White_Time ); - SPIN_White_Moves = new QSpinBox( 0, 100, 5, GRID_White_Time ); + LABEL_White_Moves = new TQLabel( i18n("Moves Per Base Time"), GRID_White_Time ); + SPIN_White_Moves = new TQSpinBox( 0, 100, 5, GRID_White_Time ); SPIN_White_Moves->setSuffix( i18n(" moves") ); - connect( SPIN_White_Moves, SIGNAL( valueChanged(int)), this, SLOT( slotWhiteMoves(int))); + connect( SPIN_White_Moves, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteMoves(int))); - LABEL_White_Inc = new QLabel( i18n("Increment Per Move"), GRID_White_Time ); - SPIN_White_Inc = new QSpinBox( 0, 120, 1, GRID_White_Time ); + LABEL_White_Inc = new TQLabel( i18n("Increment Per Move"), GRID_White_Time ); + SPIN_White_Inc = new TQSpinBox( 0, 120, 1, GRID_White_Time ); SPIN_White_Inc->setSuffix( i18n(" sec.") ); - connect( SPIN_White_Inc, SIGNAL( valueChanged(int)), this, SLOT( slotWhiteInc(int))); + connect( SPIN_White_Inc, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteInc(int))); /* Time for Black */ - GRID_Black_Time = new QGrid( 2, Qt::Horizontal, BOX_Black ); - LABEL_Black_Base = new QLabel( i18n("Base Time:"), GRID_Black_Time ); - SPIN_Black_Base = new QSpinBox( 0, 120, 1, GRID_Black_Time ); + GRID_Black_Time = new TQGrid( 2, Qt::Horizontal, BOX_Black ); + LABEL_Black_Base = new TQLabel( i18n("Base Time:"), GRID_Black_Time ); + SPIN_Black_Base = new TQSpinBox( 0, 120, 1, GRID_Black_Time ); SPIN_Black_Base->setSuffix( i18n(" min.") ); - connect( SPIN_Black_Base, SIGNAL( valueChanged(int)), this, SLOT( slotBlackBase(int))); + connect( SPIN_Black_Base, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotBlackBase(int))); - LABEL_Black_Moves = new QLabel( i18n("Moves Per Base Time"), GRID_Black_Time ); - SPIN_Black_Moves = new QSpinBox( 0, 100, 5, GRID_Black_Time ); + LABEL_Black_Moves = new TQLabel( i18n("Moves Per Base Time"), GRID_Black_Time ); + SPIN_Black_Moves = new TQSpinBox( 0, 100, 5, GRID_Black_Time ); SPIN_Black_Moves->setSuffix( i18n(" moves") ); - connect( SPIN_Black_Moves, SIGNAL( valueChanged(int)), this, SLOT( slotBlackMoves(int))); + connect( SPIN_Black_Moves, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotBlackMoves(int))); - LABEL_Black_Inc = new QLabel( i18n("Increment Per Move"), GRID_Black_Time ); - SPIN_Black_Inc = new QSpinBox( 0, 120, 1, GRID_Black_Time ); + LABEL_Black_Inc = new TQLabel( i18n("Increment Per Move"), GRID_Black_Time ); + SPIN_Black_Inc = new TQSpinBox( 0, 120, 1, GRID_Black_Time ); SPIN_Black_Inc->setSuffix( i18n(" sec.") ); - connect( SPIN_Black_Inc, SIGNAL( valueChanged(int)), this, SLOT( slotBlackInc(int))); + connect( SPIN_Black_Inc, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotBlackInc(int))); setTCP(); setTypes(); setNames(); setImages(); - setHelp( QString( "new-match-dialog" ) ); + setHelp( TQString( "new-match-dialog" ) ); } dlg_newmatch::~dlg_newmatch() @@ -242,14 +242,14 @@ void dlg_newmatch::slotWhiteType( int type ) if( type == _TYPE_PC_ ) { EngineSelect = new dlg_selectengine( this, myResource, WHITE ); - connect( EngineSelect, SIGNAL( valuesChanged() ), this, SLOT( slotReparse() ) ); + connect( EngineSelect, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) ); EngineSelect->exec(); Param->setType( WHITE, PLAYERPC ); } else if( type == _TYPE_EMAIL_ ) { EmailSelect = new dlg_selectemail( this, myResource ); - connect( EmailSelect, SIGNAL( valuesChanged() ), this, SLOT( slotReparse() ) ); + connect( EmailSelect, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) ); EmailSelect->exec(); Param->setType( WHITE, PLAYEREMAIL ); } @@ -313,14 +313,14 @@ void dlg_newmatch::slotBlackType( int type ) if( type == _TYPE_PC_ ) { EngineSelect = new dlg_selectengine( this, myResource, BLACK ); - connect( EngineSelect, SIGNAL( valuesChanged() ), this, SLOT( slotReparse() ) ); + connect( EngineSelect, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) ); EngineSelect->exec(); Param->setType( BLACK, PLAYERPC ); } else if( type == _TYPE_EMAIL_ ) { EmailSelect = new dlg_selectemail( this, myResource ); - connect( EmailSelect, SIGNAL( valuesChanged() ), this, SLOT( slotReparse() ) ); + connect( EmailSelect, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) ); EmailSelect->exec(); Param->setType( BLACK, PLAYEREMAIL ); } |