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

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

@ -30,7 +30,7 @@
#include <tqscrollview.h>
#include <tqwidget.h>
#include <tqrect.h>
#include <brush.h>
#include <tqbrush.h>
#include <tqpainter.h>
#include <tqregexp.h>
@ -66,7 +66,7 @@ Challenge_Graph::Challenge_Graph( TQWidget* parent, const char* name, resource *
/* 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 );
clear();
@ -311,7 +311,7 @@ void Challenge_Graph::createBackground( void )
painter.drawText( 64, y_size - 8, i18n( "Time" ) );
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 ) );
break;
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;
case MENU_NOTIFY:
emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) );

@ -103,8 +103,8 @@ void Challenge_Graph_View::contentsMouseMoveEvent(TQMouseEvent* e)
Challenge_Game *g = cr->getGame();
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 )
.arg( g->clock() ).arg( g->increment() );
.tqarg( g->_player ).tqarg( g->rating() ).tqarg( g->_match_type ).tqarg( g->_is_rated )
.tqarg( g->clock() ).tqarg( g->increment() );
break;
}
statusbar->setText( match );

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

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

@ -227,7 +227,7 @@ void core::setMatch( int ID )
/* Give Ourselves Focus */
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 );
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->insertItem( i18n("Unrated"), 0 );
COMBO_Rated->insertItem( i18n("Rated"), 1 );
@ -107,7 +107,7 @@ void dlg_challenge::setValues( const TQString &string, const TQString &local )
localRating = list[3];
}
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" )
{
COMBO_Rated->setCurrentItem(1);
@ -137,14 +137,14 @@ void dlg_challenge::setValues( const TQString &string, const TQString &local )
TQString dlg_challenge::values( void )
{
TQString match;
match = TQString("match %1").arg(otherPlayer);
match = TQString("match %1").tqarg(otherPlayer);
if( COMBO_Rated->currentItem() == 0 )
match += " unrated";
else
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() )
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;
}

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

