summaryrefslogtreecommitdiffstats
path: root/kjsembed/global.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/global.cpp')
-rw-r--r--kjsembed/global.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kjsembed/global.cpp b/kjsembed/global.cpp
index 1f424dcd..4d6937cb 100644
--- a/kjsembed/global.cpp
+++ b/kjsembed/global.cpp
@@ -21,20 +21,20 @@
# include "global.h"
#ifdef QT_ONLY
-# include <qobject.h>
+# include <tqobject.h>
# include <cstdio>
# ifdef _WIN32
# include <windows.h>
# include <fcntl.h>
# include <io.h>
# include <iostream.h>
-# include <qfile.h>
+# include <tqfile.h>
# endif
#endif
-static QTextStream *kjsembed_err = 0L;
-static QTextStream *kjsembed_in = 0L;
-static QTextStream *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 QFile win32_stdin;
-static QFile win32_stdout;
-static QFile 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
-QTextStream &consoleOut( )
+TQTextStream &consoleOut( )
{
return *KJSEmbed::conout();
}
-QTextStream &consoleError( )
+TQTextStream &consoleError( )
{
return *KJSEmbed::conerr();
}
-QTextStream &consoleIn( )
+TQTextStream &consoleIn( )
{
return *KJSEmbed::conin();
}
#ifdef QT_ONLY
-QTextStream &kdDebug( int area )
+TQTextStream &kdDebug( int area )
{
#ifndef QT_DEBUG
return consoleError() << "DEBUG: (" << area << ") ";
@@ -128,50 +128,50 @@ QTextStream &kdDebug( int area )
}
-QTextStream &kdWarning( int area )
+TQTextStream &kdWarning( int area )
{
return consoleOut() << "WARNING: (" << area << ") ";
}
-QString i18n( const char *string )
+TQString i18n( const char *string )
{
- return QObject::tr( string, "qjsembed string");
+ return TQObject::tr( string, "qjsembed string");
}
#endif
-QTextStream *KJSEmbed::conin()
+TQTextStream *KJSEmbed::conin()
{
if ( !kjsembed_in ) {
#ifdef _WIN32
- kjsembed_in = new QTextStream( &win32_stdin );
+ kjsembed_in = new TQTextStream( &win32_stdin );
#else
- kjsembed_in = new QTextStream( stdin, IO_ReadOnly );
+ kjsembed_in = new TQTextStream( stdin, IO_ReadOnly );
#endif
}
return kjsembed_in;
}
-QTextStream *KJSEmbed::conout()
+TQTextStream *KJSEmbed::conout()
{
if ( !kjsembed_out ) {
#ifdef _WIN32
- kjsembed_out = new QTextStream( &win32_stdout );
+ kjsembed_out = new TQTextStream( &win32_stdout );
#else
- kjsembed_out = new QTextStream( stdout, IO_WriteOnly );
+ kjsembed_out = new TQTextStream( stdout, IO_WriteOnly );
#endif
}
return kjsembed_out;
}
-QTextStream *KJSEmbed::conerr()
+TQTextStream *KJSEmbed::conerr()
{
if ( !kjsembed_err ) {
#ifdef _WIN32
- kjsembed_err = new QTextStream( &win32_stderr );
+ kjsembed_err = new TQTextStream( &win32_stderr );
#else
- kjsembed_err = new QTextStream( stderr, IO_WriteOnly );
+ kjsembed_err = new TQTextStream( stderr, IO_WriteOnly );
#endif
}
return kjsembed_err;