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/qcanvas_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/qcanvas_imp.cpp')
-rw-r--r-- | kjsembed/qtbindings/qcanvas_imp.cpp | 150 |
1 files changed, 75 insertions, 75 deletions
diff --git a/kjsembed/qtbindings/qcanvas_imp.cpp b/kjsembed/qtbindings/qcanvas_imp.cpp index 65192798..f653416b 100644 --- a/kjsembed/qtbindings/qcanvas_imp.cpp +++ b/kjsembed/qtbindings/qcanvas_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 "qcanvas_imp.h" /** @@ -43,7 +43,7 @@ void QCanvasImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -116,7 +116,7 @@ void QCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - QCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -129,25 +129,25 @@ void QCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a QCanvas pointer from an Object. + * Extract a TQCanvas pointer from an Object. */ -QCanvas *QCanvasImp::toQCanvas( KJS::Object &self ) +TQCanvas *QCanvasImp::toQCanvas( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - QObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<QCanvas *>( obj ); + return dynamic_cast<TQCanvas *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "QCanvas" ) + if ( op->typeName() != "TQCanvas" ) return 0; - return op->toNative<QCanvas>(); + return op->toNative<TQCanvas>(); } /** @@ -173,7 +173,7 @@ KJS::Object QCanvasImp::construct( KJS::ExecState *exec, const KJS::List &args ) break; } - QString msg = i18n("QCanvasCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("QCanvasCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -181,21 +181,21 @@ KJS::Object QCanvasImp::construct( KJS::ExecState *exec, const KJS::List &args ) KJS::Object QCanvasImp::QCanvas_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter QObject * + // Unsupported parameter TQObject * - QObject * arg0 = extractQObject(exec,args,0); + TQObject * arg0 = extractQObject(exec,args,0); const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - // We should now create an instance of the QCanvas object + // We should now create an instance of the TQCanvas object - QCanvas *ret = new QCanvas( + TQCanvas *ret = new TQCanvas( arg0, arg1 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "QCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); return KJS::Object( prx ); } @@ -207,13 +207,13 @@ KJS::Object QCanvasImp::QCanvas_2( KJS::ExecState *exec, const KJS::List &args ) int arg1 = extractInt(exec, args, 1); - // We should now create an instance of the QCanvas object + // We should now create an instance of the TQCanvas object - QCanvas *ret = new QCanvas( + TQCanvas *ret = new TQCanvas( arg0, arg1 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "QCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); return KJS::Object( prx ); } @@ -223,7 +223,7 @@ KJS::Object QCanvasImp::QCanvas_3( KJS::ExecState *exec, const KJS::List &args ) // Unsupported parameter QPixmap - QPixmap arg0 = extractQPixmap(exec, args, 0); + TQPixmap arg0 = extractQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -234,9 +234,9 @@ KJS::Object QCanvasImp::QCanvas_3( KJS::ExecState *exec, const KJS::List &args ) int arg4 = extractInt(exec, args, 4); - // We should now create an instance of the QCanvas object + // We should now create an instance of the TQCanvas object - QCanvas *ret = new QCanvas( + TQCanvas *ret = new TQCanvas( arg0, arg1, @@ -244,7 +244,7 @@ KJS::Object QCanvasImp::QCanvas_3( KJS::ExecState *exec, const KJS::List &args ) arg3, arg4 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "QCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); return KJS::Object( prx ); } @@ -450,7 +450,7 @@ KJS::Value QCanvasImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS: break; } - QString msg = i18n( "QCanvasImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "QCanvasImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -461,7 +461,7 @@ KJS::Value QCanvasImp::setTiles_5( KJS::ExecState *exec, KJS::Object &obj, const // Unsupported parameter QPixmap return KJS::Value(); - QPixmap arg0; // Dummy + TQPixmap arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -484,7 +484,7 @@ KJS::Value QCanvasImp::setTiles_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value QCanvasImp::setBackgroundPixmap_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPixmap arg0 = extractQPixmap(exec, args, 0); + TQPixmap arg0 = extractQPixmap(exec, args, 0); instance->setBackgroundPixmap( arg0 ); @@ -494,7 +494,7 @@ KJS::Value QCanvasImp::setBackgroundPixmap_6( KJS::ExecState *exec, KJS::Object KJS::Value QCanvasImp::backgroundPixmap_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPixmap ret; + TQPixmap ret; ret = instance->backgroundPixmap( ); return convertToValue( exec, ret ); @@ -504,7 +504,7 @@ KJS::Value QCanvasImp::backgroundPixmap_7( KJS::ExecState *exec, KJS::Object &ob KJS::Value QCanvasImp::setBackgroundColor_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QColor arg0 = extractQColor(exec, args, 0); + TQColor arg0 = extractQColor(exec, args, 0); instance->setBackgroundColor( arg0 ); @@ -622,7 +622,7 @@ KJS::Value QCanvasImp::height_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value QCanvasImp::size_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QSize ret; + TQSize ret; ret = instance->size( ); return convertToValue( exec, ret ); @@ -631,7 +631,7 @@ KJS::Value QCanvasImp::size_19( KJS::ExecState *exec, KJS::Object &obj, const KJ KJS::Value QCanvasImp::rect_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect ret; + TQRect ret; ret = instance->rect( ); return convertToValue( exec, ret ); @@ -656,7 +656,7 @@ KJS::Value QCanvasImp::onCanvas_21( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value QCanvasImp::onCanvas_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPoint arg0 = extractQPoint(exec, args, 0); + TQPoint arg0 = extractQPoint(exec, args, 0); bool ret; ret = instance->onCanvas( @@ -683,7 +683,7 @@ KJS::Value QCanvasImp::validChunk_23( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasImp::validChunk_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPoint arg0 = extractQPoint(exec, args, 0); + TQPoint arg0 = extractQPoint(exec, args, 0); bool ret; ret = instance->validChunk( @@ -775,7 +775,7 @@ KJS::Value QCanvasImp::setAllChanged_30( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QCanvasImp::setChanged_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect arg0 = extractQRect(exec, args, 0); + TQRect arg0 = extractQRect(exec, args, 0); instance->setChanged( arg0 ); @@ -786,7 +786,7 @@ KJS::Value QCanvasImp::setChanged_31( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasImp::setUnchanged_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect arg0 = extractQRect(exec, args, 0); + TQRect arg0 = extractQRect(exec, args, 0); instance->setUnchanged( arg0 ); @@ -797,10 +797,10 @@ KJS::Value QCanvasImp::setUnchanged_32( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QCanvasImp::addItemToChunk_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -817,10 +817,10 @@ KJS::Value QCanvasImp::addItemToChunk_33( KJS::ExecState *exec, KJS::Object &obj KJS::Value QCanvasImp::removeItemFromChunk_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -837,10 +837,10 @@ KJS::Value QCanvasImp::removeItemFromChunk_34( KJS::ExecState *exec, KJS::Object KJS::Value QCanvasImp::addItemToChunkContaining_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -857,10 +857,10 @@ KJS::Value QCanvasImp::addItemToChunkContaining_35( KJS::ExecState *exec, KJS::O KJS::Value QCanvasImp::removeItemFromChunkContaining_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -885,7 +885,7 @@ KJS::Value QCanvasImp::allItems_37( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value QCanvasImp::collisions_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPoint arg0 = extractQPoint(exec, args, 0); + TQPoint arg0 = extractQPoint(exec, args, 0); instance->collisions( arg0 ); @@ -896,7 +896,7 @@ KJS::Value QCanvasImp::collisions_38( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasImp::collisions_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect arg0 = extractQRect(exec, args, 0); + TQRect arg0 = extractQRect(exec, args, 0); instance->collisions( arg0 ); @@ -907,12 +907,12 @@ KJS::Value QCanvasImp::collisions_39( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasImp::collisions_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QPointArray arg0; // TODO (hack for qcanvas) + TQPointArray arg0; // TODO (hack for qcanvas) - // Unsupported parameter const QCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const QCanvasItem * arg1; // Dummy + const TQCanvasItem * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -927,12 +927,12 @@ KJS::Value QCanvasImp::collisions_40( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasImp::drawArea_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect arg0 = extractQRect(exec, args, 0); + TQRect arg0 = extractQRect(exec, args, 0); - // Unsupported parameter QPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - QPainter * arg1; // Dummy + TQPainter * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -947,10 +947,10 @@ KJS::Value QCanvasImp::drawArea_41( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value QCanvasImp::addView_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasView * + // Unsupported parameter TQCanvasView * return KJS::Value(); - QCanvasView * arg0; // Dummy + TQCanvasView * arg0; // Dummy instance->addView( arg0 ); @@ -961,10 +961,10 @@ KJS::Value QCanvasImp::addView_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value QCanvasImp::removeView_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasView * + // Unsupported parameter TQCanvasView * return KJS::Value(); - QCanvasView * arg0; // Dummy + TQCanvasView * arg0; // Dummy instance->removeView( arg0 ); @@ -975,12 +975,12 @@ KJS::Value QCanvasImp::removeView_43( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasImp::drawCanvasArea_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - QRect arg0 = extractQRect(exec, args, 0); + TQRect arg0 = extractQRect(exec, args, 0); - // Unsupported parameter QPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - QPainter * arg1; // Dummy + TQPainter * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -995,17 +995,17 @@ KJS::Value QCanvasImp::drawCanvasArea_44( KJS::ExecState *exec, KJS::Object &obj KJS::Value QCanvasImp::drawViewArea_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasView * + // Unsupported parameter TQCanvasView * return KJS::Value(); - QCanvasView * arg0; // Dummy + TQCanvasView * arg0; // Dummy - // Unsupported parameter QPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - QPainter * arg1; // Dummy + TQPainter * arg1; // Dummy - QRect arg2 = extractQRect(exec, args, 2); + TQRect arg2 = extractQRect(exec, args, 2); bool arg3 = extractBool(exec, args, 3); @@ -1021,10 +1021,10 @@ KJS::Value QCanvasImp::drawViewArea_45( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QCanvasImp::addItem_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->addItem( arg0 ); @@ -1035,10 +1035,10 @@ KJS::Value QCanvasImp::addItem_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value QCanvasImp::addAnimation_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->addAnimation( arg0 ); @@ -1049,10 +1049,10 @@ KJS::Value QCanvasImp::addAnimation_47( KJS::ExecState *exec, KJS::Object &obj, KJS::Value QCanvasImp::removeItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -1063,10 +1063,10 @@ KJS::Value QCanvasImp::removeItem_48( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value QCanvasImp::removeAnimation_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - QCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->removeAnimation( arg0 ); |