@ -223,7 +223,7 @@ void io_internet::connectToServer()
*/
consoleTab = new Console( 0, myServer->Name, myResource );
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( 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()
{
send("set style 12");
send(TQString("set interface Knights %1").arg(_VERSION_));
send(TQString("set private %1").arg(myResource->OPTION_Private));
send(TQString("set kibitz %1").arg(myResource->OPTION_Kibitz));
send(TQString("set tell %1").arg(myResource->OPTION_Tell));
send(TQString("set shout %1").arg(myResource->OPTION_Shout));
send(TQString("set seek %1").arg(myResource->OPTION_Seek));
send(TQString("set tolerance %1").arg(myResource->OPTION_Profanity));
send(TQString("set interface Knights %1").tqarg(_VERSION_));
send(TQString("set private %1").tqarg(myResource->OPTION_Private));
send(TQString("set kibitz %1").tqarg(myResource->OPTION_Kibitz));
send(TQString("set tell %1").tqarg(myResource->OPTION_Tell));
send(TQString("set shout %1").tqarg(myResource->OPTION_Shout));
send(TQString("set seek %1").tqarg(myResource->OPTION_Seek));
send(TQString("set tolerance %1").tqarg(myResource->OPTION_Profanity));
}
///////////////////////////////////////

@ -34,7 +34,7 @@
/* KFile */
#include <kfiledialog.h>
/* TQt */
#include <palette.h>
#include <tqpalette.h>
#include <tqiconset.h>
#include <tqlabel.h>
#include <tqframe.h>
@ -163,21 +163,21 @@ bool Knights::init( void )
initMenus();
/* Init Message */
Message->setAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );
Message->tqsetAlignment( TQt::AlignAuto | TQt::AlignVCenter | TQt::SingleLine );
/* Init White Time Label */
GroupWhite.setColor( TQColorGroup::Background, Resource->COLOR_White );
GroupWhite.setColor( TQColorGroup::Foreground, Resource->COLOR_Black );
whiteTimeLabel->setPalette( TQPalette( GroupWhite, GroupWhite, GroupWhite ) );
whiteTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
whiteTimeLabel->setAlignment( TQt::AlignCenter | TQt::SingleLine );
whiteTimeLabel->tqsetAlignment( TQt::AlignCenter | TQt::SingleLine );
/* Init Black Time Label */
GroupBlack.setColor( TQColorGroup::Background, Resource->COLOR_Black );
GroupBlack.setColor( TQColorGroup::Foreground, Resource->COLOR_White );
blackTimeLabel->setPalette( TQPalette( GroupBlack, GroupBlack, GroupBlack ) );
blackTimeLabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
blackTimeLabel->setAlignment( TQt::AlignCenter | TQt::SingleLine );
blackTimeLabel->tqsetAlignment( TQt::AlignCenter | TQt::SingleLine );
/* Configure self */
setCentralWidget( MainFrame );
@ -250,122 +250,122 @@ void Knights::initMenus( void )
matchMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("undo"), KIcon::Small ) ),
i18n( "&Retract Move" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_RETRACT );
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
matchMenu->insertItem( i18n( "Resign" ), Core, TQT_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." ) );
matchMenu->tqsetWhatsThis( 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->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
matchMenu->insertItem( i18n( "&Hint" ), Core, TQT_SLOT(matchMenu(int)), 0, MENU_HINT );
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
matchMenu->insertItem( i18n( "Move &Now" ), Core, TQT_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." ) );
matchMenu->tqsetWhatsThis( 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->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
matchMenu->insertItem( i18n( "&Ponder" ), this, TQT_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->tqsetWhatsThis( 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("player_pause"), KIcon::Small ) ),
i18n( "Pause" ), this, TQT_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." ) );
matchMenu->tqsetWhatsThis( 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->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
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
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
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
*/
// MENU_NEWGAME
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filenew"), KIcon::Small ) ),
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
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileopen"), KIcon::Small ) ),
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();
// MENU_SAVE
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("filesave"), KIcon::Small ) ),
i18n( "&Save Match" ), this, TQT_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." ) );
fileMenu->tqsetWhatsThis( 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("filesave"), KIcon::Small ) ),
i18n( "Save Match &As..." ), this, TQT_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->tqsetWhatsThis( 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"), KIcon::Small ) ),
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();
// MENU_PRINT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("fileprint"), KIcon::Small ) ),
i18n( "&Print Notation..." ), Core, TQT_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->tqsetWhatsThis( 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("fileclose"), KIcon::Small ) ),
i18n( "&Close Match" ), Core, TQT_SLOT( clearMatch() ), CTRL+Key_W, MENU_CLOSE );
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
fileMenu->insertItem( i18n( "Close All" ), Core, TQT_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->tqsetWhatsThis( MENU_CLOSEALL, i18n( "This command will remove all matches that are currently loaded." ) );
fileMenu->insertSeparator();
// MENU_TQUIT
fileMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("exit"), KIcon::Small ) ),
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
*/
// 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
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("key_bindings"), KIcon::Small ) ),
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
settingsMenu->insertItem( TQIconSet( Resource->LoadIcon( TQString("configure"), KIcon::Small ) ),
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->setCheckable(TRUE);
// 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
*/
@ -397,8 +397,8 @@ void Knights::resizeMainFrame(void)
Core->move( 0, 0 );
Core->resize();
/* Get our size hints */
S_Message = Message->sizeHint();
S_Menu = topMenu->sizeHint();
S_Message = Message->tqsizeHint();
S_Menu = topMenu->tqsizeHint();
statusHeight = S_Message.height() + ( margin << 1 );
statusY += Core->height() + margin + statusHeight + margin;
statusX = Core->width();
@ -447,7 +447,7 @@ void Knights::resizeEvent( TQResizeEvent * )
if( ResizeFlag ) return;
/* Get the height & Y of the status bar */
gridX = Core->width() >> 3;
S_Message = Message->sizeHint() + TQSize( 2, 2 );
S_Message = Message->tqsizeHint() + TQSize( 2, 2 );
statusHeight = S_Message.height() + ( margin << 1 );
Resource->Widget_Height = statusHeight;
statusY += Core->height() + margin;
@ -561,29 +561,29 @@ void Knights::setStatusBar( const int &ID, const TQString &MSG )
case BOOK_ERROR_1:
Message->setText( i18n( "Error with white engine" ) );
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") );
break;
case BOOK_ERROR_2:
Message->setText( i18n( "Error with white book engine" ) );
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") );
break;
case BOOK_ERROR_3:
Message->setText( i18n( "Error with black engine" ) );
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") );
break;
case BOOK_ERROR_4:
Message->setText( i18n( "Error with black book engine" ) );
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") );
break;
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;
case LOAD_ERROR:
Message->setText( i18n( "There was an error while loading the file" ) );
@ -1017,7 +1017,7 @@ void Knights::installThemes( void )
if( installError )
{
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") );
}
return;

@ -30,7 +30,7 @@
#include <kstatusbar.h>
#include <kcmdlineargs.h>
/* QT */
#include <layout.h>
#include <tqlayout.h>
#include <tqwidget.h>
#include <tqpixmap.h>
#include <tqstring.h>
@ -72,7 +72,7 @@ class Knights : public KMainWindow
public slots:
void KillAll( 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
( double-height ). Plus, I want the console to appear only when needed. */
void resizeMainFrame( void );

@ -207,7 +207,7 @@ void KnightsTextView::print( void )
{
/* Print the Contents */
paint.setClipRect( body );
simpText.draw( &paint, body.left(), body.top(), view, colorGroup() );
simpText.draw( &paint, body.left(), body.top(), view, tqcolorGroup() );
paint.setClipping( false );
view.moveBy( 0, body.height() );
paint.translate( 0, -body.height() );
@ -215,7 +215,7 @@ void KnightsTextView::print( void )
/* Print the Page Number */
paint.setFont( myResource->FONT_Standard );
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 ),
view.bottom() + paint.fontMetrics().ascent() + 5, pageCount );
if( view.top() >= simpText.height() )

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

@ -80,7 +80,7 @@ void list_pgn::setURL( TQString URL )
if( tmpPGN.open( URL ) == FALSE )
{
status->message( i18n( "Can not open %1" ).arg( URL ) );
status->message( i18n( "Can not open %1" ).tqarg( URL ) );
return;
}
listView->hide();
@ -140,6 +140,6 @@ void list_pgn::timerEvent( TQTimerEvent* )
tmpPGN.TAG_Site,
tmpPGN.TAG_Date,
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();
Logic->OnMove = !Logic->OnMove;
/* Set Status Bar */
/* Set tqStatus Bar */
if( Logic->OnMove == WHITE )
{
emit setStatusBar( WHITE_TURN );

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

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

@ -76,13 +76,13 @@ void proto_uci::parse( const Command &command )
}
if( FEN.isEmpty() )
{
emit output( TQString("position startpos moves %1").arg( cmd.getData() ) );
emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
}
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;
/* Command: Set Difficulty */
@ -105,13 +105,13 @@ void proto_uci::parse( const Command &command )
hintMode = TRUE;
if( FEN.isEmpty() )
{
emit output( TQString("position startpos moves %1").arg( cmd.getData() ) );
emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) );
}
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;
/* Command: Play White */
@ -154,8 +154,8 @@ void proto_uci::parse( const TQString &string )
{
/* The Engine Gives a Hint */
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, TQString( "%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" ).tqarg( engineName ).tqarg( strList[1] ) ) );
}
else
{
@ -197,8 +197,8 @@ void proto_uci::parse( const TQString &string )
{
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, TQString( "%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." ).tqarg( engineName ) ) );
}
}
}

