summaryrefslogtreecommitdiffstats
path: root/kjsembed/global.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/global.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/global.cpp')
-rw-r--r--kjsembed/global.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/kjsembed/global.cpp b/kjsembed/global.cpp
index 4d6937cb..f48a9384 100644
--- a/kjsembed/global.cpp
+++ b/kjsembed/global.cpp
@@ -32,9 +32,9 @@
# endif
#endif
-static TQTextStream *kjsembed_err = 0L;
-static TQTextStream *kjsembed_in = 0L;
-static TQTextStream *kjsembed_out = 0L;
+static TTQTextStream *kjsembed_err = 0L;
+static TTQTextStream *kjsembed_in = 0L;
+static TTQTextStream *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 TQFile win32_stdin;
-static TQFile win32_stdout;
-static TQFile win32_stderr;
+static TTQFile win32_stdin;
+static TTQFile win32_stdout;
+static TTQFile win32_stderr;
static const WORD MAX_CONSOLE_LINES = 500;
@@ -102,23 +102,23 @@ void RedirectIOToConsole() {
#endif
-TQTextStream &consoleOut( )
+TTQTextStream &consoleOut( )
{
return *KJSEmbed::conout();
}
-TQTextStream &consoleError( )
+TTQTextStream &consoleError( )
{
return *KJSEmbed::conerr();
}
-TQTextStream &consoleIn( )
+TTQTextStream &consoleIn( )
{
return *KJSEmbed::conin();
}
#ifdef QT_ONLY
-TQTextStream &kdDebug( int area )
+TTQTextStream &kdDebug( int area )
{
#ifndef QT_DEBUG
return consoleError() << "DEBUG: (" << area << ") ";
@@ -128,50 +128,50 @@ TQTextStream &kdDebug( int area )
}
-TQTextStream &kdWarning( int area )
+TTQTextStream &kdWarning( int area )
{
return consoleOut() << "WARNING: (" << area << ") ";
}
-TQString i18n( const char *string )
+TTQString i18n( const char *string )
{
- return TQObject::tr( string, "qjsembed string");
+ return TTQObject::tr( string, "qjsembed string");
}
#endif
-TQTextStream *KJSEmbed::conin()
+TTQTextStream *KJSEmbed::conin()
{
if ( !kjsembed_in ) {
#ifdef _WIN32
- kjsembed_in = new TQTextStream( &win32_stdin );
+ kjsembed_in = new TTQTextStream( &win32_stdin );
#else
- kjsembed_in = new TQTextStream( stdin, IO_ReadOnly );
+ kjsembed_in = new TTQTextStream( stdin, IO_ReadOnly );
#endif
}
return kjsembed_in;
}
-TQTextStream *KJSEmbed::conout()
+TTQTextStream *KJSEmbed::conout()
{
if ( !kjsembed_out ) {
#ifdef _WIN32
- kjsembed_out = new TQTextStream( &win32_stdout );
+ kjsembed_out = new TTQTextStream( &win32_stdout );
#else
- kjsembed_out = new TQTextStream( stdout, IO_WriteOnly );
+ kjsembed_out = new TTQTextStream( stdout, IO_WriteOnly );
#endif
}
return kjsembed_out;
}
-TQTextStream *KJSEmbed::conerr()
+TTQTextStream *KJSEmbed::conerr()
{
if ( !kjsembed_err ) {
#ifdef _WIN32
- kjsembed_err = new TQTextStream( &win32_stderr );
+ kjsembed_err = new TTQTextStream( &win32_stderr );
#else
- kjsembed_err = new TQTextStream( stderr, IO_WriteOnly );
+ kjsembed_err = new TTQTextStream( stderr, IO_WriteOnly );
#endif
}
return kjsembed_err;