Revert "Rename a number of old tq methods that are no longer tq specific"

This reverts commit 20a779d62b.
pull/1/head
Timothy Pearson 14 years ago
parent 20a779d62b
commit 0ce154494d

@ -30,7 +30,7 @@
#include <tqscrollview.h> #include <tqscrollview.h>
#include <tqwidget.h> #include <tqwidget.h>
#include <tqrect.h> #include <tqrect.h>
#include <brush.h> #include <tqbrush.h>
#include <tqpainter.h> #include <tqpainter.h>
#include <tqregexp.h> #include <tqregexp.h>
@ -66,7 +66,7 @@ Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *
/* Setup Style for myStatusBar */ /* Setup Style for myStatusBar */
myStatusBar->setAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine ); myStatusBar->tqsetAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );
myStatusBar->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); myStatusBar->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
clear(); clear();
@ -311,7 +311,7 @@ void Challenge_Graph::createBackground( void )
painter.drawText( 64, y_size - 8, i18n( "Time" ) ); painter.drawText( 64, y_size - 8, i18n( "Time" ) );
painter.end(); painter.end();
graph->setBackgroundPixmap( background ); graph->tqsetBackgroundPixmap( background );
} }
/////////////////////////////////////// ///////////////////////////////////////
// //
@ -339,7 +339,7 @@ void Challenge_Graph::menuFunct( int funct )
emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) ); emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) );
break; break;
case MENU_TELL: case MENU_TELL:
emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).arg( selectedPlayerName ) ) ); emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).tqarg( selectedPlayerName ) ) );
break; break;
case MENU_NOTIFY: case MENU_NOTIFY:
emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) ); emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) );

@ -103,8 +103,8 @@ void Challenge_Graph_View::contentsMouseMoveEvent(TQMouseEvent* e)
Challenge_Game *g = cr->getGame(); Challenge_Game *g = cr->getGame();
match = i18n( " Name: %1 Rating: %2 Match Type: %3 %4 Base Time: %5 Increment: %6" ) match = i18n( " Name: %1 Rating: %2 Match Type: %3 %4 Base Time: %5 Increment: %6" )
.arg( g->_player ).arg( g->rating() ).arg( g->_match_type ).arg( g->_is_rated ) .tqarg( g->_player ).tqarg( g->rating() ).tqarg( g->_match_type ).tqarg( g->_is_rated )
.arg( g->clock() ).arg( g->increment() ); .tqarg( g->clock() ).tqarg( g->increment() );
break; break;
} }
statusbar->setText( match ); statusbar->setText( match );

@ -171,7 +171,7 @@ void Console::historyForward( void )
/////////////////////////////////////// ///////////////////////////////////////
void Console::replyPrivate( void ) void Console::replyPrivate( void )
{ {
myLineEdit->setText( TQString( "tell %1 " ).arg( lastPrivateSource ) ); myLineEdit->setText( TQString( "tell %1 " ).tqarg( lastPrivateSource ) );
if( !myLineEdit->hasFocus() ) if( !myLineEdit->hasFocus() )
getFocus(); getFocus();
} }
@ -182,7 +182,7 @@ void Console::replyPrivate( void )
/////////////////////////////////////// ///////////////////////////////////////
void Console::replyChannel( void ) void Console::replyChannel( void )
{ {
myLineEdit->setText( TQString( "tell %1 " ).arg( lastChannelSource ) ); myLineEdit->setText( TQString( "tell %1 " ).tqarg( lastChannelSource ) );
if( !myLineEdit->hasFocus() ) if( !myLineEdit->hasFocus() )
getFocus(); getFocus();
} }

@ -21,7 +21,7 @@
/* TQt */ /* TQt */
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <layout.h> #include <tqlayout.h>
/* Local */ /* Local */
#include "definitions.h" #include "definitions.h"
#include "resource.h" #include "resource.h"

@ -227,7 +227,7 @@ void core::setMatch( int ID )
/* Give Ourselves Focus */ /* Give Ourselves Focus */
setActiveWindow(); setActiveWindow();
topLevelWidget()->raise(); tqtopLevelWidget()->raise();
} }
/////////////////////////////////////// ///////////////////////////////////////

