diff options
Diffstat (limited to 'kjsembed/tools/doxygen2imp_cpp.xsl')
-rw-r--r-- | kjsembed/tools/doxygen2imp_cpp.xsl | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/kjsembed/tools/doxygen2imp_cpp.xsl b/kjsembed/tools/doxygen2imp_cpp.xsl index 4e8d73bf..c485188c 100644 --- a/kjsembed/tools/doxygen2imp_cpp.xsl +++ b/kjsembed/tools/doxygen2imp_cpp.xsl @@ -86,9 +86,9 @@ void <xsl:value-of select="$clazz" />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<QComboBox *>( obj ); + return dynamic_cast<TQComboBox *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); @@ -122,7 +122,7 @@ KJS::Value <xsl:value-of select="$clazz" />Imp::call( KJS::ExecState *exec, KJS: break; } - QString msg = i18n( "<xsl:value-of select="$clazz" />Imp has no method with id '%1'" ).arg( mid ); + TQString msg = i18n( "<xsl:value-of select="$clazz" />Imp has no method with id '%1'" ).arg( mid ); KJS::Object err = KJS::Error::create( exec, KJS::ReferenceError, msg.utf8() ); exec->setException( err ); return err; @@ -141,11 +141,11 @@ KJS::Value <xsl:value-of select="$method" />( KJS::ExecState *exec, KJS::Object { <xsl:for-each select="param/type"> <xsl:choose> - <xsl:when test=". = 'QString'"> - QString arg<xsl:value-of select="position()-1" /> = (args.size() >= <xsl:value-of select="position()" />) ? args[<xsl:value-of select="position()-1" />].toString(exec).qstring() : QString::null; + <xsl:when test=". = 'TQString'"> + TQString arg<xsl:value-of select="position()-1" /> = (args.size() >= <xsl:value-of select="position()" />) ? args[<xsl:value-of select="position()-1" />].toString(exec).qstring() : TQString::null; </xsl:when> - <xsl:when test=". = 'const QString &'"> - QString arg<xsl:value-of select="position()-1" /> = (args.size() >= <xsl:value-of select="position()" />) ? args[<xsl:value-of select="position()-1" />].toString(exec).qstring() : QString::null; + <xsl:when test=". = 'const TQString &'"> + TQString arg<xsl:value-of select="position()-1" /> = (args.size() >= <xsl:value-of select="position()" />) ? args[<xsl:value-of select="position()-1" />].toString(exec).qstring() : TQString::null; </xsl:when> <xsl:when test=". = 'const char *'"> const char *arg<xsl:value-of select="position()-1" /> = (args.size() >= <xsl:value-of select="position()" />) ? args[<xsl:value-of select="position()-1" />].toString(exec).ascii() : 0; @@ -162,44 +162,44 @@ KJS::Value <xsl:value-of select="$method" />( KJS::ExecState *exec, KJS::Object <xsl:when test=". = 'bool'"> bool arg<xsl:value-of select="position()-1" /> = (args.size() >= <xsl:value-of select="position()" />) ? args[<xsl:value-of select="position()-1" />].toBoolean(exec) : false; </xsl:when> - <xsl:when test=". = 'const QFont &'"> - QFont arg<xsl:value-of select="position()-1" />; // TODO + <xsl:when test=". = 'const TQFont &'"> + TQFont arg<xsl:value-of select="position()-1" />; // TODO </xsl:when> - <xsl:when test=". = 'const QPalette &'"> - QPalette arg<xsl:value-of select="position()-1" />; // TODO + <xsl:when test=". = 'const TQPalette &'"> + TQPalette arg<xsl:value-of select="position()-1" />; // TODO </xsl:when> - <xsl:when test=". = 'const QStringList &'"> - QStringList arg<xsl:value-of select="position()-1" /> = extractQStringList(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQStringList &'"> + TQStringList arg<xsl:value-of select="position()-1" /> = extractTQStringList(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> - <xsl:when test=". = 'const QStrList &'"> - QStrList arg<xsl:value-of select="position()-1" />; + <xsl:when test=". = 'const TQStrList &'"> + TQStrList arg<xsl:value-of select="position()-1" />; if ( args.size() >= <xsl:value-of select="position()" /> ) { // TODO: populate the list } </xsl:when> - <xsl:when test=". = 'const QRect &'"> - QRect arg<xsl:value-of select="position()-1" /> = extractQRect(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQRect &'"> + TQRect arg<xsl:value-of select="position()-1" /> = extractTQRect(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> - <xsl:when test=". = 'const QSize &'"> - QSize arg<xsl:value-of select="position()-1" /> = extractQSize(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQSize &'"> + TQSize arg<xsl:value-of select="position()-1" /> = extractTQSize(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> - <xsl:when test=". = 'const QPixmap &'"> - QPixmap arg<xsl:value-of select="position()-1" /> = extractQPixmap(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQPixmap &'"> + TQPixmap arg<xsl:value-of select="position()-1" /> = extractTQPixmap(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> - <xsl:when test=". = 'const QColor &'"> - QColor arg<xsl:value-of select="position()-1" /> = extractQColor(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQColor &'"> + TQColor arg<xsl:value-of select="position()-1" /> = extractTQColor(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> - <xsl:when test=". = 'const QDate &'"> - QDate arg<xsl:value-of select="position()-1" /> = extractQDate(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQDate &'"> + TQDate arg<xsl:value-of select="position()-1" /> = extractTQDate(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> - <xsl:when test=". = 'const QTime &'"> - QTime arg<xsl:value-of select="position()-1" /> = extractQTime(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQTime &'"> + TQTime arg<xsl:value-of select="position()-1" /> = extractTQTime(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> - <xsl:when test=". = 'const QDateTime &'"> - QDateTime arg<xsl:value-of select="position()-1" /> = extractQDateTime(exec, args, <xsl:value-of select="position()-1" />); + <xsl:when test=". = 'const TQDateTime &'"> + TQDateTime arg<xsl:value-of select="position()-1" /> = extractTQDateTime(exec, args, <xsl:value-of select="position()-1" />); </xsl:when> <xsl:when test=". = 'Policy'"> - QComboBox::Policy arg<xsl:value-of select="position()-1" />; // TODO (hack for combo box) + TQComboBox::Policy arg<xsl:value-of select="position()-1" />; // TODO (hack for combo box) </xsl:when> <xsl:otherwise> // Unsupported parameter <xsl:value-of select="." /> @@ -250,8 +250,8 @@ KJS::Value <xsl:value-of select="$method" />( KJS::ExecState *exec, KJS::Object return KJS::Number( ret ); </xsl:when> - <xsl:when test="$rettype = 'QString'"> - QString ret; + <xsl:when test="$rettype = 'TQString'"> + TQString ret; ret = instance-><xsl:value-of select="name" />( <xsl:for-each select="param"> arg<xsl:value-of select="position()-1" /><xsl:if test="position() != count(../param)">,</xsl:if></xsl:for-each> ); return KJS::String( ret ); @@ -264,8 +264,8 @@ KJS::Value <xsl:value-of select="$method" />( KJS::ExecState *exec, KJS::Object return KJS::String( ret ); </xsl:when> - <xsl:when test="$rettype = 'QStringList'"> - QStringList ret; + <xsl:when test="$rettype = 'TQStringList'"> + TQStringList ret; ret = instance-><xsl:value-of select="name" />( <xsl:for-each select="param"> arg<xsl:value-of select="position()-1" /><xsl:if test="position() != count(../param)">,</xsl:if></xsl:for-each> ); |