summaryrefslogtreecommitdiffstats
path: root/kjsembed/tools/doxygen2imp_cpp.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/tools/doxygen2imp_cpp.xsl')
-rw-r--r--kjsembed/tools/doxygen2imp_cpp.xsl68
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&lt;QComboBox *>( obj );
+ return dynamic_cast&lt;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 &amp;'">
- 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 &amp;'">
+ 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 &amp;'">
- QFont arg<xsl:value-of select="position()-1" />; // TODO
+ <xsl:when test=". = 'const TQFont &amp;'">
+ TQFont arg<xsl:value-of select="position()-1" />; // TODO
</xsl:when>
- <xsl:when test=". = 'const QPalette &amp;'">
- QPalette arg<xsl:value-of select="position()-1" />; // TODO
+ <xsl:when test=". = 'const TQPalette &amp;'">
+ TQPalette arg<xsl:value-of select="position()-1" />; // TODO
</xsl:when>
- <xsl:when test=". = 'const QStringList &amp;'">
- QStringList arg<xsl:value-of select="position()-1" /> = extractQStringList(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQStringList &amp;'">
+ TQStringList arg<xsl:value-of select="position()-1" /> = extractTQStringList(exec, args, <xsl:value-of select="position()-1" />);
</xsl:when>
- <xsl:when test=". = 'const QStrList &amp;'">
- QStrList arg<xsl:value-of select="position()-1" />;
+ <xsl:when test=". = 'const TQStrList &amp;'">
+ 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 &amp;'">
- QRect arg<xsl:value-of select="position()-1" /> = extractQRect(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQRect &amp;'">
+ TQRect arg<xsl:value-of select="position()-1" /> = extractTQRect(exec, args, <xsl:value-of select="position()-1" />);
</xsl:when>
- <xsl:when test=". = 'const QSize &amp;'">
- QSize arg<xsl:value-of select="position()-1" /> = extractQSize(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQSize &amp;'">
+ TQSize arg<xsl:value-of select="position()-1" /> = extractTQSize(exec, args, <xsl:value-of select="position()-1" />);
</xsl:when>
- <xsl:when test=". = 'const QPixmap &amp;'">
- QPixmap arg<xsl:value-of select="position()-1" /> = extractQPixmap(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQPixmap &amp;'">
+ TQPixmap arg<xsl:value-of select="position()-1" /> = extractTQPixmap(exec, args, <xsl:value-of select="position()-1" />);
</xsl:when>
- <xsl:when test=". = 'const QColor &amp;'">
- QColor arg<xsl:value-of select="position()-1" /> = extractQColor(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQColor &amp;'">
+ TQColor arg<xsl:value-of select="position()-1" /> = extractTQColor(exec, args, <xsl:value-of select="position()-1" />);
</xsl:when>
- <xsl:when test=". = 'const QDate &amp;'">
- QDate arg<xsl:value-of select="position()-1" /> = extractQDate(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQDate &amp;'">
+ TQDate arg<xsl:value-of select="position()-1" /> = extractTQDate(exec, args, <xsl:value-of select="position()-1" />);
</xsl:when>
- <xsl:when test=". = 'const QTime &amp;'">
- QTime arg<xsl:value-of select="position()-1" /> = extractQTime(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQTime &amp;'">
+ TQTime arg<xsl:value-of select="position()-1" /> = extractTQTime(exec, args, <xsl:value-of select="position()-1" />);
</xsl:when>
- <xsl:when test=". = 'const QDateTime &amp;'">
- QDateTime arg<xsl:value-of select="position()-1" /> = extractQDateTime(exec, args, <xsl:value-of select="position()-1" />);
+ <xsl:when test=". = 'const TQDateTime &amp;'">
+ 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> );