diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/qtbindings/qcanvassprite_imp.cpp | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/qtbindings/qcanvassprite_imp.cpp')
-rw-r--r-- | kjsembed/qtbindings/qcanvassprite_imp.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/kjsembed/qtbindings/qcanvassprite_imp.cpp b/kjsembed/qtbindings/qcanvassprite_imp.cpp index 6268e75c..7d9898b3 100644 --- a/kjsembed/qtbindings/qcanvassprite_imp.cpp +++ b/kjsembed/qtbindings/qcanvassprite_imp.cpp @@ -1,12 +1,12 @@ -#include <qcstring.h> -#include <qimage.h> -#include <qpainter.h> -#include <qpalette.h> -#include <qpixmap.h> -#include <qfont.h> +#include <tqcstring.h> +#include <tqimage.h> +#include <tqpainter.h> +#include <tqpalette.h> +#include <tqpixmap.h> +#include <tqfont.h> #include <kjs/object.h> @@ -15,7 +15,7 @@ #include <kjsembed/jsopaqueproxy.h> #include <kjsembed/jsbinding.h> -#include <qcanvas.h> +#include <tqcanvas.h> #include "qcanvassprite_imp.h" /** @@ -43,7 +43,7 @@ void QCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -66,8 +66,8 @@ void QCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj EnumValue enums[] = { // enum FrameAnimationType - { "Cycle", QCanvasSprite::Cycle }, - { "Oscillate", QCanvasSprite::Oscillate }, + { "Cycle", TQCanvasSprite::Cycle }, + { "Oscillate", TQCanvasSprite::Oscillate }, { 0, 0 } }; @@ -115,7 +115,7 @@ void QCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -128,25 +128,25 @@ void QCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a QCanvasSprite pointer from an Object. + * Extract a TQCanvasSprite pointer from an Object. */ -QCanvasSprite *QCanvasSpriteImp::toQCanvasSprite( KJS::Object &self ) +TQCanvasSprite *QCanvasSpriteImp::toQCanvasSprite( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - QObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<QCanvasSprite *>( obj ); + return dynamic_cast<TQCanvasSprite *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "QCanvasSprite" ) + if ( op->typeName() != "TQCanvasSprite" ) return 0; - return op->toNative<QCanvasSprite>(); + return op->toNative<TQCanvasSprite>(); } /** @@ -164,7 +164,7 @@ KJS::Object QCanvasSpriteImp::construct( KJS::ExecState *exec, const KJS::List & break; } - QString msg = i18n("QCanvasSpriteCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("QCanvasSpriteCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -172,20 +172,20 @@ KJS::Object QCanvasSpriteImp::construct( KJS::ExecState *exec, const KJS::List & KJS::Object QCanvasSpriteImp::QCanvasSprite_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter QCanvasPixmapArray * + // Unsupported parameter TQCanvasPixmapArray * return KJS::Object(); - QCanvasPixmapArray * arg0; // Dummy + TQCanvasPixmapArray * arg0; // Dummy - // Unsupported parameter QCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - QCanvas * arg1; // Dummy + TQCanvas * arg1; // Dummy - // We should now create an instance of the QCanvasSprite object + // We should now create an instance of the TQCanvasSprite object - QCanvasSprite *ret = new QCanvasSprite( + TQCanvasSprite *ret = new TQCanvasSprite( arg0, arg1 ); @@ -303,7 +303,7 @@ KJS::Value QCanvasSpriteImp::call( KJS::ExecState *exec, KJS::Object &self, cons break; } - QString msg = i18n( "QCanvasSpriteImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "QCanvasSpriteImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -311,10 +311,10 @@ KJS::Value QCanvasSpriteImp::call( KJS::ExecState *exec, KJS::Object &self, cons KJS::Value QCanvasSpriteImp::setSequence_2( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasPixmapArray * + // Unsupported parameter TQCanvasPixmapArray * return KJS::Value(); - QCanvasPixmapArray * arg0; // Dummy + TQCanvasPixmapArray * arg0; // Dummy instance->setSequence( arg0 ); @@ -367,7 +367,7 @@ KJS::Value QCanvasSpriteImp::setFrame_6( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QCanvasSpriteImp::setFrameAnimation_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QCanvasSprite::FrameAnimationType arg0 = QCanvasSprite::Cycle; // TODO (hack for QCanvasSprite) + TQCanvasSprite::FrameAnimationType arg0 = TQCanvasSprite::Cycle; // TODO (hack for TQCanvasSprite) int arg1 = extractInt(exec, args, 1); @@ -411,10 +411,10 @@ KJS::Value QCanvasSpriteImp::rtti_10( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasSpriteImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const QCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -425,7 +425,7 @@ KJS::Value QCanvasSpriteImp::collidesWith_11( KJS::ExecState *exec, KJS::Object KJS::Value QCanvasSpriteImp::boundingRect_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect ret; + TQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); @@ -538,7 +538,7 @@ KJS::Value QCanvasSpriteImp::image_23( KJS::ExecState *exec, KJS::Object &obj, c { instance->image( ); - return KJS::Value(); // Returns 'QCanvasPixmap *' + return KJS::Value(); // Returns 'TQCanvasPixmap *' } @@ -546,7 +546,7 @@ KJS::Value QCanvasSpriteImp::imageAdvanced_24( KJS::ExecState *exec, KJS::Object { instance->imageAdvanced( ); - return KJS::Value(); // Returns 'QCanvasPixmap *' + return KJS::Value(); // Returns 'TQCanvasPixmap *' } @@ -557,7 +557,7 @@ KJS::Value QCanvasSpriteImp::image_25( KJS::ExecState *exec, KJS::Object &obj, c instance->image( arg0 ); - return KJS::Value(); // Returns 'QCanvasPixmap *' + return KJS::Value(); // Returns 'TQCanvasPixmap *' } @@ -575,7 +575,7 @@ KJS::Value QCanvasSpriteImp::advance_26( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QCanvasSpriteImp::draw_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPainter arg0; // TODO (hack for qcanvas) + TQPainter arg0; // TODO (hack for qcanvas) instance->draw( arg0 ); |