@ -48,7 +48,7 @@ dlg_challenge::dlg_challenge(TQWidget *parent, const char *name, resource *Rsrc
LABEL_BlackInc = new TQLabel( BOX_Black ); LABEL_BlackInc = new TQLabel( BOX_Black );
BUTTON_TimeOdds = new TQCheckBox( i18n("Time Odds Match"),BOX_Parent ); BUTTON_TimeOdds = new TQCheckBox( i18n("Time Odds Match"),BOX_Parent );
LABEL_Headline->setAlignment( TQt::AlignCenter ); LABEL_Headline->tqsetAlignment( TQt::AlignCenter );
COMBO_Rated->setEditable( FALSE ); COMBO_Rated->setEditable( FALSE );
COMBO_Rated->insertItem( i18n("Unrated"), 0 ); COMBO_Rated->insertItem( i18n("Unrated"), 0 );
COMBO_Rated->insertItem( i18n("Rated"), 1 ); COMBO_Rated->insertItem( i18n("Rated"), 1 );
@ -107,7 +107,7 @@ void dlg_challenge::setValues( const TQString &string, const TQString &local )
localRating = list[3]; localRating = list[3];
} }
LABEL_Headline->setText( i18n("%1 %2 vs. %3 %4\nin a %5 match.") LABEL_Headline->setText( i18n("%1 %2 vs. %3 %4\nin a %5 match.")
.arg(local).arg(localRating).arg(otherPlayer).arg(otherRating).arg(list[5]) ); .tqarg(local).tqarg(localRating).tqarg(otherPlayer).tqarg(otherRating).tqarg(list[5]) );
if( list[4].lower() == "rated" ) if( list[4].lower() == "rated" )
{ {
COMBO_Rated->setCurrentItem(1); COMBO_Rated->setCurrentItem(1);
@ -137,14 +137,14 @@ void dlg_challenge::setValues( const TQString &string, const TQString &local )
TQString dlg_challenge::values( void ) TQString dlg_challenge::values( void )
{ {
TQString match; TQString match;
match = TQString("match %1").arg(otherPlayer); match = TQString("match %1").tqarg(otherPlayer);
if( COMBO_Rated->currentItem() == 0 ) if( COMBO_Rated->currentItem() == 0 )
match += " unrated"; match += " unrated";
else else
match += " rated"; match += " rated";
match += TQString(" %1 %1").arg(BOX_WhiteBase->value()).arg(BOX_WhiteInc->value()); match += TQString(" %1 %1").tqarg(BOX_WhiteBase->value()).tqarg(BOX_WhiteInc->value());
if( BUTTON_TimeOdds->isChecked() ) if( BUTTON_TimeOdds->isChecked() )
match += TQString(" %1 %1").arg(BOX_BlackBase->value()).arg(BOX_BlackInc->value()); match += TQString(" %1 %1").tqarg(BOX_BlackBase->value()).tqarg(BOX_BlackInc->value());
return match; return match;
} }

@ -21,7 +21,7 @@
#include <klocale.h> #include <klocale.h>
#include <kdialogbase.h> #include <kdialogbase.h>
#include <tqwidget.h> #include <tqwidget.h>
#include <layout.h> #include <tqlayout.h>
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqvbox.h> #include <tqvbox.h>
#include "definitions.h" #include "definitions.h"

@ -223,7 +223,7 @@ void io_internet::connectToServer()
*/ */
consoleTab = new Console( 0, myServer->Name, myResource ); consoleTab = new Console( 0, myServer->Name, myResource );
myTabList[consoleTab] = consoleTab; myTabList[consoleTab] = consoleTab;
myResource->tabManager->addTab( myTabList[consoleTab], i18n( "%1 Console" ).arg( myServer->Name ) ); myResource->tabManager->addTab( myTabList[consoleTab], i18n( "%1 Console" ).tqarg( myServer->Name ) );
connect( myTabList[consoleTab], TQT_SIGNAL( sendCMD( const Command& ) ), this, TQT_SLOT( recvCMD( const Command& ) ) ); 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( this, TQT_SIGNAL( sendCMD( const Command& ) ), myTabList[consoleTab], TQT_SLOT( recvCMD( const Command& ) ) );
@ -996,13 +996,13 @@ void io_internet::updateSoughtList(TQString soughtLine)
void io_internet::sendUserSettings() void io_internet::sendUserSettings()
{ {
send("set style 12"); send("set style 12");
send(TQString("set interface Knights %1").arg(_VERSION_)); send(TQString("set interface Knights %1").tqarg(_VERSION_));
send(TQString("set private %1").arg(myResource->OPTION_Private)); send(TQString("set private %1").tqarg(myResource->OPTION_Private));
send(TQString("set kibitz %1").arg(myResource->OPTION_Kibitz)); send(TQString("set kibitz %1").tqarg(myResource->OPTION_Kibitz));
send(TQString("set tell %1").arg(myResource->OPTION_Tell)); send(TQString("set tell %1").tqarg(myResource->OPTION_Tell));
send(TQString("set shout %1").arg(myResource->OPTION_Shout)); send(TQString("set shout %1").tqarg(myResource->OPTION_Shout));
send(TQString("set seek %1").arg(myResource->OPTION_Seek)); send(TQString("set seek %1").tqarg(myResource->OPTION_Seek));
send(TQString("set tolerance %1").arg(myResource->OPTION_Profanity)); send(TQString("set tolerance %1").tqarg(myResource->OPTION_Profanity));
} }
/////////////////////////////////////// ///////////////////////////////////////

@ -34,7 +34,7 @@
/* KFile */ /* KFile */
#include <kfiledialog.h> #include <kfiledialog.h>
/* TQt */ /* TQt */
#include <palette.h> #include <tqpalette.h>
#include <tqiconset.h> #include <tqiconset.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <tqframe.h> #include <tqframe.h>
@ -163,21 +163,21 @@ bool Knights::init( void )
initMenus(); initMenus();
/* Init Message */ /* Init Message */
Message->setAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine ); Message->tqsetAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );
/* Init White Time Label */ /* Init White Time Label */
GroupWhite.setColor( TQColorGroup::Background, Resource->COLOR_White ); GroupWhite.setColor( TQColorGroup::Background, Resource->COLOR_White );
GroupWhite.setColor( TQColorGroup::Foreground, Resource->COLOR_Black ); GroupWhite.setColor( TQColorGroup::Foreground, Resource->COLOR_Black );
whiteTimeLabel->setPalette( TQPalette( GroupWhite, GroupWhite, GroupWhite ) ); whiteTimeLabel->setPalette( TQPalette( GroupWhite, GroupWhite, GroupWhite ) );
whiteTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken ); whiteTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
whiteTimeLabel->setAlignment( TQt::AlignCenter | TQt::SingleLine ); whiteTimeLabel->tqsetAlignment( TQt::AlignCenter | TQt::SingleLine );
/* Init Black Time Label */ /* Init Black Time Label */
GroupBlack.setColor( TQColorGroup::Background, Resource->COLOR_Black ); GroupBlack.setColor( TQColorGroup::Background, Resource->COLOR_Black );
GroupBlack.setColor( TQColorGroup::Foreground, Resource->COLOR_White ); GroupBlack.setColor( TQColorGroup::Foreground, Resource->COLOR_White );
blackTimeLabel->setPalette( TQPalette( GroupBlack, GroupBlack, GroupBlack ) ); blackTimeLabel->setPalette( TQPalette( GroupBlack, GroupBlack, GroupBlack ) );
blackTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken ); blackTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
blackTimeLabel->setAlignment( TQt::AlignCenter | TQt::SingleLine ); blackTimeLabel->tqsetAlignment( TQt::AlignCenter | TQt::SingleLine );
/* Configure self */ /* Configure self */
setCentralWidget( MainFrame ); setCentralWidget( MainFrame );
@ -250,122 +250,122 @@ void Knights::initMenus( void )
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("undo"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("undo"), KIcon::Small ) ),
i18n( "&Retract Move" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RETRACT ); i18n( "&Retract Move" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RETRACT );
matchMenu->setItemEnabled( MENU_RETRACT, FALSE ); matchMenu->setItemEnabled( MENU_RETRACT, FALSE );
matchMenu->setWhatsThis( MENU_RETRACT, i18n( "Select this to retract your last move." ) ); matchMenu->tqsetWhatsThis( MENU_RETRACT, i18n( "Select this to retract your last move." ) );
// MENU_RESIGN // MENU_RESIGN
matchMenu->insertItem( i18n( "Resign" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RESIGN ); matchMenu->insertItem( i18n( "Resign" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RESIGN );
matchMenu->setItemEnabled( MENU_RESIGN, FALSE ); matchMenu->setItemEnabled( MENU_RESIGN, FALSE );
matchMenu->setWhatsThis( MENU_RESIGN, i18n( "Use this to concede the match to your opponent." ) ); matchMenu->tqsetWhatsThis( MENU_RESIGN, i18n( "Use this to concede the match to your opponent." ) );
// MENU_CALL_FLAG // MENU_CALL_FLAG
matchMenu->insertItem( i18n( "&Call Flag" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_CALL_FLAG ); matchMenu->insertItem( i18n( "&Call Flag" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_CALL_FLAG );
matchMenu->setItemEnabled( MENU_CALL_FLAG, FALSE ); 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." ) ); matchMenu->tqsetWhatsThis( MENU_CALL_FLAG, i18n( "Use this to declare the match over, due to your opponent being out of time." ) );
// MENU_HINT // MENU_HINT
matchMenu->insertItem( i18n( "&Hint" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_HINT ); matchMenu->insertItem( i18n( "&Hint" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_HINT );
matchMenu->setItemEnabled( MENU_HINT, FALSE ); matchMenu->setItemEnabled( MENU_HINT, FALSE );
matchMenu->setWhatsThis( MENU_HINT, i18n( "This will ask your opponent for a hint." ) ); matchMenu->tqsetWhatsThis( MENU_HINT, i18n( "This will ask your opponent for a hint." ) );
// MENU_MOVE_NOW // MENU_MOVE_NOW
matchMenu->insertItem( i18n( "Move &Now" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_MOVE_NOW ); matchMenu->insertItem( i18n( "Move &Now" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_MOVE_NOW );
matchMenu->setItemEnabled( MENU_MOVE_NOW, FALSE ); matchMenu->setItemEnabled( MENU_MOVE_NOW, FALSE );
matchMenu->setWhatsThis( MENU_MOVE_NOW, i18n( "Clicking this option will force your opponent to move immediately." ) ); matchMenu->tqsetWhatsThis( MENU_MOVE_NOW, i18n( "Clicking this option will force your opponent to move immediately." ) );
// MENU_ORIENTATION // MENU_ORIENTATION
matchMenu->insertItem( i18n( "&Flip View" ), Core, TQT_SLOT(matchMenu(int)), Key_F2, MENU_ORIENTATION ); matchMenu->insertItem( i18n( "&Flip View" ), Core, TQT_SLOT(matchMenu(int)), Key_F2, MENU_ORIENTATION );
matchMenu->setItemEnabled( MENU_ORIENTATION, FALSE ); matchMenu->setItemEnabled( MENU_ORIENTATION, FALSE );
matchMenu->setWhatsThis( MENU_ORIENTATION, i18n( "This will reverse the chessboard's orientation by 180 degrees." ) ); matchMenu->tqsetWhatsThis( MENU_ORIENTATION, i18n( "This will reverse the chessboard's orientation by 180 degrees." ) );
// MENU_PONDER // MENU_PONDER
matchMenu->insertItem( i18n( "&Ponder" ), this, TQT_SLOT(Settings(int)), 0, MENU_PONDER ); matchMenu->insertItem( i18n( "&Ponder" ), this, TQT_SLOT(Settings(int)), 0, MENU_PONDER );
matchMenu->setItemChecked( MENU_PONDER, Resource->OPTION_Ponder ); matchMenu->setItemChecked( MENU_PONDER, Resource->OPTION_Ponder );
matchMenu->setItemEnabled( MENU_PONDER, FALSE ); matchMenu->setItemEnabled( MENU_PONDER, FALSE );
matchMenu->setWhatsThis( MENU_PONDER, i18n( "This toggles your opponent's ability to think while it's your turn." ) ); matchMenu->tqsetWhatsThis( MENU_PONDER, i18n( "This toggles your opponent's ability to think while it's your turn." ) );
matchMenu->insertSeparator(); matchMenu->insertSeparator();
// MENU_PAUSE // MENU_PAUSE
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("player_pause"), KIcon::Small ) ), matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("player_pause"), KIcon::Small ) ),
i18n( "Pause" ), this, TQT_SLOT( Settings(int) ), Key_F12, MENU_PAUSE ); i18n( "Pause" ), this, TQT_SLOT( Settings(int) ), Key_F12, MENU_PAUSE );
matchMenu->setItemEnabled( MENU_PAUSE, FALSE ); matchMenu->setItemEnabled( MENU_PAUSE, FALSE );
matchMenu->setWhatsThis( MENU_PAUSE, i18n( "Select this to pause the clock for this match." ) ); matchMenu->tqsetWhatsThis( MENU_PAUSE, i18n( "Select this to pause the clock for this match." ) );
/* /*
drawMenu menu drawMenu menu
*/ */
// MENU_OFFER_DRAW // MENU_OFFER_DRAW
drawMenu->insertItem( i18n( "&Offer Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_OFFER_DRAW ); drawMenu->insertItem( i18n( "&Offer Draw" ), Core, TQT_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." ) ); drawMenu->tqsetWhatsThis( MENU_OFFER_DRAW, i18n( "Clicking this will inform your opponent that you are willing draw the match." ) );
// MENU_ACCEPT_DRAW // MENU_ACCEPT_DRAW
drawMenu->insertItem( i18n( "&Accept Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_ACCEPT_DRAW ); drawMenu->insertItem( i18n( "&Accept Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_ACCEPT_DRAW );
drawMenu->setWhatsThis( MENU_ACCEPT_DRAW, i18n( "Clicking this will accept a draw offered by your opponent." ) ); drawMenu->tqsetWhatsThis( MENU_ACCEPT_DRAW, i18n( "Clicking this will accept a draw offered by your opponent." ) );
// MENU_REJECT_DRAW // MENU_REJECT_DRAW
drawMenu->insertItem( i18n( "&Reject Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_REJECT_DRAW ); drawMenu->insertItem( i18n( "&Reject Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_REJECT_DRAW );
drawMenu->setWhatsThis( MENU_REJECT_DRAW, i18n( "Clicking this will reject a draw offered by your opponent." ) ); drawMenu->tqsetWhatsThis( MENU_REJECT_DRAW, i18n( "Clicking this will reject a draw offered by your opponent." ) );
// MENU_IGNORE_DRAW // MENU_IGNORE_DRAW
drawMenu->insertItem( i18n( "&Ignore Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_IGNORE_DRAW ); drawMenu->insertItem( i18n( "&Ignore Draw" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_IGNORE_DRAW );
drawMenu->setWhatsThis( MENU_IGNORE_DRAW, i18n( "Clicking this will ignore future draw offers from your opponent." ) ); drawMenu->tqsetWhatsThis( MENU_IGNORE_DRAW, i18n( "Clicking this will ignore future draw offers from your opponent." ) );
/* /*
fileMenu menu fileMenu menu
*/ */
// MENU_NEWGAME // MENU_NEWGAME
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filenew"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filenew"), KIcon::Small ) ),
i18n( "&New Match..." ), this, TQT_SLOT( openNewMatchDialog() ), CTRL+Key_N, MENU_NEWGAME ); i18n( "&New Match..." ), this, TQT_SLOT( openNewMatchDialog() ), CTRL+Key_N, MENU_NEWGAME );
fileMenu->setWhatsThis( MENU_NEWGAME, i18n( "This allows you to begin a new match." ) ); fileMenu->tqsetWhatsThis( MENU_NEWGAME, i18n( "This allows you to begin a new match." ) );
// MENU_LOAD // MENU_LOAD
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileopen"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileopen"), KIcon::Small ) ),
i18n( "&Load Match..." ), Core, TQT_SLOT( load() ), CTRL+Key_L, MENU_LOAD ); i18n( "&Load Match..." ), Core, TQT_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->tqsetWhatsThis( MENU_LOAD, i18n( "The Load command will allow you to select a previously saved match and play it again." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_SAVE // MENU_SAVE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ),
i18n( "&Save Match" ), this, TQT_SLOT( SaveGame() ), CTRL+Key_S, MENU_SAVE ); i18n( "&Save Match" ), this, TQT_SLOT( SaveGame() ), CTRL+Key_S, MENU_SAVE );
fileMenu->setItemEnabled( MENU_SAVE, FALSE ); 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." ) ); fileMenu->tqsetWhatsThis( MENU_SAVE, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
// MENU_SAVEAS // MENU_SAVEAS
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ),
i18n( "Save Match &As..." ), this, TQT_SLOT( SaveGameAs() ), CTRL+Key_A, MENU_SAVEAS ); i18n( "Save Match &As..." ), this, TQT_SLOT( SaveGameAs() ), CTRL+Key_A, MENU_SAVEAS );
fileMenu->setItemEnabled( MENU_SAVEAS, FALSE ); 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->tqsetWhatsThis( MENU_SAVEAS, i18n( "The Save command will allow you to store a copy of your current match for later use." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_CONNECT // MENU_CONNECT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("connect_creating"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("connect_creating"), KIcon::Small ) ),
i18n( "Connect to Server" ), this, TQT_SLOT( netConnect() ), CTRL+Key_C, MENU_CONNECT ); i18n( "Connect to Server" ), this, TQT_SLOT( netConnect() ), CTRL+Key_C, MENU_CONNECT );
fileMenu->setWhatsThis( MENU_CONNECT, i18n( "Clicking this will connect Knights with an internet chess server." ) ); fileMenu->tqsetWhatsThis( MENU_CONNECT, i18n( "Clicking this will connect Knights with an internet chess server." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_PRINT // MENU_PRINT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), KIcon::Small ) ),
i18n( "&Print Notation..." ), Core, TQT_SLOT( print() ), CTRL+Key_P, MENU_PRINT ); i18n( "&Print Notation..." ), Core, TQT_SLOT( print() ), CTRL+Key_P, MENU_PRINT );
fileMenu->setItemEnabled( MENU_PRINT, FALSE ); 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->tqsetWhatsThis( MENU_PRINT, i18n( "The Print command will allow you to print this game's notation on your printer." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_CLOSE // MENU_CLOSE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileclose"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileclose"), KIcon::Small ) ),
i18n( "&Close Match" ), Core, TQT_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE ); i18n( "&Close Match" ), Core, TQT_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE );
fileMenu->setItemEnabled( MENU_CLOSE, FALSE ); fileMenu->setItemEnabled( MENU_CLOSE, FALSE );
fileMenu->setWhatsThis( MENU_CLOSE, i18n( "This command removes the current match." ) ); fileMenu->tqsetWhatsThis( MENU_CLOSE, i18n( "This command removes the current match." ) );
// MENU_CLOSEALL // MENU_CLOSEALL
fileMenu->insertItem( i18n( "Close All" ), Core, TQT_SLOT( clearAll() ), 0, MENU_CLOSEALL ); fileMenu->insertItem( i18n( "Close All" ), Core, TQT_SLOT( clearAll() ), 0, MENU_CLOSEALL );
fileMenu->setItemEnabled( MENU_CLOSEALL, FALSE ); fileMenu->setItemEnabled( MENU_CLOSEALL, FALSE );
fileMenu->setWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) ); fileMenu->tqsetWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) );
fileMenu->insertSeparator(); fileMenu->insertSeparator();
// MENU_TQUIT // MENU_TQUIT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("exit"), KIcon::Small ) ), fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("exit"), KIcon::Small ) ),
i18n( "&Quit" ), this, TQT_SLOT(menuClose()), CTRL+Key_Q, MENU_TQUIT ); i18n( "&Quit" ), this, TQT_SLOT(menuClose()), CTRL+Key_Q, MENU_TQUIT );
fileMenu->setWhatsThis( MENU_TQUIT, i18n( "The Quit command will stop all matches and exit Knights." ) ); fileMenu->tqsetWhatsThis( MENU_TQUIT, i18n( "The Quit command will stop all matches and exit Knights." ) );
/* /*
settingsMenu menu settingsMenu menu
*/ */
// MENU_INSTALL_THEMES // MENU_INSTALL_THEMES
settingsMenu->insertItem( i18n( "&Install Themes" ), this, TQT_SLOT(installThemes()), 0, MENU_INSTALL_THEMES ); settingsMenu->insertItem( i18n( "&Install Themes" ), this, TQT_SLOT(installThemes()), 0, MENU_INSTALL_THEMES );
settingsMenu->setWhatsThis( MENU_INSTALL_THEMES, i18n( "This lets you install downloaded themes into Knights." ) ); settingsMenu->tqsetWhatsThis( MENU_INSTALL_THEMES, i18n( "This lets you install downloaded themes into Knights." ) );
// MENU_BINDINGS_DIALOG // MENU_BINDINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("key_bindings"), KIcon::Small ) ), settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("key_bindings"), KIcon::Small ) ),
i18n( "Configure &Key Bindings..." ), this, TQT_SLOT(openKeyBindingDialog()), 0, MENU_BINDINGS_DIALOG ); i18n( "Configure &Key Bindings..." ), this, TQT_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." ) ); settingsMenu->tqsetWhatsThis( MENU_BINDINGS_DIALOG, i18n( "Click this if you want to change the keyboard shortcuts that Knights uses." ) );
// MENU_SETTINGS_DIALOG // MENU_SETTINGS_DIALOG
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("configure"), KIcon::Small ) ), settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("configure"), KIcon::Small ) ),
i18n( "&Configure Knights..." ), this, TQT_SLOT(openSettingsDialog()), 0, MENU_SETTINGS_DIALOG ); i18n( "&Configure Knights..." ), this, TQT_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." ) ); settingsMenu->tqsetWhatsThis( MENU_SETTINGS_DIALOG, i18n( "This opens a new window which allows you to customize Knights to your particular tastes." ) );
/* /*
tutorialMenu menu tutorialMenu menu
*/ */
tutorialMenu->setCheckable(TRUE); tutorialMenu->setCheckable(TRUE);
// MENU_OPEN_TUTORIAL // 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, TQT_SLOT(Settings(int)), 0, MENU_OPEN_TUTORIAL );
// tutorialMenu->setWhatsThis( MENU_OPEN_TUTORIAL, i18n( "" ) ); // tutorialMenu->tqsetWhatsThis( MENU_OPEN_TUTORIAL, i18n( "" ) );
/* /*
topMenu menu topMenu menu
*/ */
@ -397,8 +397,8 @@ void Knights::resizeMainFrame(void)
Core->move( 0, 0 ); Core->move( 0, 0 );
Core->resize(); Core->resize();
/* Get our size hints */ /* Get our size hints */
S_Message = Message->sizeHint(); S_Message = Message->tqsizeHint();
S_Menu = topMenu->sizeHint(); S_Menu = topMenu->tqsizeHint();
statusHeight = S_Message.height() + ( margin << 1 ); statusHeight = S_Message.height() + ( margin << 1 );
statusY += Core->height() + margin + statusHeight + margin; statusY += Core->height() + margin + statusHeight + margin;
statusX = Core->width(); statusX = Core->width();
@ -447,7 +447,7 @@ void Knights::resizeEvent( TQResizeEvent * )
if( ResizeFlag ) return; if( ResizeFlag ) return;
/* Get the height & Y of the status bar */ /* Get the height & Y of the status bar */
gridX = Core->width() >> 3; gridX = Core->width() >> 3;
S_Message = Message->sizeHint() + TQSize( 2, 2 ); S_Message = Message->tqsizeHint() + TQSize( 2, 2 );
statusHeight = S_Message.height() + ( margin << 1 ); statusHeight = S_Message.height() + ( margin << 1 );
Resource->Widget_Height = statusHeight; Resource->Widget_Height = statusHeight;
statusY += Core->height() + margin; statusY += Core->height() + margin;
@ -561,29 +561,29 @@ void Knights::setStatusBar( const int &ID, const TQString &MSG )
case BOOK_ERROR_1: case BOOK_ERROR_1:
Message->setText( i18n( "Error with white engine" ) ); Message->setText( i18n( "Error with white engine" ) );
KMessageBox::sorry( this, KMessageBox::sorry( this,
i18n("You selected %1 to play white,\nbut it can only be used as a book engine.\nPlease select another engine to play white.").arg( MSG ), i18n("You selected %1 to play white,\nbut it can only be used as a book engine.\nPlease select another engine to play white.").tqarg( MSG ),
i18n("White Engine Problem") ); i18n("White Engine Problem") );
break; break;
case BOOK_ERROR_2: case BOOK_ERROR_2:
Message->setText( i18n( "Error with white book engine" ) ); Message->setText( i18n( "Error with white book engine" ) );
KMessageBox::sorry( this, KMessageBox::sorry( this,
i18n("You selected %1 to play white's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play white's book.").arg( MSG ), i18n("You selected %1 to play white's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play white's book.").tqarg( MSG ),
i18n("White Book Engine Problem") ); i18n("White Book Engine Problem") );
break; break;
case BOOK_ERROR_3: case BOOK_ERROR_3:
Message->setText( i18n( "Error with black engine" ) ); Message->setText( i18n( "Error with black engine" ) );
KMessageBox::sorry( this, KMessageBox::sorry( this,
i18n("You selected %1 to play black,\nbut it can only be used as a book engine.\nPlease select another engine to play black.").arg( MSG ), i18n("You selected %1 to play black,\nbut it can only be used as a book engine.\nPlease select another engine to play black.").tqarg( MSG ),
i18n("Black Engine Problem") ); i18n("Black Engine Problem") );
break; break;
case BOOK_ERROR_4: case BOOK_ERROR_4:
Message->setText( i18n( "Error with black book engine" ) ); Message->setText( i18n( "Error with black book engine" ) );
KMessageBox::sorry( this, KMessageBox::sorry( this,
i18n("You selected %1 to play black's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play black's book.").arg( MSG ), i18n("You selected %1 to play black's book,\nbut it can only be used as a regular engine.\nPlease select another engine to play black's book.").tqarg( MSG ),
i18n("Black Book Engine Problem") ); i18n("Black Book Engine Problem") );
break; break;
case ENGINE_DIED_ERROR: case ENGINE_DIED_ERROR:
Message->setText( i18n( "The computer opponent assigned to play %1 has crashed" ).arg( MSG ) ); Message->setText( i18n( "The computer opponent assigned to play %1 has crashed" ).tqarg( MSG ) );
break; break;
case LOAD_ERROR: case LOAD_ERROR:
Message->setText( i18n( "There was an error while loading the file" ) ); Message->setText( i18n( "There was an error while loading the file" ) );
@ -1017,7 +1017,7 @@ void Knights::installThemes( void )
if( installError ) if( installError )
{ {
KMessageBox::sorry( this, KMessageBox::sorry( this,
i18n("The theme could not be installed:\n%1").arg( allerror ), i18n("The theme could not be installed:\n%1").tqarg( allerror ),
i18n("Can not install theme") ); i18n("Can not install theme") );
} }
return; return;