@ -120,13 +120,13 @@ void proto_xboard::parse( const Command &command )
{
if( Army == WHITE )
{
emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) );
emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) );
emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) );
}
else
{
emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) );
emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) );
emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) );
emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) );
}
}
if( FEATURE_UserMove )
@ -267,9 +267,9 @@ void proto_xboard::parse( const Command &command )
if( FEATURE_Time )
{
if( Army == WHITE )
emit output( TQString( "time %1" ).arg( cmd.getWhiteTime() ) );
emit output( TQString( "time %1" ).tqarg( cmd.getWhiteTime() ) );
else
emit output( TQString( "time %1" ).arg( cmd.getBlackTime() ) );
emit output( TQString( "time %1" ).tqarg( cmd.getBlackTime() ) );
}
break;
@ -278,9 +278,9 @@ void proto_xboard::parse( const Command &command )
if( FEATURE_Time )
{
if( Army == WHITE )
emit output( TQString( "otim %1" ).arg( cmd.getBlackTime() ) );
emit output( TQString( "otim %1" ).tqarg( cmd.getBlackTime() ) );
else
emit output( TQString( "otim %1" ).arg( cmd.getWhiteTime() ) );
emit output( TQString( "otim %1" ).tqarg( cmd.getWhiteTime() ) );
}
break;
@ -354,7 +354,7 @@ void proto_xboard::parse( const Command &command )
case CMD_Set_Board:
if( FEATURE_SetBoard == TRUE )
{
emit output( TQString( "setboard %1" ).arg( cmd.getData() ) );
emit output( TQString( "setboard %1" ).tqarg( cmd.getData() ) );
}
else
{
@ -446,7 +446,7 @@ void proto_xboard::parse( const TQString &string )
/* 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;
}
@ -468,56 +468,56 @@ void proto_xboard::parse( const TQString &string )
/* Tell User */
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;
}
/* Tell User Error */
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;
}
/* 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;
}
/* Tell Opponent */
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;
}
/* Tell Others */
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;
}
/* Tell All */
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;
}
/* Tell ICS */
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;
}
/* Tell ICS No Alias */
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;
}

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

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

