diff options
Diffstat (limited to 'knights/setpageservers.cpp')
-rw-r--r-- | knights/setpageservers.cpp | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/knights/setpageservers.cpp b/knights/setpageservers.cpp index 8d570a1..e2f95fb 100644 --- a/knights/setpageservers.cpp +++ b/knights/setpageservers.cpp @@ -16,18 +16,18 @@ ***************************************************************************/ #include "setpageservers.moc" -#include <qstyle.h> +#include <tqstyle.h> #include <kicontheme.h> -setPageServers::setPageServers(QWidget *parent, resource *Rsrc ) : QVBoxLayout(parent) +setPageServers::setPageServers(TQWidget *tqparent, resource *Rsrc ) : TQVBoxLayout(tqparent) { - QStyle& Style = QApplication::style(); + TQStyle& Style = TQApplication::tqstyle(); margin = Style.defaultFrameWidth(); Resource = Rsrc; Servers_ListView = NULL; resetServer = FALSE; - TabParent = new QTabWidget( parent, "setPageDisplay" ); + TabParent = new TQTabWidget( tqparent, "setPageDisplay" ); initTab1(); initTab2(); addWidget( TabParent ); @@ -47,11 +47,11 @@ setPageServers::~setPageServers() /////////////////////////////////////// void setPageServers::initTab1( void ) { - Tab1 = new QVBox( TabParent ); + Tab1 = new TQVBox( TabParent ); Tab1->setMargin( margin ); /* Current Server */ - GROUP_Current = new QGroupBox( 1, + GROUP_Current = new TQGroupBox( 1, Qt::Vertical, i18n( "Current Server" ), Tab1 ); @@ -60,7 +60,7 @@ void setPageServers::initTab1( void ) Servers->setEditable( FALSE ); /* Chess Servers ListView */ - GROUP_Servers = new QGroupBox( 2, + GROUP_Servers = new TQGroupBox( 2, Qt::Horizontal, i18n( "Chess Servers" ), Tab1 ); @@ -73,19 +73,19 @@ void setPageServers::initTab1( void ) Servers_ListView->setShowSortIndicator( TRUE ); Servers_ListView->restoreLayout( kapp->config(), "Servers_ListView" ); - Servers_ButtonBox = new KButtonBox( GROUP_Servers, Vertical ); + Servers_ButtonBox = new KButtonBox( GROUP_Servers,Qt::Vertical ); Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) ); Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) ); Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) ); - Servers_ButtonBox->layout(); + Servers_ButtonBox->tqlayout(); BuildServerData(); - connect( Servers_Button_Add, SIGNAL( clicked() ), this, SLOT( slotServer_Add() ) ); - connect( Servers_Button_Change, SIGNAL( clicked() ), this, SLOT( slotServer_Modify() ) ); - connect( Servers_Button_Delete, SIGNAL( clicked() ), this, SLOT( slotServer_Delete() ) ); - connect( Servers, SIGNAL( activated(int) ), this, SLOT( slotCurrent(int) ) ); - connect( Servers_ListView, SIGNAL( selectionChanged() ), this, SLOT( selectionChanged() ) ); + connect( Servers_Button_Add, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotServer_Add() ) ); + connect( Servers_Button_Change, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotServer_Modify() ) ); + connect( Servers_Button_Delete, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotServer_Delete() ) ); + connect( Servers, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCurrent(int) ) ); + connect( Servers_ListView, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( selectionChanged() ) ); TabParent->addTab( Tab1, i18n("Servers") ); } @@ -96,12 +96,12 @@ void setPageServers::initTab1( void ) /////////////////////////////////////// void setPageServers::initTab2( void ) { - QStringList FilterLevels; - Tab2 = new QVBox( TabParent ); + TQStringList FilterLevels; + Tab2 = new TQVBox( TabParent ); Tab2->setMargin( margin ); /* Current Profanity Filter */ - BOX_Profanity = new QGroupBox( 1, + BOX_Profanity = new TQGroupBox( 1, Qt::Vertical, i18n( "Profanity Filter" ), Tab2 ); @@ -110,44 +110,44 @@ void setPageServers::initTab2( void ) FilterLevels << i18n("Filter Everything") << i18n("Default") << "---" << "---" << "---" << i18n("No Filtering"); COMBO_Profanity->insertStringList( FilterLevels ); COMBO_Profanity->setCurrentItem( Resource->OPTION_Profanity ); - connect( COMBO_Profanity, SIGNAL( activated(int) ), this, SLOT( slot_Profanity(int) ) ); + connect( COMBO_Profanity, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slot_Profanity(int) ) ); - BUTTON_Auto_Close_ICS = new QCheckBox( i18n( "Automatically Close Previous ICS Match" ), Tab2 ); + BUTTON_Auto_Close_ICS = new TQCheckBox( i18n( "Automatically Close Previous ICS Match" ), Tab2 ); BUTTON_Auto_Close_ICS->setChecked( Resource->OPTION_Auto_Close_Last_ICS ); - connect( BUTTON_Auto_Close_ICS, SIGNAL( toggled(bool) ), - this, SLOT( slot_Auto_Close_ICS(bool) ) ); + connect( BUTTON_Auto_Close_ICS, TQT_SIGNAL( toggled(bool) ), + this, TQT_SLOT( slot_Auto_Close_ICS(bool) ) ); - BUTTON_Private = new QCheckBox( i18n( "Private Matches" ), Tab2 ); + BUTTON_Private = new TQCheckBox( i18n( "Private Matches" ), Tab2 ); BUTTON_Private->setChecked( Resource->OPTION_Private ); - connect( BUTTON_Private, SIGNAL( toggled(bool) ), this, SLOT( slot_Private(bool) ) ); + connect( BUTTON_Private, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Private(bool) ) ); - BUTTON_Premove = new QCheckBox( i18n( "Enable Premove" ), Tab2 ); + BUTTON_Premove = new TQCheckBox( i18n( "Enable Premove" ), Tab2 ); BUTTON_Premove->setChecked( Resource->OPTION_Premove ); - connect( BUTTON_Premove, SIGNAL( toggled(bool) ), this, SLOT( slot_Premove(bool) ) ); + connect( BUTTON_Premove, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Premove(bool) ) ); - BUTTON_Kibitz = new QCheckBox( i18n( "Enable Kibitzes" ), Tab2 ); + BUTTON_Kibitz = new TQCheckBox( i18n( "Enable Kibitzes" ), Tab2 ); BUTTON_Kibitz->setChecked( Resource->OPTION_Kibitz ); - connect( BUTTON_Kibitz, SIGNAL( toggled(bool) ), this, SLOT( slot_Kibitz(bool) ) ); + connect( BUTTON_Kibitz, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Kibitz(bool) ) ); - BUTTON_Tell = new QCheckBox( i18n( "Enable Unregistered Tells" ), Tab2 ); + BUTTON_Tell = new TQCheckBox( i18n( "Enable Unregistered Tells" ), Tab2 ); BUTTON_Tell->setChecked( Resource->OPTION_Tell ); - connect( BUTTON_Tell, SIGNAL( toggled(bool) ), this, SLOT( slot_Tell(bool) ) ); + connect( BUTTON_Tell, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Tell(bool) ) ); - BUTTON_Shout = new QCheckBox( i18n( "Enable Shouts" ), Tab2 ); + BUTTON_Shout = new TQCheckBox( i18n( "Enable Shouts" ), Tab2 ); BUTTON_Shout->setChecked( Resource->OPTION_Shout ); - connect( BUTTON_Shout, SIGNAL( toggled(bool) ), this, SLOT( slot_Shout(bool) ) ); + connect( BUTTON_Shout, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Shout(bool) ) ); - BUTTON_Seek = new QCheckBox( i18n( "Enable Seeks" ), Tab2 ); + BUTTON_Seek = new TQCheckBox( i18n( "Enable Seeks" ), Tab2 ); BUTTON_Seek->setChecked( Resource->OPTION_Seek ); - connect( BUTTON_Seek, SIGNAL( toggled(bool) ), this, SLOT( slot_Seek(bool) ) ); + connect( BUTTON_Seek, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Seek(bool) ) ); - BOX_SeekTimer = new QHBox( Tab2 ); - BUTTON_SeekTimer = new QSpinBox( 3, 120, 1, BOX_SeekTimer ); + BOX_SeekTimer = new TQHBox( Tab2 ); + BUTTON_SeekTimer = new TQSpinBox( 3, 120, 1, BOX_SeekTimer ); BUTTON_SeekTimer->setSuffix( i18n(" sec.") ); BUTTON_SeekTimer->setValue( Resource->Seek_Timer / 10 ); - connect( BUTTON_SeekTimer, SIGNAL( valueChanged(int) ), - this, SLOT( slot_SeekTimer(int) ) ); - LABEL_SeekTimer = new QLabel( i18n("Seconds Between Seek Updates"), BOX_SeekTimer ); + connect( BUTTON_SeekTimer, TQT_SIGNAL( valueChanged(int) ), + this, TQT_SLOT( slot_SeekTimer(int) ) ); + LABEL_SeekTimer = new TQLabel( i18n("Seconds Between Seek Updates"), BOX_SeekTimer ); TabParent->addTab( Tab2, i18n("Options") ); } @@ -159,7 +159,7 @@ void setPageServers::initTab2( void ) void setPageServers::BuildServerData( void ) { bool SERVER_FLAG(FALSE); - QStringList ServerList; + TQStringList ServerList; int Index(0); serverList::Iterator serversIT; @@ -170,7 +170,7 @@ void setPageServers::BuildServerData( void ) if( Resource->servers.isEmpty() ) return; for ( serversIT = Resource->servers.begin(); serversIT != Resource->servers.end(); ++serversIT ) { - (void) new QListViewItem( Servers_ListView, + (void) new TQListViewItem( Servers_ListView, (*serversIT).Name, (*serversIT).URL ); ServerList.append( (*serversIT).Name ); @@ -204,7 +204,7 @@ void setPageServers::BuildServerData( void ) void setPageServers::slotServer_Add( void ) { Server_Dialog = new dlg_server( TabParent, "ServerDialog", Resource ); - connect( Server_Dialog, SIGNAL( destroyed() ), this, SLOT( BuildServerData() ) ); + connect( Server_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildServerData() ) ); emit enableApply(); } /////////////////////////////////////// @@ -214,13 +214,13 @@ void setPageServers::slotServer_Add( void ) /////////////////////////////////////// void setPageServers::slotServer_Modify( void ) { - QListViewItem *Item; - QList<QListViewItem> Select = Servers_ListView->selectedItems(); + TQListViewItem *Item; + TQList<TQListViewItem> Select = Servers_ListView->selectedItems(); if( Select.isEmpty() ) return; Item = Select.first(); Server_Dialog = new dlg_server( TabParent, "ServerDialog", Resource, Item->text(0) ); - connect( Server_Dialog, SIGNAL( destroyed() ), this, SLOT( BuildServerData() ) ); + connect( Server_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildServerData() ) ); emit enableApply(); } /////////////////////////////////////// @@ -231,8 +231,8 @@ void setPageServers::slotServer_Modify( void ) void setPageServers::slotServer_Delete( void ) { serverList::Iterator serversIT; - QListViewItem *Item; - QList<QListViewItem> Select = Servers_ListView->selectedItems(); + TQListViewItem *Item; + TQList<TQListViewItem> Select = Servers_ListView->selectedItems(); if( Select.isEmpty() ) return; Item = Select.first(); @@ -252,7 +252,7 @@ void setPageServers::slotServer_Delete( void ) /////////////////////////////////////// void setPageServers::slotCurrent( int Index ) { - QString Name; + TQString Name; serverList::Iterator serversIT; Name = Servers->text(Index); |