@ -30,7 +30,7 @@
#include <kstatusbar.h> #include <kstatusbar.h>
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
/* QT */ /* QT */
#include <layout.h> #include <tqlayout.h>
#include <tqwidget.h> #include <tqwidget.h>
#include <tqpixmap.h> #include <tqpixmap.h>
#include <tqstring.h> #include <tqstring.h>
@ -72,7 +72,7 @@ class Knights : public KMainWindow
public slots: public slots:
void KillAll( void ); void KillAll( void );
void menuClose( void ); void menuClose( void );
/** Yeah, they're sloppy, but I need my own geometry managment routines /** Yeah, they're sloppy, but I need my own tqgeometry managment routines
because I don't like the "default" look my statusbar was getting because I don't like the "default" look my statusbar was getting
( double-height ). Plus, I want the console to appear only when needed. */ ( double-height ). Plus, I want the console to appear only when needed. */
void resizeMainFrame( void ); void resizeMainFrame( void );

@ -207,7 +207,7 @@ void KnightsTextView::print( void )
{ {
/* Print the Contents */ /* Print the Contents */
paint.setClipRect( body ); paint.setClipRect( body );
simpText.draw( &paint, body.left(), body.top(), view, colorGroup() ); simpText.draw( &paint, body.left(), body.top(), view, tqcolorGroup() );
paint.setClipping( false ); paint.setClipping( false );
view.moveBy( 0, body.height() ); view.moveBy( 0, body.height() );
paint.translate( 0, -body.height() ); paint.translate( 0, -body.height() );
@ -215,7 +215,7 @@ void KnightsTextView::print( void )
/* Print the Page Number */ /* Print the Page Number */
paint.setFont( myResource->FONT_Standard ); paint.setFont( myResource->FONT_Standard );
paint.setPen( myResource->COLOR_Black ); paint.setPen( myResource->COLOR_Black );
TQString pageCount = i18n( "Page %1 of %2" ).arg( currentPage ).arg( totalPages ); TQString pageCount = i18n( "Page %1 of %2" ).tqarg( currentPage ).tqarg( totalPages );
paint.drawText( view.width() - paint.fontMetrics().width( pageCount ), paint.drawText( view.width() - paint.fontMetrics().width( pageCount ),
view.bottom() + paint.fontMetrics().ascent() + 5, pageCount ); view.bottom() + paint.fontMetrics().ascent() + 5, pageCount );
if( view.top() >= simpText.height() ) if( view.top() >= simpText.height() )

@ -19,7 +19,7 @@
#define KNIGHTSTEXTVIEW_H #define KNIGHTSTEXTVIEW_H
#include <tqwidget.h> #include <tqwidget.h>
#include <textbrowser.h> #include <tqtextbrowser.h>
/** /**
*@author Troy Corbin Jr./Alexander Wels *@author Troy Corbin Jr./Alexander Wels

@ -80,7 +80,7 @@ void list_pgn::setURL( TQString URL )
if( tmpPGN.open( URL ) == FALSE ) if( tmpPGN.open( URL ) == FALSE )
{ {
status->message( i18n( "Can not open %1" ).arg( URL ) ); status->message( i18n( "Can not open %1" ).tqarg( URL ) );
return; return;
} }
listView->hide(); listView->hide();
@ -140,6 +140,6 @@ void list_pgn::timerEvent( TQTimerEvent* )
tmpPGN.TAG_Site, tmpPGN.TAG_Site,
tmpPGN.TAG_Date, tmpPGN.TAG_Date,
TQString::number(tmpPGN.File_Position) ); TQString::number(tmpPGN.File_Position) );
status->message( i18n( TQString( "%1 matches found." ).arg( listView->childCount() ) ) ); status->message( i18n( TQString( "%1 matches found." ).tqarg( listView->childCount() ) ) );
} }
} }

@ -891,7 +891,7 @@ bool match::move( void )
Clock->Pause(); Clock->Pause();
Logic->OnMove = !Logic->OnMove; Logic->OnMove = !Logic->OnMove;
/* Set Status Bar */ /* Set tqStatus Bar */
if( Logic->OnMove == WHITE ) if( Logic->OnMove == WHITE )
{ {
emit setStatusBar( WHITE_TURN ); emit setStatusBar( WHITE_TURN );

@ -134,11 +134,11 @@ TQStringList* pgn::notation( const int format )
Line = ( tmp + 2 ) >> 1; Line = ( tmp + 2 ) >> 1;
if( ( tmp % 2 ) == 0 ) if( ( tmp % 2 ) == 0 )
{ {
notation = TQString( "%1. %2" ).arg( Line ).arg( (*IT).SAN ); notation = TQString( "%1. %2" ).tqarg( Line ).tqarg( (*IT).SAN );
} }
else else
{ {
notation = TQString( "%1... %2" ).arg( Line ).arg( (*IT).SAN ); notation = TQString( "%1... %2" ).tqarg( Line ).tqarg( (*IT).SAN );
} }
list->append( notation ); list->append( notation );
tmp++; tmp++;
@ -152,13 +152,13 @@ TQStringList* pgn::notation( const int format )
Line = ( tmp + 2 ) >> 1; Line = ( tmp + 2 ) >> 1;
if( ( tmp % 2 ) == 0 ) if( ( tmp % 2 ) == 0 )
{ {
notation = TQString( "%1. %2" ).arg( Line ).arg( (*IT).SAN ); notation = TQString( "%1. %2" ).tqarg( Line ).tqarg( (*IT).SAN );
} }
else else
{ {
if( showLineNumber ) if( showLineNumber )
{ {
notation = TQString( "%1... %2" ).arg( Line ).arg( (*IT).SAN ); notation = TQString( "%1... %2" ).tqarg( Line ).tqarg( (*IT).SAN );
} }
else else
{ {
@ -169,20 +169,20 @@ TQStringList* pgn::notation( const int format )
/* Insert NAGs */ /* Insert NAGs */
if( (*IT).NAG != 0 ) if( (*IT).NAG != 0 )
{ {
notation += TQString( " $%1" ).arg( TQString::number( (*IT).NAG ) ); notation += TQString( " $%1" ).tqarg( TQString::number( (*IT).NAG ) );
} }
/* Insert RAVs */ /* Insert RAVs */
annon = RAV.find( tmp ); annon = RAV.find( tmp );
if( annon != NULL ) if( annon != NULL )
{ {
notation += TQString( " (%1)" ).arg( annon->text ); notation += TQString( " (%1)" ).tqarg( annon->text );
showLineNumber = true; showLineNumber = true;
} }
/* Insert Annotations */ /* Insert Annotations */
annon = annotations.find( tmp ); annon = annotations.find( tmp );
if( annon != NULL ) if( annon != NULL )
{ {
notation += TQString( " {%1}" ).arg( annon->text ); notation += TQString( " {%1}" ).tqarg( annon->text );
showLineNumber = true; showLineNumber = true;
} }
list->append( notation ); list->append( notation );
@ -204,7 +204,7 @@ TQString pgn::caption( void )
{ {
TQString caption; TQString caption;
caption = i18n( "%1 vs. %2").arg( TAG_White ).arg( TAG_Black ); caption = i18n( "%1 vs. %2").tqarg( TAG_White ).tqarg( TAG_Black );
return caption; return caption;
} }
/////////////////////////////////////// ///////////////////////////////////////
@ -288,8 +288,8 @@ void pgn::init( void )
uname( &unamePtr ); uname( &unamePtr );
/* Build Date */ /* Build Date */
qdt = TQDateTime::currentDateTime(); qdt = TQDateTime::tqcurrentDateTime();
TAG_Date = TQString("%1.%2.%3").arg(qdt.date().year(),4).arg(qdt.date().month(),2).arg(qdt.date().day(),2); TAG_Date = TQString("%1.%2.%3").tqarg(qdt.date().year(),4).tqarg(qdt.date().month(),2).tqarg(qdt.date().day(),2);
TAG_Date = TAG_Date.replace( TQRegExp("\\s"), TQString("0") ); TAG_Date = TAG_Date.replace( TQRegExp("\\s"), TQString("0") );
TAG_Time = qdt.time().toString(); TAG_Time = qdt.time().toString();
@ -387,7 +387,7 @@ bool pgn::load( const int pos )
/* Allocate the Tab_PGNView */ /* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource ); pgnView = new tab_pgnView( this, Resource );
connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) ); connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) ); Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).tqarg( TAG_White ).tqarg( TAG_Black ) );
pgnView->init(); pgnView->init();
File.at( File_Position ); File.at( File_Position );
currentLine = ""; currentLine = "";
@ -950,7 +950,7 @@ void pgn::print( void )
{ {
/* Allocate the Tab_PGNView */ /* Allocate the Tab_PGNView */
pgnView = new tab_pgnView( this, Resource ); pgnView = new tab_pgnView( this, Resource );
Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).arg( TAG_White ).arg( TAG_Black ) ); Resource->tabManager->addTab( pgnView, i18n( "%1 vs. %2" ).tqarg( TAG_White ).tqarg( TAG_Black ) );
connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) ); connect( pgnView, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( childViewDestroyed() ) );
pgnView->init(); pgnView->init();
} }

@ -26,7 +26,7 @@
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqvaluelist.h> #include <tqvaluelist.h>
#include <tqfile.h> #include <tqfile.h>
#include <textstream.h> #include <tqtextstream.h>
#include <tqpainter.h> #include <tqpainter.h>
#include "definitions.h" #include "definitions.h"
#include "resource.h" #include "resource.h"

@ -76,13 +76,13 @@ void proto_uci::parse( const Command &command )
} }
if( FEN.isEmpty() ) if( FEN.isEmpty() )
{ {
emit output( TQString("position startpos moves %1").arg( cmd.getData() ) ); emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
} }
else else
{ {
emit output( TQString("position fen %1 moves %2").arg( FEN ).arg( cmd.getData() ) ); emit output( TQString("position fen %1 moves %2").tqarg( FEN ).tqarg( cmd.getData() ) );
} }
emit output( TQString("go wtime %1 btime %2 depth %3").arg( cmd.getWhiteTime() ).arg( cmd.getBlackTime() ).arg( difficulty ) ); emit output( TQString("go wtime %1 btime %2 depth %3").tqarg( cmd.getWhiteTime() ).tqarg( cmd.getBlackTime() ).tqarg( difficulty ) );
break; break;
/* Command: Set Difficulty */ /* Command: Set Difficulty */
@ -105,13 +105,13 @@ void proto_uci::parse( const Command &command )
hintMode = TRUE; hintMode = TRUE;
if( FEN.isEmpty() ) if( FEN.isEmpty() )
{ {
emit output( TQString("position startpos moves %1").arg( cmd.getData() ) ); emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
} }
else else
{ {
emit output( TQString("position fen %1 moves %2").arg( FEN ).arg( cmd.getData() ) ); emit output( TQString("position fen %1 moves %2").tqarg( FEN ).tqarg( cmd.getData() ) );
} }
emit output( TQString("go wtime %1 btime %2 depth %3").arg( cmd.getWhiteTime() ).arg( cmd.getBlackTime() ).arg( difficulty ) ); emit output( TQString("go wtime %1 btime %2 depth %3").tqarg( cmd.getWhiteTime() ).tqarg( cmd.getBlackTime() ).tqarg( difficulty ) );
break; break;
/* Command: Play White */ /* Command: Play White */
@ -154,8 +154,8 @@ void proto_uci::parse( const TQString &string )
{ {
/* The Engine Gives a Hint */ /* The Engine Gives a Hint */
hintMode = FALSE; hintMode = FALSE;
// emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).arg( engineName ).arg( strList[1] ) ) ); // emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).tqarg( engineName ).tqarg( strList[1] ) ) );
emit output( Command( myID, CMD_Hint, TQString( "%1 suggests this move:\n%2" ).arg( engineName ).arg( strList[1] ) ) ); emit output( Command( myID, CMD_Hint, TQString( "%1 suggests this move:\n%2" ).tqarg( engineName ).tqarg( strList[1] ) ) );
} }
else else
{ {
@ -197,8 +197,8 @@ void proto_uci::parse( const TQString &string )
{ {
if( strList[1] == "error" ) if( strList[1] == "error" )
{ {
// emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 did not pass it's copy protection check." ).arg( engineName ) ) ); // emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 did not pass it's copy protection check." ).tqarg( engineName ) ) );
emit output( Command( myID, CMD_Tell_User_Error, TQString( "%1 did not pass it's copy protection check." ).arg( engineName ) ) ); emit output( Command( myID, CMD_Tell_User_Error, TQString( "%1 did not pass it's copy protection check." ).tqarg( engineName ) ) );
} }
} }
} }

