diff options
Diffstat (limited to 'knights/proto_uci.cpp')
-rw-r--r-- | knights/proto_uci.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/knights/proto_uci.cpp b/knights/proto_uci.cpp index d277326..45b5eca 100644 --- a/knights/proto_uci.cpp +++ b/knights/proto_uci.cpp @@ -15,8 +15,8 @@ * * ***************************************************************************/ -#include <qstringlist.h> -#include <qregexp.h> +#include <tqstringlist.h> +#include <tqregexp.h> #include "proto_uci.moc" #include "definitions.h" @@ -76,13 +76,13 @@ void proto_uci::parse( const Command &command ) } if( FEN.isEmpty() ) { - emit output( QString("position startpos moves %1").arg( cmd.getData() ) ); + emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) ); } else { - emit output( QString("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( QString("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( QString("position startpos moves %1").arg( cmd.getData() ) ); + emit output( TQString("position startpos moves %1").tqarg( cmd.getData() ) ); } else { - emit output( QString("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( QString("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 */ @@ -132,13 +132,13 @@ void proto_uci::parse( const Command &command ) } /////////////////////////////////////// // -// proto_uci::parse( const QString &string ) +// proto_uci::parse( const TQString &string ) // /////////////////////////////////////// -void proto_uci::parse( const QString &string ) +void proto_uci::parse( const TQString &string ) { - QString strIn = string; - QStringList strList( QStringList::split( ' ', strIn ) ); + TQString strIn = string; + TQStringList strList( TQStringList::split( ' ', strIn ) ); /* Bestmove */ if( strList[0] == "bestmove" ) @@ -154,8 +154,8 @@ void proto_uci::parse( const QString &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, QString( "%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 QString &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, QString( "%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 ) ) ); } } } |