diff options
Diffstat (limited to 'kjsembed/global.cpp')
-rw-r--r-- | kjsembed/global.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/kjsembed/global.cpp b/kjsembed/global.cpp index f48a9384..4d6937cb 100644 --- a/kjsembed/global.cpp +++ b/kjsembed/global.cpp @@ -32,9 +32,9 @@ # endif #endif -static TTQTextStream *kjsembed_err = 0L; -static TTQTextStream *kjsembed_in = 0L; -static TTQTextStream *kjsembed_out = 0L; +static TQTextStream *kjsembed_err = 0L; +static TQTextStream *kjsembed_in = 0L; +static TQTextStream *kjsembed_out = 0L; #ifndef _WIN32 char *itoa(int num, char *str, int radix) @@ -66,9 +66,9 @@ char *itoa(int num, char *str, int radix) #endif #ifdef _WIN32 -static TTQFile win32_stdin; -static TTQFile win32_stdout; -static TTQFile win32_stderr; +static TQFile win32_stdin; +static TQFile win32_stdout; +static TQFile win32_stderr; static const WORD MAX_CONSOLE_LINES = 500; @@ -102,23 +102,23 @@ void RedirectIOToConsole() { #endif -TTQTextStream &consoleOut( ) +TQTextStream &consoleOut( ) { return *KJSEmbed::conout(); } -TTQTextStream &consoleError( ) +TQTextStream &consoleError( ) { return *KJSEmbed::conerr(); } -TTQTextStream &consoleIn( ) +TQTextStream &consoleIn( ) { return *KJSEmbed::conin(); } #ifdef QT_ONLY -TTQTextStream &kdDebug( int area ) +TQTextStream &kdDebug( int area ) { #ifndef QT_DEBUG return consoleError() << "DEBUG: (" << area << ") "; @@ -128,50 +128,50 @@ TTQTextStream &kdDebug( int area ) } -TTQTextStream &kdWarning( int area ) +TQTextStream &kdWarning( int area ) { return consoleOut() << "WARNING: (" << area << ") "; } -TTQString i18n( const char *string ) +TQString i18n( const char *string ) { - return TTQObject::tr( string, "qjsembed string"); + return TQObject::tr( string, "qjsembed string"); } #endif -TTQTextStream *KJSEmbed::conin() +TQTextStream *KJSEmbed::conin() { if ( !kjsembed_in ) { #ifdef _WIN32 - kjsembed_in = new TTQTextStream( &win32_stdin ); + kjsembed_in = new TQTextStream( &win32_stdin ); #else - kjsembed_in = new TTQTextStream( stdin, IO_ReadOnly ); + kjsembed_in = new TQTextStream( stdin, IO_ReadOnly ); #endif } return kjsembed_in; } -TTQTextStream *KJSEmbed::conout() +TQTextStream *KJSEmbed::conout() { if ( !kjsembed_out ) { #ifdef _WIN32 - kjsembed_out = new TTQTextStream( &win32_stdout ); + kjsembed_out = new TQTextStream( &win32_stdout ); #else - kjsembed_out = new TTQTextStream( stdout, IO_WriteOnly ); + kjsembed_out = new TQTextStream( stdout, IO_WriteOnly ); #endif } return kjsembed_out; } -TTQTextStream *KJSEmbed::conerr() +TQTextStream *KJSEmbed::conerr() { if ( !kjsembed_err ) { #ifdef _WIN32 - kjsembed_err = new TTQTextStream( &win32_stderr ); + kjsembed_err = new TQTextStream( &win32_stderr ); #else - kjsembed_err = new TTQTextStream( stderr, IO_WriteOnly ); + kjsembed_err = new TQTextStream( stderr, IO_WriteOnly ); #endif } return kjsembed_err; |