@ -120,13 +120,13 @@ void proto_xboard::parse( const Command &command )
{ {
if( Army == WHITE ) if( Army == WHITE )
{ {
emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) ); emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) ); emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) );
} }
else else
{ {
emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) ); emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) ); emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) );
} }
} }
if( FEATURE_UserMove ) if( FEATURE_UserMove )
@ -267,9 +267,9 @@ void proto_xboard::parse( const Command &command )
if( FEATURE_Time ) if( FEATURE_Time )
{ {
if( Army == WHITE ) if( Army == WHITE )
emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) ); emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) );
else else
emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) ); emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) );
} }
break; break;
@ -278,9 +278,9 @@ void proto_xboard::parse( const Command &command )
if( FEATURE_Time ) if( FEATURE_Time )
{ {
if( Army == WHITE ) if( Army == WHITE )
emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) ); emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) );
else else
emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) ); emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) );
} }
break; break;
@ -354,7 +354,7 @@ void proto_xboard::parse( const Command &command )
case CMD_Set_Board: case CMD_Set_Board:
if( FEATURE_SetBoard == TRUE ) if( FEATURE_SetBoard == TRUE )
{ {
emit output( TQString( "setboard %1" ).arg( cmd.getData() ) ); emit output( TQString( "setboard %1" ).tqarg( cmd.getData() ) );
} }
else else
{ {
@ -446,7 +446,7 @@ void proto_xboard::parse( const TQString &string )
/* Hint */ /* Hint */
if( strList[0] == "Hint:" ) if( strList[0] == "Hint:" )
{ {
emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).arg( FEATURE_MyName ).arg( strList[1] ) ) ); emit output( Command( myID, CMD_Hint, i18n( "%1 suggests this move:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strList[1] ) ) );
return; return;
} }
@ -468,56 +468,56 @@ void proto_xboard::parse( const TQString &string )
/* Tell User */ /* Tell User */
if( strList[0] == "telluser" ) if( strList[0] == "telluser" )
{ {
emit output( Command( myID, CMD_Tell_User, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() - 9 ) ) ) ); emit output( Command( myID, CMD_Tell_User, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() - 9 ) ) ) );
return; return;
} }
/* Tell User Error */ /* Tell User Error */
if( strList[0] == "tellusererror" ) if( strList[0] == "tellusererror" )
{ {
emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() - 14 ) ) ) ); emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() - 14 ) ) ) );
return; return;
} }
/* Error */ /* Error */
if( strList[0] == "Error" ) if( strList[0] == "Error" )
{ {
emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).arg( FEATURE_MyName ).arg( strIn.right( strIn.length() ) ) ) ); emit output( Command( myID, CMD_Tell_User_Error, i18n( "%1 tells you:\n%2" ).tqarg( FEATURE_MyName ).tqarg( strIn.right( strIn.length() ) ) ) );
return; return;
} }
/* Tell Opponent */ /* Tell Opponent */
if( strList[0] == "tellopponent" ) if( strList[0] == "tellopponent" )
{ {
emit output( Command( myID, CMD_Tell_Opponent, TQString( "%1" ).arg( strIn.right( strIn.length() - 13 ) ) ) ); emit output( Command( myID, CMD_Tell_Opponent, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 13 ) ) ) );
return; return;
} }
/* Tell Others */ /* Tell Others */
if( strList[0] == "tellothers" ) if( strList[0] == "tellothers" )
{ {
emit output( Command( myID, CMD_Tell_Others, TQString( "%1" ).arg( strIn.right( strIn.length() - 11 ) ) ) ); emit output( Command( myID, CMD_Tell_Others, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 11 ) ) ) );
return; return;
} }
/* Tell All */ /* Tell All */
if( strList[0] == "tellall" ) if( strList[0] == "tellall" )
{ {
emit output( Command( myID, CMD_Tell_All, TQString( "%1" ).arg( strIn.right( strIn.length() - 8 ) ) ) ); emit output( Command( myID, CMD_Tell_All, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 8 ) ) ) );
return; return;
} }
/* Tell ICS */ /* Tell ICS */
if( strList[0] == "tellics" ) if( strList[0] == "tellics" )
{ {
emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).arg( strIn.right( strIn.length() - 8 ) ) ) ); emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 8 ) ) ) );
return; return;
} }
/* Tell ICS No Alias */ /* Tell ICS No Alias */
if( strList[0] == "tellicsnoalias" ) if( strList[0] == "tellicsnoalias" )
{ {
emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).arg( strIn.right( strIn.length() - 15 ) ) ) ); emit output( Command( myID, CMD_Tell_ICS, TQString( "%1" ).tqarg( strIn.right( strIn.length() - 15 ) ) ) );
return; return;
} }

