summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-28 16:38:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-31 22:24:54 +0900
commitb4b4994c9863545aa635db0931dc3eefab8c948d (patch)
treee7b68b2081d7f379ec279b5e99f42769c6d2eca8
parentb8335a4a3527cea739097fb2b9c014b0b8b1d6fa (diff)
downloadknights-b4b4994c9863545aa635db0931dc3eefab8c948d.tar.gz
knights-b4b4994c9863545aa635db0931dc3eefab8c948d.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ff0d52cab681a2154a1462935a5d9e4d6ebfe34e)
-rw-r--r--knights/accel.cpp26
-rw-r--r--knights/board_2d.cpp6
-rw-r--r--knights/challenge_graph.cpp20
-rw-r--r--knights/console.cpp22
-rw-r--r--knights/core.cpp30
-rw-r--r--knights/dlg_challenge.cpp14
-rw-r--r--knights/dlg_engine.cpp6
-rw-r--r--knights/dlg_login.cpp4
-rw-r--r--knights/dlg_newmatch.cpp24
-rw-r--r--knights/dlg_promote.cpp8
-rw-r--r--knights/dlg_selectemail.cpp2
-rw-r--r--knights/dlg_selectengine.cpp6
-rw-r--r--knights/dlg_server.cpp18
-rw-r--r--knights/dlg_settings.cpp12
-rw-r--r--knights/io_engine.cpp10
-rw-r--r--knights/io_internet.cpp34
-rw-r--r--knights/knights.cpp84
-rw-r--r--knights/knightstextview.cpp18
-rw-r--r--knights/list_pgn.cpp2
-rw-r--r--knights/main.cpp4
-rw-r--r--knights/match.cpp14
-rw-r--r--knights/match_param.cpp2
-rw-r--r--knights/pgn.cpp6
-rw-r--r--knights/proto_xboard.cpp2
-rw-r--r--knights/setpageaudio.cpp14
-rw-r--r--knights/setpagedisplay.cpp68
-rw-r--r--knights/setpageengines.cpp24
-rw-r--r--knights/setpagegeneral.cpp34
-rw-r--r--knights/setpageservers.cpp36
-rw-r--r--knights/tab_seeklist.cpp24
-rw-r--r--knights/tabbox.cpp12
-rw-r--r--knights/tabmanager.cpp6
-rw-r--r--knights/tabpage.cpp4
-rw-r--r--knights/thinbuttons.cpp6
-rw-r--r--knights/wiz_setup.cpp4
35 files changed, 303 insertions, 303 deletions
diff --git a/knights/accel.cpp b/knights/accel.cpp
index bed8bb7..6fa5043 100644
--- a/knights/accel.cpp
+++ b/knights/accel.cpp
@@ -44,17 +44,17 @@ Accel::~Accel()
}
void Accel::setTarget( TQObject *target )
{
- connectItem( "Board Down" , target, TQT_SIGNAL( board_down() ) );
- connectItem( "Board Up" , target, TQT_SIGNAL( board_up() ) );
- connectItem( "Previous Move" , target, TQT_SIGNAL( move_prev() ) );
- connectItem( "Next Move" , target, TQT_SIGNAL( move_next() ) );
- connectItem( "Page Up", target, TQT_SIGNAL( page_up() ) );
- connectItem( "Page Down", target, TQT_SIGNAL( page_down() ) );
- connectItem( "Last History Item", target, TQT_SIGNAL( history_prev() ) );
- connectItem( "Next History Item", target, TQT_SIGNAL( history_next() ) );
- connectItem( "Tell Reply", target, TQT_SIGNAL( reply_tell() ) );
- connectItem( "Channel Reply", target, TQT_SIGNAL( reply_channel() ) );
- connectItem( "Enter Text", target, TQT_SIGNAL( focus() ) );
- connectItem( "Kibitz", target, TQT_SIGNAL( kibitz() ) );
- connectItem( "Whisper", target, TQT_SIGNAL( whisper() ) );
+ connectItem( "Board Down" , target, TQ_SIGNAL( board_down() ) );
+ connectItem( "Board Up" , target, TQ_SIGNAL( board_up() ) );
+ connectItem( "Previous Move" , target, TQ_SIGNAL( move_prev() ) );
+ connectItem( "Next Move" , target, TQ_SIGNAL( move_next() ) );
+ connectItem( "Page Up", target, TQ_SIGNAL( page_up() ) );
+ connectItem( "Page Down", target, TQ_SIGNAL( page_down() ) );
+ connectItem( "Last History Item", target, TQ_SIGNAL( history_prev() ) );
+ connectItem( "Next History Item", target, TQ_SIGNAL( history_next() ) );
+ connectItem( "Tell Reply", target, TQ_SIGNAL( reply_tell() ) );
+ connectItem( "Channel Reply", target, TQ_SIGNAL( reply_channel() ) );
+ connectItem( "Enter Text", target, TQ_SIGNAL( focus() ) );
+ connectItem( "Kibitz", target, TQ_SIGNAL( kibitz() ) );
+ connectItem( "Whisper", target, TQ_SIGNAL( whisper() ) );
}
diff --git a/knights/board_2d.cpp b/knights/board_2d.cpp
index d16236a..85bd6e4 100644
--- a/knights/board_2d.cpp
+++ b/knights/board_2d.cpp
@@ -145,7 +145,7 @@ void board_2d::drawMove( const ChessMove &chessMove, const bool &reverse )
/* Show Animation */
if( myResource->OPTION_Animate_Moves && !lastMoveWasDrag && isVisible() )
{
- TQTimer::singleShot( 0, this, TQT_SLOT( updateSprites() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( updateSprites() ) );
sprite *spritePtr = new sprite;
spritePtr->Steps = 1;
spritePtr->Restore = FALSE;
@@ -206,7 +206,7 @@ void board_2d::drawMove( const ChessMove &chessMove, const bool &reverse )
}
///////////////////////////////////////
//
-// board_2d::resizeBoard( TQT_SLOT )
+// board_2d::resizeBoard( TQ_SLOT )
//
///////////////////////////////////////
void board_2d::resizeBoard( void )
@@ -758,7 +758,7 @@ void board_2d::updateSprites( void )
if( spritePtr == DragSprite )
continue;
- TQTimer::singleShot( 0, this, TQT_SLOT( updateSprites() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( updateSprites() ) );
if( spritePtr->Steps < MAX_STEPS )
{
double factor = ( 1.0 / (double)MAX_STEPS ) * (double)spritePtr->Steps;
diff --git a/knights/challenge_graph.cpp b/knights/challenge_graph.cpp
index 04dc3c0..2e70017 100644
--- a/knights/challenge_graph.cpp
+++ b/knights/challenge_graph.cpp
@@ -61,8 +61,8 @@ Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *
myStatusBar = new TQLabel( this, "Challenge_Graph_Status_Bar" );
myView = new Challenge_Graph_View( *graph, this, "Challenge_Graph_View", 0, myStatusBar );
- TQObject::connect(myView, TQT_SIGNAL(leftClick(int)), TQT_SLOT(selectMatch(int)));
- TQObject::connect(myView, TQT_SIGNAL(rightClick(Challenge_Game*, const TQPoint&)), TQT_SLOT(display_menuSeek(Challenge_Game*, const TQPoint&)));
+ TQObject::connect(myView, TQ_SIGNAL(leftClick(int)), TQ_SLOT(selectMatch(int)));
+ TQObject::connect(myView, TQ_SIGNAL(rightClick(Challenge_Game*, const TQPoint&)), TQ_SLOT(display_menuSeek(Challenge_Game*, const TQPoint&)));
/* Setup Style for myStatusBar */
@@ -72,17 +72,17 @@ Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *
menuSeek = new TDEPopupMenu( this );
menuSeek->setCheckable( TRUE );
- menuSeek->insertItem( i18n("Seek Matches"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_SEEK );
+ menuSeek->insertItem( i18n("Seek Matches"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_SEEK );
menuSeek->insertSeparator();
- menuSeek->insertItem( i18n("Accept This Match"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ACCEPT_MATCH );
- menuSeek->insertItem( i18n("Tell..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_TELL );
- menuSeek->insertItem( i18n("Assess..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ASSESS );
- menuSeek->insertItem( i18n("Player Info"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_FINGER );
+ menuSeek->insertItem( i18n("Accept This Match"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_ACCEPT_MATCH );
+ menuSeek->insertItem( i18n("Tell..."), this, TQ_SLOT( menuFunct(int) ), 0, MENU_TELL );
+ menuSeek->insertItem( i18n("Assess..."), this, TQ_SLOT( menuFunct(int) ), 0, MENU_ASSESS );
+ menuSeek->insertItem( i18n("Player Info"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_FINGER );
menuSeek->insertItem( TQIconSet( myResource->LoadIcon( TQString("history"), TDEIcon::Small ) ),
- i18n("Player History"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_HISTORY );
+ i18n("Player History"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_HISTORY );
menuSeek->insertSeparator();
- menuSeek->insertItem( i18n("Add to Friends"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_NOTIFY );
- menuSeek->insertItem( i18n("Ignore This Player"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_CENSOR );
+ menuSeek->insertItem( i18n("Add to Friends"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_NOTIFY );
+ menuSeek->insertItem( i18n("Ignore This Player"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_CENSOR );
menuSeek->setItemChecked( MENU_SEEK, FALSE );
}
///////////////////////////////////////
diff --git a/knights/console.cpp b/knights/console.cpp
index 443a1cc..5ae6d20 100644
--- a/knights/console.cpp
+++ b/knights/console.cpp
@@ -41,17 +41,17 @@ Console::Console(TQWidget *parent,
setBG();
myTextView->setStaticBackground( FALSE );
- connect( myLineEdit, TQT_SIGNAL( returnPressed( const TQString& ) ), this, TQT_SLOT( getText( const TQString& ) ) );
- connect( myResource->myAccel, TQT_SIGNAL( history_prev() ), this, TQT_SLOT( historyBackward() ) );
- connect( myResource->myAccel, TQT_SIGNAL( history_next() ), this, TQT_SLOT( historyForward() ) );
- connect( myResource->myAccel, TQT_SIGNAL( page_up() ), this, TQT_SLOT( pageUp() ) );
- connect( myResource->myAccel, TQT_SIGNAL( page_down() ), this, TQT_SLOT( pageDown() ) );
- connect( myResource->myAccel, TQT_SIGNAL( kibitz() ), this, TQT_SLOT( kibitz() ) );
- connect( myResource->myAccel, TQT_SIGNAL( whisper() ), this, TQT_SLOT( whisper() ) );
- connect( myResource->myAccel, TQT_SIGNAL( reply_tell() ), this, TQT_SLOT( replyPrivate() ) );
- connect( myResource->myAccel, TQT_SIGNAL( reply_channel() ), this, TQT_SLOT( replyChannel() ) );
- connect( myResource->myAccel, TQT_SIGNAL( focus() ), this, TQT_SLOT( getFocus() ) );
- connect( myResource->myAccel, TQT_SIGNAL( focus( const TQChar& ) ), this, TQT_SLOT( getFocus( const TQChar& ) ) );
+ connect( myLineEdit, TQ_SIGNAL( returnPressed( const TQString& ) ), this, TQ_SLOT( getText( const TQString& ) ) );
+ connect( myResource->myAccel, TQ_SIGNAL( history_prev() ), this, TQ_SLOT( historyBackward() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( history_next() ), this, TQ_SLOT( historyForward() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( page_up() ), this, TQ_SLOT( pageUp() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( page_down() ), this, TQ_SLOT( pageDown() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( kibitz() ), this, TQ_SLOT( kibitz() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( whisper() ), this, TQ_SLOT( whisper() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( reply_tell() ), this, TQ_SLOT( replyPrivate() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( reply_channel() ), this, TQ_SLOT( replyChannel() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( focus() ), this, TQ_SLOT( getFocus() ) );
+ connect( myResource->myAccel, TQ_SIGNAL( focus( const TQChar& ) ), this, TQ_SLOT( getFocus( const TQChar& ) ) );
myTextView->show();
myLineEdit->show();
diff --git a/knights/core.cpp b/knights/core.cpp
index 2b72490..08711b6 100644
--- a/knights/core.cpp
+++ b/knights/core.cpp
@@ -47,8 +47,8 @@ core::core(TQWidget *parent, const char *name, resource *Rsrc ) : TQWidget(paren
myButtonGroup = new thinbuttons( this, "ButtonGroup", myResource );
myButtonGroup->show();
- connect( myButtonGroup, TQT_SIGNAL( leftClick(int) ), this, TQT_SLOT( setMatch(int) ) );
- connect( myButtonGroup, TQT_SIGNAL( menuItemSelected(int,int) ), this, TQT_SLOT( thinButtonMenu(int,int) ) );
+ connect( myButtonGroup, TQ_SIGNAL( leftClick(int) ), this, TQ_SLOT( setMatch(int) ) );
+ connect( myButtonGroup, TQ_SIGNAL( menuItemSelected(int,int) ), this, TQ_SLOT( thinButtonMenu(int,int) ) );
myCoreClock.start( 100, FALSE );
resize();
@@ -85,7 +85,7 @@ void core::createNewIO( int type, int ID, int side, int str )
internetioPtr = new io_internet( this, myResource );
myIOMap.add( ID, internetioPtr );
internetioPtr->setID( ID );
- connect( internetioPtr, TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( command2Match( const Command& ) ) );
+ connect( internetioPtr, TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( command2Match( const Command& ) ) );
}
else
{
@@ -110,7 +110,7 @@ void core::createNewIO( int type, int ID, int side, int str )
internetioPtr = new io_internet( this, myResource );
myIOMap.add( ID, internetioPtr );
internetioPtr->setID( ID );
- connect( internetioPtr, TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( command2Match( const Command& ) ) );
+ connect( internetioPtr, TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( command2Match( const Command& ) ) );
}
else
{
@@ -137,7 +137,7 @@ void core::createNewIO( int type, int ID, int side, int str )
engineioPtr = new io_engine( this, myResource );
myIOMap.add( ID, engineioPtr );
engineioPtr->setID( ID );
- connect( engineioPtr, TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( command2Match( const Command& ) ) );
+ connect( engineioPtr, TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( command2Match( const Command& ) ) );
engineioPtr->Start( side );
engineioPtr->recvCMD( Command( ID, CMD_Set_Difficulty, TQString().setNum( 1 << str ) ) );
break;
@@ -146,7 +146,7 @@ void core::createNewIO( int type, int ID, int side, int str )
// ioEmailPtr = new io_email( this, myResource );
// myIOMap.add( ID, ioEmailPtr );
// ioEmailPtr->setID( ID );
-// connect( ioEmailPtr, TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( command2Match( const Command& ) ) );
+// connect( ioEmailPtr, TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( command2Match( const Command& ) ) );
break;
default:
/* No IO needed */
@@ -180,8 +180,8 @@ match* core::newMatch( match_param* param )
createNewIO( param->type(BLACK), newID, BLACK, param->strength(BLACK) );
/* Connect Signals */
- connect( match_ptr, TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( command2IO( const Command& ) ) );
- connect( &myCoreClock, TQT_SIGNAL( timeout() ), match_ptr, TQT_SLOT( tick() ) );
+ connect( match_ptr, TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( command2IO( const Command& ) ) );
+ connect( &myCoreClock, TQ_SIGNAL( timeout() ), match_ptr, TQ_SLOT( tick() ) );
/* Set this new match as the current match */
setMatch( newID );
@@ -206,9 +206,9 @@ void core::setMatch( int ID )
if( currentMatch != NULL )
{
currentMatch->setCurrent( FALSE );
- disconnect( currentMatch, TQT_SIGNAL( setClocks() ), this, TQT_SLOT( slot_setClocks() ) );
- disconnect( currentMatch, TQT_SIGNAL( setStatusBar( const int&, const TQString& ) ), this, TQT_SLOT( slot_setStatusBar( const int&, const TQString& ) ) );
- disconnect( currentMatch, TQT_SIGNAL( setNotation() ), this, TQT_SLOT( slot_setNotation() ) );
+ disconnect( currentMatch, TQ_SIGNAL( setClocks() ), this, TQ_SLOT( slot_setClocks() ) );
+ disconnect( currentMatch, TQ_SIGNAL( setStatusBar( const int&, const TQString& ) ), this, TQ_SLOT( slot_setStatusBar( const int&, const TQString& ) ) );
+ disconnect( currentMatch, TQ_SIGNAL( setNotation() ), this, TQ_SLOT( slot_setNotation() ) );
currentMatch->setVisibility( FALSE );
}
/*
@@ -217,9 +217,9 @@ void core::setMatch( int ID )
currentMatch = myMatchMap.find( ID );
currentMatch->setVisibility( TRUE );
myButtonGroup->setButton( ID );
- connect( currentMatch, TQT_SIGNAL( setClocks() ), this, TQT_SLOT( slot_setClocks() ) );
- connect( currentMatch, TQT_SIGNAL( setStatusBar( const int&, const TQString& ) ), this, TQT_SLOT( slot_setStatusBar( const int&, const TQString& ) ) );
- connect( currentMatch, TQT_SIGNAL( setNotation() ), this, TQT_SLOT( slot_setNotation() ) );
+ connect( currentMatch, TQ_SIGNAL( setClocks() ), this, TQ_SLOT( slot_setClocks() ) );
+ connect( currentMatch, TQ_SIGNAL( setStatusBar( const int&, const TQString& ) ), this, TQ_SLOT( slot_setStatusBar( const int&, const TQString& ) ) );
+ connect( currentMatch, TQ_SIGNAL( setNotation() ), this, TQ_SLOT( slot_setNotation() ) );
currentMatch->setCurrent( TRUE );
emit requestResize();
emit initMatch();
@@ -622,7 +622,7 @@ bool core::load( const TQString &IncURL )
{
listPGN = new list_pgn( 0, "listPGN" );
myResource->tabManager->addTab( listPGN, IncURL.section( '/', -1 ) );
- connect( listPGN, TQT_SIGNAL( selected( const TQString&, const int& ) ), this, TQT_SLOT( load( const TQString&, const int& ) ) );
+ connect( listPGN, TQ_SIGNAL( selected( const TQString&, const int& ) ), this, TQ_SLOT( load( const TQString&, const int& ) ) );
listPGN->setURL( IncURL );
return TRUE;
}
diff --git a/knights/dlg_challenge.cpp b/knights/dlg_challenge.cpp
index f90ce50..3c5ec8a 100644
--- a/knights/dlg_challenge.cpp
+++ b/knights/dlg_challenge.cpp
@@ -125,13 +125,13 @@ void dlg_challenge::setValues( const TQString &string, const TQString &local )
// BOX_Black->setEnabled( FALSE );
// BUTTON_TimeOdds->setChecked( FALSE );
- connect( COMBO_Rated, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slot_changed(int) ) );
- connect( BOX_WhiteBase, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_changed(int) ) );
- connect( BOX_WhiteInc, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_changed(int) ) );
- connect( BOX_BlackBase, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_changed(int) ) );
- connect( BOX_BlackInc, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_changed(int) ) );
- connect( BUTTON_TimeOdds, TQT_SIGNAL( stateChanged(int) ), this, TQT_SLOT( slot_changed(int) ) );
- connect( BUTTON_TimeOdds, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_timeOdds(bool) ) );
+ connect( COMBO_Rated, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slot_changed(int) ) );
+ connect( BOX_WhiteBase, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slot_changed(int) ) );
+ connect( BOX_WhiteInc, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slot_changed(int) ) );
+ connect( BOX_BlackBase, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slot_changed(int) ) );
+ connect( BOX_BlackInc, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slot_changed(int) ) );
+ connect( BUTTON_TimeOdds, TQ_SIGNAL( stateChanged(int) ), this, TQ_SLOT( slot_changed(int) ) );
+ connect( BUTTON_TimeOdds, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slot_timeOdds(bool) ) );
}
TQString dlg_challenge::values( void )
diff --git a/knights/dlg_engine.cpp b/knights/dlg_engine.cpp
index 34a941e..09e23a4 100644
--- a/knights/dlg_engine.cpp
+++ b/knights/dlg_engine.cpp
@@ -106,9 +106,9 @@ dlg_engine::dlg_engine(TQWidget *parent, const char *name, resource *Rsrc, TQStr
setHelp( TQString( "configure-engines" ) );
/* Make Connections */
- connect( BUTTON_Filename, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotFilenameDialog() ) );
- connect( BUTTON_LogFile, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotLogFileDialog() ) );
- connect( EDIT_Protocol, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotProtocol(int) ) );
+ connect( BUTTON_Filename, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotFilenameDialog() ) );
+ connect( BUTTON_LogFile, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotLogFileDialog() ) );
+ connect( EDIT_Protocol, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotProtocol(int) ) );
show();
}
///////////////////////////////////////
diff --git a/knights/dlg_login.cpp b/knights/dlg_login.cpp
index 415c769..d468c12 100644
--- a/knights/dlg_login.cpp
+++ b/knights/dlg_login.cpp
@@ -46,7 +46,7 @@ dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) :
counter++;
}
/* connect to right signal to the combobox */
- connect( COMBO_Select_Server, TQT_SIGNAL( activated(const TQString &) ), this, TQT_SLOT( slotUpdateUser(const TQString &) ) );
+ connect( COMBO_Select_Server, TQ_SIGNAL( activated(const TQString &) ), this, TQ_SLOT( slotUpdateUser(const TQString &) ) );
GROUP_Username = new TQGroupBox( 1, TQt::Horizontal, i18n("User info"), BOX_Parent);
BOX_ALIGN = new TQHBox( GROUP_Username );
@@ -65,7 +65,7 @@ dlg_login::dlg_login(TQWidget *parent, const char *name, resource *rsrc) :
EDIT_Password->setEchoMode( TQLineEdit::Password );
- connect(CHECKBOX_GUEST, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotGuestToggle(bool)));
+ connect(CHECKBOX_GUEST, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotGuestToggle(bool)));
/* Init the buttons */
showButtonCancel( TRUE );
diff --git a/knights/dlg_newmatch.cpp b/knights/dlg_newmatch.cpp
index 7d7b6af..aaecd69 100644
--- a/knights/dlg_newmatch.cpp
+++ b/knights/dlg_newmatch.cpp
@@ -59,14 +59,14 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
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)));
+ connect( GROUP_White_Type, TQ_SIGNAL( clicked(int)), this, TQ_SLOT( slotWhiteType(int)));
GROUP_Black_Type = new TQButtonGroup( 3, TQt::Vertical, BOX_Black_Detail );
GROUP_Black_Type->setExclusive( TRUE );
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)));
+ connect( GROUP_Black_Type, TQ_SIGNAL( clicked(int)), this, TQ_SLOT( slotBlackType(int)));
/* Disable Unconfigured Types */
if( !myResource->engines.count() )
@@ -85,34 +85,34 @@ KDialogBase(parent, name, TRUE, i18n("Start a New Match"), Cancel|Ok|Help, Ok, T
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, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteBase(int)));
+ connect( SPIN_White_Base, TQ_SIGNAL( valueChanged(int)), this, TQ_SLOT( slotWhiteBase(int)));
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, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteMoves(int)));
+ connect( SPIN_White_Moves, TQ_SIGNAL( valueChanged(int)), this, TQ_SLOT( slotWhiteMoves(int)));
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, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotWhiteInc(int)));
+ connect( SPIN_White_Inc, TQ_SIGNAL( valueChanged(int)), this, TQ_SLOT( slotWhiteInc(int)));
/* Time for Black */
GRID_Black_Time = new TQGrid( 2, TQt::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, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotBlackBase(int)));
+ connect( SPIN_Black_Base, TQ_SIGNAL( valueChanged(int)), this, TQ_SLOT( slotBlackBase(int)));
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, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotBlackMoves(int)));
+ connect( SPIN_Black_Moves, TQ_SIGNAL( valueChanged(int)), this, TQ_SLOT( slotBlackMoves(int)));
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, TQT_SIGNAL( valueChanged(int)), this, TQT_SLOT( slotBlackInc(int)));
+ connect( SPIN_Black_Inc, TQ_SIGNAL( valueChanged(int)), this, TQ_SLOT( slotBlackInc(int)));
setTCP();
setTypes();
@@ -242,14 +242,14 @@ void dlg_newmatch::slotWhiteType( int type )
if( type == _TYPE_PC_ )
{
EngineSelect = new dlg_selectengine( this, myResource, WHITE );
- connect( EngineSelect, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) );
+ connect( EngineSelect, TQ_SIGNAL( valuesChanged() ), this, TQ_SLOT( slotReparse() ) );
EngineSelect->exec();
Param->setType( WHITE, PLAYERPC );
}
else if( type == _TYPE_EMAIL_ )
{
EmailSelect = new dlg_selectemail( this, myResource );
- connect( EmailSelect, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) );
+ connect( EmailSelect, TQ_SIGNAL( valuesChanged() ), this, TQ_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, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) );
+ connect( EngineSelect, TQ_SIGNAL( valuesChanged() ), this, TQ_SLOT( slotReparse() ) );
EngineSelect->exec();
Param->setType( BLACK, PLAYERPC );
}
else if( type == _TYPE_EMAIL_ )
{
EmailSelect = new dlg_selectemail( this, myResource );
- connect( EmailSelect, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( slotReparse() ) );
+ connect( EmailSelect, TQ_SIGNAL( valuesChanged() ), this, TQ_SLOT( slotReparse() ) );
EmailSelect->exec();
Param->setType( BLACK, PLAYEREMAIL );
}
diff --git a/knights/dlg_promote.cpp b/knights/dlg_promote.cpp
index 23a930d..5f88e31 100644
--- a/knights/dlg_promote.cpp
+++ b/knights/dlg_promote.cpp
@@ -93,10 +93,10 @@ void dlg_promote::Init( bool Army )
Description->setText( i18n( "Promote your pawn to..." ) );
Description->show();
- connect( Queen, TQT_SIGNAL( clicked() ), this, TQT_SLOT( queenClick() ) );
- connect( Bishop, TQT_SIGNAL( clicked() ), this, TQT_SLOT( bishopClick() ) );
- connect( Knight, TQT_SIGNAL( clicked() ), this, TQT_SLOT( knightClick() ) );
- connect( Rook, TQT_SIGNAL( clicked() ), this, TQT_SLOT( rookClick() ) );
+ connect( Queen, TQ_SIGNAL( clicked() ), this, TQ_SLOT( queenClick() ) );
+ connect( Bishop, TQ_SIGNAL( clicked() ), this, TQ_SLOT( bishopClick() ) );
+ connect( Knight, TQ_SIGNAL( clicked() ), this, TQ_SLOT( knightClick() ) );
+ connect( Rook, TQ_SIGNAL( clicked() ), this, TQ_SLOT( rookClick() ) );
Queen->setFocus();
setCaption( i18n( "Pawn Promotion" ) );
}
diff --git a/knights/dlg_selectemail.cpp b/knights/dlg_selectemail.cpp
index 9c6c744..169e6b4 100644
--- a/knights/dlg_selectemail.cpp
+++ b/knights/dlg_selectemail.cpp
@@ -34,7 +34,7 @@ dlg_selectemail::dlg_selectemail(TQWidget *parent, resource *Rsrc ) :
EDIT_Email = new TQLineEdit( BOX_Parent );
EDIT_Email->setText( myResource->Email_Address );
- connect( EDIT_Email, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( changeValue() ) );
+ connect( EDIT_Email, TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( changeValue() ) );
}
dlg_selectemail::~dlg_selectemail()
{
diff --git a/knights/dlg_selectengine.cpp b/knights/dlg_selectengine.cpp
index 8a12533..2d8a846 100644
--- a/knights/dlg_selectengine.cpp
+++ b/knights/dlg_selectengine.cpp
@@ -52,8 +52,8 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
buildEngineData();
- connect( COMBO_Engine, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCurrent(int) ) );
-// connect( COMBO_EngineHelper, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slotCurrentHelper(int) ) );
+ connect( COMBO_Engine, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCurrent(int) ) );
+// connect( COMBO_EngineHelper, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCurrentHelper(int) ) );
GROUP_Strength = new TQGroupBox( 3,
@@ -69,7 +69,7 @@ dlg_selectengine::dlg_selectengine(TQWidget *parent, resource *Rsrc, bool army )
GROUP_Strength );
LABEL_Str_Max = new TQLabel( i18n( "Strong" ), GROUP_Strength );
SLIDER_Strength->setTickmarks( TQSlider::Below );
- connect( SLIDER_Strength, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slotStrength(int) ) );
+ connect( SLIDER_Strength, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotStrength(int) ) );
}
dlg_selectengine::~dlg_selectengine()
{
diff --git a/knights/dlg_server.cpp b/knights/dlg_server.cpp
index 4c8e4f9..d9400ec 100644
--- a/knights/dlg_server.cpp
+++ b/knights/dlg_server.cpp
@@ -81,7 +81,7 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
EDIT_Timeseal = new KLineEdit( GROUP_Timeseal );
BUTTON_Timeseal = new TQPushButton( GROUP_Timeseal );
BUTTON_Timeseal->setPixmap( Resource->LoadIcon( TQString( "document-open" ), TDEIcon::Toolbar ) );
- connect( BUTTON_Timeseal, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Timeseal() ) );
+ connect( BUTTON_Timeseal, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Timeseal() ) );
BOX_LogFile = new TQGroupBox( 2,
TQt::Horizontal,
@@ -137,14 +137,14 @@ dlg_server::dlg_server(TQWidget *parent, const char *name, resource *Rsrc, TQStr
setHelp( TQString( "configure-servers" ) );
/* Make Connections */
- connect( BUTTON_LogFile, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotLogFileDialog() ) );
- connect( CHECK_StorePass, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slotStorePass(bool) ) );
- connect( EDIT_Name, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
- connect( EDIT_URL, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
- connect( EDIT_Port, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
- connect( EDIT_UserName, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
- connect( EDIT_Password, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
- connect( EDIT_Timeseal, TQT_SIGNAL( textChanged( const TQString&) ), this, TQT_SLOT( slotEnableApply( const TQString&) ) );
+ connect( BUTTON_LogFile, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotLogFileDialog() ) );
+ connect( CHECK_StorePass, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotStorePass(bool) ) );
+ connect( EDIT_Name, TQ_SIGNAL( textChanged( const TQString&) ), this, TQ_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_URL, TQ_SIGNAL( textChanged( const TQString&) ), this, TQ_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_Port, TQ_SIGNAL( textChanged( const TQString&) ), this, TQ_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_UserName, TQ_SIGNAL( textChanged( const TQString&) ), this, TQ_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_Password, TQ_SIGNAL( textChanged( const TQString&) ), this, TQ_SLOT( slotEnableApply( const TQString&) ) );
+ connect( EDIT_Timeseal, TQ_SIGNAL( textChanged( const TQString&) ), this, TQ_SLOT( slotEnableApply( const TQString&) ) );
show();
}
dlg_server::~dlg_server()
diff --git a/knights/dlg_settings.cpp b/knights/dlg_settings.cpp
index 2520126..e6c9e7e 100644
--- a/knights/dlg_settings.cpp
+++ b/knights/dlg_settings.cpp
@@ -49,37 +49,37 @@ dlg_settings::dlg_settings(TQWidget *parent, const char *name, resource *Rsrc )
i18n( "Various aspects of Knights get configured here." ),
TQPixmap( locate( "data", "knights/icon-general.png" ) ) );
PAGE_General = new setPageGeneral( FRAME_General, Resource );
- connect( PAGE_General, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );
+ connect( PAGE_General, TQ_SIGNAL( enableApply() ), this, TQ_SLOT( slotEnableApply() ) );
/* Display Page */
FRAME_Display = addPage( i18n( "Display" ),
i18n( "These settings determine how Knights displays itself to you." ),
TQPixmap( locate( "data", "knights/icon-display.png" ) ) );
PAGE_Display = new setPageDisplay( FRAME_Display, Resource );
- connect( PAGE_Display, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );
+ connect( PAGE_Display, TQ_SIGNAL( enableApply() ), this, TQ_SLOT( slotEnableApply() ) );
/* Audio Page */
FRAME_Audio = addPage( i18n( "Audio" ),
i18n( "These settings determine what Knights sounds like." ),
Resource->LoadIcon( TQString("multimedia"), TDEIcon::Panel ) );
PAGE_Audio = new setPageAudio( FRAME_Audio, Resource );
- connect( PAGE_Audio, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );
+ connect( PAGE_Audio, TQ_SIGNAL( enableApply() ), this, TQ_SLOT( slotEnableApply() ) );
/* Engines Page */
FRAME_Engines = addPage( i18n( "Computer Opponents" ),
i18n( "Configure your chess engines here." ),
Resource->LoadIcon( TQString("gear"), TDEIcon::Panel ) );
PAGE_Engines = new setPageEngines( FRAME_Engines, Resource );
- connect( PAGE_Engines, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );
+ connect( PAGE_Engines, TQ_SIGNAL( enableApply() ), this, TQ_SLOT( slotEnableApply() ) );
/* Servers Page */
FRAME_Servers = addPage( i18n( "Chess Servers" ),
i18n( "Configure your internet chess servers here." ),
Resource->LoadIcon( TQString("network"), TDEIcon::Panel ) );
PAGE_Servers = new setPageServers( FRAME_Servers, Resource );
- connect( PAGE_Servers, TQT_SIGNAL( enableApply() ), this, TQT_SLOT( slotEnableApply() ) );
+ connect( PAGE_Servers, TQ_SIGNAL( enableApply() ), this, TQ_SLOT( slotEnableApply() ) );
- connect( this, TQT_SIGNAL( aboutToShowPage( TQWidget* ) ), this, TQT_SLOT( slotPageChanging( TQWidget* ) ) );
+ connect( this, TQ_SIGNAL( aboutToShowPage( TQWidget* ) ), this, TQ_SLOT( slotPageChanging( TQWidget* ) ) );
/* Init the buttons */
showButtonCancel( TRUE );
diff --git a/knights/io_engine.cpp b/knights/io_engine.cpp
index 8b3afc7..9b2c88c 100644
--- a/knights/io_engine.cpp
+++ b/knights/io_engine.cpp
@@ -125,8 +125,8 @@ void io_engine::Start( const int side )
proto = new proto_xboard( myID );
break;
}
- connect( proto, TQT_SIGNAL( output( const TQString& ) ), this, TQT_SLOT( WriteFIFO( const TQString& ) ) );
- connect( proto, TQT_SIGNAL( output( const Command& ) ), this, TQT_SLOT( recvProtoCMD( const Command& ) ) );
+ connect( proto, TQ_SIGNAL( output( const TQString& ) ), this, TQ_SLOT( WriteFIFO( const TQString& ) ) );
+ connect( proto, TQ_SIGNAL( output( const Command& ) ), this, TQ_SLOT( recvProtoCMD( const Command& ) ) );
/* ...engine's display name */
proto->parse( Command( myID, CMD_Set_Name, (*IT).Name ) );
@@ -156,9 +156,9 @@ void io_engine::Start( const int side )
kdError() << "io_engine::Start: Can not run the engine: " << (*IT).Filename << endl;
return;
}
- connect( engine, TQT_SIGNAL( wroteStdin( TDEProcess* ) ), this, TQT_SLOT( SendClear( TDEProcess* ) ) );
- connect( engine, TQT_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQT_SLOT( Recv( TDEProcess*, char*, int ) ) );
- connect( engine, TQT_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQT_SLOT( Recv( TDEProcess*, char*, int ) ) );
+ connect( engine, TQ_SIGNAL( wroteStdin( TDEProcess* ) ), this, TQ_SLOT( SendClear( TDEProcess* ) ) );
+ connect( engine, TQ_SIGNAL( receivedStdout( TDEProcess*, char*, int ) ), this, TQ_SLOT( Recv( TDEProcess*, char*, int ) ) );
+ connect( engine, TQ_SIGNAL( receivedStderr( TDEProcess*, char*, int ) ), this, TQ_SLOT( Recv( TDEProcess*, char*, int ) ) );
proto->parse( Command( myID, CMD_Init ) );
diff --git a/knights/io_internet.cpp b/knights/io_internet.cpp
index 4e0631a..5d2a88e 100644
--- a/knights/io_internet.cpp
+++ b/knights/io_internet.cpp
@@ -65,9 +65,9 @@ io_internet::io_internet( TQWidget *parent, resource *rsrc )
/* create the login dialog and show it to the user */
loginDlg = new dlg_login( myParent, "LoginDialog", myResource);
- connect(loginDlg, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( connectToServer() ) );
- connect(loginDlg, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( selfDestruct() ) );
- connect(loginDlg, TQT_SIGNAL( login(TQString, TQString) ), this, TQT_SLOT( setUserInfo(TQString, TQString) ) );
+ connect(loginDlg, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( connectToServer() ) );
+ connect(loginDlg, TQ_SIGNAL( cancelClicked() ), this, TQ_SLOT( selfDestruct() ) );
+ connect(loginDlg, TQ_SIGNAL( login(TQString, TQString) ), this, TQ_SLOT( setUserInfo(TQString, TQString) ) );
}
///////////////////////////////////////////////////////////
@@ -201,11 +201,11 @@ void io_internet::connectToServer()
socket->enableWrite(true);
/* connect a signal to readReady */
- connect(socket, TQT_SIGNAL(readEvent(TDESocket *)), this, TQT_SLOT(readCommand(TDESocket *)));
+ connect(socket, TQ_SIGNAL(readEvent(TDESocket *)), this, TQ_SLOT(readCommand(TDESocket *)));
/* setup the seekTimer and turn it off by default */
seekTimer = new TQTimer(this);
- connect(seekTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(processSeekTimer()));
+ connect(seekTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(processSeekTimer()));
/* succesfully connected to the server, turn connected on and flush the command buffer */
connected = true;
@@ -224,20 +224,20 @@ void io_internet::connectToServer()
consoleTab = new Console( 0, myServer->Name.utf8(), myResource );
myTabList[consoleTab] = consoleTab;
myResource->tabManager->addTab( myTabList[consoleTab], i18n( "%1 Console" ).arg( myServer->Name ) );
- connect( myTabList[consoleTab], TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( recvCMD( const Command& ) ) );
- connect( this, TQT_SIGNAL( sendCMD( const Command& ) ), myTabList[consoleTab], TQT_SLOT( recvCMD( const Command& ) ) );
+ connect( myTabList[consoleTab], TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( recvCMD( const Command& ) ) );
+ connect( this, TQ_SIGNAL( sendCMD( const Command& ) ), myTabList[consoleTab], TQ_SLOT( recvCMD( const Command& ) ) );
tempTab = new tab_SeekList( 0, "seekList", myResource );
myTabList[tempTab] = tempTab;
myResource->tabManager->addTab( myTabList[tempTab], i18n( "Sought Matches List" ) );
- connect( myTabList[tempTab], TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( recvCMD( const Command& ) ) );
- connect( this, TQT_SIGNAL( sendCMD( const Command& ) ), myTabList[tempTab], TQT_SLOT( recvCMD( const Command& ) ) );
+ connect( myTabList[tempTab], TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( recvCMD( const Command& ) ) );
+ connect( this, TQ_SIGNAL( sendCMD( const Command& ) ), myTabList[tempTab], TQ_SLOT( recvCMD( const Command& ) ) );
tempTab = new Challenge_Graph( 0, "seekGraph", myResource );
myTabList[tempTab] = tempTab;
myResource->tabManager->addTab( myTabList[tempTab], i18n( "Sought Matches Graph" ) );
- connect( myTabList[tempTab], TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( recvCMD( const Command& ) ) );
- connect( this, TQT_SIGNAL( sendCMD( const Command& ) ), myTabList[tempTab], TQT_SLOT( recvCMD( const Command& ) ) );
+ connect( myTabList[tempTab], TQ_SIGNAL( sendCMD( const Command& ) ), this, TQ_SLOT( recvCMD( const Command& ) ) );
+ connect( this, TQ_SIGNAL( sendCMD( const Command& ) ), myTabList[tempTab], TQ_SLOT( recvCMD( const Command& ) ) );
myResource->tabManager->showTab(consoleTab);
@@ -474,9 +474,9 @@ void io_internet::parseLoginData( TQString data )
{
loginDlg = new dlg_login( myParent, "LoginDialog", myResource);
loginDlg->disableServerSelect();
- connect(loginDlg, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( sendUserName() ) );
- connect(loginDlg, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( selfDestruct() ) );
- connect(loginDlg, TQT_SIGNAL( login(TQString, TQString) ), this, TQT_SLOT( setUserInfo(TQString, TQString) ) );
+ connect(loginDlg, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( sendUserName() ) );
+ connect(loginDlg, TQ_SIGNAL( cancelClicked() ), this, TQ_SLOT( selfDestruct() ) );
+ connect(loginDlg, TQ_SIGNAL( login(TQString, TQString) ), this, TQ_SLOT( setUserInfo(TQString, TQString) ) );
}
else if(data.contains("Press return to enter the server as"))
{
@@ -540,9 +540,9 @@ void io_internet::parseLine( TQString line )
delete challenge;
}
challenge = new dlg_challenge( 0, "Challenge", myResource );
- connect( challenge, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( nullifyChallenge() ) );
- connect( challenge, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT( acceptChallenge() ) );
- connect( challenge, TQT_SIGNAL( user2Clicked() ), this, TQT_SLOT( declineChallenge() ) );
+ connect( challenge, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( nullifyChallenge() ) );
+ connect( challenge, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT( acceptChallenge() ) );
+ connect( challenge, TQ_SIGNAL( user2Clicked() ), this, TQ_SLOT( declineChallenge() ) );
line.replace(TQRegExp("^\\s*Challenge: "), "");
challenge->setValues( line, userName );
parseMode = CHALLENGE_MODE;
diff --git a/knights/knights.cpp b/knights/knights.cpp
index 4a4468c..7d3a7bf 100644
--- a/knights/knights.cpp
+++ b/knights/knights.cpp
@@ -85,13 +85,13 @@ void Knights::BirthAll(void)
notationBar = new KComboBox( MainFrame, "notationBar");
/* Connect all Signals & Slots */
- connect( Core, TQT_SIGNAL( requestResize() ), this, TQT_SLOT( resizeMainFrame() ) );
- connect( Core, TQT_SIGNAL( setStatusBar(const int&, const TQString& ) ), this, TQT_SLOT( setStatusBar(const int&, const TQString& ) ) );
- connect( Core, TQT_SIGNAL( setNotation() ), this, TQT_SLOT( setNotation() ) );
- connect( Core, TQT_SIGNAL( initMatch() ), this, TQT_SLOT( initMatch() ) );
- connect( Core, TQT_SIGNAL( setClocks() ), this, TQT_SLOT( setClocks() ) );
- connect( Core, TQT_SIGNAL( serverDestroyed() ), this, TQT_SLOT( netConnect() ) );
- connect( notationBar, TQT_SIGNAL( activated(int) ), Core, TQT_SLOT( review(int) ) );
+ connect( Core, TQ_SIGNAL( requestResize() ), this, TQ_SLOT( resizeMainFrame() ) );
+ connect( Core, TQ_SIGNAL( setStatusBar(const int&, const TQString& ) ), this, TQ_SLOT( setStatusBar(const int&, const TQString& ) ) );
+ connect( Core, TQ_SIGNAL( setNotation() ), this, TQ_SLOT( setNotation() ) );
+ connect( Core, TQ_SIGNAL( initMatch() ), this, TQ_SLOT( initMatch() ) );
+ connect( Core, TQ_SIGNAL( setClocks() ), this, TQ_SLOT( setClocks() ) );
+ connect( Core, TQ_SIGNAL( serverDestroyed() ), this, TQ_SLOT( netConnect() ) );
+ connect( notationBar, TQ_SIGNAL( activated(int) ), Core, TQ_SLOT( review(int) ) );
}
///////////////////////////////////////
//
@@ -174,11 +174,11 @@ bool Knights::init( void )
/*
Connect Accelerators
*/
- connect( Resource->myAccel, TQT_SIGNAL( board_up() ), this, TQT_SLOT( boardBigger() ) );
- connect( Resource->myAccel, TQT_SIGNAL( board_down() ), this, TQT_SLOT( boardSmaller() ) );
- connect( Resource->myAccel, TQT_SIGNAL( move_prev() ), this, TQT_SLOT( PrevNotation() ) );
- connect( Resource->myAccel, TQT_SIGNAL( move_next() ), this, TQT_SLOT( NextNotation() ) );
- connect( this, TQT_SIGNAL( focus( const TQChar& ) ), Resource->myAccel, TQT_SIGNAL( focus( const TQChar& ) ) );
+ connect( Resource->myAccel, TQ_SIGNAL( board_up() ), this, TQ_SLOT( boardBigger() ) );
+ connect( Resource->myAccel, TQ_SIGNAL( board_down() ), this, TQ_SLOT( boardSmaller() ) );
+ connect( Resource->myAccel, TQ_SIGNAL( move_prev() ), this, TQ_SLOT( PrevNotation() ) );
+ connect( Resource->myAccel, TQ_SIGNAL( move_next() ), this, TQ_SLOT( NextNotation() ) );
+ connect( this, TQ_SIGNAL( focus( const TQChar& ) ), Resource->myAccel, TQ_SIGNAL( focus( const TQChar& ) ) );
initMenus();
@@ -268,123 +268,123 @@ void Knights::initMenus( void )
matchMenu->setItemEnabled( MENU_DRAW, FALSE );
// MENU_RETRACT
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("edit-undo"), TDEIcon::Small ) ),
- i18n( "&Retract Move" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RETRACT );
+ i18n( "&Retract Move" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_RETRACT );
matchMenu->setItemEnabled( MENU_RETRACT, FALSE );
matchMenu->setWhatsThis( MENU_RETRACT, i18n( "Select this to retract your last move." ) );
// MENU_RESIGN
- matchMenu->insertItem( i18n( "Resign" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RESIGN );
+ matchMenu->insertItem( i18n( "Resign" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_RESIGN );
matchMenu->setItemEnabled( MENU_RESIGN, FALSE );
matchMenu->setWhatsThis( MENU_RESIGN, i18n( "Use this to concede the match to your opponent." ) );
// MENU_CALL_FLAG
- matchMenu->insertItem( i18n( "&Call Flag" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_CALL_FLAG );
+ matchMenu->insertItem( i18n( "&Call Flag" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_CALL_FLAG );
matchMenu->setItemEnabled( MENU_CALL_FLAG, FALSE );
matchMenu->setWhatsThis( MENU_CALL_FLAG, i18n( "Use this to declare the match over, due to your opponent being out of time." ) );
// MENU_HINT
- matchMenu->insertItem( i18n( "&Hint" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_HINT );
+ matchMenu->insertItem( i18n( "&Hint" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_HINT );
matchMenu->setItemEnabled( MENU_HINT, FALSE );
matchMenu->setWhatsThis( MENU_HINT, i18n( "This will ask your opponent for a hint." ) );
// MENU_MOVE_NOW
- matchMenu->insertItem( i18n( "Move &Now" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_MOVE_NOW );
+ matchMenu->insertItem( i18n( "Move &Now" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_MOVE_NOW );
matchMenu->setItemEnabled( MENU_MOVE_NOW, FALSE );
matchMenu->setWhatsThis( MENU_MOVE_NOW, i18n( "Clicking this option will force your opponent to move immediately." ) );
// MENU_ORIENTATION
- matchMenu->insertItem( i18n( "&Flip View" ), Core, TQT_SLOT(matchMenu(int)), Key_F2, MENU_ORIENTATION );
+ matchMenu->insertItem( i18n( "&Flip View" ), Core, TQ_SLOT(matchMenu(int)), Key_F2, MENU_ORIENTATION );
matchMenu->setItemEnabled( MENU_ORIENTATION, FALSE );
matchMenu->setWhatsThis( MENU_ORIENTATION, i18n( "This will reverse the chessboard's orientation by 180 degrees." ) );
// MENU_PONDER
- matchMenu->insertItem( i18n( "&Ponder" ), this, TQT_SLOT(Settings(int)), 0, MENU_PONDER );
+ matchMenu->insertItem( i18n( "&Ponder" ), this, TQ_SLOT(Settings(int)), 0, MENU_PONDER );
matchMenu->setItemChecked( MENU_PONDER, Resource->OPTION_Ponder );
matchMenu->setItemEnabled( MENU_PONDER, FALSE );
matchMenu->setWhatsThis( MENU_PONDER, i18n( "This toggles your opponent's ability to think while it's your turn." ) );
matchMenu->insertSeparator();
// MENU_PAUSE
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("media-playback-pause"), TDEIcon::Small ) ),
- i18n( "Pause" ), this, TQT_SLOT( Settings(int) ), Key_F12, MENU_PAUSE );
+ i18n( "Pause" ), this, TQ_SLOT( Settings(int) ), Key_F12, MENU_PAUSE );
matchMenu->setItemEnabled( MENU_PAUSE, FALSE );
matchMenu->setWhatsThis( MENU_PAUSE, i18n( "Select this to pause the clock for this match." ) );
/*
drawMenu menu
*/
// MENU_OFFER_DRAW
- drawMenu->insertItem( i18n( "&Offer Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_OFFER_DRAW );
+ drawMenu->insertItem( i18n( "&Offer Draw" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_OFFER_DRAW );
drawMenu->setWhatsThis( MENU_OFFER_DRAW, i18n( "Clicking this will inform your opponent that you are willing draw the match." ) );
// MENU_ACCEPT_DRAW
- drawMenu->insertItem( i18n( "&Accept Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_ACCEPT_DRAW );
+ drawMenu->insertItem( i18n( "&Accept Draw" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_ACCEPT_DRAW );
drawMenu->setWhatsThis( MENU_ACCEPT_DRAW, i18n( "Clicking this will accept a draw offered by your opponent." ) );
// MENU_REJECT_DRAW
- drawMenu->insertItem( i18n( "&Reject Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_REJECT_DRAW );
+ drawMenu->insertItem( i18n( "&Reject Draw" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_REJECT_DRAW );
drawMenu->setWhatsThis( MENU_REJECT_DRAW, i18n( "Clicking this will reject a draw offered by your opponent." ) );
// MENU_IGNORE_DRAW
- drawMenu->insertItem( i18n( "&Ignore Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_IGNORE_DRAW );
+ drawMenu->insertItem( i18n( "&Ignore Draw" ), Core, TQ_SLOT(matchMenu(int)), 0, MENU_IGNORE_DRAW );
drawMenu->setWhatsThis( MENU_IGNORE_DRAW, i18n( "Clicking this will ignore future draw offers from your opponent." ) );
/*
fileMenu menu
*/
// MENU_NEWGAME
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-new"), TDEIcon::Small ) ),
- i18n( "&New Match..." ), this, TQT_SLOT( openNewMatchDialog() ), CTRL+Key_N, MENU_NEWGAME );
+ i18n( "&New Match..." ), this, TQ_SLOT( openNewMatchDialog() ), CTRL+Key_N, MENU_NEWGAME );
fileMenu->setWhatsThis( MENU_NEWGAME, i18n( "This allows you to begin a new match." ) );
// MENU_LOAD
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-open"), TDEIcon::Small ) ),
- i18n( "&Load Match..." ), Core, TQT_SLOT( load() ), CTRL+Key_L, MENU_LOAD );
+ i18n( "&Load Match..." ), Core, TQ_SLOT( load() ), CTRL+Key_L, MENU_LOAD );
fileMenu->setWhatsThis( MENU_LOAD, i18n( "The Load command will allow you to select a previously saved match and play it again." ) );
fileMenu->insertSeparator();
// MENU_SAVE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-save"), TDEIcon::Small ) ),
- i18n( "&Save Match" ), this, TQT_SLOT( SaveGame() ), CTRL+Key_S, MENU_SAVE );
+ i18n( "&Save Match" ), this, TQ_SLOT( SaveGame() ), CTRL+Key_S, MENU_SAVE );
fileMenu->setItemEnabled( MENU_SAVE, FALSE );
fileMenu->setWhatsThis( MENU_SAVE, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
// MENU_SAVEAS
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-save"), TDEIcon::Small ) ),
- i18n( "Save Match &As..." ), this, TQT_SLOT( SaveGameAs() ), CTRL+Key_A, MENU_SAVEAS );
+ i18n( "Save Match &As..." ), this, TQ_SLOT( SaveGameAs() ), CTRL+Key_A, MENU_SAVEAS );
fileMenu->setItemEnabled( MENU_SAVEAS, FALSE );
fileMenu->setWhatsThis( MENU_SAVEAS, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
fileMenu->insertSeparator();
// MENU_CONNECT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("connect_creating"), TDEIcon::Small ) ),
- i18n( "Connect to Server" ), this, TQT_SLOT( netConnect() ), CTRL+Key_C, MENU_CONNECT );
+ i18n( "Connect to Server" ), this, TQ_SLOT( netConnect() ), CTRL+Key_C, MENU_CONNECT );
fileMenu->setWhatsThis( MENU_CONNECT, i18n( "Clicking this will connect Knights with an internet chess server." ) );
fileMenu->insertSeparator();
// MENU_PRINT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("document-print"), TDEIcon::Small ) ),
- i18n( "&Print Notation..." ), Core, TQT_SLOT( print() ), CTRL+Key_P, MENU_PRINT );
+ i18n( "&Print Notation..." ), Core, TQ_SLOT( print() ), CTRL+Key_P, MENU_PRINT );
fileMenu->setItemEnabled( MENU_PRINT, FALSE );
fileMenu->setWhatsThis( MENU_PRINT, i18n( "The Print command will allow you to print this game's notation on your printer." ) );
fileMenu->insertSeparator();
// MENU_CLOSE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("window-close"), TDEIcon::Small ) ),
- i18n( "&Close Match" ), Core, TQT_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE );
+ i18n( "&Close Match" ), Core, TQ_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE );
fileMenu->setItemEnabled( MENU_CLOSE, FALSE );
fileMenu->setWhatsThis( MENU_CLOSE, i18n( "This command removes the current match." ) );
// MENU_CLOSEALL
- fileMenu->insertItem( i18n( "Close All" ), Core, TQT_SLOT( clearAll() ), 0, MENU_CLOSEALL );
+ fileMenu->insertItem( i18n( "Close All" ), Core, TQ_SLOT( clearAll() ), 0, MENU_CLOSEALL );
fileMenu->setItemEnabled( MENU_CLOSEALL, FALSE );
fileMenu->setWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) );
fileMenu->insertSeparator();
// MENU_QUIT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("system-log-out"), TDEIcon::Small ) ),
- i18n( "&Quit" ), this, TQT_SLOT(menuClose()), CTRL+Key_Q, MENU_QUIT );
+ i18n( "&Quit" ), this, TQ_SLOT(menuClose()), CTRL+Key_Q, MENU_QUIT );
fileMenu->setWhatsThis( MENU_QUIT, i18n( "The Quit command will stop all matches and exit Knights." ) );
/*
settingsMenu menu
*/
// MENU_INSTALL_THEMES
- settingsMenu->insertItem( i18n( "&Install Themes" ), this, TQT_SLOT(installThemes()), 0, MENU_INSTALL_THEMES );
+ settingsMenu->insertItem( i18n( "&Install Themes" ), this, TQ_SLOT(installThemes()), 0, MENU_INSTALL_THEMES );
settingsMenu->setWhatsThis( MENU_INSTALL_THEMES, i18n( "This lets you install downloaded themes into Knights." ) );
// MENU_BINDINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("key_bindings"), TDEIcon::Small ) ),
- i18n( "Configure &Key Bindings..." ), this, TQT_SLOT(openKeyBindingDialog()), 0, MENU_BINDINGS_DIALOG );
+ i18n( "Configure &Key Bindings..." ), this, TQ_SLOT(openKeyBindingDialog()), 0, MENU_BINDINGS_DIALOG );
settingsMenu->setWhatsThis( MENU_BINDINGS_DIALOG, i18n( "Click this if you want to change the keyboard shortcuts that Knights uses." ) );
// MENU_SETTINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("configure"), TDEIcon::Small ) ),
- i18n( "&Configure Knights..." ), this, TQT_SLOT(openSettingsDialog()), 0, MENU_SETTINGS_DIALOG );
+ i18n( "&Configure Knights..." ), this, TQ_SLOT(openSettingsDialog()), 0, MENU_SETTINGS_DIALOG );
settingsMenu->setWhatsThis( MENU_SETTINGS_DIALOG, i18n( "This opens a new window which allows you to customize Knights to your particular tastes." ) );
/*
tutorialMenu menu
*/
tutorialMenu->setCheckable(TRUE);
// MENU_OPEN_TUTORIAL
- tutorialMenu->insertItem( i18n( "Begin a Tutorial" ), this, TQT_SLOT(Settings(int)), 0, MENU_OPEN_TUTORIAL );
+ tutorialMenu->insertItem( i18n( "Begin a Tutorial" ), this, TQ_SLOT(Settings(int)), 0, MENU_OPEN_TUTORIAL );
// tutorialMenu->setWhatsThis( MENU_OPEN_TUTORIAL, i18n( "" ) );
/*
topMenu menu
@@ -881,10 +881,10 @@ void Knights::netConnect( void )
void Knights::openSettingsDialog( void )
{
SettingsDialog = new dlg_settings( this, "settings", Resource );
- connect( SettingsDialog, TQT_SIGNAL( themeChanged(int,int) ), this, TQT_SLOT( SelectTheme(int,int) ) );
- connect( SettingsDialog, TQT_SIGNAL( redrawBoard() ), Core, TQT_SLOT( resize() ) );
- connect( SettingsDialog, TQT_SIGNAL( resetServer() ), Core, TQT_SLOT( resetServer() ) );
- connect( this, TQT_SIGNAL( themesAdded() ), SettingsDialog, TQT_SLOT( slotThemesAdded() ) );
+ connect( SettingsDialog, TQ_SIGNAL( themeChanged(int,int) ), this, TQ_SLOT( SelectTheme(int,int) ) );
+ connect( SettingsDialog, TQ_SIGNAL( redrawBoard() ), Core, TQ_SLOT( resize() ) );
+ connect( SettingsDialog, TQ_SIGNAL( resetServer() ), Core, TQ_SLOT( resetServer() ) );
+ connect( this, TQ_SIGNAL( themesAdded() ), SettingsDialog, TQ_SLOT( slotThemesAdded() ) );
SettingsDialog->show();
}
///////////////////////////////////////
@@ -895,7 +895,7 @@ void Knights::openSettingsDialog( void )
void Knights::openNewMatchDialog( void )
{
NewMatch = new dlg_newmatch( this, "NewMatch", Resource );
- connect( NewMatch, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( newMatch() ) );
+ connect( NewMatch, TQ_SIGNAL( okClicked() ), this, TQ_SLOT( newMatch() ) );
NewMatch->show();
}
///////////////////////////////////////
diff --git a/knights/knightstextview.cpp b/knights/knightstextview.cpp
index e0ed4b2..2bfa6bf 100644
--- a/knights/knightstextview.cpp
+++ b/knights/knightstextview.cpp
@@ -41,26 +41,26 @@ KnightsTextView::KnightsTextView(TQWidget *parent, resource *Rsrc ) : TQTextBrow
Configure functions in the View right click menu
*/
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("edit-copy"), TDEIcon::Small ) ),
- i18n( "&Copy" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_C, MENU_COPY );
- menuView->insertItem( i18n("Select &All"), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_A, MENU_SELECT_ALL );
+ i18n( "&Copy" ), this, TQ_SLOT( menuFunct(int) ), CTRL+Key_C, MENU_COPY );
+ menuView->insertItem( i18n("Select &All"), this, TQ_SLOT( menuFunct(int) ), CTRL+Key_A, MENU_SELECT_ALL );
menuView->insertSeparator();
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("document-print"), TDEIcon::Small ) ),
- i18n( "&Print" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_P, MENU_PRINT );
+ i18n( "&Print" ), this, TQ_SLOT( menuFunct(int) ), CTRL+Key_P, MENU_PRINT );
// menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("edit-find"), TDEIcon::Small ) ),
-// i18n( "&Find" ), this, TQT_SLOT( menuFunct(int) ), CTRL+Key_F, MENU_FIND );
+// i18n( "&Find" ), this, TQ_SLOT( menuFunct(int) ), CTRL+Key_F, MENU_FIND );
// menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("next"), TDEIcon::Small ) ),
-// i18n( "Find &Next" ), this, TQT_SLOT( menuFunct(int) ), Key_F3, MENU_FIND_NEXT );
+// i18n( "Find &Next" ), this, TQ_SLOT( menuFunct(int) ), Key_F3, MENU_FIND_NEXT );
// menuView->insertSeparator();
menuView->insertSeparator();
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("zoom-in"), TDEIcon::Small ) ),
- i18n( "Zoom &In" ), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ZOOM_IN );
+ i18n( "Zoom &In" ), this, TQ_SLOT( menuFunct(int) ), 0, MENU_ZOOM_IN );
menuView->insertItem( TQIconSet( Rsrc->LoadIcon( TQString("zoom-out"), TDEIcon::Small ) ),
- i18n( "Zoom &Out" ), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ZOOM_OUT );
+ i18n( "Zoom &Out" ), this, TQ_SLOT( menuFunct(int) ), 0, MENU_ZOOM_OUT );
/* disconnect the linkClicked signal so we can replace it with our own */
- disconnect(this, TQT_SIGNAL(linkClicked(const TQString&)),this ,0);
+ disconnect(this, TQ_SIGNAL(linkClicked(const TQString&)),this ,0);
/* connect the linkClicked signal to displayLink slot */
- connect(this, TQT_SIGNAL(linkClicked(const TQString&)), this, TQT_SLOT(displayLink(const TQString&)));
+ connect(this, TQ_SIGNAL(linkClicked(const TQString&)), this, TQ_SLOT(displayLink(const TQString&)));
show();
}
diff --git a/knights/list_pgn.cpp b/knights/list_pgn.cpp
index 24da179..8664a55 100644
--- a/knights/list_pgn.cpp
+++ b/knights/list_pgn.cpp
@@ -38,7 +38,7 @@ list_pgn::list_pgn(TQWidget *parent, const char *name) : TQVBox(parent,name)
listView->setShowSortIndicator( TRUE );
listView->restoreLayout( kapp->config(), "PGN_ListView" );
listView->show();
- connect( listView, TQT_SIGNAL( executed( TQListViewItem* ) ), this, TQT_SLOT( slot_selected( TQListViewItem* ) ) );
+ connect( listView, TQ_SIGNAL( executed( TQListViewItem* ) ), this, TQ_SLOT( slot_selected( TQListViewItem* ) ) );
/*
Showing listView while scanning can mean the difference between
diff --git a/knights/main.cpp b/knights/main.cpp
index cc76045..1223bc8 100644
--- a/knights/main.cpp
+++ b/knights/main.cpp
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
}
/* Without this connection, the destructors are not called, and some
housecleaning ( like destroying child processes ) isn't done */
- a.connect( &a, TQT_SIGNAL( shutDown () ), knights, TQT_SLOT( KillAll() ) );
- a.connect( &a, SIGNAL( aboutToQuit() ), knights, SLOT( aboutToQuit() ) );
+ a.connect( &a, TQ_SIGNAL( shutDown () ), knights, TQ_SLOT( KillAll() ) );
+ a.connect( &a, TQ_SIGNAL( aboutToQuit() ), knights, TQ_SLOT( aboutToQuit() ) );
return a.exec();
}
diff --git a/knights/match.cpp b/knights/match.cpp
index a398e86..f4f7f0a 100644
--- a/knights/match.cpp
+++ b/knights/match.cpp
@@ -39,8 +39,8 @@ match::match( TQWidget *parent, match_param *param, resource *Rsrc ) : TQWidget(
Logic = new logic( Resource, param );
Board = new board_2d( parent, "Board", Resource, Logic );
Board->show();
- connect( Board, TQT_SIGNAL( leftClick(int) ), this, TQT_SLOT( slot_Select(int) ) );
- connect( Board, TQT_SIGNAL( rightClick(int) ), this, TQT_SLOT( slot_Preview(int) ) );
+ connect( Board, TQ_SIGNAL( leftClick(int) ), this, TQ_SLOT( slot_Select(int) ) );
+ connect( Board, TQ_SIGNAL( rightClick(int) ), this, TQ_SLOT( slot_Preview(int) ) );
Clock = new chessclock( this, "Clock", Resource );
Record->init();
Logic->Init();
@@ -63,11 +63,11 @@ match::match( TQWidget *parent, match_param *param, resource *Rsrc ) : TQWidget(
parseMatchParam();
/* Connect Signals and Slots */
- connect( param, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( parseMatchParam() ) );
- connect( Record, TQT_SIGNAL( processMove(ChessMove) ), this, TQT_SLOT( move(ChessMove) ) );
- connect( Record, TQT_SIGNAL( processSpecial() ), this, TQT_SLOT( loadSpecial() ) );
- connect( Clock, TQT_SIGNAL( flagFell(const bool) ), this, TQT_SLOT( slot_flagFell(const bool) ) );
- connect( this, TQT_SIGNAL( setStatusBar( const int&, const TQString& ) ), this, TQT_SLOT( saveStatusBar( const int&, const TQString& ) ) );
+ connect( param, TQ_SIGNAL( valuesChanged() ), this, TQ_SLOT( parseMatchParam() ) );
+ connect( Record, TQ_SIGNAL( processMove(ChessMove) ), this, TQ_SLOT( move(ChessMove) ) );
+ connect( Record, TQ_SIGNAL( processSpecial() ), this, TQ_SLOT( loadSpecial() ) );
+ connect( Clock, TQ_SIGNAL( flagFell(const bool) ), this, TQ_SLOT( slot_flagFell(const bool) ) );
+ connect( this, TQ_SIGNAL( setStatusBar( const int&, const TQString& ) ), this, TQ_SLOT( saveStatusBar( const int&, const TQString& ) ) );
}
///////////////////////////////////////
diff --git a/knights/match_param.cpp b/knights/match_param.cpp
index d5e4351..93cd4ac 100644
--- a/knights/match_param.cpp
+++ b/knights/match_param.cpp
@@ -213,7 +213,7 @@ void match_param::setVariation(const int variation)
void match_param::setTimer( void )
{
if( TimerFlag ) return;
- TQTimer::singleShot( 0, this, TQT_SLOT( slot_Timer() ) );
+ TQTimer::singleShot( 0, this, TQ_SLOT( slot_Timer() ) );
TimerFlag = TRUE;
}
diff --git a/knights/pgn.cpp b/knights/pgn.cpp
index b228f2c..1cf29a5 100644
--- a/knights/pgn.cpp
+++ b/knights/pgn.cpp
@@ -34,7 +34,7 @@ pgn::pgn( resource *Rsrc, match_param *param )
if( Param != NULL )
{
- connect( Param, TQT_SIGNAL( valuesChanged() ), this, TQT_SLOT( parseMatchParam() ) );
+ connect( Param, TQ_SIGNAL( valuesChanged() ), this, TQ_SLOT( parseMatchParam() ) );
}
}
pgn::~pgn()
@@ -386,7 +386,7 @@ bool pgn::load( const int pos )
}
/* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource );
- connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
+ connect( pgnView, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( childViewDestroyed() ) );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) );
pgnView->init();
File.at( File_Position );
@@ -951,7 +951,7 @@ void pgn::print( void )
/* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) );
- connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
+ connect( pgnView, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( childViewDestroyed() ) );
pgnView->init();
}
pgnView->print();
diff --git a/knights/proto_xboard.cpp b/knights/proto_xboard.cpp
index 1c2fbd0..556a589 100644
--- a/knights/proto_xboard.cpp
+++ b/knights/proto_xboard.cpp
@@ -46,7 +46,7 @@ proto_xboard::proto_xboard( const int ID ) : proto_base( ID )
CMDList = new CommandList;
InitTimer = new TQTimer( this );
- connect( InitTimer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( releaseBuffer() ) );
+ connect( InitTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( releaseBuffer() ) );
Check = TRUE;
Team = FALSE;
diff --git a/knights/setpageaudio.cpp b/knights/setpageaudio.cpp
index 8812d3d..fda2f43 100644
--- a/knights/setpageaudio.cpp
+++ b/knights/setpageaudio.cpp
@@ -28,8 +28,8 @@ setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(par
BUTTON_enableAudio = new TQCheckBox( i18n( "Enable Audio" ), parent );
BUTTON_enableAudio->setChecked( Resource->OPTION_Audio );
addWidget( BUTTON_enableAudio );
- connect( BUTTON_enableAudio, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_enableAudio(bool) ) );
+ connect( BUTTON_enableAudio, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_enableAudio(bool) ) );
GROUP_Theme = new TQGroupBox( 1,
TQt::Vertical,
@@ -38,8 +38,8 @@ setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(par
addWidget( GROUP_Theme );
Current_Theme = new KComboBox ( GROUP_Theme );
buildThemeList();
- connect( Current_Theme, TQT_SIGNAL( activated(int) ),
- this, TQT_SLOT( slot_currentTheme(int) ) );
+ connect( Current_Theme, TQ_SIGNAL( activated(int) ),
+ this, TQ_SLOT( slot_currentTheme(int) ) );
BOX_Main = new TQHBox( parent );
addWidget( BOX_Main );
@@ -47,15 +47,15 @@ setPageAudio::setPageAudio(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(par
GROUP_Volume = new TQGroupBox( 3, TQt::Vertical, i18n( "Volume" ), BOX_Main );
Vol_Max = new TQLabel( i18n( "Maximum" ), GROUP_Volume );
Current_Volume = new TQSlider ( 0, 100, 10, Resource->Audio_Volume, TQt::Vertical, GROUP_Volume );
- connect( Current_Volume, TQT_SIGNAL( valueChanged(int) ), this, TQT_SLOT( slot_currentVolume(int) ) );
+ connect( Current_Volume, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slot_currentVolume(int) ) );
Current_Volume->setTickmarks( TQSlider::Right );
Vol_Min = new TQLabel( i18n( "Minimum" ), GROUP_Volume );
BOX_Options = new TQVBox( BOX_Main );
BUTTON_AudioCurrentOnly = new TQCheckBox( i18n( "For Current Match Only" ), BOX_Options );
BUTTON_AudioCurrentOnly->setChecked( Resource->OPTION_Audio_Current_Only );
- connect( BUTTON_AudioCurrentOnly, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_AudioCurrentOnly(bool) ) );
+ connect( BUTTON_AudioCurrentOnly, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_AudioCurrentOnly(bool) ) );
}
setPageAudio::~setPageAudio()
{
diff --git a/knights/setpagedisplay.cpp b/knights/setpagedisplay.cpp
index 38ae1c0..c8e16bc 100644
--- a/knights/setpagedisplay.cpp
+++ b/knights/setpagedisplay.cpp
@@ -97,10 +97,10 @@ void setPageDisplay::initTab1( void )
GROUP_SCID_Images = new TQGroupBox( 2, TQt::Horizontal, i18n("Player Images File:"), Tab1 );
EDIT_SCID_Images = new KLineEdit( GROUP_SCID_Images );
EDIT_SCID_Images->setText( Resource->SCID_Image_Path );
- connect( EDIT_SCID_Images, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_SCID_Images(const TQString&) ) );
+ connect( EDIT_SCID_Images, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( slot_SCID_Images(const TQString&) ) );
BUTTON_SCID_Images = new TQPushButton( GROUP_SCID_Images );
BUTTON_SCID_Images->setPixmap( Resource->LoadIcon( TQString( "document-open" ), TDEIcon::Toolbar ) );
- connect( BUTTON_SCID_Images, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_SCID_Images_Button() ) );
+ connect( BUTTON_SCID_Images, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_SCID_Images_Button() ) );
GROUP_General_Graphics = new TQGroupBox( 4,
TQt::Vertical,
@@ -109,44 +109,44 @@ void setPageDisplay::initTab1( void )
Board_Orientation = new TQCheckBox( i18n( "Reverse Board Orientation" ), GROUP_General_Graphics );
Board_Orientation->setChecked( Resource->OPTION_Board_Orientation );
- connect( Board_Orientation, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slotToggle_Board_Orientation(bool) ) );
+ connect( Board_Orientation, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slotToggle_Board_Orientation(bool) ) );
Show_Splashscreen = new TQCheckBox( i18n( "Display Startup Logo" ), GROUP_General_Graphics );
Show_Splashscreen->setChecked( Resource->OPTION_Show_Splash );
- connect( Show_Splashscreen, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slotToggle_Splashscreen(bool) ) );
+ connect( Show_Splashscreen, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slotToggle_Splashscreen(bool) ) );
Auto_Preview = new TQCheckBox( i18n( "Automatic Preview" ), GROUP_General_Graphics );
Auto_Preview->setChecked( Resource->OPTION_Auto_Preview );
- connect( Auto_Preview, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slotToggle_Auto_Preview(bool) ) );
+ connect( Auto_Preview, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slotToggle_Auto_Preview(bool) ) );
Show_Last_Move = new TQCheckBox( i18n( "Show Last Move" ), GROUP_General_Graphics );
Show_Last_Move->setChecked( Resource->OPTION_Show_Last_Move );
- connect( Show_Last_Move, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slotToggle_Show_Last_Move(bool) ) );
+ connect( Show_Last_Move, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slotToggle_Show_Last_Move(bool) ) );
Animate_Move = new TQCheckBox( i18n( "Animate Moves" ), GROUP_General_Graphics );
Animate_Move->setChecked( Resource->OPTION_Animate_Moves );
- connect( Animate_Move, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slotToggle_Animate_Move(bool) ) );
+ connect( Animate_Move, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slotToggle_Animate_Move(bool) ) );
Show_Coord = new TQCheckBox( i18n( "Show Coordinates" ), GROUP_General_Graphics );
Show_Coord->setChecked( Resource->OPTION_Show_Coord );
- connect( Show_Coord, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slotToggle_Show_Coord(bool) ) );
+ connect( Show_Coord, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slotToggle_Show_Coord(bool) ) );
Current_Theme_Size->setTickmarks( TQSlider::Below );
Current_Boards->setEditable( FALSE );
Current_Chessmen->setEditable( FALSE );
buildThemeList();
- connect( Current_Boards, TQT_SIGNAL( activated(int) ),
- this, TQT_SLOT( slotCurrent_Boards(int) ) );
- connect( Current_Chessmen, TQT_SIGNAL( activated(int) ),
- this, TQT_SLOT( slotCurrent_Chessmen(int) ) );
- connect( Current_Theme_Size, TQT_SIGNAL( valueChanged(int) ),
- this, TQT_SLOT( slotCurrent_Theme_Size(int) ) );
+ connect( Current_Boards, TQ_SIGNAL( activated(int) ),
+ this, TQ_SLOT( slotCurrent_Boards(int) ) );
+ connect( Current_Chessmen, TQ_SIGNAL( activated(int) ),
+ this, TQ_SLOT( slotCurrent_Chessmen(int) ) );
+ connect( Current_Theme_Size, TQ_SIGNAL( valueChanged(int) ),
+ this, TQ_SLOT( slotCurrent_Theme_Size(int) ) );
TabParent->addTab( Tab1, i18n("General") );
}
///////////////////////////////////////
@@ -167,66 +167,66 @@ void setPageDisplay::initTab2( void )
GRID_Style->addMultiCellWidget( Console_Sample, 5, 10, 1, 1 );
Default_Button = new TQPushButton( i18n("Restore Defaults"), Tab2 );
- connect( Default_Button, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_setDefault() ) );
+ connect( Default_Button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_setDefault() ) );
GRID_Style->addWidget( Default_Button, 11, 1 );
Fonts_Button_Standard = new TQPushButton( i18n("Standard Font..."), Tab2 );
- connect( Fonts_Button_Standard, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Font_Standard() ) );
+ connect( Fonts_Button_Standard, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Font_Standard() ) );
GRID_Style->addWidget( Fonts_Button_Standard, 5, 3 );
Colors_Button_Standard = new TQPushButton( Tab2 );
Colors_Button_Standard->setPixmap( ColorsIcon );
- connect( Colors_Button_Standard, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Color_Standard() ) );
+ connect( Colors_Button_Standard, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Color_Standard() ) );
GRID_Style->addWidget( Colors_Button_Standard, 5, 5 );
Fonts_Button_PrivateTell = new TQPushButton( i18n("Private Font..."), Tab2 );
- connect( Fonts_Button_PrivateTell, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Font_PrivateTell() ) );
+ connect( Fonts_Button_PrivateTell, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Font_PrivateTell() ) );
GRID_Style->addWidget( Fonts_Button_PrivateTell, 6, 3 );
Colors_Button_PrivateTell = new TQPushButton( Tab2 );
Colors_Button_PrivateTell->setPixmap( ColorsIcon );
- connect( Colors_Button_PrivateTell, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Color_PrivateTell() ) );
+ connect( Colors_Button_PrivateTell, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Color_PrivateTell() ) );
GRID_Style->addWidget( Colors_Button_PrivateTell, 6, 5 );
Fonts_Button_ChannelTell = new TQPushButton( i18n("Channel Font..."), Tab2 );
- connect( Fonts_Button_ChannelTell, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Font_ChannelTell() ) );
+ connect( Fonts_Button_ChannelTell, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Font_ChannelTell() ) );
GRID_Style->addWidget( Fonts_Button_ChannelTell, 7, 3 );
Colors_Button_ChannelTell = new TQPushButton( Tab2 );
Colors_Button_ChannelTell->setPixmap( ColorsIcon );
- connect( Colors_Button_ChannelTell, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Color_ChannelTell() ) );
+ connect( Colors_Button_ChannelTell, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Color_ChannelTell() ) );
GRID_Style->addWidget( Colors_Button_ChannelTell, 7, 5 );
Fonts_Button_Shout = new TQPushButton( i18n("Shout Font..."), Tab2 );
- connect( Fonts_Button_Shout, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Font_Shout() ) );
+ connect( Fonts_Button_Shout, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Font_Shout() ) );
GRID_Style->addWidget( Fonts_Button_Shout, 8, 3 );
Colors_Button_Shout = new TQPushButton( Tab2 );
Colors_Button_Shout->setPixmap( ColorsIcon );
- connect( Colors_Button_Shout, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Color_Shout() ) );
+ connect( Colors_Button_Shout, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Color_Shout() ) );
GRID_Style->addWidget( Colors_Button_Shout, 8, 5 );
Fonts_Button_Whisper = new TQPushButton( i18n("Whisper Font..."), Tab2 );
- connect( Fonts_Button_Whisper, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Font_Whisper() ) );
+ connect( Fonts_Button_Whisper, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Font_Whisper() ) );
GRID_Style->addWidget( Fonts_Button_Whisper, 9, 3 );
Colors_Button_Whisper = new TQPushButton( Tab2 );
Colors_Button_Whisper->setPixmap( ColorsIcon );
- connect( Colors_Button_Whisper, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Color_Whisper() ) );
+ connect( Colors_Button_Whisper, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Color_Whisper() ) );
GRID_Style->addWidget( Colors_Button_Whisper, 9, 5 );
Fonts_Button_Notification = new TQPushButton( i18n("Notification Font..."), Tab2 );
- connect( Fonts_Button_Notification, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Font_Notification() ) );
+ connect( Fonts_Button_Notification, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Font_Notification() ) );
GRID_Style->addWidget( Fonts_Button_Notification, 10, 3 );
Colors_Button_Notification = new TQPushButton( Tab2 );
Colors_Button_Notification->setPixmap( ColorsIcon );
- connect( Colors_Button_Notification, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Color_Notification() ) );
+ connect( Colors_Button_Notification, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Color_Notification() ) );
GRID_Style->addWidget( Colors_Button_Notification, 10, 5 );
Colors_Button_Background = new TQPushButton( Tab2 );
Colors_Button_Background->setPixmap( ColorsIcon );
- connect( Colors_Button_Background, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_Color_Background() ) );
+ connect( Colors_Button_Background, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_Color_Background() ) );
GRID_Style->addWidget( Colors_Button_Background, 11, 5 );
resetSampleConsole();
diff --git a/knights/setpageengines.cpp b/knights/setpageengines.cpp
index fafe75e..4e30e20 100644
--- a/knights/setpageengines.cpp
+++ b/knights/setpageengines.cpp
@@ -77,16 +77,16 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
BuildEngineData();
- 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() ) );
+ connect( Engines_Button_Add, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEngine_Add() ) );
+ connect( Engines_Button_Change, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEngine_Modify() ) );
+ connect( Engines_Button_Delete, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotEngine_Delete() ) );
+ connect( Engines_White, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCurrent_White(int) ) );
+ connect( Engines_White_Book, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCurrent_White_Book(int) ) );
+ connect( Engines_Black, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCurrent_Black(int) ) );
+ connect( Engines_Black_Book, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCurrent_Black_Book(int) ) );
+ connect( White_Use_Book, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotToggle_White_Book(bool) ) );
+ connect( Black_Use_Book, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotToggle_Black_Book(bool) ) );
+ connect( Engines_ListView, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( selectionChanged() ) );
}
setPageEngines::~setPageEngines()
{
@@ -207,7 +207,7 @@ void setPageEngines::BuildEngineData( void )
void setPageEngines::slotEngine_Add( void )
{
Engine_Dialog = new dlg_engine( Parent, "EngineDialog", Resource );
- connect( Engine_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildEngineData() ) );
+ connect( Engine_Dialog, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( BuildEngineData() ) );
emit enableApply();
}
///////////////////////////////////////
@@ -223,7 +223,7 @@ void setPageEngines::slotEngine_Modify( void )
if( Select.isEmpty() ) return;
Item = Select.first();
Engine_Dialog = new dlg_engine( Parent, "EngineDialog", Resource, Item->text(0) );
- connect( Engine_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildEngineData() ) );
+ connect( Engine_Dialog, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( BuildEngineData() ) );
emit enableApply();
}
///////////////////////////////////////
diff --git a/knights/setpagegeneral.cpp b/knights/setpagegeneral.cpp
index 34d7c46..3e65263 100644
--- a/knights/setpagegeneral.cpp
+++ b/knights/setpagegeneral.cpp
@@ -32,7 +32,7 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
addWidget( GROUP_UserName );
EDIT_UserName = new KLineEdit( GROUP_UserName );
EDIT_UserName->setText( Resource->Local_Player );
- connect( EDIT_UserName, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_UserName(const TQString&) ) );
+ connect( EDIT_UserName, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( slot_UserName(const TQString&) ) );
BOX_SaveInit = new TQHBox( parent );
addWidget( BOX_SaveInit );
@@ -45,8 +45,8 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
if( Resource->OPTION_On_Init == 0 ) GROUP_OnInit->setButton( 0 );
else if( Resource->OPTION_On_Init == MENU_VS_PC ) GROUP_OnInit->setButton( 1 );
else GROUP_OnInit->setButton( 2 );
- connect( GROUP_OnInit, TQT_SIGNAL( clicked(int) ),
- this, TQT_SLOT( slot_Init(int) ) );
+ connect( GROUP_OnInit, TQ_SIGNAL( clicked(int) ),
+ this, TQ_SLOT( slot_Init(int) ) );
GROUP_AutoSave = new TQButtonGroup( 3, TQt::Vertical, i18n("Save Match on Close?"), BOX_SaveInit );
BUTTON_AutoSave_Yes = new TQRadioButton( i18n( "Yes" ), GROUP_AutoSave );
@@ -56,8 +56,8 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
if( Resource->PromptForSaving == "Yes" ) GROUP_AutoSave->setButton( 0 );
else if( Resource->PromptForSaving == "No" ) GROUP_AutoSave->setButton( 1 );
else GROUP_AutoSave->setButton( 2 );
- connect( GROUP_AutoSave, TQT_SIGNAL( clicked(int) ),
- this, TQT_SLOT( slot_AutoSave(int) ) );
+ connect( GROUP_AutoSave, TQ_SIGNAL( clicked(int) ),
+ this, TQ_SLOT( slot_AutoSave(int) ) );
GROUP_Reuse_PGN = new TQGroupBox( 2,
TQt::Vertical,
@@ -66,43 +66,43 @@ setPageGeneral::setPageGeneral(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout
addWidget( GROUP_Reuse_PGN );
BUTTON_Reuse_PGN = new TQCheckBox( i18n( "Append to Save File" ), GROUP_Reuse_PGN );
BUTTON_Reuse_PGN->setChecked( Resource->OPTION_Reuse_PGN );
- connect( BUTTON_Reuse_PGN, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_Reuse_PGN(bool) ) );
+ connect( BUTTON_Reuse_PGN, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_Reuse_PGN(bool) ) );
BOX_Reuse_PGN = new TQHBox( GROUP_Reuse_PGN );
EDIT_PGN_Filename = new KLineEdit( BOX_Reuse_PGN );
EDIT_PGN_Filename->setText( Resource->PGN_Filename );
- connect( EDIT_PGN_Filename, TQT_SIGNAL( textChanged(const TQString&) ), this, TQT_SLOT( slot_PGN_Filename(const TQString&) ) );
+ connect( EDIT_PGN_Filename, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( slot_PGN_Filename(const TQString&) ) );
BUTTON_PGN_Filename = new TQPushButton( BOX_Reuse_PGN );
BUTTON_PGN_Filename->setPixmap( Resource->LoadIcon( TQString( "document-open" ), TDEIcon::Toolbar ) );
- connect( BUTTON_PGN_Filename, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slot_PGN_Filename_Button() ) );
+ connect( BUTTON_PGN_Filename, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slot_PGN_Filename_Button() ) );
EDIT_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN );
BUTTON_PGN_Filename->setEnabled( Resource->OPTION_Reuse_PGN );
BUTTON_Pause_On_Minimize = new TQCheckBox( i18n( "Pause on Minimize" ), parent );
BUTTON_Pause_On_Minimize->setChecked( Resource->OPTION_Pause_On_Minimize );
- connect( BUTTON_Pause_On_Minimize, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_Pause_On_Minimize(bool) ) );
+ connect( BUTTON_Pause_On_Minimize, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_Pause_On_Minimize(bool) ) );
addWidget( BUTTON_Pause_On_Minimize );
BUTTON_Auto_Queen = new TQCheckBox( i18n( "Always Promote to Queen" ), parent );
BUTTON_Auto_Queen->setChecked( Resource->OPTION_Auto_Queen );
- connect( BUTTON_Auto_Queen, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_Auto_Queen(bool) ) );
+ connect( BUTTON_Auto_Queen, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_Auto_Queen(bool) ) );
addWidget( BUTTON_Auto_Queen );
BUTTON_Auto_Flag = new TQCheckBox( i18n( "Call Flag Automatically" ), parent );
BUTTON_Auto_Flag->setChecked( Resource->OPTION_Auto_Call_Flag );
- connect( BUTTON_Auto_Flag, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_Auto_Flag(bool) ) );
+ connect( BUTTON_Auto_Flag, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_Auto_Flag(bool) ) );
addWidget( BUTTON_Auto_Flag );
BUTTON_Delete_Logs = new TQCheckBox( i18n( "Delete Log Files on Exit" ), parent );
TQWhatsThis::add( BUTTON_Delete_Logs, i18n("If set, chess engine log files will be deleted on exit. "
"Only files named \"game.###\" and \"log.###\" placed in the user home folder will be removed"));
BUTTON_Delete_Logs->setChecked( Resource->OPTION_Delete_Logs );
- connect( BUTTON_Delete_Logs, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_Delete_Logs(bool) ) );
+ connect( BUTTON_Delete_Logs, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_Delete_Logs(bool) ) );
addWidget( BUTTON_Delete_Logs );
}
diff --git a/knights/setpageservers.cpp b/knights/setpageservers.cpp
index 57ebae9..f7cf053 100644
--- a/knights/setpageservers.cpp
+++ b/knights/setpageservers.cpp
@@ -81,11 +81,11 @@ void setPageServers::initTab1( void )
BuildServerData();
- 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() ) );
+ connect( Servers_Button_Add, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotServer_Add() ) );
+ connect( Servers_Button_Change, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotServer_Modify() ) );
+ connect( Servers_Button_Delete, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotServer_Delete() ) );
+ connect( Servers, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slotCurrent(int) ) );
+ connect( Servers_ListView, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( selectionChanged() ) );
TabParent->addTab( Tab1, i18n("Servers") );
}
@@ -110,43 +110,43 @@ 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, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( slot_Profanity(int) ) );
+ connect( COMBO_Profanity, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( slot_Profanity(int) ) );
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, TQT_SIGNAL( toggled(bool) ),
- this, TQT_SLOT( slot_Auto_Close_ICS(bool) ) );
+ connect( BUTTON_Auto_Close_ICS, TQ_SIGNAL( toggled(bool) ),
+ this, TQ_SLOT( slot_Auto_Close_ICS(bool) ) );
BUTTON_Private = new TQCheckBox( i18n( "Private Matches" ), Tab2 );
BUTTON_Private->setChecked( Resource->OPTION_Private );
- connect( BUTTON_Private, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Private(bool) ) );
+ connect( BUTTON_Private, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slot_Private(bool) ) );
BUTTON_Premove = new TQCheckBox( i18n( "Enable Premove" ), Tab2 );
BUTTON_Premove->setChecked( Resource->OPTION_Premove );
- connect( BUTTON_Premove, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Premove(bool) ) );
+ connect( BUTTON_Premove, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slot_Premove(bool) ) );
BUTTON_Kibitz = new TQCheckBox( i18n( "Enable Kibitzes" ), Tab2 );
BUTTON_Kibitz->setChecked( Resource->OPTION_Kibitz );
- connect( BUTTON_Kibitz, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Kibitz(bool) ) );
+ connect( BUTTON_Kibitz, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slot_Kibitz(bool) ) );
BUTTON_Tell = new TQCheckBox( i18n( "Enable Unregistered Tells" ), Tab2 );
BUTTON_Tell->setChecked( Resource->OPTION_Tell );
- connect( BUTTON_Tell, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Tell(bool) ) );
+ connect( BUTTON_Tell, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slot_Tell(bool) ) );
BUTTON_Shout = new TQCheckBox( i18n( "Enable Shouts" ), Tab2 );
BUTTON_Shout->setChecked( Resource->OPTION_Shout );
- connect( BUTTON_Shout, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Shout(bool) ) );
+ connect( BUTTON_Shout, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slot_Shout(bool) ) );
BUTTON_Seek = new TQCheckBox( i18n( "Enable Seeks" ), Tab2 );
BUTTON_Seek->setChecked( Resource->OPTION_Seek );
- connect( BUTTON_Seek, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( slot_Seek(bool) ) );
+ connect( BUTTON_Seek, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slot_Seek(bool) ) );
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, TQT_SIGNAL( valueChanged(int) ),
- this, TQT_SLOT( slot_SeekTimer(int) ) );
+ connect( BUTTON_SeekTimer, TQ_SIGNAL( valueChanged(int) ),
+ this, TQ_SLOT( slot_SeekTimer(int) ) );
LABEL_SeekTimer = new TQLabel( i18n("Seconds Between Seek Updates"), BOX_SeekTimer );
TabParent->addTab( Tab2, i18n("Options") );
@@ -204,7 +204,7 @@ void setPageServers::BuildServerData( void )
void setPageServers::slotServer_Add( void )
{
Server_Dialog = new dlg_server( TabParent, "ServerDialog", Resource );
- connect( Server_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildServerData() ) );
+ connect( Server_Dialog, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( BuildServerData() ) );
emit enableApply();
}
///////////////////////////////////////
@@ -220,7 +220,7 @@ void setPageServers::slotServer_Modify( void )
if( Select.isEmpty() ) return;
Item = Select.first();
Server_Dialog = new dlg_server( TabParent, "ServerDialog", Resource, Item->text(0) );
- connect( Server_Dialog, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( BuildServerData() ) );
+ connect( Server_Dialog, TQ_SIGNAL( destroyed() ), this, TQ_SLOT( BuildServerData() ) );
emit enableApply();
}
///////////////////////////////////////
diff --git a/knights/tab_seeklist.cpp b/knights/tab_seeklist.cpp
index 4db5b0d..e273552 100644
--- a/knights/tab_seeklist.cpp
+++ b/knights/tab_seeklist.cpp
@@ -37,23 +37,23 @@ tab_SeekList::tab_SeekList(TQWidget *parent, const char *name, resource *Rsrc )
menuSeek = new TDEPopupMenu( this );
menuSeek->setCheckable( TRUE );
- menuSeek->insertItem( i18n("Seek Matches"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_SEEK );
+ menuSeek->insertItem( i18n("Seek Matches"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_SEEK );
menuSeek->insertSeparator();
- menuSeek->insertItem( i18n("Accept This Match"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ACCEPT_MATCH );
- menuSeek->insertItem( i18n("Tell..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_TELL );
- menuSeek->insertItem( i18n("Assess..."), this, TQT_SLOT( menuFunct(int) ), 0, MENU_ASSESS );
- menuSeek->insertItem( i18n("Player Info"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_FINGER );
+ menuSeek->insertItem( i18n("Accept This Match"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_ACCEPT_MATCH );
+ menuSeek->insertItem( i18n("Tell..."), this, TQ_SLOT( menuFunct(int) ), 0, MENU_TELL );
+ menuSeek->insertItem( i18n("Assess..."), this, TQ_SLOT( menuFunct(int) ), 0, MENU_ASSESS );
+ menuSeek->insertItem( i18n("Player Info"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_FINGER );
menuSeek->insertItem( TQIconSet( myResource->LoadIcon( TQString("history"), TDEIcon::Small ) ),
- i18n("Player History"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_HISTORY );
+ i18n("Player History"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_HISTORY );
menuSeek->insertSeparator();
- menuSeek->insertItem( i18n("Add to Friends"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_NOTIFY );
- menuSeek->insertItem( i18n("Ignore This Player"), this, TQT_SLOT( menuFunct(int) ), 0, MENU_CENSOR );
+ menuSeek->insertItem( i18n("Add to Friends"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_NOTIFY );
+ menuSeek->insertItem( i18n("Ignore This Player"), this, TQ_SLOT( menuFunct(int) ), 0, MENU_CENSOR );
menuSeek->setItemChecked( MENU_SEEK, FALSE );
- connect( this, TQT_SIGNAL( contextMenuRequested( TQListViewItem*, const TQPoint&, int ) ),
- this, TQT_SLOT( display_menuSeek( TQListViewItem*, const TQPoint&, int ) ) );
- connect( this, TQT_SIGNAL( executed( TQListViewItem* ) ),
- this, TQT_SLOT( selectMatch( TQListViewItem* ) ) );
+ connect( this, TQ_SIGNAL( contextMenuRequested( TQListViewItem*, const TQPoint&, int ) ),
+ this, TQ_SLOT( display_menuSeek( TQListViewItem*, const TQPoint&, int ) ) );
+ connect( this, TQ_SIGNAL( executed( TQListViewItem* ) ),
+ this, TQ_SLOT( selectMatch( TQListViewItem* ) ) );
}
tab_SeekList::~tab_SeekList()
{
diff --git a/knights/tabbox.cpp b/knights/tabbox.cpp
index 3a3099e..d14b45f 100644
--- a/knights/tabbox.cpp
+++ b/knights/tabbox.cpp
@@ -34,8 +34,8 @@ TabBox::TabBox( resource *rsrc ) : TQVBox(0,"TabBox",TQt::WDestructiveClose)
myAccel = new Accel( this, myResource->myAccel );
- connect( myTabs, TQT_SIGNAL( currentChanged( TQWidget* ) ), this, TQT_SLOT( changeMyCaption( TQWidget* ) ) );
- connect( this, TQT_SIGNAL( focus( const TQChar& ) ), myResource->myAccel, TQT_SIGNAL( focus( const TQChar& ) ) );
+ connect( myTabs, TQ_SIGNAL( currentChanged( TQWidget* ) ), this, TQ_SLOT( changeMyCaption( TQWidget* ) ) );
+ connect( this, TQ_SIGNAL( focus( const TQChar& ) ), myResource->myAccel, TQ_SIGNAL( focus( const TQChar& ) ) );
}
TabBox::~TabBox()
{
@@ -78,8 +78,8 @@ void TabBox::addTab( TQWidget *child, const TQString &caption )
myTabs->addTab( child, caption );
myTabs->showPage( child );
changeMyCaption( child );
- connect( child, TQT_SIGNAL( newParent( TabBox* ) ), this, TQT_SIGNAL( newTabBox( TabBox* ) ) );
- connect( child, TQT_SIGNAL( requestDestruction() ), this, TQT_SLOT( destroyChild() ) );
+ connect( child, TQ_SIGNAL( newParent( TabBox* ) ), this, TQ_SIGNAL( newTabBox( TabBox* ) ) );
+ connect( child, TQ_SIGNAL( requestDestruction() ), this, TQ_SLOT( destroyChild() ) );
}
else
{
@@ -89,8 +89,8 @@ void TabBox::addTab( TQWidget *child, const TQString &caption )
myTabs->addTab( newPage, caption );
myTabs->showPage( newPage );
changeMyCaption( newPage );
- connect( newPage, TQT_SIGNAL( newParent( TabBox* ) ), this, TQT_SIGNAL( newTabBox( TabBox* ) ) );
- connect( newPage, TQT_SIGNAL( requestDestruction() ), this, TQT_SLOT( destroyChild() ) );
+ connect( newPage, TQ_SIGNAL( newParent( TabBox* ) ), this, TQ_SIGNAL( newTabBox( TabBox* ) ) );
+ connect( newPage, TQ_SIGNAL( requestDestruction() ), this, TQ_SLOT( destroyChild() ) );
}
}
///////////////////////////////////////
diff --git a/knights/tabmanager.cpp b/knights/tabmanager.cpp
index 3b6ab66..020c707 100644
--- a/knights/tabmanager.cpp
+++ b/knights/tabmanager.cpp
@@ -178,9 +178,9 @@ void TabManager::childEvent( TQChildEvent *event )
void TabManager::manageNewBox( TabBox *newBox )
{
myList.append( newBox );
- connect( newBox, TQT_SIGNAL( destroyed( TQObject* ) ), this, TQT_SLOT( removeTab( TQObject* ) ) );
- connect( newBox, TQT_SIGNAL( saveTabGeometry( const TQString&, const TQSize& ) ), this, TQT_SLOT( saveTabGeometry( const TQString&, const TQSize& ) ) );
- connect( newBox, TQT_SIGNAL( newTabBox( TabBox* ) ), this, TQT_SLOT( manageNewBox( TabBox* ) ) );
+ connect( newBox, TQ_SIGNAL( destroyed( TQObject* ) ), this, TQ_SLOT( removeTab( TQObject* ) ) );
+ connect( newBox, TQ_SIGNAL( saveTabGeometry( const TQString&, const TQSize& ) ), this, TQ_SLOT( saveTabGeometry( const TQString&, const TQSize& ) ) );
+ connect( newBox, TQ_SIGNAL( newTabBox( TabBox* ) ), this, TQ_SLOT( manageNewBox( TabBox* ) ) );
}
///////////////////////////////////////
//
diff --git a/knights/tabpage.cpp b/knights/tabpage.cpp
index 8c2752f..1f24e38 100644
--- a/knights/tabpage.cpp
+++ b/knights/tabpage.cpp
@@ -39,7 +39,7 @@ TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(p
actionBar->show();
grip = new TabGrip( actionBar );
- connect( grip, TQT_SIGNAL( wasDragged(const TQPoint&, const TQPoint&) ), this, TQT_SLOT( tabDragged(const TQPoint&, const TQPoint&) ) );
+ connect( grip, TQ_SIGNAL( wasDragged(const TQPoint&, const TQPoint&) ), this, TQ_SLOT( tabDragged(const TQPoint&, const TQPoint&) ) );
TDEIconLoader icons( TQString( "knights" ) );
TQPixmap map = icons.loadIcon( TQString("tab_remove"), TDEIcon::Small, 0, TDEIcon::DefaultState, 0, TRUE );
@@ -54,7 +54,7 @@ TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(p
closeButton->setAutoRaise( TRUE );
closeButton->setTextLabel( i18n( "Close This Tab" ), TRUE );
closeButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
- connect( closeButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( requestDestruction() ) );
+ connect( closeButton, TQ_SIGNAL( clicked() ), this, TQ_SIGNAL( requestDestruction() ) );
myChild->reparent( this, TQPoint( 0, 0 ), TRUE );
myChild->show();
diff --git a/knights/thinbuttons.cpp b/knights/thinbuttons.cpp
index c9c4e43..0518306 100644
--- a/knights/thinbuttons.cpp
+++ b/knights/thinbuttons.cpp
@@ -38,7 +38,7 @@ thinbuttons::thinbuttons(TQWidget *parent, const char *name, resource *Rsrc ) :
matchMenu->insertSeparator();
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("window-close"), TDEIcon::Small ) ),
i18n("&Close Match"), MENU_CLOSE );
- connect( matchMenu, TQT_SIGNAL( activated(int) ), this, TQT_SLOT( menuClicked(int) ) );
+ connect( matchMenu, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( menuClicked(int) ) );
}
thinbuttons::~thinbuttons()
{
@@ -77,7 +77,7 @@ TQButton* thinbuttons::create( int id )
newButton->setText( TQString("Match") );
newButton->show();
- connect( newButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( buttonClicked() ) );
+ connect( newButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( buttonClicked() ) );
return newButton;
}
///////////////////////////////////////
@@ -149,7 +149,7 @@ void thinbuttons::remove( TQButton* button )
for( tmp = 0; tmp < buttons.count(); tmp++ )
if( buttons.at( tmp )->button == button )
{
- disconnect( buttons.at( tmp )->button, TQT_SIGNAL( clicked() ), this, TQT_SLOT( buttonClicked() ) );
+ disconnect( buttons.at( tmp )->button, TQ_SIGNAL( clicked() ), this, TQ_SLOT( buttonClicked() ) );
buttons.remove( tmp );
}
}
diff --git a/knights/wiz_setup.cpp b/knights/wiz_setup.cpp
index 593d09b..6477dc4 100644
--- a/knights/wiz_setup.cpp
+++ b/knights/wiz_setup.cpp
@@ -50,7 +50,7 @@ wiz_setup::wiz_setup(TQWidget *parent, const char *name, resource *Rsrc ) : KWiz
initPage5();
setCaption( i18n( "Knights Setup Wizard" ) );
- connect( this, TQT_SIGNAL( selected(const TQString&) ), this, TQT_SLOT( slot_Work(const TQString&) ) );
+ connect( this, TQ_SIGNAL( selected(const TQString&) ), this, TQ_SLOT( slot_Work(const TQString&) ) );
}
wiz_setup::~wiz_setup()
{
@@ -217,7 +217,7 @@ void wiz_setup::initPage6( void )
addPage( Page6, i18n("Please read and accept our license:") );
setHelpEnabled( Page6, FALSE );
- connect( licenseButtons, TQT_SIGNAL( clicked(int) ), this, TQT_SLOT( slot_License(int) ) );
+ connect( licenseButtons, TQ_SIGNAL( clicked(int) ), this, TQ_SLOT( slot_License(int) ) );
}
///////////////////////////////////////
//