From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- kjsembed/bindwizard/doxygen2imp_cpp.xsl | 206 ++++++++++++++++---------------- 1 file changed, 103 insertions(+), 103 deletions(-) (limited to 'kjsembed/bindwizard/doxygen2imp_cpp.xsl') diff --git a/kjsembed/bindwizard/doxygen2imp_cpp.xsl b/kjsembed/bindwizard/doxygen2imp_cpp.xsl index c65b5650..23729848 100644 --- a/kjsembed/bindwizard/doxygen2imp_cpp.xsl +++ b/kjsembed/bindwizard/doxygen2imp_cpp.xsl @@ -27,7 +27,7 @@ #include <kjsembed/jsbinding.h> #include <> -#include "_imp.h" +#include "_imp.h" /** * Namespace containing the KJSEmbed library. @@ -60,7 +60,7 @@ void Imp::addStaticBindings( KJS::ExecState *exe }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -117,7 +117,7 @@ void Imp::addBindings( KJS::ExecState *exec, KJS }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -136,7 +136,7 @@ void Imp::addBindings( KJS::ExecState *exec, KJS { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - QObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) return dynamic_cast< *>( obj ); } @@ -172,7 +172,7 @@ KJS::Object Imp::construct( KJS::ExecState *exec break; } - QString msg = i18n("Cons has no constructor with id '%1'").arg(id); + TQString msg = i18n("Cons has no constructor with id '%1'").arg(id); KJS::Object err = KJS::Error::create( exec, KJS::ReferenceError, msg.utf8() ); exec->setException( err ); return err; @@ -186,7 +186,7 @@ KJS::Object Imp::construct( KJS::ExecState *exec Constructor_ KJS::Object Imp::( KJS::ExecState *exec, const KJS::List &args ) { - + #if 0 // This constructor has been disabled by the XSL template @@ -195,17 +195,17 @@ KJS::Object Imp:: - - QString arg = extractQString(exec, args, ); + + TQString arg = extractTQString(exec, args, ); - - QString arg = extractQString(exec, args, ); + + TQString arg = extractTQString(exec, args, ); - - QString arg = extractQString(exec, args, ); + + TQString arg = extractTQString(exec, args, ); - - const QCString arg = (args.size() >= ) ? args[].toString(exec).ascii() : 0; + + const TQCString arg = (args.size() >= ) ? args[].toString(exec).ascii() : 0; const char *arg = (args.size() >= ) ? args[].toString(exec).ascii() : 0; @@ -222,48 +222,48 @@ KJS::Object Imp:: bool arg = extractBool(exec, args, ); - - QFont arg = extractQFont(exec, args, ); + + TQFont arg = extractTQFont(exec, args, ); - - QPalette arg = extractQPalette(exec, args, ); + + TQPalette arg = extractTQPalette(exec, args, ); - - QStringList arg = extractQStringList(exec, args, ); + + TQStringList arg = extractTQStringList(exec, args, ); - - QStrList arg = extractQStrList(exec, args, ); + + TQStrList arg = extractTQStrList(exec, args, ); - - QPoint arg = extractQPoint(exec, args, ); + + TQPoint arg = extractTQPoint(exec, args, ); - - QRect arg = extractQRect(exec, args, ); + + TQRect arg = extractTQRect(exec, args, ); - - QSize arg = extractQSize(exec, args, ); + + TQSize arg = extractTQSize(exec, args, ); - - QPixmap arg = extractQPixmap(exec, args, ); + + TQPixmap arg = extractTQPixmap(exec, args, ); - - QImage arg = extractQImage(exec, args, ); + + TQImage arg = extractTQImage(exec, args, ); - - QColor arg = extractQColor(exec, args, ); + + TQColor arg = extractTQColor(exec, args, ); - - QDate arg = extractQDate(exec, args, ); + + TQDate arg = extractTQDate(exec, args, ); - - QTime arg = extractQTime(exec, args, ); + + TQTime arg = extractTQTime(exec, args, ); - - QDateTime arg = extractQDateTime(exec, args, ); + + TQDateTime arg = extractTQDateTime(exec, args, ); - Qt::WFlags arg; // TODO (hack for QCanvasView) + TQt::WFlags arg; // TODO (hack for TQCanvasView) @@ -282,7 +282,7 @@ KJS::Object Imp::, ); - + #endif // This constructor has been disabled by the XSL template } @@ -311,7 +311,7 @@ KJS::Value Imp::call( KJS::ExecState *exec, KJS: break; } - QString msg = i18n( "Imp has no method with id '%1'" ).arg( id ); + TQString msg = i18n( "Imp has no method with id '%1'" ).arg( id ); KJS::Object err = KJS::Error::create( exec, KJS::ReferenceError, msg.utf8() ); exec->setException( err ); return err; @@ -333,17 +333,17 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object - - QString arg = extractQString(exec, args, ); + + TQString arg = extractTQString(exec, args, ); - - QString arg = extractQString(exec, args, ); + + TQString arg = extractTQString(exec, args, ); - - QString arg = extractQString(exec, args, ); + + TQString arg = extractTQString(exec, args, ); - - const QCString arg = (args.size() >= ) ? args[].toString(exec).ascii() : 0; + + const TQCString arg = (args.size() >= ) ? args[].toString(exec).ascii() : 0; const char *arg = (args.size() >= ) ? args[].toString(exec).ascii() : 0; @@ -360,92 +360,92 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object bool arg = extractBool(exec, args, ); - - QFont arg = extractQFont(exec, args, ); + + TQFont arg = extractTQFont(exec, args, ); - - QPalette arg = extractQPalette(exec, args, ); + + TQPalette arg = extractTQPalette(exec, args, ); - - QStringList arg = extractQStringList(exec, args, ); + + TQStringList arg = extractTQStringList(exec, args, ); - - QStrList arg = extractQStrList(exec, args, ); + + TQStrList arg = extractTQStrList(exec, args, ); - - QPoint arg = extractQPoint(exec, args, ); + + TQPoint arg = extractTQPoint(exec, args, ); - - QRect arg = extractQRect(exec, args, ); + + TQRect arg = extractTQRect(exec, args, ); - - QSize arg = extractQSize(exec, args, ); + + TQSize arg = extractTQSize(exec, args, ); - - QPixmap arg = extractQPixmap(exec, args, ); + + TQPixmap arg = extractTQPixmap(exec, args, ); - - QImage arg = extractQImage(exec, args, ); + + TQImage arg = extractTQImage(exec, args, ); - - QColor arg = extractQColor(exec, args, ); + + TQColor arg = extractTQColor(exec, args, ); - - QDate arg = extractQDate(exec, args, ); + + TQDate arg = extractTQDate(exec, args, ); - - QTime arg = extractQTime(exec, args, ); + + TQTime arg = extractTQTime(exec, args, ); - - QDateTime arg = extractQDateTime(exec, args, ); + + TQDateTime arg = extractTQDateTime(exec, args, ); - QComboBox::Policy arg; // TODO (hack for combo box) + TQComboBox::Policy arg; // TODO (hack for combo box) - QFrame::Shape arg; // TODO (hack for frame) + TQFrame::Shape arg; // TODO (hack for frame) - QFrame::Shadow arg; // TODO (hack for frame) + TQFrame::Shadow arg; // TODO (hack for frame) FILE *arg; // TODO (hack for qfile) - QFile::Offset arg; // TODO (hack for qfile) + TQFile::Offset arg; // TODO (hack for qfile) - QFile::EncoderFn arg; // TODO (hack for qfile) + TQFile::EncoderFn arg; // TODO (hack for qfile) - QFile::DecoderFn arg; // TODO (hack for qfile) + TQFile::DecoderFn arg; // TODO (hack for qfile) - QCanvasSprite::FrameAnimationType arg; // TODO (hack for QCanvasSprite) + TQCanvasSprite::FrameAnimationType arg; // TODO (hack for TQCanvasSprite) - Qt::WFlags arg; // TODO (hack for QCanvasView) + TQt::WFlags arg; // TODO (hack for TQCanvasView) - - QByteArray arg; // TODO (hack for qfile) + + TQByteArray arg; // TODO (hack for qfile) - - QPointArray arg; // TODO (hack for qcanvas) + + TQPointArray arg; // TODO (hack for qcanvas) - - QPainter arg; // TODO (hack for qcanvas) + + TQPainter arg; // TODO (hack for qcanvas) - - QPainter arg; // TODO (hack for qcanvas) + + TQPainter arg; // TODO (hack for qcanvas) - - QWMatrix arg; // TODO (hack for qcanvasview) + + TQWMatrix arg; // TODO (hack for qcanvasview) @@ -497,8 +497,8 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object return KJS::Number( ret ); - - QString ret; + + TQString ret; ret = instance->( arg, ); return KJS::String( ret ); @@ -513,18 +513,18 @@ KJS::Value ( KJS::ExecState *exec, KJS::Object - + ret; ret = instance->( arg, ); return convertToValue( exec, ret ); - - QStringList ret; + + TQStringList ret; ret = instance->( arg, ); -- cgit v1.2.1