@ -30,7 +30,7 @@
#include <klistview.h> #include <klistview.h>
#include <kcmdlineargs.h> #include <kcmdlineargs.h>
/* TQt */ /* TQt */
#include <stylesheet.h> #include <tqstylesheet.h>
#include <tqvaluelist.h> #include <tqvaluelist.h>
#include <tqstring.h> #include <tqstring.h>
#include <tqstringlist.h> #include <tqstringlist.h>

@ -24,7 +24,7 @@
#include <tqhbox.h> #include <tqhbox.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqslider.h> #include <tqslider.h>
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>

@ -20,7 +20,7 @@
#include <klineedit.h> #include <klineedit.h>
#include <kcombobox.h> #include <kcombobox.h>
#include <textview.h> #include <tqtextview.h>
#include <tqtabwidget.h> #include <tqtabwidget.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
@ -30,7 +30,7 @@
#include <tqvbox.h> #include <tqvbox.h>
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>
#include <layout.h> #include <tqlayout.h>
#include "resource.h" #include "resource.h"
/** /**

@ -73,7 +73,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) ); Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) );
Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) ); Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) );
Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) ); Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) );
Engines_ButtonBox->layout(); Engines_ButtonBox->tqlayout();
BuildEngineData(); BuildEngineData();
@ -143,9 +143,9 @@ void setPageEngines::BuildEngineData( void )
(void) new TQListViewItem( Engines_ListView, (void) new TQListViewItem( Engines_ListView,
(*enginesIT).Name, (*enginesIT).Name,
proto, proto,
TQString( "%1" ).arg( (*enginesIT).Wins ), TQString( "%1" ).tqarg( (*enginesIT).Wins ),
TQString( "%1" ).arg( (*enginesIT).Losses ), TQString( "%1" ).tqarg( (*enginesIT).Losses ),
TQString( "%1" ).arg( (*enginesIT).Draws ) ); TQString( "%1" ).tqarg( (*enginesIT).Draws ) );
EngineList.append( (*enginesIT).Name ); EngineList.append( (*enginesIT).Name );
} }

@ -27,7 +27,7 @@
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqptrlist.h> #include <tqptrlist.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <layout.h> #include <tqlayout.h>
#include "resource.h" #include "resource.h"
#include "dlg_engine.h" #include "dlg_engine.h"

@ -22,7 +22,7 @@
#include <tqwidget.h> #include <tqwidget.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqlabel.h> #include <tqlabel.h>
#include <layout.h> #include <tqlayout.h>
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>

@ -77,7 +77,7 @@ void setPageServers::initTab1( void )
Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) ); Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) );
Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) ); Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) );
Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) ); Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) );
Servers_ButtonBox->layout(); Servers_ButtonBox->tqlayout();
BuildServerData(); BuildServerData();

@ -33,7 +33,7 @@
#include <tqcheckbox.h> #include <tqcheckbox.h>
#include <tqspinbox.h> #include <tqspinbox.h>
#include <tqptrlist.h> #include <tqptrlist.h>
#include <layout.h> #include <tqlayout.h>
#include "resource.h" #include "resource.h"
#include "dlg_server.h" #include "dlg_server.h"

@ -33,7 +33,7 @@ splash::splash() :
move( ( TQApplication::desktop()->width() - Hint.width() ) / 2, move( ( TQApplication::desktop()->width() - Hint.width() ) / 2,
( TQApplication::desktop()->height() - Hint.height() ) / 2 ); ( TQApplication::desktop()->height() - Hint.height() ) / 2 );
show(); show();
repaint( FALSE ); tqrepaint( FALSE );
} }
splash::~splash() splash::~splash()
{ {

@ -21,7 +21,7 @@
#include "pgn.h" #include "pgn.h"
#include <tqfile.h> #include <tqfile.h>
#include <tqregexp.h> #include <tqregexp.h>
#include <textstream.h> #include <tqtextstream.h>
#include <kstddirs.h> #include <kstddirs.h>
#include <ktempfile.h> #include <ktempfile.h>

@ -186,7 +186,7 @@ void tab_SeekList::menuFunct( int funct )
emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) ); emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) );
break; break;
case MENU_TELL: case MENU_TELL:
emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).arg( selectedPlayerName ) ) ); emit sendCMD( Command( 0, CMD_Set_Input, TQString( "tell %1 " ).tqarg( selectedPlayerName ) ) );
break; break;
case MENU_NOTIFY: case MENU_NOTIFY:
emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) ); emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) );

@ -160,7 +160,7 @@ void TabBox::destroyChild( void )
/////////////////////////////////////// ///////////////////////////////////////
void TabBox::changeMyCaption( TQWidget *child ) void TabBox::changeMyCaption( TQWidget *child )
{ {
setCaption( i18n("%1 - Knights").arg( myTabs->tabLabel( child ) ) ); setCaption( i18n("%1 - Knights").tqarg( myTabs->tabLabel( child ) ) );
} }
/////////////////////////////////////// ///////////////////////////////////////
// //

@ -42,7 +42,7 @@ TabGrip::~TabGrip()
void TabGrip::paintEvent( TQPaintEvent* ) void TabGrip::paintEvent( TQPaintEvent* )
{ {
TQPainter paint( this ); TQPainter paint( this );
TQColorGroup group( colorGroup() ); TQColorGroup group( tqcolorGroup() );
paint.setPen( group.light() ); paint.setPen( group.light() );
paint.drawLine( 2, 2, width() - 3, 2 ); paint.drawLine( 2, 2, width() - 3, 2 );
paint.drawLine( 2, 5, width() - 3, 5 ); paint.drawLine( 2, 5, width() - 3, 5 );
@ -64,8 +64,8 @@ void TabGrip::mousePressEvent( TQMouseEvent *event )
{ {
couldDrag = TRUE; couldDrag = TRUE;
offset = mapToGlobal( event->pos() ); offset = mapToGlobal( event->pos() );
offset.setX( topLevelWidget()->x() - offset.x() ); offset.setX( tqtopLevelWidget()->x() - offset.x() );
offset.setY( topLevelWidget()->y() - offset.y() ); offset.setY( tqtopLevelWidget()->y() - offset.y() );
} }
} }
/////////////////////////////////////// ///////////////////////////////////////

@ -150,7 +150,7 @@ void TabManager::saveTabGeometry( const TQString &childName, const TQSize &child
appConfig->writeEntry( childName, childSize ); appConfig->writeEntry( childName, childSize );
appConfig->sync(); appConfig->sync();
kdDebug() << "Saved geometry for Widget: " << childName << endl; kdDebug() << "Saved tqgeometry for Widget: " << childName << endl;
} }
/////////////////////////////////////// ///////////////////////////////////////
// //

@ -22,7 +22,7 @@
#include <kiconloader.h> #include <kiconloader.h>
#include <kdebug.h> #include <kdebug.h>
#include <klocale.h> #include <klocale.h>
#include <layout.h> #include <tqlayout.h>
#include <tqtoolbutton.h> #include <tqtoolbutton.h>
/////////////////////////////////////// ///////////////////////////////////////
@ -53,7 +53,7 @@ TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(p
closeButton->setIconSet( TQIconSet( map ) ); closeButton->setIconSet( TQIconSet( map ) );
closeButton->setAutoRaise( TRUE ); closeButton->setAutoRaise( TRUE );
closeButton->setTextLabel( i18n( "Close This Tab" ), TRUE ); closeButton->setTextLabel( i18n( "Close This Tab" ), TRUE );
closeButton->setSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) ); closeButton->tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Fixed, TQSizePolicy::Fixed ) );
connect( closeButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( requestDestruction() ) ); connect( closeButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( requestDestruction() ) );
myChild->reparent( this, TQPoint( 0, 0 ), TRUE ); myChild->reparent( this, TQPoint( 0, 0 ), TRUE );

@ -20,7 +20,7 @@
#include <kstddirs.h> #include <kstddirs.h>
#include <tqstringlist.h> #include <tqstringlist.h>
#include <tqfile.h> #include <tqfile.h>
#include <textstream.h> #include <tqtextstream.h>
#include <tqregexp.h> #include <tqregexp.h>
#include "wiz_setup.moc" #include "wiz_setup.moc"
@ -70,11 +70,11 @@ void wiz_setup::initPage1( void )
P1B1->addWidget( SideImage1, 1, 1 ); P1B1->addWidget( SideImage1, 1, 1 );
WelcomeMessage = new TQLabel( Page1 ); WelcomeMessage = new TQLabel( Page1 );
WelcomeMessage->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak ); WelcomeMessage->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
WelcomeMessage->setText( i18n( "Thank you for installing Knights, the graphical chess interface for KDE. To help you get started quickly, there are a few things Knights will need to setup. You should click 'Next' to see what they are." ) ); WelcomeMessage->setText( i18n( "Thank you for installing Knights, the graphical chess interface for KDE. To help you get started quickly, there are a few things Knights will need to setup. You should click 'Next' to see what they are." ) );
P1B1->addWidget( WelcomeMessage, 1, 3 ); P1B1->addWidget( WelcomeMessage, 1, 3 );
addPage( Page1, i18n("Welcome to Knights v%1!").arg(_VERSION_) ); addPage( Page1, i18n("Welcome to Knights v%1!").tqarg(_VERSION_) );
setNextEnabled( Page1, TRUE ); setNextEnabled( Page1, TRUE );
setHelpEnabled( Page1, FALSE ); setHelpEnabled( Page1, FALSE );
} }
@ -93,7 +93,7 @@ void wiz_setup::initPage2( void )
P2B1->addMultiCellWidget( SideImage2, 1, 2, 1, 1 ); P2B1->addMultiCellWidget( SideImage2, 1, 2, 1, 1 );
pgnExplain = new TQLabel( Page2 ); pgnExplain = new TQLabel( Page2 );
pgnExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak ); pgnExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
pgnExplain->setText( i18n( "When Knights saves a match to disk, it uses Portable Game Notation (PGN) to store the match. Several other computer chess games use PGN too. If you like, Knights can be the default PGN viewer on this system." ) ); pgnExplain->setText( i18n( "When Knights saves a match to disk, it uses Portable Game Notation (PGN) to store the match. Several other computer chess games use PGN too. If you like, Knights can be the default PGN viewer on this system." ) );
P2B1->addWidget( pgnExplain, 1, 3 ); P2B1->addWidget( pgnExplain, 1, 3 );
@ -121,7 +121,7 @@ void wiz_setup::initPage3( void )
P3B1->addMultiCellWidget( SideImage3, 1, 2, 1, 1 ); P3B1->addMultiCellWidget( SideImage3, 1, 2, 1, 1 );
engineExplain = new TQLabel( Page3 ); engineExplain = new TQLabel( Page3 );
engineExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak ); engineExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
engineExplain->setText( i18n( "Knights can not play a chess match against you without help. Known as Chess Engines, these helpers can be found on the Internet and are often included with your distribution. Knights can look for Chess Engines that you may already have. If found, Knights will configure itself to use them." ) ); engineExplain->setText( i18n( "Knights can not play a chess match against you without help. Known as Chess Engines, these helpers can be found on the Internet and are often included with your distribution. Knights can look for Chess Engines that you may already have. If found, Knights will configure itself to use them." ) );
P3B1->addWidget( engineExplain, 1, 3 ); P3B1->addWidget( engineExplain, 1, 3 );
@ -149,7 +149,7 @@ void wiz_setup::initPage4( void )
P4B1->addMultiCellWidget( SideImage4, 1, 2, 1, 1 ); P4B1->addMultiCellWidget( SideImage4, 1, 2, 1, 1 );
serverExplain = new TQLabel( Page4 ); serverExplain = new TQLabel( Page4 );
serverExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak ); serverExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
serverExplain->setText( i18n( "In order for you to play chess online, Knights will have to connect to a chess server. Knights has a list of several of these servers. If you like, this list can be used to automatically configure Knights." ) ); serverExplain->setText( i18n( "In order for you to play chess online, Knights will have to connect to a chess server. Knights has a list of several of these servers. If you like, this list can be used to automatically configure Knights." ) );
P4B1->addWidget( serverExplain, 1, 3 ); P4B1->addWidget( serverExplain, 1, 3 );
@ -177,7 +177,7 @@ void wiz_setup::initPage5( void )
P5B1->addMultiCellWidget( SideImage5, 1, 2, 1, 1 ); P5B1->addMultiCellWidget( SideImage5, 1, 2, 1, 1 );
FinishExplain = new TQLabel( Page5 ); FinishExplain = new TQLabel( Page5 );
FinishExplain->setAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak ); FinishExplain->tqsetAlignment( TQt::AlignLeft | TQt::AlignTop | TQt::WordBreak );
FinishExplain->setText( i18n( "Knights has now configured itself according to your choices. We strongly recommend that you read the documentation to make full use of all that Knights has to offer. You can access it by pressing F1." ) ); FinishExplain->setText( i18n( "Knights has now configured itself according to your choices. We strongly recommend that you read the documentation to make full use of all that Knights has to offer. You can access it by pressing F1." ) );
P5B1->addWidget( FinishExplain, 1, 3 ); P5B1->addWidget( FinishExplain, 1, 3 );

@ -21,7 +21,7 @@
#include <kwizard.h> #include <kwizard.h>
#include <tqhbox.h> #include <tqhbox.h>
#include <tqvbox.h> #include <tqvbox.h>
#include <layout.h> #include <tqlayout.h>
#include <tqpushbutton.h> #include <tqpushbutton.h>
#include <tqbuttongroup.h> #include <tqbuttongroup.h>
#include <tqradiobutton.h> #include <tqradiobutton.h>

Loading…
Cancel
Save