@ -20,7 +20,7 @@
#include <klineedit.h>
#include <kcombobox.h>
#include <textview.h>
#include <tqtextview.h>
#include <tqtabwidget.h>
#include <tqbuttongroup.h>
#include <tqpushbutton.h>
@ -30,7 +30,7 @@
#include <tqvbox.h>
#include <tqcheckbox.h>
#include <tqradiobutton.h>
#include <layout.h>
#include <tqlayout.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_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) );
Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) );
Engines_ButtonBox->layout();
Engines_ButtonBox->tqlayout();
BuildEngineData();
@ -143,9 +143,9 @@ void setPageEngines::BuildEngineData( void )
(void) new TQListViewItem( Engines_ListView,
(*enginesIT).Name,
proto,
TQString( "%1" ).arg( (*enginesIT).Wins ),
TQString( "%1" ).arg( (*enginesIT).Losses ),
TQString( "%1" ).arg( (*enginesIT).Draws ) );
TQString( "%1" ).tqarg( (*enginesIT).Wins ),
TQString( "%1" ).tqarg( (*enginesIT).Losses ),
TQString( "%1" ).tqarg( (*enginesIT).Draws ) );
EngineList.append( (*enginesIT).Name );
}

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

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

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

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

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

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

@ -186,7 +186,7 @@ void tab_SeekList::menuFunct( int funct )
emit sendCMD( Command( 0, CMD_Player_Finger, selectedPlayerName ) );
break;
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;
case MENU_NOTIFY:
emit sendCMD( Command( 0, CMD_Add_Friend, selectedPlayerName ) );

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

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

@ -22,7 +22,7 @@
#include <kiconloader.h>
#include <kdebug.h>
#include <klocale.h>
#include <layout.h>
#include <tqlayout.h>
#include <tqtoolbutton.h>
///////////////////////////////////////
@ -53,7 +53,7 @@ TabPage::TabPage( TQWidget *parent, TQWidget *child, resource *rsrc ) : TQVBox(p
closeButton->setIconSet( TQIconSet( map ) );
closeButton->setAutoRaise( 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() ) );
myChild->reparent( this, TQPoint( 0, 0 ), TRUE );

@ -20,7 +20,7 @@
#include <kstddirs.h>
#include <tqstringlist.h>
#include <tqfile.h>
#include <textstream.h>
#include <tqtextstream.h>
#include <tqregexp.h>
#include "wiz_setup.moc"
@ -70,11 +70,11 @@ void wiz_setup::initPage1( void )
P1B1->addWidget( SideImage1, 1, 1 );
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." ) );
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 );
setHelpEnabled( Page1, FALSE );
}
@ -93,7 +93,7 @@ void wiz_setup::initPage2( void )
P2B1->addMultiCellWidget( SideImage2, 1, 2, 1, 1 );
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." ) );
P2B1->addWidget( pgnExplain, 1, 3 );
@ -121,7 +121,7 @@ void wiz_setup::initPage3( void )
P3B1->addMultiCellWidget( SideImage3, 1, 2, 1, 1 );
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." ) );
P3B1->addWidget( engineExplain, 1, 3 );
@ -149,7 +149,7 @@ void wiz_setup::initPage4( void )
P4B1->addMultiCellWidget( SideImage4, 1, 2, 1, 1 );
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." ) );
P4B1->addWidget( serverExplain, 1, 3 );
@ -177,7 +177,7 @@ void wiz_setup::initPage5( void )
P5B1->addMultiCellWidget( SideImage5, 1, 2, 1, 1 );
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." ) );
P5B1->addWidget( FinishExplain, 1, 3 );

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

Loading…
Cancel
Save