[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebindings/kjsembed
From: Richard J. Moore <rich () kde ! org>
Date: 2004-05-01 0:27:32
Message-ID: 20040501002732.076FA9A6E () office ! kde ! org
[Download RAW message or body]
CVS commit by rich:
- Extended the range of types supported by the XSL stylesheet to allow QFile
and QFrame to be wrapped. Added the generated wrappers to the build.
A bindings/qframe_imp.cpp 1.1 [no copyright]
A bindings/qframe_imp.h 1.1 [no copyright]
A builtins/qfile_imp.cpp 1.1 [no copyright]
A builtins/qfile_imp.h 1.1 [no copyright]
M +2 -1 bindings/Makefile.am 1.19
M +29 -2 bindwizard/doxygen2imp_cpp.xsl 1.4
M +2 -1 builtins/Makefile.am 1.8
--- kdebindings/kjsembed/bindings/Makefile.am #1.18:1.19
@@ -17,5 +17,6 @@
brush_imp.cpp \
qlistviewitem_imp.cpp \
- qcombobox_imp.cpp
+ qcombobox_imp.cpp \
+ qframe_imp.cpp
libkjsembedbindings_la_LDFLAGS = $(all_libraries) $(KDE_RPATH)
--- kdebindings/kjsembed/bindwizard/doxygen2imp_cpp.xsl #1.3:1.4
@@ -95,5 +95,5 @@
QObject *obj = ob->object();
if ( obj )
- return dynamic_cast<QComboBox *>( obj );
+ return dynamic_cast<<xsl:value-of select="$clazz" /> *>( obj );
}
@@ -237,4 +237,10 @@
QString arg<xsl:value-of select="$idx" /> = (args.size() >= <xsl:value-of \
select="position()" />) ? args[<xsl:value-of select="$idx" \
/>].toString(exec).qstring() : QString::null; </xsl:when>
+ <xsl:when test=". = 'QString &'">
+ QString arg<xsl:value-of select="$idx" /> = (args.size() >= <xsl:value-of \
select="position()" />) ? args[<xsl:value-of select="$idx" \
/>].toString(exec).qstring() : QString::null; + </xsl:when>
+ <xsl:when test=". = 'const QCString &'">
+ const QCString arg<xsl:value-of select="$idx" /> = (args.size() >= <xsl:value-of \
select="position()" />) ? args[<xsl:value-of select="$idx" />].toString(exec).ascii() \
: 0; + </xsl:when>
<xsl:when test=". = 'const char *'">
const char *arg<xsl:value-of select="$idx" /> = (args.size() >= <xsl:value-of \
select="position()" />) ? args[<xsl:value-of select="$idx" />].toString(exec).ascii() \
: 0; @@ -291,9 +297,30 @@
QComboBox::Policy arg<xsl:value-of select="$idx" />; // TODO (hack for combo \
box) </xsl:when>
+ <xsl:when test=". = 'Shape'">
+ QFrame::Shape arg<xsl:value-of select="$idx" />; // TODO (hack for frame)
+ </xsl:when>
+ <xsl:when test=". = 'Shadow'">
+ QFrame::Shadow arg<xsl:value-of select="$idx" />; // TODO (hack for frame)
+ </xsl:when>
+ <xsl:when test=". = 'Shadow'">
+ FILE *arg<xsl:value-of select="$idx" />; // TODO (hack for qfile)
+ </xsl:when>
+ <xsl:when test=". = 'Offset'">
+ QFile::Offset arg<xsl:value-of select="$idx" />; // TODO (hack for qfile)
+ </xsl:when>
+ <xsl:when test=". = 'EncoderFn'">
+ QFile::EncoderFn arg<xsl:value-of select="$idx" />; // TODO (hack for qfile)
+ </xsl:when>
+ <xsl:when test=". = 'DecoderFn'">
+ QFile::DecoderFn arg<xsl:value-of select="$idx" />; // TODO (hack for qfile)
+ </xsl:when>
+ <xsl:when test=". = 'const QByteArray &'">
+ QByteArray arg<xsl:value-of select="$idx" />; // TODO (hack for qfile)
+ </xsl:when>
<xsl:otherwise>
// Unsupported parameter <xsl:value-of select="." />
return KJS::Value();
- <xsl:value-of select="." />arg<xsl:value-of select="$idx" />; // Dummy
+ <xsl:value-of select="." /> arg<xsl:value-of select="$idx" />; // Dummy
</xsl:otherwise>
</xsl:choose>
--- kdebindings/kjsembed/builtins/Makefile.am #1.7:1.8
@@ -9,5 +9,6 @@
saxhandler.cpp \
textstream_imp.cpp \
- qdir_imp.cpp
+ qdir_imp.cpp \
+ qfile_imp.cpp
libkjsembedbuiltins_la_LDFLAGS = $(all_libraries) $(KDE_RPATH)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic