diff options
Diffstat (limited to 'knights/setpageengines.cpp')
-rw-r--r-- | knights/setpageengines.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/knights/setpageengines.cpp b/knights/setpageengines.cpp index 938d001..afc9cb9 100644 --- a/knights/setpageengines.cpp +++ b/knights/setpageengines.cpp @@ -17,45 +17,45 @@ #include "setpageengines.moc" -setPageEngines::setPageEngines(QWidget *parent, resource *Rsrc ) : QVBoxLayout(parent) +setPageEngines::setPageEngines(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) { - Parent = parent; + Parent = tqparent; Resource = Rsrc; Engine_Dialog = NULL; Engines_ListView = NULL; - BOX_Current = new QHBox( parent ); + BOX_Current = new TQHBox( tqparent ); addWidget( BOX_Current ); /* Engines to play White */ - GROUP_White_Current = new QGroupBox( 3, + GROUP_White_Current = new TQGroupBox( 3, Qt::Vertical, i18n( "Engines to Play White" ), BOX_Current ); - White_Use_Book = new QCheckBox( i18n( "Enable Book Engine" ), GROUP_White_Current ); + White_Use_Book = new TQCheckBox( i18n( "Enable Book Engine" ), GROUP_White_Current ); Engines_White = new KComboBox ( GROUP_White_Current ); Engines_White_Book = new KComboBox ( GROUP_White_Current ); Engines_White->setEditable( FALSE ); Engines_White_Book->setEditable( FALSE ); /* Engines to play Black */ - GROUP_Black_Current = new QGroupBox( 3, + GROUP_Black_Current = new TQGroupBox( 3, Qt::Vertical, i18n( "Engines to Play Black" ), BOX_Current ); - Black_Use_Book = new QCheckBox( i18n( "Enable Book Engine" ), GROUP_Black_Current ); + Black_Use_Book = new TQCheckBox( i18n( "Enable Book Engine" ), GROUP_Black_Current ); Engines_Black = new KComboBox ( GROUP_Black_Current ); Engines_Black_Book = new KComboBox ( GROUP_Black_Current ); Engines_Black->setEditable( FALSE ); Engines_Black_Book->setEditable( FALSE ); /* Chess Engines ListView */ - GROUP_Engines = new QGroupBox( 2, + GROUP_Engines = new TQGroupBox( 2, Qt::Horizontal, i18n( "Chess Engines" ), - parent ); + tqparent ); addWidget( GROUP_Engines ); Engines_ListView = new KListView( GROUP_Engines ); @@ -69,24 +69,24 @@ setPageEngines::setPageEngines(QWidget *parent, resource *Rsrc ) : QVBoxLayout( Engines_ListView->setShowSortIndicator( TRUE ); Engines_ListView->restoreLayout( kapp->config(), "Engines_ListView" ); - Engines_ButtonBox = new KButtonBox( GROUP_Engines, Vertical ); + Engines_ButtonBox = new KButtonBox( GROUP_Engines,Qt::Vertical ); Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) ); Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) ); Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) ); - Engines_ButtonBox->layout(); + Engines_ButtonBox->tqlayout(); BuildEngineData(); - connect( Engines_Button_Add, SIGNAL( clicked() ), this, SLOT( slotEngine_Add() ) ); - connect( Engines_Button_Change, SIGNAL( clicked() ), this, SLOT( slotEngine_Modify() ) ); - connect( Engines_Button_Delete, SIGNAL( clicked() ), this, SLOT( slotEngine_Delete() ) ); - connect( Engines_White, SIGNAL( activated(int) ), this, SLOT( slotCurrent_White(int) ) ); - connect( Engines_White_Book, SIGNAL( activated(int) ), this, SLOT( slotCurrent_White_Book(int) ) ); - connect( Engines_Black, SIGNAL( activated(int) ), this, SLOT( slotCurrent_Black(int) ) ); - connect( Engines_Black_Book, SIGNAL( activated(int) ), this, SLOT( slotCurrent_Black_Book(int) ) ); - connect( White_Use_Book, SIGNAL( toggled(bool) ), this, SLOT( slotToggle_White_Book(bool) ) ); - connect( Black_Use_Book, SIGNAL( toggled(bool) ), this, SLOT( slotToggle_Black_Book(bool) ) ); - connect( Engines_ListView, SIGNAL( selectionChanged() ), this, SLOT( selectionChanged() ) ); + connect( Engines_Button_Add, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEngine_Add() ) ); + connect( Engines_Button_Change, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEngine_Modify() ) ); + connect( Engines_Button_Delete, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotEngine_Delete() ) ); + connect( Engines_White, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCurrent_White(int) ) ); + connect( Engines_White_Book, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCurrent_White_Book(int) ) ); + connect( Engines_Black, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCurrent_Black(int) ) ); + connect( Engines_Black_Book, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCurrent_Black_Book(int) ) ); + connect( White_Use_Book, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotToggle_White_Book(bool) ) ); + connect( Black_Use_Book, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotToggle_Black_Book(bool) ) ); + connect( Engines_ListView, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( selectionChanged() ) ); } setPageEngines::~setPageEngines() { @@ -108,8 +108,8 @@ void setPageEngines::BuildEngineData( void ) WHITE_BK_FLAG(FALSE), BLACK_FLAG(FALSE), BLACK_BK_FLAG(FALSE); - QStringList EngineList; - QString proto; + TQStringList EngineList; + TQString proto; int Index(0); engineList::Iterator enginesIT; @@ -140,12 +140,12 @@ void setPageEngines::BuildEngineData( void ) proto = "XBoard"; break; } - (void) new QListViewItem( Engines_ListView, + (void) new TQListViewItem( Engines_ListView, (*enginesIT).Name, proto, - QString( "%1" ).arg( (*enginesIT).Wins ), - QString( "%1" ).arg( (*enginesIT).Losses ), - QString( "%1" ).arg( (*enginesIT).Draws ) ); + TQString( "%1" ).tqarg( (*enginesIT).Wins ), + TQString( "%1" ).tqarg( (*enginesIT).Losses ), + TQString( "%1" ).tqarg( (*enginesIT).Draws ) ); EngineList.append( (*enginesIT).Name ); } @@ -207,7 +207,7 @@ void setPageEngines::BuildEngineData( void ) void setPageEngines::slotEngine_Add( void ) { Engine_Dialog = new dlg_engine( Parent, "EngineDialog", Resource ); - connect( Engine_Dialog, SIGNAL( destroyed() ), this, SLOT( BuildEngineData() ) ); + connect( Engine_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildEngineData() ) ); emit enableApply(); } /////////////////////////////////////// @@ -217,13 +217,13 @@ void setPageEngines::slotEngine_Add( void ) /////////////////////////////////////// void setPageEngines::slotEngine_Modify( void ) { - QListViewItem *Item; - QList<QListViewItem> Select = Engines_ListView->selectedItems(); + TQListViewItem *Item; + TQList<TQListViewItem> Select = Engines_ListView->selectedItems(); if( Select.isEmpty() ) return; Item = Select.first(); Engine_Dialog = new dlg_engine( Parent, "EngineDialog", Resource, Item->text(0) ); - connect( Engine_Dialog, SIGNAL( destroyed() ), this, SLOT( BuildEngineData() ) ); + connect( Engine_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildEngineData() ) ); emit enableApply(); } /////////////////////////////////////// @@ -234,8 +234,8 @@ void setPageEngines::slotEngine_Modify( void ) void setPageEngines::slotEngine_Delete( void ) { engineList::Iterator enginesIT; - QListViewItem *Item; - QList<QListViewItem> Select = Engines_ListView->selectedItems(); + TQListViewItem *Item; + TQList<TQListViewItem> Select = Engines_ListView->selectedItems(); if( Select.isEmpty() ) return; Item = Select.first(); @@ -255,7 +255,7 @@ void setPageEngines::slotEngine_Delete( void ) /////////////////////////////////////// void setPageEngines::slotCurrent_White( int Index ) { - QString Name; + TQString Name; engineList::Iterator enginesIT; Name = Engines_White->text(Index); @@ -273,7 +273,7 @@ void setPageEngines::slotCurrent_White( int Index ) /////////////////////////////////////// void setPageEngines::slotCurrent_White_Book( int Index ) { - QString Name; + TQString Name; engineList::Iterator enginesIT; Name = Engines_White_Book->text(Index); @@ -291,7 +291,7 @@ void setPageEngines::slotCurrent_White_Book( int Index ) /////////////////////////////////////// void setPageEngines::slotCurrent_Black( int Index ) { - QString Name; + TQString Name; engineList::Iterator enginesIT; Name = Engines_Black->text(Index); @@ -309,7 +309,7 @@ void setPageEngines::slotCurrent_Black( int Index ) /////////////////////////////////////// void setPageEngines::slotCurrent_Black_Book( int Index ) { - QString Name; + TQString Name; engineList::Iterator enginesIT; Name = Engines_Black_Book->text(Index); |