diff options
author | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /kjsembed/qtbindings | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'kjsembed/qtbindings')
45 files changed, 958 insertions, 958 deletions
diff --git a/kjsembed/qtbindings/qcanvas_imp.cpp b/kjsembed/qtbindings/qcanvas_imp.cpp index d686d862..22e8c40b 100644 --- a/kjsembed/qtbindings/qcanvas_imp.cpp +++ b/kjsembed/qtbindings/qcanvas_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasImp::TQCanvasImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasImp::TQCanvasImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasImp::~TQCanvasImp() +TQCanvasImp::~TQCanvasImp() { } @@ -43,7 +43,7 @@ void TQCanvasImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -116,7 +116,7 @@ void TQCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -129,25 +129,25 @@ void TQCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvas pointer from an Object. + * Extract a TQCanvas pointer from an Object. */ -TTQCanvas *TQCanvasImp::toTQCanvas( KJS::Object &self ) +TQCanvas *TQCanvasImp::toTQCanvas( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvas *>( obj ); + return dynamic_cast<TQCanvas *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvas" ) + if ( op->typeName() != "TQCanvas" ) return 0; - return op->toNative<TTQCanvas>(); + return op->toNative<TQCanvas>(); } /** @@ -173,7 +173,7 @@ KJS::Object TQCanvasImp::construct( KJS::ExecState *exec, const KJS::List &args break; } - TTQString msg = i18n("TQCanvasCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -181,21 +181,21 @@ KJS::Object TQCanvasImp::construct( KJS::ExecState *exec, const KJS::List &args KJS::Object TQCanvasImp::TQCanvas_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQObject * + // Unsupported parameter TQObject * - TTQObject * arg0 = extractTQObject(exec,args,0); + TQObject * arg0 = extractTQObject(exec,args,0); const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - // We should now create an instance of the TTQCanvas object + // We should now create an instance of the TQCanvas object - TTQCanvas *ret = new TTQCanvas( + TQCanvas *ret = new TQCanvas( arg0, arg1 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); return KJS::Object( prx ); } @@ -207,13 +207,13 @@ KJS::Object TQCanvasImp::TQCanvas_2( KJS::ExecState *exec, const KJS::List &args int arg1 = extractInt(exec, args, 1); - // We should now create an instance of the TTQCanvas object + // We should now create an instance of the TQCanvas object - TTQCanvas *ret = new TTQCanvas( + TQCanvas *ret = new TQCanvas( arg0, arg1 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); return KJS::Object( prx ); } @@ -223,7 +223,7 @@ KJS::Object TQCanvasImp::TQCanvas_3( KJS::ExecState *exec, const KJS::List &args // Unsupported parameter TQPixmap - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -234,9 +234,9 @@ KJS::Object TQCanvasImp::TQCanvas_3( KJS::ExecState *exec, const KJS::List &args int arg4 = extractInt(exec, args, 4); - // We should now create an instance of the TTQCanvas object + // We should now create an instance of the TQCanvas object - TTQCanvas *ret = new TTQCanvas( + TQCanvas *ret = new TQCanvas( arg0, arg1, @@ -244,7 +244,7 @@ KJS::Object TQCanvasImp::TQCanvas_3( KJS::ExecState *exec, const KJS::List &args arg3, arg4 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); return KJS::Object( prx ); } @@ -450,7 +450,7 @@ KJS::Value TQCanvasImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS break; } - TTQString msg = i18n( "TQCanvasImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -461,7 +461,7 @@ KJS::Value TQCanvasImp::setTiles_5( KJS::ExecState *exec, KJS::Object &obj, cons // Unsupported parameter TQPixmap return KJS::Value(); - TTQPixmap arg0; // Dummy + TQPixmap arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -484,7 +484,7 @@ KJS::Value TQCanvasImp::setTiles_5( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value TQCanvasImp::setBackgroundPixmap_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); instance->setBackgroundPixmap( arg0 ); @@ -494,7 +494,7 @@ KJS::Value TQCanvasImp::setBackgroundPixmap_6( KJS::ExecState *exec, KJS::Object KJS::Value TQCanvasImp::backgroundPixmap_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap ret; + TQPixmap ret; ret = instance->backgroundPixmap( ); return convertToValue( exec, ret ); @@ -504,7 +504,7 @@ KJS::Value TQCanvasImp::backgroundPixmap_7( KJS::ExecState *exec, KJS::Object &o KJS::Value TQCanvasImp::setBackgroundColor_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQColor arg0 = extractTQColor(exec, args, 0); + TQColor arg0 = extractTQColor(exec, args, 0); instance->setBackgroundColor( arg0 ); @@ -622,7 +622,7 @@ KJS::Value TQCanvasImp::height_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value TQCanvasImp::size_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQSize ret; + TQSize ret; ret = instance->size( ); return convertToValue( exec, ret ); @@ -631,7 +631,7 @@ KJS::Value TQCanvasImp::size_19( KJS::ExecState *exec, KJS::Object &obj, const K KJS::Value TQCanvasImp::rect_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect ret; + TQRect ret; ret = instance->rect( ); return convertToValue( exec, ret ); @@ -656,7 +656,7 @@ KJS::Value TQCanvasImp::onCanvas_21( KJS::ExecState *exec, KJS::Object &obj, con KJS::Value TQCanvasImp::onCanvas_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint arg0 = extractTQPoint(exec, args, 0); + TQPoint arg0 = extractTQPoint(exec, args, 0); bool ret; ret = instance->onCanvas( @@ -683,7 +683,7 @@ KJS::Value TQCanvasImp::validChunk_23( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasImp::validChunk_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint arg0 = extractTQPoint(exec, args, 0); + TQPoint arg0 = extractTQPoint(exec, args, 0); bool ret; ret = instance->validChunk( @@ -775,7 +775,7 @@ KJS::Value TQCanvasImp::setAllChanged_30( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQCanvasImp::setChanged_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect arg0 = extractTQRect(exec, args, 0); + TQRect arg0 = extractTQRect(exec, args, 0); instance->setChanged( arg0 ); @@ -786,7 +786,7 @@ KJS::Value TQCanvasImp::setChanged_31( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasImp::setUnchanged_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect arg0 = extractTQRect(exec, args, 0); + TQRect arg0 = extractTQRect(exec, args, 0); instance->setUnchanged( arg0 ); @@ -797,10 +797,10 @@ KJS::Value TQCanvasImp::setUnchanged_32( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCanvasImp::addItemToChunk_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -817,10 +817,10 @@ KJS::Value TQCanvasImp::addItemToChunk_33( KJS::ExecState *exec, KJS::Object &ob KJS::Value TQCanvasImp::removeItemFromChunk_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -837,10 +837,10 @@ KJS::Value TQCanvasImp::removeItemFromChunk_34( KJS::ExecState *exec, KJS::Objec KJS::Value TQCanvasImp::addItemToChunkContaining_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -857,10 +857,10 @@ KJS::Value TQCanvasImp::addItemToChunkContaining_35( KJS::ExecState *exec, KJS:: KJS::Value TQCanvasImp::removeItemFromChunkContaining_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -885,7 +885,7 @@ KJS::Value TQCanvasImp::allItems_37( KJS::ExecState *exec, KJS::Object &obj, con KJS::Value TQCanvasImp::collisions_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint arg0 = extractTQPoint(exec, args, 0); + TQPoint arg0 = extractTQPoint(exec, args, 0); instance->collisions( arg0 ); @@ -896,7 +896,7 @@ KJS::Value TQCanvasImp::collisions_38( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasImp::collisions_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect arg0 = extractTQRect(exec, args, 0); + TQRect arg0 = extractTQRect(exec, args, 0); instance->collisions( arg0 ); @@ -907,12 +907,12 @@ KJS::Value TQCanvasImp::collisions_39( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasImp::collisions_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPointArray arg0; // TODO (hack for qcanvas) + TQPointArray arg0; // TODO (hack for qcanvas) - // Unsupported parameter const TTQCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const TTQCanvasItem * arg1; // Dummy + const TQCanvasItem * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -927,12 +927,12 @@ KJS::Value TQCanvasImp::collisions_40( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasImp::drawArea_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect arg0 = extractTQRect(exec, args, 0); + TQRect arg0 = extractTQRect(exec, args, 0); - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg1; // Dummy + TQPainter * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -947,10 +947,10 @@ KJS::Value TQCanvasImp::drawArea_41( KJS::ExecState *exec, KJS::Object &obj, con KJS::Value TQCanvasImp::addView_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasView * + // Unsupported parameter TQCanvasView * return KJS::Value(); - TTQCanvasView * arg0; // Dummy + TQCanvasView * arg0; // Dummy instance->addView( arg0 ); @@ -961,10 +961,10 @@ KJS::Value TQCanvasImp::addView_42( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value TQCanvasImp::removeView_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasView * + // Unsupported parameter TQCanvasView * return KJS::Value(); - TTQCanvasView * arg0; // Dummy + TQCanvasView * arg0; // Dummy instance->removeView( arg0 ); @@ -975,12 +975,12 @@ KJS::Value TQCanvasImp::removeView_43( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasImp::drawCanvasArea_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect arg0 = extractTQRect(exec, args, 0); + TQRect arg0 = extractTQRect(exec, args, 0); - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg1; // Dummy + TQPainter * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -995,17 +995,17 @@ KJS::Value TQCanvasImp::drawCanvasArea_44( KJS::ExecState *exec, KJS::Object &ob KJS::Value TQCanvasImp::drawViewArea_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasView * + // Unsupported parameter TQCanvasView * return KJS::Value(); - TTQCanvasView * arg0; // Dummy + TQCanvasView * arg0; // Dummy - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg1; // Dummy + TQPainter * arg1; // Dummy - TTQRect arg2 = extractTQRect(exec, args, 2); + TQRect arg2 = extractTQRect(exec, args, 2); bool arg3 = extractBool(exec, args, 3); @@ -1021,10 +1021,10 @@ KJS::Value TQCanvasImp::drawViewArea_45( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCanvasImp::addItem_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->addItem( arg0 ); @@ -1035,10 +1035,10 @@ KJS::Value TQCanvasImp::addItem_46( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value TQCanvasImp::addAnimation_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->addAnimation( arg0 ); @@ -1049,10 +1049,10 @@ KJS::Value TQCanvasImp::addAnimation_47( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCanvasImp::removeItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -1063,10 +1063,10 @@ KJS::Value TQCanvasImp::removeItem_48( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasImp::removeAnimation_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasItem * + // Unsupported parameter TQCanvasItem * return KJS::Value(); - TTQCanvasItem * arg0; // Dummy + TQCanvasItem * arg0; // Dummy instance->removeAnimation( arg0 ); diff --git a/kjsembed/qtbindings/qcanvas_imp.h b/kjsembed/qtbindings/qcanvas_imp.h index fd91b3ba..8f4e6b21 100644 --- a/kjsembed/qtbindings/qcanvas_imp.h +++ b/kjsembed/qtbindings/qcanvas_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvas; +class TQCanvas; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvas; namespace KJSEmbed { /** - * Wrapper class for TTQCanvas methods. + * Wrapper class for TQCanvas methods. * * @author Richard Moore, [email protected] */ @@ -102,7 +102,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvas *toTQCanvas( KJS::Object &object ); + static TQCanvas *toTQCanvas( KJS::Object &object ); // // Constructors implemented by this class. @@ -182,7 +182,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvas *instance; // Temp + TQCanvas *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasellipse_imp.cpp b/kjsembed/qtbindings/qcanvasellipse_imp.cpp index deab7241..3f4d53a5 100644 --- a/kjsembed/qtbindings/qcanvasellipse_imp.cpp +++ b/kjsembed/qtbindings/qcanvasellipse_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasEllipseImp::TQCanvasEllipseImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasEllipseImp::TQCanvasEllipseImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasEllipseImp::~TQCanvasEllipseImp() +TQCanvasEllipseImp::~TQCanvasEllipseImp() { } @@ -43,7 +43,7 @@ void TQCanvasEllipseImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &o }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -77,7 +77,7 @@ void TQCanvasEllipseImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -90,25 +90,25 @@ void TQCanvasEllipseImp::addBindings( KJS::ExecState *exec, KJS::Object &object } /** - * Extract a TTQCanvasEllipse pointer from an Object. + * Extract a TQCanvasEllipse pointer from an Object. */ -TTQCanvasEllipse *TQCanvasEllipseImp::toTQCanvasEllipse( KJS::Object &self ) +TQCanvasEllipse *TQCanvasEllipseImp::toTQCanvasEllipse( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasEllipse *>( obj ); + return dynamic_cast<TQCanvasEllipse *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasEllipse" ) + if ( op->typeName() != "TQCanvasEllipse" ) return 0; - return op->toNative<TTQCanvasEllipse>(); + return op->toNative<TQCanvasEllipse>(); } /** @@ -134,7 +134,7 @@ KJS::Object TQCanvasEllipseImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQCanvasEllipseCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasEllipseCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -142,15 +142,15 @@ KJS::Object TQCanvasEllipseImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQCanvasEllipseImp::TQCanvasEllipse_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasEllipse object + // We should now create an instance of the TQCanvasEllipse object - TTQCanvasEllipse *ret = new TTQCanvasEllipse( + TQCanvasEllipse *ret = new TQCanvasEllipse( arg0 ); @@ -164,15 +164,15 @@ KJS::Object TQCanvasEllipseImp::TQCanvasEllipse_2( KJS::ExecState *exec, const K int arg1 = extractInt(exec, args, 1); - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg2; // Dummy + TQCanvas * arg2; // Dummy - // We should now create an instance of the TTQCanvasEllipse object + // We should now create an instance of the TQCanvasEllipse object - TTQCanvasEllipse *ret = new TTQCanvasEllipse( + TQCanvasEllipse *ret = new TQCanvasEllipse( arg0, arg1, @@ -192,15 +192,15 @@ KJS::Object TQCanvasEllipseImp::TQCanvasEllipse_3( KJS::ExecState *exec, const K int arg3 = extractInt(exec, args, 3); - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg4; // Dummy + TQCanvas * arg4; // Dummy - // We should now create an instance of the TTQCanvasEllipse object + // We should now create an instance of the TQCanvasEllipse object - TTQCanvasEllipse *ret = new TTQCanvasEllipse( + TQCanvasEllipse *ret = new TQCanvasEllipse( arg0, arg1, @@ -257,7 +257,7 @@ KJS::Value TQCanvasEllipseImp::call( KJS::ExecState *exec, KJS::Object &self, co break; } - TTQString msg = i18n( "TQCanvasEllipseImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasEllipseImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -337,10 +337,10 @@ KJS::Value TQCanvasEllipseImp::areaPoints_11( KJS::ExecState *exec, KJS::Object KJS::Value TQCanvasEllipseImp::collidesWith_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const TTQCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( diff --git a/kjsembed/qtbindings/qcanvasellipse_imp.h b/kjsembed/qtbindings/qcanvasellipse_imp.h index a0a03c8a..5699f867 100644 --- a/kjsembed/qtbindings/qcanvasellipse_imp.h +++ b/kjsembed/qtbindings/qcanvasellipse_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasEllipse; +class TQCanvasEllipse; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasEllipse; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasEllipse methods. + * Wrapper class for TQCanvasEllipse methods. * * @author Richard Moore, [email protected] */ @@ -63,7 +63,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasEllipse *toTQCanvasEllipse( KJS::Object &object ); + static TQCanvasEllipse *toTQCanvasEllipse( KJS::Object &object ); // // Constructors implemented by this class. @@ -104,7 +104,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasEllipse *instance; // Temp + TQCanvasEllipse *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasitem_imp.cpp b/kjsembed/qtbindings/qcanvasitem_imp.cpp index 9e009567..68c73667 100644 --- a/kjsembed/qtbindings/qcanvasitem_imp.cpp +++ b/kjsembed/qtbindings/qcanvasitem_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasItemImp::TQCanvasItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasItemImp::TQCanvasItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasItemImp::~TQCanvasItemImp() +TQCanvasItemImp::~TQCanvasItemImp() { } @@ -43,7 +43,7 @@ void TQCanvasItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obje }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -66,15 +66,15 @@ void TQCanvasItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obje EnumValue enums[] = { // enum RttiValues - { "Rtti_Item", TTQCanvasItem::Rtti_Item }, - { "Rtti_Sprite", TTQCanvasItem::Rtti_Sprite }, - { "Rtti_PolygonalItem", TTQCanvasItem::Rtti_PolygonalItem }, - { "Rtti_Text", TTQCanvasItem::Rtti_Text }, - { "Rtti_Polygon", TTQCanvasItem::Rtti_Polygon }, - { "Rtti_Rectangle", TTQCanvasItem::Rtti_Rectangle }, - { "Rtti_Ellipse", TTQCanvasItem::Rtti_Ellipse }, - { "Rtti_Line", TTQCanvasItem::Rtti_Line }, - { "Rtti_Spline", TTQCanvasItem::Rtti_Spline }, + { "Rtti_Item", TQCanvasItem::Rtti_Item }, + { "Rtti_Sprite", TQCanvasItem::Rtti_Sprite }, + { "Rtti_PolygonalItem", TQCanvasItem::Rtti_PolygonalItem }, + { "Rtti_Text", TQCanvasItem::Rtti_Text }, + { "Rtti_Polygon", TQCanvasItem::Rtti_Polygon }, + { "Rtti_Rectangle", TQCanvasItem::Rtti_Rectangle }, + { "Rtti_Ellipse", TQCanvasItem::Rtti_Ellipse }, + { "Rtti_Line", TQCanvasItem::Rtti_Line }, + { "Rtti_Spline", TQCanvasItem::Rtti_Spline }, { 0, 0 } }; @@ -135,7 +135,7 @@ void TQCanvasItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -148,28 +148,28 @@ void TQCanvasItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvasItem pointer from an Object. + * Extract a TQCanvasItem pointer from an Object. */ -TTQCanvasItem *TQCanvasItemImp::toTQCanvasItem( KJS::Object &self ) +TQCanvasItem *TQCanvasItemImp::toTQCanvasItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasItem *>( obj ); + return dynamic_cast<TQCanvasItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; /* - if ( !op->inherits(TTQCANVASITEM_OBJECT_NAME_STRING) ) { + if ( !op->inherits(TQCANVASITEM_OBJECT_NAME_STRING) ) { kdDebug() << "Typename of opaque canvas item is " << op->typeName() << endl; // Check superclasses return 0; } */ - return op->toNative<TTQCanvasItem>(); + return op->toNative<TQCanvasItem>(); } /** @@ -187,7 +187,7 @@ KJS::Object TQCanvasItemImp::construct( KJS::ExecState *exec, const KJS::List &a break; } - TTQString msg = i18n("TQCanvasItemCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -197,15 +197,15 @@ KJS::Object TQCanvasItemImp::TQCanvasItem_1( KJS::ExecState *exec, const KJS::Li #if 0 // This constructor has been disabled by the XSL template - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasItem object + // We should now create an instance of the TQCanvasItem object - TTQCanvasItem *ret = new TTQCanvasItem( + TQCanvasItem *ret = new TQCanvasItem( arg0 ); @@ -221,7 +221,7 @@ KJS::Value TQCanvasItemImp::call( KJS::ExecState *exec, KJS::Object &self, const /* if ( !instance ) { - TTQString msg = i18n( "TQCanvasItemImp was not valid" ); + TQString msg = i18n( "TQCanvasItemImp was not valid" ); return throwError(exec, msg,KJS::ReferenceError); } */ @@ -384,7 +384,7 @@ KJS::Value TQCanvasItemImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TTQString msg = i18n( "TQCanvasItemImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -565,10 +565,10 @@ KJS::Value TQCanvasItemImp::advance_18( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCanvasItemImp::collidesWith_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const TTQCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -591,10 +591,10 @@ KJS::Value TQCanvasItemImp::collisions_20( KJS::ExecState *exec, KJS::Object &ob KJS::Value TQCanvasItemImp::setCanvas_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Value(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy instance->setCanvas( arg0 ); @@ -605,7 +605,7 @@ KJS::Value TQCanvasItemImp::setCanvas_21( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQCanvasItemImp::draw_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPainter arg0; // TODO (hack for qcanvas) + TQPainter arg0; // TODO (hack for qcanvas) instance->draw( arg0 ); @@ -756,7 +756,7 @@ KJS::Value TQCanvasItemImp::rtti_37( KJS::ExecState *exec, KJS::Object &obj, con KJS::Value TQCanvasItemImp::boundingRect_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect ret; + TQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); @@ -765,7 +765,7 @@ KJS::Value TQCanvasItemImp::boundingRect_38( KJS::ExecState *exec, KJS::Object & KJS::Value TQCanvasItemImp::boundingRectAdvanced_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect ret; + TQRect ret; ret = instance->boundingRectAdvanced( ); return convertToValue( exec, ret ); @@ -776,7 +776,7 @@ KJS::Value TQCanvasItemImp::canvas_40( KJS::ExecState *exec, KJS::Object &obj, c { instance->canvas( ); - return KJS::Value(); // Returns 'TTQCanvas *' + return KJS::Value(); // Returns 'TQCanvas *' } diff --git a/kjsembed/qtbindings/qcanvasitem_imp.h b/kjsembed/qtbindings/qcanvasitem_imp.h index 577bb7b1..a8970762 100644 --- a/kjsembed/qtbindings/qcanvasitem_imp.h +++ b/kjsembed/qtbindings/qcanvasitem_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasItem; +class TQCanvasItem; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasItem; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasItem methods. + * Wrapper class for TQCanvasItem methods. * * @author Richard Moore, [email protected] */ @@ -90,7 +90,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasItem *toTQCanvasItem( KJS::Object &object ); + static TQCanvasItem *toTQCanvasItem( KJS::Object &object ); // // Constructors implemented by this class. @@ -158,7 +158,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasItem *instance; // Temp + TQCanvasItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasitemlist_imp.cpp b/kjsembed/qtbindings/qcanvasitemlist_imp.cpp index 31f027fd..f92f0d33 100644 --- a/kjsembed/qtbindings/qcanvasitemlist_imp.cpp +++ b/kjsembed/qtbindings/qcanvasitemlist_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasItemListImp::TQCanvasItemListImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasItemListImp::TQCanvasItemListImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasItemListImp::~TQCanvasItemListImp() +TQCanvasItemListImp::~TQCanvasItemListImp() { } @@ -43,7 +43,7 @@ void TQCanvasItemListImp::addStaticBindings( KJS::ExecState *exec, KJS::Object & }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -70,7 +70,7 @@ void TQCanvasItemListImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -83,25 +83,25 @@ void TQCanvasItemListImp::addBindings( KJS::ExecState *exec, KJS::Object &object } /** - * Extract a TTQCanvasItemList pointer from an Object. + * Extract a TQCanvasItemList pointer from an Object. */ -TTQCanvasItemList *TQCanvasItemListImp::toTQCanvasItemList( KJS::Object &self ) +TQCanvasItemList *TQCanvasItemListImp::toTQCanvasItemList( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasItemList *>( obj ); + return dynamic_cast<TQCanvasItemList *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasItemList" ) + if ( op->typeName() != "TQCanvasItemList" ) return 0; - return op->toNative<TTQCanvasItemList>(); + return op->toNative<TQCanvasItemList>(); } /** @@ -115,7 +115,7 @@ KJS::Object TQCanvasItemListImp::construct( KJS::ExecState *exec, const KJS::Lis break; } - TTQString msg = i18n("TQCanvasItemListCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasItemListCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -138,7 +138,7 @@ KJS::Value TQCanvasItemListImp::call( KJS::ExecState *exec, KJS::Object &self, c break; } - TTQString msg = i18n( "TQCanvasItemListImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasItemListImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -154,7 +154,7 @@ KJS::Value TQCanvasItemListImp::sort_1( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCanvasItemListImp::drawUnique_2( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPainter arg0; // TODO (hack for qcanvas) + TQPainter arg0; // TODO (hack for qcanvas) instance->drawUnique( arg0 ); diff --git a/kjsembed/qtbindings/qcanvasitemlist_imp.h b/kjsembed/qtbindings/qcanvasitemlist_imp.h index 1ec604e0..7ff08639 100644 --- a/kjsembed/qtbindings/qcanvasitemlist_imp.h +++ b/kjsembed/qtbindings/qcanvasitemlist_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasItemList; +class TQCanvasItemList; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasItemList; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasItemList methods. + * Wrapper class for TQCanvasItemList methods. * * @author Richard Moore, [email protected] */ @@ -53,7 +53,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasItemList *toTQCanvasItemList( KJS::Object &object ); + static TQCanvasItemList *toTQCanvasItemList( KJS::Object &object ); // // Constructors implemented by this class. @@ -84,7 +84,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasItemList *instance; // Temp + TQCanvasItemList *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasline_imp.cpp b/kjsembed/qtbindings/qcanvasline_imp.cpp index af6a7b53..907573f0 100644 --- a/kjsembed/qtbindings/qcanvasline_imp.cpp +++ b/kjsembed/qtbindings/qcanvasline_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasLineImp::TQCanvasLineImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasLineImp::TQCanvasLineImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasLineImp::~TQCanvasLineImp() +TQCanvasLineImp::~TQCanvasLineImp() { } @@ -43,7 +43,7 @@ void TQCanvasLineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obje }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -74,7 +74,7 @@ void TQCanvasLineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -87,25 +87,25 @@ void TQCanvasLineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvasLine pointer from an Object. + * Extract a TQCanvasLine pointer from an Object. */ -TTQCanvasLine *TQCanvasLineImp::toTQCanvasLine( KJS::Object &self ) +TQCanvasLine *TQCanvasLineImp::toTQCanvasLine( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasLine *>( obj ); + return dynamic_cast<TQCanvasLine *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasLine" ) + if ( op->typeName() != "TQCanvasLine" ) return 0; - return op->toNative<TTQCanvasLine>(); + return op->toNative<TQCanvasLine>(); } /** @@ -123,7 +123,7 @@ KJS::Object TQCanvasLineImp::construct( KJS::ExecState *exec, const KJS::List &a break; } - TTQString msg = i18n("TQCanvasLineCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasLineCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -131,15 +131,15 @@ KJS::Object TQCanvasLineImp::construct( KJS::ExecState *exec, const KJS::List &a KJS::Object TQCanvasLineImp::TQCanvasLine_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasLine object + // We should now create an instance of the TQCanvasLine object - TTQCanvasLine *ret = new TTQCanvasLine( + TQCanvasLine *ret = new TQCanvasLine( arg0 ); @@ -180,7 +180,7 @@ KJS::Value TQCanvasLineImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TTQString msg = i18n( "TQCanvasLineImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasLineImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -207,7 +207,7 @@ KJS::Value TQCanvasLineImp::setPoints_3( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCanvasLineImp::startPoint_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint ret; + TQPoint ret; ret = instance->startPoint( ); return convertToValue( exec, ret ); @@ -216,7 +216,7 @@ KJS::Value TQCanvasLineImp::startPoint_4( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQCanvasLineImp::endPoint_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint ret; + TQPoint ret; ret = instance->endPoint( ); return convertToValue( exec, ret ); @@ -238,7 +238,7 @@ KJS::Value TQCanvasLineImp::setPen_7( KJS::ExecState *exec, KJS::Object &obj, co // Unsupported parameter TQPen return KJS::Value(); - TTQPen arg0; // Dummy + TQPen arg0; // Dummy instance->setPen( arg0 ); diff --git a/kjsembed/qtbindings/qcanvasline_imp.h b/kjsembed/qtbindings/qcanvasline_imp.h index f876b8e1..330502c4 100644 --- a/kjsembed/qtbindings/qcanvasline_imp.h +++ b/kjsembed/qtbindings/qcanvasline_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasLine; +class TQCanvasLine; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasLine; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasLine methods. + * Wrapper class for TQCanvasLine methods. * * @author Richard Moore, [email protected] */ @@ -58,7 +58,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasLine *toTQCanvasLine( KJS::Object &object ); + static TQCanvasLine *toTQCanvasLine( KJS::Object &object ); // // Constructors implemented by this class. @@ -94,7 +94,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasLine *instance; // Temp + TQCanvasLine *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspixmap_imp.cpp b/kjsembed/qtbindings/qcanvaspixmap_imp.cpp index bc11e8ce..9fcf2718 100644 --- a/kjsembed/qtbindings/qcanvaspixmap_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspixmap_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasPixmapImp::TQCanvasPixmapImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasPixmapImp::TQCanvasPixmapImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasPixmapImp::~TQCanvasPixmapImp() +TQCanvasPixmapImp::~TQCanvasPixmapImp() { } @@ -43,7 +43,7 @@ void TQCanvasPixmapImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -71,7 +71,7 @@ void TQCanvasPixmapImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -84,25 +84,25 @@ void TQCanvasPixmapImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvasPixmap pointer from an Object. + * Extract a TQCanvasPixmap pointer from an Object. */ -TTQCanvasPixmap *TQCanvasPixmapImp::toTQCanvasPixmap( KJS::Object &self ) +TQCanvasPixmap *TQCanvasPixmapImp::toTQCanvasPixmap( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasPixmap *>( obj ); + return dynamic_cast<TQCanvasPixmap *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasPixmap" ) + if ( op->typeName() != "TQCanvasPixmap" ) return 0; - return op->toNative<TTQCanvasPixmap>(); + return op->toNative<TQCanvasPixmap>(); } /** @@ -128,7 +128,7 @@ KJS::Object TQCanvasPixmapImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQCanvasPixmapCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasPixmapCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -136,12 +136,12 @@ KJS::Object TQCanvasPixmapImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_1( KJS::ExecState *exec, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); - // We should now create an instance of the TTQCanvasPixmap object + // We should now create an instance of the TQCanvasPixmap object - TTQCanvasPixmap *ret = new TTQCanvasPixmap( + TQCanvasPixmap *ret = new TQCanvasPixmap( arg0 ); @@ -151,12 +151,12 @@ KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_1( KJS::ExecState *exec, const KJS KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_2( KJS::ExecState *exec, const KJS::List &args ) { - TTQImage arg0 = extractTQImage(exec, args, 0); + TQImage arg0 = extractTQImage(exec, args, 0); - // We should now create an instance of the TTQCanvasPixmap object + // We should now create an instance of the TQCanvasPixmap object - TTQCanvasPixmap *ret = new TTQCanvasPixmap( + TQCanvasPixmap *ret = new TQCanvasPixmap( arg0 ); @@ -167,14 +167,14 @@ KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_2( KJS::ExecState *exec, const KJS KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_3( KJS::ExecState *exec, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); - TTQPoint arg1 = extractTQPoint(exec, args, 1); + TQPoint arg1 = extractTQPoint(exec, args, 1); - // We should now create an instance of the TTQCanvasPixmap object + // We should now create an instance of the TQCanvasPixmap object - TTQCanvasPixmap *ret = new TTQCanvasPixmap( + TQCanvasPixmap *ret = new TQCanvasPixmap( arg0, arg1 ); @@ -205,7 +205,7 @@ KJS::Value TQCanvasPixmapImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TTQString msg = i18n( "TQCanvasPixmapImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasPixmapImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } diff --git a/kjsembed/qtbindings/qcanvaspixmap_imp.h b/kjsembed/qtbindings/qcanvaspixmap_imp.h index 958c5dda..68ec582e 100644 --- a/kjsembed/qtbindings/qcanvaspixmap_imp.h +++ b/kjsembed/qtbindings/qcanvaspixmap_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasPixmap; +class TQCanvasPixmap; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasPixmap; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasPixmap methods. + * Wrapper class for TQCanvasPixmap methods. * * @author Richard Moore, [email protected] */ @@ -57,7 +57,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasPixmap *toTQCanvasPixmap( KJS::Object &object ); + static TQCanvasPixmap *toTQCanvasPixmap( KJS::Object &object ); // // Constructors implemented by this class. @@ -92,7 +92,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasPixmap *instance; // Temp + TQCanvasPixmap *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp b/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp index 73a6f58b..8d5a8b79 100644 --- a/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasPixmapArrayImp::TQCanvasPixmapArrayImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasPixmapArrayImp::TQCanvasPixmapArrayImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasPixmapArrayImp::~TQCanvasPixmapArrayImp() +TQCanvasPixmapArrayImp::~TQCanvasPixmapArrayImp() { } @@ -43,7 +43,7 @@ void TQCanvasPixmapArrayImp::addStaticBindings( KJS::ExecState *exec, KJS::Objec }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -74,7 +74,7 @@ void TQCanvasPixmapArrayImp::addBindings( KJS::ExecState *exec, KJS::Object &obj }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -87,25 +87,25 @@ void TQCanvasPixmapArrayImp::addBindings( KJS::ExecState *exec, KJS::Object &obj } /** - * Extract a TTQCanvasPixmapArray pointer from an Object. + * Extract a TQCanvasPixmapArray pointer from an Object. */ -TTQCanvasPixmapArray *TQCanvasPixmapArrayImp::toTQCanvasPixmapArray( KJS::Object &self ) +TQCanvasPixmapArray *TQCanvasPixmapArrayImp::toTQCanvasPixmapArray( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasPixmapArray *>( obj ); + return dynamic_cast<TQCanvasPixmapArray *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasPixmapArray" ) + if ( op->typeName() != "TQCanvasPixmapArray" ) return 0; - return op->toNative<TTQCanvasPixmapArray>(); + return op->toNative<TQCanvasPixmapArray>(); } /** @@ -135,7 +135,7 @@ KJS::Object TQCanvasPixmapArrayImp::construct( KJS::ExecState *exec, const KJS:: break; } - TTQString msg = i18n("TQCanvasPixmapArrayCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasPixmapArrayCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -144,9 +144,9 @@ KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_1( KJS::ExecState *exec, { - // We should now create an instance of the TTQCanvasPixmapArray object + // We should now create an instance of the TQCanvasPixmapArray object - TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( + TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( ); return KJS::Object(); @@ -155,14 +155,14 @@ KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_1( KJS::ExecState *exec, KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_2( KJS::ExecState *exec, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); - // We should now create an instance of the TTQCanvasPixmapArray object + // We should now create an instance of the TQCanvasPixmapArray object - TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( + TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( arg0, arg1 ); @@ -173,20 +173,20 @@ KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_2( KJS::ExecState *exec, KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_3( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQPtrList< TTQPixmap > + // Unsupported parameter TQPtrList< TQPixmap > return KJS::Object(); - TTQPtrList< TTQPixmap > arg0; // Dummy + TQPtrList< TQPixmap > arg0; // Dummy - // Unsupported parameter TTQPtrList< TTQPoint > + // Unsupported parameter TQPtrList< TQPoint > return KJS::Object(); - TTQPtrList< TTQPoint > arg1; // Dummy + TQPtrList< TQPoint > arg1; // Dummy - // We should now create an instance of the TTQCanvasPixmapArray object + // We should now create an instance of the TQCanvasPixmapArray object - TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( + TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( arg0, arg1 ); @@ -197,20 +197,20 @@ KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_3( KJS::ExecState *exec, KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_4( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQValueList< TTQPixmap > + // Unsupported parameter TQValueList< TQPixmap > return KJS::Object(); - TTQValueList< TTQPixmap > arg0; // Dummy + TQValueList< TQPixmap > arg0; // Dummy // Unsupported parameter TQPointArray return KJS::Object(); - TTQPointArray arg1; // Dummy + TQPointArray arg1; // Dummy - // We should now create an instance of the TTQCanvasPixmapArray object + // We should now create an instance of the TQCanvasPixmapArray object - TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( + TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( arg0, arg1 ); @@ -252,7 +252,7 @@ KJS::Value TQCanvasPixmapArrayImp::call( KJS::ExecState *exec, KJS::Object &self break; } - TTQString msg = i18n( "TQCanvasPixmapArrayImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasPixmapArrayImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -260,7 +260,7 @@ KJS::Value TQCanvasPixmapArrayImp::call( KJS::ExecState *exec, KJS::Object &self KJS::Value TQCanvasPixmapArrayImp::readPixmaps_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -275,7 +275,7 @@ KJS::Value TQCanvasPixmapArrayImp::readPixmaps_6( KJS::ExecState *exec, KJS::Obj KJS::Value TQCanvasPixmapArrayImp::readCollisionMasks_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); bool ret; ret = instance->readCollisionMasks( @@ -300,7 +300,7 @@ KJS::Value TQCanvasPixmapArrayImp::image_10( KJS::ExecState *exec, KJS::Object & instance->image( arg0 ); - return KJS::Value(); // Returns 'TTQCanvasPixmap *' + return KJS::Value(); // Returns 'TQCanvasPixmap *' } @@ -309,10 +309,10 @@ KJS::Value TQCanvasPixmapArrayImp::setImage_11( KJS::ExecState *exec, KJS::Objec int arg0 = extractInt(exec, args, 0); - // Unsupported parameter TTQCanvasPixmap * + // Unsupported parameter TQCanvasPixmap * return KJS::Value(); - TTQCanvasPixmap * arg1; // Dummy + TQCanvasPixmap * arg1; // Dummy instance->setImage( arg0, diff --git a/kjsembed/qtbindings/qcanvaspixmaparray_imp.h b/kjsembed/qtbindings/qcanvaspixmaparray_imp.h index 32fd3d96..d58ba012 100644 --- a/kjsembed/qtbindings/qcanvaspixmaparray_imp.h +++ b/kjsembed/qtbindings/qcanvaspixmaparray_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasPixmapArray; +class TQCanvasPixmapArray; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasPixmapArray; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasPixmapArray methods. + * Wrapper class for TQCanvasPixmapArray methods. * * @author Richard Moore, [email protected] */ @@ -61,7 +61,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasPixmapArray *toTQCanvasPixmapArray( KJS::Object &object ); + static TQCanvasPixmapArray *toTQCanvasPixmapArray( KJS::Object &object ); // // Constructors implemented by this class. @@ -100,7 +100,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasPixmapArray *instance; // Temp + TQCanvasPixmapArray *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspolygon_imp.cpp b/kjsembed/qtbindings/qcanvaspolygon_imp.cpp index 37109043..9af85744 100644 --- a/kjsembed/qtbindings/qcanvaspolygon_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspolygon_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasPolygonImp::TQCanvasPolygonImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasPolygonImp::TQCanvasPolygonImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasPolygonImp::~TQCanvasPolygonImp() +TQCanvasPolygonImp::~TQCanvasPolygonImp() { } @@ -43,7 +43,7 @@ void TQCanvasPolygonImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &o }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -73,7 +73,7 @@ void TQCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -86,25 +86,25 @@ void TQCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object } /** - * Extract a TTQCanvasPolygon pointer from an Object. + * Extract a TQCanvasPolygon pointer from an Object. */ -TTQCanvasPolygon *TQCanvasPolygonImp::toTQCanvasPolygon( KJS::Object &self ) +TQCanvasPolygon *TQCanvasPolygonImp::toTQCanvasPolygon( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasPolygon *>( obj ); + return dynamic_cast<TQCanvasPolygon *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasPolygon" ) + if ( op->typeName() != "TQCanvasPolygon" ) return 0; - return op->toNative<TTQCanvasPolygon>(); + return op->toNative<TQCanvasPolygon>(); } /** @@ -122,7 +122,7 @@ KJS::Object TQCanvasPolygonImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQCanvasPolygonCons has no constructor with id '%1',").arg(id); + TQString msg = i18n("TQCanvasPolygonCons has no constructor with id '%1',").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -130,15 +130,15 @@ KJS::Object TQCanvasPolygonImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQCanvasPolygonImp::TQCanvasPolygon_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasPolygon object + // We should now create an instance of the TQCanvasPolygon object - TTQCanvasPolygon *ret = new TTQCanvasPolygon( + TQCanvasPolygon *ret = new TQCanvasPolygon( arg0 ); @@ -175,7 +175,7 @@ KJS::Value TQCanvasPolygonImp::call( KJS::ExecState *exec, KJS::Object &self, co break; } - TTQString msg = i18n( "TQCanvasPolygonImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasPolygonImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -186,7 +186,7 @@ KJS::Value TQCanvasPolygonImp::setPoints_3( KJS::ExecState *exec, KJS::Object &o // Unsupported parameter TQPointArray return KJS::Value(); - TTQPointArray arg0; // Dummy + TQPointArray arg0; // Dummy instance->setPoints( arg0 ); diff --git a/kjsembed/qtbindings/qcanvaspolygon_imp.h b/kjsembed/qtbindings/qcanvaspolygon_imp.h index aadcdf7f..6cca713c 100644 --- a/kjsembed/qtbindings/qcanvaspolygon_imp.h +++ b/kjsembed/qtbindings/qcanvaspolygon_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasPolygon; +class TQCanvasPolygon; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasPolygon; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasPolygon methods. + * Wrapper class for TQCanvasPolygon methods. * * @author Richard Moore, [email protected] */ @@ -57,7 +57,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasPolygon *toTQCanvasPolygon( KJS::Object &object ); + static TQCanvasPolygon *toTQCanvasPolygon( KJS::Object &object ); // // Constructors implemented by this class. @@ -92,7 +92,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasPolygon *instance; // Temp + TQCanvasPolygon *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp index 8dc06e3a..4f09509d 100644 --- a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasPolygonalItemImp::TQCanvasPolygonalItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasPolygonalItemImp::TQCanvasPolygonalItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasPolygonalItemImp::~TQCanvasPolygonalItemImp() +TQCanvasPolygonalItemImp::~TQCanvasPolygonalItemImp() { } @@ -43,7 +43,7 @@ void TQCanvasPolygonalItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Obj }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -77,7 +77,7 @@ void TQCanvasPolygonalItemImp::addBindings( KJS::ExecState *exec, KJS::Object &o }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -90,25 +90,25 @@ void TQCanvasPolygonalItemImp::addBindings( KJS::ExecState *exec, KJS::Object &o } /** - * Extract a TTQCanvasPolygonalItem pointer from an Object. + * Extract a TQCanvasPolygonalItem pointer from an Object. */ -TTQCanvasPolygonalItem *TQCanvasPolygonalItemImp::toTQCanvasPolygonalItem( KJS::Object &self ) +TQCanvasPolygonalItem *TQCanvasPolygonalItemImp::toTQCanvasPolygonalItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasPolygonalItem *>( obj ); + return dynamic_cast<TQCanvasPolygonalItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasPolygonalItem" ) + if ( op->typeName() != "TQCanvasPolygonalItem" ) return 0; - return op->toNative<TTQCanvasPolygonalItem>(); + return op->toNative<TQCanvasPolygonalItem>(); } /** @@ -126,7 +126,7 @@ KJS::Object TQCanvasPolygonalItemImp::construct( KJS::ExecState *exec, const KJS break; } - TTQString msg = i18n("TQCanvasPolygonalItemCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasPolygonalItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -136,15 +136,15 @@ KJS::Object TQCanvasPolygonalItemImp::TQCanvasPolygonalItem_1( KJS::ExecState *e #if 0 // This constructor has been disabled by the XSL template - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasPolygonalItem object + // We should now create an instance of the TQCanvasPolygonalItem object - TTQCanvasPolygonalItem *ret = new TTQCanvasPolygonalItem( + TQCanvasPolygonalItem *ret = new TQCanvasPolygonalItem( arg0 ); @@ -199,7 +199,7 @@ KJS::Value TQCanvasPolygonalItemImp::call( KJS::ExecState *exec, KJS::Object &se break; } - TTQString msg = i18n( "TQCanvasPolygonalItemImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasPolygonalItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -207,10 +207,10 @@ KJS::Value TQCanvasPolygonalItemImp::call( KJS::ExecState *exec, KJS::Object &se KJS::Value TQCanvasPolygonalItemImp::collidesWith_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const TTQCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -225,7 +225,7 @@ KJS::Value TQCanvasPolygonalItemImp::setPen_4( KJS::ExecState *exec, KJS::Object // Unsupported parameter TQPen return KJS::Value(); - TTQPen arg0; // Dummy + TQPen arg0; // Dummy instance->setPen( arg0 ); @@ -239,7 +239,7 @@ KJS::Value TQCanvasPolygonalItemImp::setBrush_5( KJS::ExecState *exec, KJS::Obje // Unsupported parameter TQBrush return KJS::Value(); - TTQBrush arg0; // Dummy + TQBrush arg0; // Dummy instance->setBrush( arg0 ); @@ -249,7 +249,7 @@ KJS::Value TQCanvasPolygonalItemImp::setBrush_5( KJS::ExecState *exec, KJS::Obje KJS::Value TQCanvasPolygonalItemImp::pen_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPen ret; + TQPen ret; ret = instance->pen( ); return convertToValue( exec, ret ); @@ -258,7 +258,7 @@ KJS::Value TQCanvasPolygonalItemImp::pen_6( KJS::ExecState *exec, KJS::Object &o KJS::Value TQCanvasPolygonalItemImp::brush_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQBrush ret; + TQBrush ret; ret = instance->brush( ); return convertToValue( exec, ret ); @@ -283,7 +283,7 @@ KJS::Value TQCanvasPolygonalItemImp::areaPointsAdvanced_9( KJS::ExecState *exec, KJS::Value TQCanvasPolygonalItemImp::boundingRect_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect ret; + TQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); diff --git a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h index 80ff4445..0d9e5a11 100644 --- a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h +++ b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasPolygonalItem; +class TQCanvasPolygonalItem; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasPolygonalItem; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasPolygonalItem methods. + * Wrapper class for TQCanvasPolygonalItem methods. * * @author Richard Moore, [email protected] */ @@ -61,7 +61,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasPolygonalItem *toTQCanvasPolygonalItem( KJS::Object &object ); + static TQCanvasPolygonalItem *toTQCanvasPolygonalItem( KJS::Object &object ); // // Constructors implemented by this class. @@ -100,7 +100,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasPolygonalItem *instance; // Temp + TQCanvasPolygonalItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasrectangle_imp.cpp b/kjsembed/qtbindings/qcanvasrectangle_imp.cpp index 19564e7b..55f1f14d 100644 --- a/kjsembed/qtbindings/qcanvasrectangle_imp.cpp +++ b/kjsembed/qtbindings/qcanvasrectangle_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasRectangleImp::TQCanvasRectangleImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasRectangleImp::TQCanvasRectangleImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasRectangleImp::~TQCanvasRectangleImp() +TQCanvasRectangleImp::~TQCanvasRectangleImp() { } @@ -43,7 +43,7 @@ void TQCanvasRectangleImp::addStaticBindings( KJS::ExecState *exec, KJS::Object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -76,7 +76,7 @@ void TQCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &objec }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -89,25 +89,25 @@ void TQCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &objec } /** - * Extract a TTQCanvasRectangle pointer from an Object. + * Extract a TQCanvasRectangle pointer from an Object. */ -TTQCanvasRectangle *TQCanvasRectangleImp::toTQCanvasRectangle( KJS::Object &self ) +TQCanvasRectangle *TQCanvasRectangleImp::toTQCanvasRectangle( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasRectangle *>( obj ); + return dynamic_cast<TQCanvasRectangle *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasRectangle" ) + if ( op->typeName() != "TQCanvasRectangle" ) return 0; - return op->toNative<TTQCanvasRectangle>(); + return op->toNative<TQCanvasRectangle>(); } /** @@ -133,7 +133,7 @@ KJS::Object TQCanvasRectangleImp::construct( KJS::ExecState *exec, const KJS::Li break; } - TTQString msg = i18n("TQCanvasRectangleCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasRectangleCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -141,15 +141,15 @@ KJS::Object TQCanvasRectangleImp::construct( KJS::ExecState *exec, const KJS::Li KJS::Object TQCanvasRectangleImp::TQCanvasRectangle_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasRectangle object + // We should now create an instance of the TQCanvasRectangle object - TTQCanvasRectangle *ret = new TTQCanvasRectangle( + TQCanvasRectangle *ret = new TQCanvasRectangle( arg0 ); @@ -159,17 +159,17 @@ KJS::Object TQCanvasRectangleImp::TQCanvasRectangle_1( KJS::ExecState *exec, con KJS::Object TQCanvasRectangleImp::TQCanvasRectangle_2( KJS::ExecState *exec, const KJS::List &args ) { - TTQRect arg0 = extractTQRect(exec, args, 0); + TQRect arg0 = extractTQRect(exec, args, 0); - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg1; // Dummy + TQCanvas * arg1; // Dummy - // We should now create an instance of the TTQCanvasRectangle object + // We should now create an instance of the TQCanvasRectangle object - TTQCanvasRectangle *ret = new TTQCanvasRectangle( + TQCanvasRectangle *ret = new TQCanvasRectangle( arg0, arg1 ); @@ -188,15 +188,15 @@ KJS::Object TQCanvasRectangleImp::TQCanvasRectangle_3( KJS::ExecState *exec, con int arg3 = extractInt(exec, args, 3); - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg4; // Dummy + TQCanvas * arg4; // Dummy - // We should now create an instance of the TTQCanvasRectangle object + // We should now create an instance of the TQCanvasRectangle object - TTQCanvasRectangle *ret = new TTQCanvasRectangle( + TQCanvasRectangle *ret = new TQCanvasRectangle( arg0, arg1, @@ -249,7 +249,7 @@ KJS::Value TQCanvasRectangleImp::call( KJS::ExecState *exec, KJS::Object &self, break; } - TTQString msg = i18n( "TQCanvasRectangleImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasRectangleImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -288,7 +288,7 @@ KJS::Value TQCanvasRectangleImp::setSize_7( KJS::ExecState *exec, KJS::Object &o KJS::Value TQCanvasRectangleImp::size_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQSize ret; + TQSize ret; ret = instance->size( ); return convertToValue( exec, ret ); @@ -305,7 +305,7 @@ KJS::Value TQCanvasRectangleImp::areaPoints_9( KJS::ExecState *exec, KJS::Object KJS::Value TQCanvasRectangleImp::rect_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect ret; + TQRect ret; ret = instance->rect( ); return convertToValue( exec, ret ); @@ -315,10 +315,10 @@ KJS::Value TQCanvasRectangleImp::rect_10( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQCanvasRectangleImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const TTQCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( diff --git a/kjsembed/qtbindings/qcanvasrectangle_imp.h b/kjsembed/qtbindings/qcanvasrectangle_imp.h index 3daf243a..ee39af19 100644 --- a/kjsembed/qtbindings/qcanvasrectangle_imp.h +++ b/kjsembed/qtbindings/qcanvasrectangle_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasRectangle; +class TQCanvasRectangle; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasRectangle; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasRectangle methods. + * Wrapper class for TQCanvasRectangle methods. * * @author Richard Moore, [email protected] */ @@ -62,7 +62,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasRectangle *toTQCanvasRectangle( KJS::Object &object ); + static TQCanvasRectangle *toTQCanvasRectangle( KJS::Object &object ); // // Constructors implemented by this class. @@ -102,7 +102,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasRectangle *instance; // Temp + TQCanvasRectangle *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasspline_imp.cpp b/kjsembed/qtbindings/qcanvasspline_imp.cpp index 26e4c4c7..7809002c 100644 --- a/kjsembed/qtbindings/qcanvasspline_imp.cpp +++ b/kjsembed/qtbindings/qcanvasspline_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasSplineImp::TQCanvasSplineImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasSplineImp::TQCanvasSplineImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasSplineImp::~TQCanvasSplineImp() +TQCanvasSplineImp::~TQCanvasSplineImp() { } @@ -43,7 +43,7 @@ void TQCanvasSplineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -72,7 +72,7 @@ void TQCanvasSplineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -85,25 +85,25 @@ void TQCanvasSplineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvasSpline pointer from an Object. + * Extract a TQCanvasSpline pointer from an Object. */ -TTQCanvasSpline *TQCanvasSplineImp::toTQCanvasSpline( KJS::Object &self ) +TQCanvasSpline *TQCanvasSplineImp::toTQCanvasSpline( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasSpline *>( obj ); + return dynamic_cast<TQCanvasSpline *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasSpline" ) + if ( op->typeName() != "TQCanvasSpline" ) return 0; - return op->toNative<TTQCanvasSpline>(); + return op->toNative<TQCanvasSpline>(); } /** @@ -121,7 +121,7 @@ KJS::Object TQCanvasSplineImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQCanvasSplineCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasSplineCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -129,15 +129,15 @@ KJS::Object TQCanvasSplineImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQCanvasSplineImp::TQCanvasSpline_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasSpline object + // We should now create an instance of the TQCanvasSpline object - TTQCanvasSpline *ret = new TTQCanvasSpline( + TQCanvasSpline *ret = new TQCanvasSpline( arg0 ); @@ -170,7 +170,7 @@ KJS::Value TQCanvasSplineImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TTQString msg = i18n( "TQCanvasSplineImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasSplineImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -181,7 +181,7 @@ KJS::Value TQCanvasSplineImp::setControlPoints_3( KJS::ExecState *exec, KJS::Obj // Unsupported parameter TQPointArray return KJS::Value(); - TTQPointArray arg0; // Dummy + TQPointArray arg0; // Dummy bool arg1 = extractBool(exec, args, 1); diff --git a/kjsembed/qtbindings/qcanvasspline_imp.h b/kjsembed/qtbindings/qcanvasspline_imp.h index be3a29ea..fbf9eac3 100644 --- a/kjsembed/qtbindings/qcanvasspline_imp.h +++ b/kjsembed/qtbindings/qcanvasspline_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasSpline; +class TQCanvasSpline; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasSpline; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasSpline methods. + * Wrapper class for TQCanvasSpline methods. * * @author Richard Moore, [email protected] */ @@ -56,7 +56,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasSpline *toTQCanvasSpline( KJS::Object &object ); + static TQCanvasSpline *toTQCanvasSpline( KJS::Object &object ); // // Constructors implemented by this class. @@ -90,7 +90,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasSpline *instance; // Temp + TQCanvasSpline *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvassprite_imp.cpp b/kjsembed/qtbindings/qcanvassprite_imp.cpp index d4c8dc23..98a4a428 100644 --- a/kjsembed/qtbindings/qcanvassprite_imp.cpp +++ b/kjsembed/qtbindings/qcanvassprite_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasSpriteImp::TQCanvasSpriteImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasSpriteImp::TQCanvasSpriteImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasSpriteImp::~TQCanvasSpriteImp() +TQCanvasSpriteImp::~TQCanvasSpriteImp() { } @@ -43,7 +43,7 @@ void TQCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -66,8 +66,8 @@ void TQCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob EnumValue enums[] = { // enum FrameAnimationType - { "Cycle", TTQCanvasSprite::Cycle }, - { "Oscillate", TTQCanvasSprite::Oscillate }, + { "Cycle", TQCanvasSprite::Cycle }, + { "Oscillate", TQCanvasSprite::Oscillate }, { 0, 0 } }; @@ -115,7 +115,7 @@ void TQCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -128,25 +128,25 @@ void TQCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvasSprite pointer from an Object. + * Extract a TQCanvasSprite pointer from an Object. */ -TTQCanvasSprite *TQCanvasSpriteImp::toTQCanvasSprite( KJS::Object &self ) +TQCanvasSprite *TQCanvasSpriteImp::toTQCanvasSprite( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasSprite *>( obj ); + return dynamic_cast<TQCanvasSprite *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasSprite" ) + if ( op->typeName() != "TQCanvasSprite" ) return 0; - return op->toNative<TTQCanvasSprite>(); + return op->toNative<TQCanvasSprite>(); } /** @@ -164,7 +164,7 @@ KJS::Object TQCanvasSpriteImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQCanvasSpriteCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasSpriteCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -172,20 +172,20 @@ KJS::Object TQCanvasSpriteImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQCanvasSpriteImp::TQCanvasSprite_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvasPixmapArray * + // Unsupported parameter TQCanvasPixmapArray * return KJS::Object(); - TTQCanvasPixmapArray * arg0; // Dummy + TQCanvasPixmapArray * arg0; // Dummy - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg1; // Dummy + TQCanvas * arg1; // Dummy - // We should now create an instance of the TTQCanvasSprite object + // We should now create an instance of the TQCanvasSprite object - TTQCanvasSprite *ret = new TTQCanvasSprite( + TQCanvasSprite *ret = new TQCanvasSprite( arg0, arg1 ); @@ -303,7 +303,7 @@ KJS::Value TQCanvasSpriteImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TTQString msg = i18n( "TQCanvasSpriteImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasSpriteImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -311,10 +311,10 @@ KJS::Value TQCanvasSpriteImp::call( KJS::ExecState *exec, KJS::Object &self, con KJS::Value TQCanvasSpriteImp::setSequence_2( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvasPixmapArray * + // Unsupported parameter TQCanvasPixmapArray * return KJS::Value(); - TTQCanvasPixmapArray * arg0; // Dummy + TQCanvasPixmapArray * arg0; // Dummy instance->setSequence( arg0 ); @@ -367,7 +367,7 @@ KJS::Value TQCanvasSpriteImp::setFrame_6( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQCanvasSpriteImp::setFrameAnimation_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQCanvasSprite::FrameAnimationType arg0 = TTQCanvasSprite::Cycle; // TODO (hack for TTQCanvasSprite) + TQCanvasSprite::FrameAnimationType arg0 = TQCanvasSprite::Cycle; // TODO (hack for TQCanvasSprite) int arg1 = extractInt(exec, args, 1); @@ -411,10 +411,10 @@ KJS::Value TQCanvasSpriteImp::rtti_10( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasSpriteImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const TTQCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -425,7 +425,7 @@ KJS::Value TQCanvasSpriteImp::collidesWith_11( KJS::ExecState *exec, KJS::Object KJS::Value TQCanvasSpriteImp::boundingRect_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect ret; + TQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); @@ -538,7 +538,7 @@ KJS::Value TQCanvasSpriteImp::image_23( KJS::ExecState *exec, KJS::Object &obj, { instance->image( ); - return KJS::Value(); // Returns 'TTQCanvasPixmap *' + return KJS::Value(); // Returns 'TQCanvasPixmap *' } @@ -546,7 +546,7 @@ KJS::Value TQCanvasSpriteImp::imageAdvanced_24( KJS::ExecState *exec, KJS::Objec { instance->imageAdvanced( ); - return KJS::Value(); // Returns 'TTQCanvasPixmap *' + return KJS::Value(); // Returns 'TQCanvasPixmap *' } @@ -557,7 +557,7 @@ KJS::Value TQCanvasSpriteImp::image_25( KJS::ExecState *exec, KJS::Object &obj, instance->image( arg0 ); - return KJS::Value(); // Returns 'TTQCanvasPixmap *' + return KJS::Value(); // Returns 'TQCanvasPixmap *' } @@ -575,7 +575,7 @@ KJS::Value TQCanvasSpriteImp::advance_26( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQCanvasSpriteImp::draw_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPainter arg0; // TODO (hack for qcanvas) + TQPainter arg0; // TODO (hack for qcanvas) instance->draw( arg0 ); diff --git a/kjsembed/qtbindings/qcanvassprite_imp.h b/kjsembed/qtbindings/qcanvassprite_imp.h index 969cd9cf..15eef7b6 100644 --- a/kjsembed/qtbindings/qcanvassprite_imp.h +++ b/kjsembed/qtbindings/qcanvassprite_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasSprite; +class TQCanvasSprite; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasSprite; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasSprite methods. + * Wrapper class for TQCanvasSprite methods. * * @author Richard Moore, [email protected] */ @@ -77,7 +77,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasSprite *toTQCanvasSprite( KJS::Object &object ); + static TQCanvasSprite *toTQCanvasSprite( KJS::Object &object ); // // Constructors implemented by this class. @@ -132,7 +132,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasSprite *instance; // Temp + TQCanvasSprite *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvastext_imp.cpp b/kjsembed/qtbindings/qcanvastext_imp.cpp index bb1c00ce..d0528647 100644 --- a/kjsembed/qtbindings/qcanvastext_imp.cpp +++ b/kjsembed/qtbindings/qcanvastext_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasTextImp::TQCanvasTextImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasTextImp::TQCanvasTextImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasTextImp::~TQCanvasTextImp() +TQCanvasTextImp::~TQCanvasTextImp() { } @@ -43,7 +43,7 @@ void TQCanvasTextImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obje }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -80,7 +80,7 @@ void TQCanvasTextImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -93,25 +93,25 @@ void TQCanvasTextImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvasText pointer from an Object. + * Extract a TQCanvasText pointer from an Object. */ -TTQCanvasText *TQCanvasTextImp::toTQCanvasText( KJS::Object &self ) +TQCanvasText *TQCanvasTextImp::toTQCanvasText( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasText *>( obj ); + return dynamic_cast<TQCanvasText *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasText" ) + if ( op->typeName() != "TQCanvasText" ) return 0; - return op->toNative<TTQCanvasText>(); + return op->toNative<TQCanvasText>(); } /** @@ -137,7 +137,7 @@ KJS::Object TQCanvasTextImp::construct( KJS::ExecState *exec, const KJS::List &a break; } - TTQString msg = i18n("TQCanvasTextCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasTextCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -145,15 +145,15 @@ KJS::Object TQCanvasTextImp::construct( KJS::ExecState *exec, const KJS::List &a KJS::Object TQCanvasTextImp::TQCanvasText_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy - // We should now create an instance of the TTQCanvasText object + // We should now create an instance of the TQCanvasText object - TTQCanvasText *ret = new TTQCanvasText( + TQCanvasText *ret = new TQCanvasText( arg0 ); @@ -163,17 +163,17 @@ KJS::Object TQCanvasTextImp::TQCanvasText_1( KJS::ExecState *exec, const KJS::Li KJS::Object TQCanvasTextImp::TQCanvasText_2( KJS::ExecState *exec, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg1; // Dummy + TQCanvas * arg1; // Dummy - // We should now create an instance of the TTQCanvasText object + // We should now create an instance of the TQCanvasText object - TTQCanvasText *ret = new TTQCanvasText( + TQCanvasText *ret = new TQCanvasText( arg0, arg1 ); @@ -184,22 +184,22 @@ KJS::Object TQCanvasTextImp::TQCanvasText_2( KJS::ExecState *exec, const KJS::Li KJS::Object TQCanvasTextImp::TQCanvasText_3( KJS::ExecState *exec, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); // Unsupported parameter TQFont return KJS::Object(); - TTQFont arg1; // Dummy + TQFont arg1; // Dummy - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Object(); - TTQCanvas * arg2; // Dummy + TQCanvas * arg2; // Dummy - // We should now create an instance of the TTQCanvasText object + // We should now create an instance of the TQCanvasText object - TTQCanvasText *ret = new TTQCanvasText( + TQCanvasText *ret = new TQCanvasText( arg0, arg1, @@ -266,7 +266,7 @@ KJS::Value TQCanvasTextImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TTQString msg = i18n( "TQCanvasTextImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasTextImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -274,7 +274,7 @@ KJS::Value TQCanvasTextImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Value TQCanvasTextImp::setText_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); instance->setText( arg0 ); @@ -285,7 +285,7 @@ KJS::Value TQCanvasTextImp::setText_5( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasTextImp::setFont_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQFont arg0 = extractTQFont(exec, args, 0); + TQFont arg0 = extractTQFont(exec, args, 0); instance->setFont( arg0 ); @@ -296,7 +296,7 @@ KJS::Value TQCanvasTextImp::setFont_6( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQCanvasTextImp::setColor_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQColor arg0 = extractTQColor(exec, args, 0); + TQColor arg0 = extractTQColor(exec, args, 0); instance->setColor( arg0 ); @@ -307,7 +307,7 @@ KJS::Value TQCanvasTextImp::setColor_7( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCanvasTextImp::text_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString ret; + TQString ret; ret = instance->text( ); return KJS::String( ret ); @@ -365,7 +365,7 @@ KJS::Value TQCanvasTextImp::setTextFlags_13( KJS::ExecState *exec, KJS::Object & KJS::Value TQCanvasTextImp::boundingRect_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQRect ret; + TQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); @@ -375,10 +375,10 @@ KJS::Value TQCanvasTextImp::boundingRect_14( KJS::ExecState *exec, KJS::Object & KJS::Value TQCanvasTextImp::collidesWith_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQCanvasItem * + // Unsupported parameter const TQCanvasItem * return KJS::Value(); - const TTQCanvasItem * arg0; // Dummy + const TQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( diff --git a/kjsembed/qtbindings/qcanvastext_imp.h b/kjsembed/qtbindings/qcanvastext_imp.h index e4e40590..2dcf157c 100644 --- a/kjsembed/qtbindings/qcanvastext_imp.h +++ b/kjsembed/qtbindings/qcanvastext_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasText; +class TQCanvasText; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasText; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasText methods. + * Wrapper class for TQCanvasText methods. * * @author Richard Moore, [email protected] */ @@ -66,7 +66,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasText *toTQCanvasText( KJS::Object &object ); + static TQCanvasText *toTQCanvasText( KJS::Object &object ); // // Constructors implemented by this class. @@ -110,7 +110,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasText *instance; // Temp + TQCanvasText *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasview_imp.cpp b/kjsembed/qtbindings/qcanvasview_imp.cpp index bfa3229b..f32faef7 100644 --- a/kjsembed/qtbindings/qcanvasview_imp.cpp +++ b/kjsembed/qtbindings/qcanvasview_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQCanvasViewImp::TQCanvasViewImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCanvasViewImp::TQCanvasViewImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCanvasViewImp::~TQCanvasViewImp() +TQCanvasViewImp::~TQCanvasViewImp() { } @@ -43,7 +43,7 @@ void TQCanvasViewImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obje }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -73,7 +73,7 @@ void TQCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -86,25 +86,25 @@ void TQCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQCanvasView pointer from an Object. + * Extract a TQCanvasView pointer from an Object. */ -TTQCanvasView *TQCanvasViewImp::toTQCanvasView( KJS::Object &self ) +TQCanvasView *TQCanvasViewImp::toTQCanvasView( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCanvasView *>( obj ); + return dynamic_cast<TQCanvasView *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQCanvasView" ) + if ( op->typeName() != "TQCanvasView" ) return 0; - return op->toNative<TTQCanvasView>(); + return op->toNative<TQCanvasView>(); } /** @@ -126,7 +126,7 @@ KJS::Object TQCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &a break; } - TTQString msg = i18n("TQCanvasViewCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCanvasViewCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -134,50 +134,50 @@ KJS::Object TQCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &a KJS::Object TQCanvasViewImp::TQCanvasView_1( KJS::ExecState *exec, const KJS::List &args ) { - TTQWidget *arg0 = extractTQWidget(exec, args, 0); + TQWidget *arg0 = extractTQWidget(exec, args, 0); const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - TQt::WFlags arg2 = 0; // TODO (hack for TTQCanvasView) + TQt::WFlags arg2 = 0; // TODO (hack for TQCanvasView) - // We should now create an instance of the TTQCanvasView object + // We should now create an instance of the TQCanvasView object - TTQCanvasView *ret = new TTQCanvasView( + TQCanvasView *ret = new TQCanvasView( arg0, arg1, arg2 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvasView"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView"); return KJS::Object( prx ); } KJS::Object TQCanvasViewImp::TQCanvasView_2( KJS::ExecState *exec, const KJS::List &args ) { - TTQCanvas * arg0 = 0L;; + TQCanvas * arg0 = 0L;; KJS::Object obj = args[0].toObject(exec); JSObjectProxy *proxy = JSProxy::toObjectProxy( obj.imp() ); - if ( proxy ) arg0 = dynamic_cast<TTQCanvas *>( proxy->widget() ); + if ( proxy ) arg0 = dynamic_cast<TQCanvas *>( proxy->widget() ); - TTQWidget * arg1 = extractTQWidget(exec, args, 1); + TQWidget * arg1 = extractTQWidget(exec, args, 1); const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; - TQt::WFlags arg3 = 0; // TODO (hack for TTQCanvasView) + TQt::WFlags arg3 = 0; // TODO (hack for TQCanvasView) - // We should now create an instance of the TTQCanvasView object + // We should now create an instance of the TQCanvasView object - TTQCanvasView *ret = new TTQCanvasView( + TQCanvasView *ret = new TQCanvasView( arg0, arg1, arg2, arg3 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvasView"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView"); return KJS::Object( prx ); } @@ -211,7 +211,7 @@ KJS::Value TQCanvasViewImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TTQString msg = i18n( "TQCanvasViewImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCanvasViewImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -220,17 +220,17 @@ KJS::Value TQCanvasViewImp::canvas_4( KJS::ExecState *exec, KJS::Object &obj, co { instance->canvas( ); - return KJS::Value(); // Returns 'TTQCanvas *' + return KJS::Value(); // Returns 'TQCanvas *' } KJS::Value TQCanvasViewImp::setCanvas_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCanvas * + // Unsupported parameter TQCanvas * return KJS::Value(); - TTQCanvas * arg0; // Dummy + TQCanvas * arg0; // Dummy instance->setCanvas( arg0 ); @@ -242,7 +242,7 @@ KJS::Value TQCanvasViewImp::worldMatrix_6( KJS::ExecState *exec, KJS::Object &ob { instance->worldMatrix( ); - return KJS::Value(); // Returns 'const TTQWMatrix &' + return KJS::Value(); // Returns 'const TQWMatrix &' } @@ -250,14 +250,14 @@ KJS::Value TQCanvasViewImp::inverseWorldMatrix_7( KJS::ExecState *exec, KJS::Obj { instance->inverseWorldMatrix( ); - return KJS::Value(); // Returns 'const TTQWMatrix &' + return KJS::Value(); // Returns 'const TQWMatrix &' } KJS::Value TQCanvasViewImp::setWorldMatrix_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQWMatrix arg0; // TODO (hack for qcanvasview) + TQWMatrix arg0; // TODO (hack for qcanvasview) bool ret; ret = instance->setWorldMatrix( diff --git a/kjsembed/qtbindings/qcanvasview_imp.h b/kjsembed/qtbindings/qcanvasview_imp.h index 01a8b1e6..2625365e 100644 --- a/kjsembed/qtbindings/qcanvasview_imp.h +++ b/kjsembed/qtbindings/qcanvasview_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQCanvasView; +class TQCanvasView; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQCanvasView; namespace KJSEmbed { /** - * Wrapper class for TTQCanvasView methods. + * Wrapper class for TQCanvasView methods. * * @author Richard Moore, [email protected] */ @@ -58,7 +58,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCanvasView *toTQCanvasView( KJS::Object &object ); + static TQCanvasView *toTQCanvasView( KJS::Object &object ); // // Constructors implemented by this class. @@ -94,7 +94,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCanvasView *instance; // Temp + TQCanvasView *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qchecklistitem_imp.cpp b/kjsembed/qtbindings/qchecklistitem_imp.cpp index 7fe6d673..9aa28e41 100644 --- a/kjsembed/qtbindings/qchecklistitem_imp.cpp +++ b/kjsembed/qtbindings/qchecklistitem_imp.cpp @@ -28,21 +28,21 @@ namespace Bindings { // FALL THRU } else { JSOpaqueProxy * arg0 = JSProxy::toOpaqueProxy( args[ 0 ].imp() ); - TTQString arg1 = ( args.size() >= 2 ) ? args[ 1 ].toString( exec ).qstring() : TTQString::null; + TQString arg1 = ( args.size() >= 2 ) ? args[ 1 ].toString( exec ).qstring() : TQString::null; JSOpaqueProxy *prx = 0; if ( arg0 ) { - if ( arg0->typeName() == "TTQListViewItem" ) { - TTQListViewItem * parent = arg0->toNative<TTQListViewItem>(); - prx = new JSOpaqueProxy( new TTQCheckListItem( parent, arg1 ), "TTQCheckListItem" ); + if ( arg0->typeName() == "TQListViewItem" ) { + TQListViewItem * parent = arg0->toNative<TQListViewItem>(); + prx = new JSOpaqueProxy( new TQCheckListItem( parent, arg1 ), "TQCheckListItem" ); } else { return KJS::Object(); } } else { JSObjectProxy *arg0 = JSProxy::toObjectProxy( args[ 0 ].imp() ); if ( arg0 ) { - TTQListView * parent = ( TTQListView * ) ( arg0->widget() ); - prx = new JSOpaqueProxy( new TTQCheckListItem( parent, arg1 ), "TTQCheckListItem" ); + TQListView * parent = ( TQListView * ) ( arg0->widget() ); + prx = new JSOpaqueProxy( new TQCheckListItem( parent, arg1 ), "TQCheckListItem" ); } else { return KJS::Object(); } @@ -61,12 +61,12 @@ namespace Bindings { } } -TTQCheckListItemImp::TQCheckListItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TQCheckListItemImp::TQCheckListItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQCheckListItemImp::~TQCheckListItemImp() +TQCheckListItemImp::~TQCheckListItemImp() { } @@ -92,7 +92,7 @@ void TQCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].id ) { if ( lastName != methods[idx].name ) { @@ -115,15 +115,15 @@ void TQCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object EnumValue enums[] = { // enum Type - { "RadioButton", TTQCheckListItem::RadioButton }, - { "CheckBox", TTQCheckListItem::CheckBox }, - { "Controller", TTQCheckListItem::Controller }, - { "RadioButtonController", TTQCheckListItem::RadioButtonController }, - { "CheckBoxController", TTQCheckListItem::CheckBoxController }, + { "RadioButton", TQCheckListItem::RadioButton }, + { "CheckBox", TQCheckListItem::CheckBox }, + { "Controller", TQCheckListItem::Controller }, + { "RadioButtonController", TQCheckListItem::RadioButtonController }, + { "CheckBoxController", TQCheckListItem::CheckBoxController }, // enum ToggleState - { "Off", TTQCheckListItem::Off }, - { "NoChange", TTQCheckListItem::NoChange }, - { "On", TTQCheckListItem::On }, + { "Off", TQCheckListItem::Off }, + { "NoChange", TQCheckListItem::NoChange }, + { "On", TQCheckListItem::On }, { 0, 0 } }; @@ -135,19 +135,19 @@ void TQCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object } -TTQCheckListItem *TQCheckListItemImp::toTQCheckListItem( KJS::Object &self ) +TQCheckListItem *TQCheckListItemImp::toTQCheckListItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQCheckListItem *>( obj ); + return dynamic_cast<TQCheckListItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - return op->toNative<TTQCheckListItem>(); + return op->toNative<TQCheckListItem>(); } @@ -191,7 +191,7 @@ KJS::Object TQCheckListItemImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQCheckListItemCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQCheckListItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -199,11 +199,11 @@ KJS::Object TQCheckListItemImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQCheckListItemImp::TQCheckListItem_1( KJS::ExecState *exec, const KJS::List &args ) { - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); - TTQWidget *arg1 = extractTQWidget(exec,args,1); + TQWidget *arg1 = extractTQWidget(exec,args,1); - TTQWidget *arg2 = extractTQWidget(exec,args,2); + TQWidget *arg2 = extractTQWidget(exec,args,2); return KJS::Object( ); } @@ -212,16 +212,16 @@ KJS::Object TQCheckListItemImp::TQCheckListItem_2( KJS::ExecState *exec, const K { // TODO - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg1 = extractTQWidget(exec,args,0); + TQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg2 = extractTQWidget(exec,args,0); + TQWidget *arg2 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg3 = extractTQWidget(exec,args,0); + TQWidget *arg3 = extractTQWidget(exec,args,0); return KJS::Object(); } @@ -230,13 +230,13 @@ KJS::Object TQCheckListItemImp::TQCheckListItem_3( KJS::ExecState *exec, const K { // TODO - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg1 = extractTQWidget(exec,args,0); + TQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg2 = extractTQWidget(exec,args,0); + TQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } @@ -245,16 +245,16 @@ KJS::Object TQCheckListItemImp::TQCheckListItem_4( KJS::ExecState *exec, const K { // TODO - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg1 = extractTQWidget(exec,args,0); + TQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg2 = extractTQWidget(exec,args,0); + TQWidget *arg2 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg3 = extractTQWidget(exec,args,0); + TQWidget *arg3 = extractTQWidget(exec,args,0); return KJS::Object(); } @@ -263,13 +263,13 @@ KJS::Object TQCheckListItemImp::TQCheckListItem_5( KJS::ExecState *exec, const K { // TODO - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg1 = extractTQWidget(exec,args,0); + TQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg2 = extractTQWidget(exec,args,0); + TQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } @@ -278,16 +278,16 @@ KJS::Object TQCheckListItemImp::TQCheckListItem_6( KJS::ExecState *exec, const K { // TODO - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg1 = extractTQWidget(exec,args,0); + TQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg2 = extractTQWidget(exec,args,0); + TQWidget *arg2 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg3 = extractTQWidget(exec,args,0); + TQWidget *arg3 = extractTQWidget(exec,args,0); return KJS::Object(); } @@ -296,13 +296,13 @@ KJS::Object TQCheckListItemImp::TQCheckListItem_7( KJS::ExecState *exec, const K { // TODO - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg1 = extractTQWidget(exec,args,0); + TQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg2 = extractTQWidget(exec,args,0); + TQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } @@ -311,13 +311,13 @@ KJS::Object TQCheckListItemImp::TQCheckListItem_8( KJS::ExecState *exec, const K { // TODO - TTQWidget *arg0 = extractTQWidget(exec,args,0); + TQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg1 = extractTQWidget(exec,args,0); + TQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TTQWidget *arg2 = extractTQWidget(exec,args,0); + TQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } @@ -388,7 +388,7 @@ KJS::Value TQCheckListItemImp::call( KJS::ExecState *exec, KJS::Object &self, co break; } - TTQString msg = i18n( "TQCheckListItemImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQCheckListItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -396,15 +396,15 @@ KJS::Value TQCheckListItemImp::call( KJS::ExecState *exec, KJS::Object &self, co KJS::Value TQCheckListItemImp::paintCell_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); #if 0 - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1; @@ -425,17 +425,17 @@ KJS::Value TQCheckListItemImp::paintCell_10( KJS::ExecState *exec, KJS::Object & KJS::Value TQCheckListItemImp::paintFocus_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); #if 0 - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy - TTQRect arg2 = extractTQRect(exec, args, 2); + TQRect arg2 = extractTQRect(exec, args, 2); instance->paintFocus( arg0, @@ -448,15 +448,15 @@ KJS::Value TQCheckListItemImp::paintFocus_11( KJS::ExecState *exec, KJS::Object KJS::Value TQCheckListItemImp::width_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQFontMetrics & + // Unsupported parameter const TQFontMetrics & return KJS::Value(); #if 0 - const TTQFontMetrics & arg0; // Dummy + const TQFontMetrics & arg0; // Dummy - // Unsupported parameter const TTQListView * + // Unsupported parameter const TQListView * return KJS::Value(); - const TTQListView * arg1; // Dummy + const TQListView * arg1; // Dummy int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1; @@ -508,7 +508,7 @@ KJS::Value TQCheckListItemImp::type_16( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQCheckListItemImp::text_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString ret; + TQString ret; ret = instance->text( ); return KJS::String( ret ); @@ -519,7 +519,7 @@ KJS::Value TQCheckListItemImp::text_18( KJS::ExecState *exec, KJS::Object &obj, int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; - TTQString ret; + TQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); diff --git a/kjsembed/qtbindings/qchecklistitem_imp.h b/kjsembed/qtbindings/qchecklistitem_imp.h index a24c316f..f9dca63f 100644 --- a/kjsembed/qtbindings/qchecklistitem_imp.h +++ b/kjsembed/qtbindings/qchecklistitem_imp.h @@ -10,7 +10,7 @@ #include <kjsembed/jsobjectproxy_imp.h> #include <kjsembed/jsbindingbase.h> -class TTQCheckListItem; +class TQCheckListItem; /** * Namespace containing the KJSEmbed library. @@ -26,7 +26,7 @@ namespace Bindings { }; } /** - * Wrapper class for TTQCheckListItem methods. + * Wrapper class for TQCheckListItem methods. * * @author Richard Moore, [email protected] */ @@ -72,7 +72,7 @@ public: static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQCheckListItem *toTQCheckListItem( KJS::Object &object ); + static TQCheckListItem *toTQCheckListItem( KJS::Object &object ); // // Constructors implemented by this class. @@ -123,7 +123,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQCheckListItem *instance; // Temp + TQCheckListItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcombobox_imp.cpp b/kjsembed/qtbindings/qcombobox_imp.cpp index 28cf620c..6ee231b8 100644 --- a/kjsembed/qtbindings/qcombobox_imp.cpp +++ b/kjsembed/qtbindings/qcombobox_imp.cpp @@ -21,12 +21,12 @@ */ namespace KJSEmbed { -TTQComboBoxImp::TQComboBoxImp( KJS::ExecState *exec, int mid, bool constructor ) +TQComboBoxImp::TQComboBoxImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQComboBoxImp::~TQComboBoxImp() +TQComboBoxImp::~TQComboBoxImp() { } @@ -41,7 +41,7 @@ void TQComboBoxImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -64,12 +64,12 @@ void TQComboBoxImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object EnumValue enums[] = { // enum Policy - { "NoInsertion", TTQComboBox::NoInsertion }, - { "AtTop", TTQComboBox::AtTop }, - { "AtCurrent", TTQComboBox::AtCurrent }, - { "AtBottom", TTQComboBox::AtBottom }, - { "AfterCurrent", TTQComboBox::AfterCurrent }, - { "BeforeCurrent", TTQComboBox::BeforeCurrent }, + { "NoInsertion", TQComboBox::NoInsertion }, + { "AtTop", TQComboBox::AtTop }, + { "AtCurrent", TQComboBox::AtCurrent }, + { "AtBottom", TQComboBox::AtBottom }, + { "AfterCurrent", TQComboBox::AfterCurrent }, + { "BeforeCurrent", TQComboBox::BeforeCurrent }, { 0, 0 } }; @@ -137,7 +137,7 @@ void TQComboBoxImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -150,25 +150,25 @@ void TQComboBoxImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQComboBox pointer from an Object. + * Extract a TQComboBox pointer from an Object. */ -TTQComboBox *TQComboBoxImp::toTQComboBox( KJS::Object &self ) +TQComboBox *TQComboBoxImp::toTQComboBox( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQComboBox *>( obj ); + return dynamic_cast<TQComboBox *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQComboBox" ) + if ( op->typeName() != "TQComboBox" ) return 0; - return op->toNative<TTQComboBox>(); + return op->toNative<TQComboBox>(); } /** @@ -190,7 +190,7 @@ KJS::Object TQComboBoxImp::construct( KJS::ExecState *exec, const KJS::List &arg break; } - TTQString msg = i18n("TQComboBoxCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQComboBoxCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -198,15 +198,15 @@ KJS::Object TQComboBoxImp::construct( KJS::ExecState *exec, const KJS::List &arg KJS::Object TQComboBoxImp::TQComboBox_1( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQWidget * + // Unsupported parameter TQWidget * return KJS::Value(); - TTQWidget * arg0; // Dummy + TQWidget * arg0; // Dummy const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - // We should now create an object of type TQComboBoxTQComboBox *ret = new TTQComboBox( + // We should now create an object of type TQComboBoxTQComboBox *ret = new TQComboBox( arg0, arg1 ); @@ -219,15 +219,15 @@ KJS::Object TQComboBoxImp::TQComboBox_2( KJS::ExecState *exec, const KJS::List & #if 0 bool arg0 = extractBool(exec, args, 0); - // Unsupported parameter TTQWidget * + // Unsupported parameter TQWidget * return KJS::Value(); - TTQWidget * arg1; // Dummy + TQWidget * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; - // We should now create an object of type TQComboBoxTQComboBox *ret = new TTQComboBox( + // We should now create an object of type TQComboBoxTQComboBox *ret = new TQComboBox( arg0, arg1, @@ -427,7 +427,7 @@ KJS::Value TQComboBoxImp::call( KJS::ExecState *exec, KJS::Object &self, const K break; } - TTQString msg = i18n( "TQComboBoxImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQComboBoxImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -444,7 +444,7 @@ KJS::Value TQComboBoxImp::count_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value TQComboBoxImp::insertStringList_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQStringList arg0 = extractTQStringList(exec, args, 0); + TQStringList arg0 = extractTQStringList(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -458,7 +458,7 @@ KJS::Value TQComboBoxImp::insertStringList_5( KJS::ExecState *exec, KJS::Object KJS::Value TQComboBoxImp::insertStrList_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQStrList arg0 = extractTQStrList(exec, args, 0); + TQStrList arg0 = extractTQStrList(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -472,10 +472,10 @@ KJS::Value TQComboBoxImp::insertStrList_6( KJS::ExecState *exec, KJS::Object &ob KJS::Value TQComboBoxImp::insertStrList_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQStrList * + // Unsupported parameter const TQStrList * return KJS::Value(); - const TTQStrList * arg0; // Dummy + const TQStrList * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -509,7 +509,7 @@ KJS::Value TQComboBoxImp::insertStrList_8( KJS::ExecState *exec, KJS::Object &ob KJS::Value TQComboBoxImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -523,7 +523,7 @@ KJS::Value TQComboBoxImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQComboBoxImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -537,9 +537,9 @@ KJS::Value TQComboBoxImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQComboBoxImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -585,7 +585,7 @@ KJS::Value TQComboBoxImp::setCurrentItem_14( KJS::ExecState *exec, KJS::Object & KJS::Value TQComboBoxImp::currentText_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString ret; + TQString ret; ret = instance->currentText( ); return KJS::String( ret ); @@ -594,7 +594,7 @@ KJS::Value TQComboBoxImp::currentText_15( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQComboBoxImp::setCurrentText_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); instance->setCurrentText( arg0 ); @@ -607,7 +607,7 @@ KJS::Value TQComboBoxImp::text_17( KJS::ExecState *exec, KJS::Object &obj, const int arg0 = extractInt(exec, args, 0); - TTQString ret; + TQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); @@ -621,14 +621,14 @@ KJS::Value TQComboBoxImp::pixmap_18( KJS::ExecState *exec, KJS::Object &obj, con instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'const TTQPixmap *' + return KJS::Value(); // Returns 'const TQPixmap *' } KJS::Value TQComboBoxImp::changeItem_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -642,7 +642,7 @@ KJS::Value TQComboBoxImp::changeItem_19( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQComboBoxImp::changeItem_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -656,9 +656,9 @@ KJS::Value TQComboBoxImp::changeItem_20( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQComboBoxImp::changeItem_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -692,7 +692,7 @@ KJS::Value TQComboBoxImp::setAutoResize_23( KJS::ExecState *exec, KJS::Object &o KJS::Value TQComboBoxImp::sizeHint_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQSize ret; + TQSize ret; ret = instance->sizeHint( ); return convertToValue( exec, ret ); @@ -702,7 +702,7 @@ KJS::Value TQComboBoxImp::sizeHint_24( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQComboBoxImp::setPalette_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPalette arg0 = extractTQPalette(exec, args, 0); + TQPalette arg0 = extractTQPalette(exec, args, 0); instance->setPalette( arg0 ); @@ -713,7 +713,7 @@ KJS::Value TQComboBoxImp::setPalette_25( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQComboBoxImp::setFont_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQFont arg0 = extractTQFont(exec, args, 0); + TQFont arg0 = extractTQFont(exec, args, 0); instance->setFont( arg0 ); @@ -775,7 +775,7 @@ KJS::Value TQComboBoxImp::maxCount_31( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQComboBoxImp::setInsertionPolicy_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQComboBox::Policy arg0 = TTQComboBox::AtBottom; // TODO (hack for combo box) + TQComboBox::Policy arg0 = TQComboBox::AtBottom; // TODO (hack for combo box) instance->setInsertionPolicy( arg0 ); @@ -794,10 +794,10 @@ KJS::Value TQComboBoxImp::insertionPolicy_33( KJS::ExecState *exec, KJS::Object KJS::Value TQComboBoxImp::setValidator_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQValidator * + // Unsupported parameter const TQValidator * return KJS::Value(); - const TTQValidator * arg0; // Dummy + const TQValidator * arg0; // Dummy instance->setValidator( arg0 ); @@ -809,17 +809,17 @@ KJS::Value TQComboBoxImp::validator_35( KJS::ExecState *exec, KJS::Object &obj, { instance->validator( ); - return KJS::Value(); // Returns 'const TTQValidator *' + return KJS::Value(); // Returns 'const TQValidator *' } KJS::Value TQComboBoxImp::setListBox_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListBox * + // Unsupported parameter TQListBox * return KJS::Value(); - TTQListBox * arg0; // Dummy + TQListBox * arg0; // Dummy instance->setListBox( arg0 ); @@ -831,17 +831,17 @@ KJS::Value TQComboBoxImp::listBox_37( KJS::ExecState *exec, KJS::Object &obj, co { instance->listBox( ); - return KJS::Value(); // Returns 'TTQListBox *' + return KJS::Value(); // Returns 'TQListBox *' } KJS::Value TQComboBoxImp::setLineEdit_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQLineEdit * + // Unsupported parameter TQLineEdit * return KJS::Value(); - TTQLineEdit * arg0; // Dummy + TQLineEdit * arg0; // Dummy instance->setLineEdit( arg0 ); @@ -853,7 +853,7 @@ KJS::Value TQComboBoxImp::lineEdit_39( KJS::ExecState *exec, KJS::Object &obj, c { instance->lineEdit( ); - return KJS::Value(); // Returns 'TTQLineEdit *' + return KJS::Value(); // Returns 'TQLineEdit *' } @@ -880,15 +880,15 @@ KJS::Value TQComboBoxImp::autoCompletion_41( KJS::ExecState *exec, KJS::Object & KJS::Value TQComboBoxImp::eventFilter_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQObject * + // Unsupported parameter TQObject * return KJS::Value(); - TTQObject * arg0; // Dummy + TQObject * arg0; // Dummy - // Unsupported parameter TTQEvent * + // Unsupported parameter TQEvent * return KJS::Value(); - TTQEvent * arg1; // Dummy + TQEvent * arg1; // Dummy bool ret; ret = instance->eventFilter( diff --git a/kjsembed/qtbindings/qcombobox_imp.h b/kjsembed/qtbindings/qcombobox_imp.h index f625e73b..56a43d5c 100644 --- a/kjsembed/qtbindings/qcombobox_imp.h +++ b/kjsembed/qtbindings/qcombobox_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQComboBox; +class TQComboBox; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQComboBox; namespace KJSEmbed { /** - * Wrapper class for TTQComboBox methods. + * Wrapper class for TQComboBox methods. * * @author Richard Moore, [email protected] */ @@ -98,7 +98,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQComboBox *toTQComboBox( KJS::Object &object ); + static TQComboBox *toTQComboBox( KJS::Object &object ); // // Constructors implemented by this class. @@ -174,7 +174,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQComboBox *instance; // Temp + TQComboBox *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qframe_imp.cpp b/kjsembed/qtbindings/qframe_imp.cpp index 806babee..767928a6 100644 --- a/kjsembed/qtbindings/qframe_imp.cpp +++ b/kjsembed/qtbindings/qframe_imp.cpp @@ -25,25 +25,25 @@ void TQFrameImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) EnumValue enums[] = { // enum Shape - { "NoFrame", TTQFrame::NoFrame }, - { "Box", TTQFrame::Box }, - { "Panel", TTQFrame::Panel }, - { "WinPanel", TTQFrame::WinPanel }, - { "HLine", TTQFrame::HLine }, - { "VLine", TTQFrame::VLine }, - { "StyledPanel", TTQFrame::StyledPanel }, - { "PopupPanel", TTQFrame::PopupPanel }, - { "MenuBarPanel", TTQFrame::MenuBarPanel }, - { "ToolBarPanel", TTQFrame::ToolBarPanel }, - { "LineEditPanel", TTQFrame::LineEditPanel }, - { "TabWidgetPanel", TTQFrame::TabWidgetPanel }, - { "GroupBoxPanel", TTQFrame::GroupBoxPanel }, - { "MShape", TTQFrame::MShape }, + { "NoFrame", TQFrame::NoFrame }, + { "Box", TQFrame::Box }, + { "Panel", TQFrame::Panel }, + { "WinPanel", TQFrame::WinPanel }, + { "HLine", TQFrame::HLine }, + { "VLine", TQFrame::VLine }, + { "StyledPanel", TQFrame::StyledPanel }, + { "PopupPanel", TQFrame::PopupPanel }, + { "MenuBarPanel", TQFrame::MenuBarPanel }, + { "ToolBarPanel", TQFrame::ToolBarPanel }, + { "LineEditPanel", TQFrame::LineEditPanel }, + { "TabWidgetPanel", TQFrame::TabWidgetPanel }, + { "GroupBoxPanel", TQFrame::GroupBoxPanel }, + { "MShape", TQFrame::MShape }, // enum Shadow - { "Plain", TTQFrame::Plain }, - { "Raised", TTQFrame::Raised }, - { "Sunken", TTQFrame::Sunken }, - { "MShadow", TTQFrame::MShadow }, + { "Plain", TQFrame::Plain }, + { "Raised", TQFrame::Raised }, + { "Sunken", TQFrame::Sunken }, + { "MShadow", TQFrame::MShadow }, { 0, 0 } }; diff --git a/kjsembed/qtbindings/qframe_imp.h b/kjsembed/qtbindings/qframe_imp.h index e6a255fe..a0ef9138 100644 --- a/kjsembed/qtbindings/qframe_imp.h +++ b/kjsembed/qtbindings/qframe_imp.h @@ -14,7 +14,7 @@ namespace KJSEmbed { /** - * Wrapper class for TTQFrame enums. + * Wrapper class for TQFrame enums. * * @author Ian Reinhart Geiser, [email protected] */ diff --git a/kjsembed/qtbindings/qlistview_imp.cpp b/kjsembed/qtbindings/qlistview_imp.cpp index 610d5fc0..2536351c 100644 --- a/kjsembed/qtbindings/qlistview_imp.cpp +++ b/kjsembed/qtbindings/qlistview_imp.cpp @@ -22,12 +22,12 @@ */ namespace KJSEmbed { -TTQListViewImp::TQListViewImp( KJS::ExecState *exec, int mid, bool constructor ) +TQListViewImp::TQListViewImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQListViewImp::~TQListViewImp() +TQListViewImp::~TQListViewImp() { } @@ -108,7 +108,7 @@ void TQListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].id ) { if ( lastName != methods[idx].name ) { @@ -131,20 +131,20 @@ void TQListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) EnumValue enums[] = { // enum WidthMode - { "Manual", TTQListView::Manual }, - { "Maximum", TTQListView::Maximum }, + { "Manual", TQListView::Manual }, + { "Maximum", TQListView::Maximum }, // enum SelectionMode - { "Single", TTQListView::Single }, - { "Multi", TTQListView::Multi }, - { "Extended", TTQListView::Extended }, - { "NoSelection", TTQListView::NoSelection }, + { "Single", TQListView::Single }, + { "Multi", TQListView::Multi }, + { "Extended", TQListView::Extended }, + { "NoSelection", TQListView::NoSelection }, // enum ResizeMode - { "NoColumn", TTQListView::NoColumn }, - { "AllColumns", TTQListView::AllColumns }, - { "LastColumn", TTQListView::LastColumn }, + { "NoColumn", TQListView::NoColumn }, + { "AllColumns", TQListView::AllColumns }, + { "LastColumn", TQListView::LastColumn }, // enum RenameAction - { "Accept", TTQListView::Accept }, - { "Reject", TTQListView::Reject }, + { "Accept", TQListView::Accept }, + { "Reject", TQListView::Reject }, { 0, 0 } }; @@ -156,23 +156,23 @@ void TQListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } -TTQListView *TQListViewImp::toTQListView( KJS::Object &self ) +TQListView *TQListViewImp::toTQListView( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQListView *>( obj ); + return dynamic_cast<TQListView *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQListView" ) + if ( op->typeName() != "TQListView" ) return 0; - return op->toNative<TTQListView>(); + return op->toNative<TQListView>(); } @@ -188,7 +188,7 @@ KJS::Object TQListViewImp::construct( KJS::ExecState *exec, const KJS::List &arg break; } - TTQString msg = i18n("TQListViewCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQListViewCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -197,13 +197,13 @@ KJS::Object TQListViewImp::TQListView_1( KJS::ExecState *exec, const KJS::List & { // TODO - TTQWidget *arg0 = 0L; + TQWidget *arg0 = 0L; // TODO - TTQWidget *arg1 = 0L; + TQWidget *arg1 = 0L; // TODO - TTQWidget *arg2 = 0L; + TQWidget *arg2 = 0L; } @@ -493,7 +493,7 @@ KJS::Value TQListViewImp::call( KJS::ExecState *exec, KJS::Object &self, const K break; } - TTQString msg = i18n( "TQListViewImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQListViewImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -521,10 +521,10 @@ KJS::Value TQListViewImp::setTreeStepSize_4( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->insertItem( arg0 ); @@ -535,10 +535,10 @@ KJS::Value TQListViewImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQListViewImp::takeItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->takeItem( arg0 ); @@ -549,10 +549,10 @@ KJS::Value TQListViewImp::takeItem_6( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value TQListViewImp::removeItem_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -564,14 +564,14 @@ KJS::Value TQListViewImp::header_8( KJS::ExecState *exec, KJS::Object &obj, cons { instance->header( ); - return KJS::Value(); // Returns 'TTQHeader *' + return KJS::Value(); // Returns 'TQHeader *' } KJS::Value TQListViewImp::addColumn_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null; + TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; @@ -589,9 +589,9 @@ KJS::Value TQListViewImp::addColumn_10( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null; + TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null; int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1; @@ -620,7 +620,7 @@ KJS::Value TQListViewImp::setColumnText_12( KJS::ExecState *exec, KJS::Object &o int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; - TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null; + TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null; instance->setColumnText( arg0, @@ -637,9 +637,9 @@ KJS::Value TQListViewImp::setColumnText_13( KJS::ExecState *exec, KJS::Object &o // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg1; // Dummy + const TQIconSet arg1; // Dummy - TTQString arg2 = (args.size() >= 3) ? args[2].toString(exec).qstring() : TTQString::null; + TQString arg2 = (args.size() >= 3) ? args[2].toString(exec).qstring() : TQString::null; instance->setColumnText( arg0, @@ -654,7 +654,7 @@ KJS::Value TQListViewImp::columnText_14( KJS::ExecState *exec, KJS::Object &obj, int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; - TTQString ret; + TQString ret; ret = instance->columnText( arg0 ); return KJS::String( ret ); @@ -761,24 +761,24 @@ KJS::Value TQListViewImp::show_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value TQListViewImp::itemAt_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQPoint & + // Unsupported parameter const TQPoint & return KJS::Value(); - const TTQPoint & arg0; // Dummy + const TQPoint & arg0; // Dummy instance->itemAt( arg0 ); - return KJS::Value(); // Returns 'TTQListViewItem *' + return KJS::Value(); // Returns 'TQListViewItem *' } KJS::Value TQListViewImp::itemRect_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQListViewItem * + // Unsupported parameter const TQListViewItem * return KJS::Value(); - const TTQListViewItem * arg0; // Dummy + const TQListViewItem * arg0; // Dummy instance->itemRect( arg0 ); @@ -789,10 +789,10 @@ KJS::Value TQListViewImp::itemRect_24( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQListViewImp::itemPos_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQListViewItem * + // Unsupported parameter const TQListViewItem * return KJS::Value(); - const TTQListViewItem * arg0; // Dummy + const TQListViewItem * arg0; // Dummy int ret; ret = instance->itemPos( @@ -804,10 +804,10 @@ KJS::Value TQListViewImp::itemPos_25( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value TQListViewImp::ensureItemVisible_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQListViewItem * + // Unsupported parameter const TQListViewItem * return KJS::Value(); - const TTQListViewItem * arg0; // Dummy + const TQListViewItem * arg0; // Dummy instance->ensureItemVisible( arg0 ); @@ -818,10 +818,10 @@ KJS::Value TQListViewImp::ensureItemVisible_26( KJS::ExecState *exec, KJS::Objec KJS::Value TQListViewImp::repaintItem_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQListViewItem * + // Unsupported parameter const TQListViewItem * return KJS::Value(); - const TTQListViewItem * arg0; // Dummy + const TQListViewItem * arg0; // Dummy instance->repaintItem( arg0 ); @@ -882,10 +882,10 @@ KJS::Value TQListViewImp::clearSelection_32( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewImp::setSelected_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -899,10 +899,10 @@ KJS::Value TQListViewImp::setSelected_33( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQListViewImp::setSelectionAnchor_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->setSelectionAnchor( arg0 ); @@ -913,10 +913,10 @@ KJS::Value TQListViewImp::setSelectionAnchor_34( KJS::ExecState *exec, KJS::Obje KJS::Value TQListViewImp::isSelected_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQListViewItem * + // Unsupported parameter const TQListViewItem * return KJS::Value(); - const TTQListViewItem * arg0; // Dummy + const TQListViewItem * arg0; // Dummy bool ret; ret = instance->isSelected( @@ -929,17 +929,17 @@ KJS::Value TQListViewImp::selectedItem_36( KJS::ExecState *exec, KJS::Object &ob { instance->selectedItem( ); - return KJS::Value(); // Returns 'TTQListViewItem *' + return KJS::Value(); // Returns 'TQListViewItem *' } KJS::Value TQListViewImp::setOpen_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -953,10 +953,10 @@ KJS::Value TQListViewImp::setOpen_37( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value TQListViewImp::isOpen_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQListViewItem * + // Unsupported parameter const TQListViewItem * return KJS::Value(); - const TTQListViewItem * arg0; // Dummy + const TQListViewItem * arg0; // Dummy bool ret; ret = instance->isOpen( @@ -968,10 +968,10 @@ KJS::Value TQListViewImp::isOpen_38( KJS::ExecState *exec, KJS::Object &obj, con KJS::Value TQListViewImp::setCurrentItem_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->setCurrentItem( arg0 ); @@ -983,7 +983,7 @@ KJS::Value TQListViewImp::currentItem_40( KJS::ExecState *exec, KJS::Object &obj { instance->currentItem( ); - return KJS::Value(); // Returns 'TTQListViewItem *' + return KJS::Value(); // Returns 'TQListViewItem *' } @@ -991,7 +991,7 @@ KJS::Value TQListViewImp::firstChild_41( KJS::ExecState *exec, KJS::Object &obj, { instance->firstChild( ); - return KJS::Value(); // Returns 'TTQListViewItem *' + return KJS::Value(); // Returns 'TQListViewItem *' } @@ -999,7 +999,7 @@ KJS::Value TQListViewImp::lastItem_42( KJS::ExecState *exec, KJS::Object &obj, c { instance->lastItem( ); - return KJS::Value(); // Returns 'TTQListViewItem *' + return KJS::Value(); // Returns 'TQListViewItem *' } @@ -1139,7 +1139,7 @@ KJS::Value TQListViewImp::sort_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value TQListViewImp::setFont_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQFont arg0; // TODO + TQFont arg0; // TODO instance->setFont( arg0 ); @@ -1150,7 +1150,7 @@ KJS::Value TQListViewImp::setFont_56( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value TQListViewImp::setPalette_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPalette arg0; // TODO + TQPalette arg0; // TODO instance->setPalette( arg0 ); @@ -1161,15 +1161,15 @@ KJS::Value TQListViewImp::setPalette_57( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQListViewImp::eventFilter_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQObject * + // Unsupported parameter TQObject * return KJS::Value(); - TTQObject * arg0; // Dummy + TQObject * arg0; // Dummy - // Unsupported parameter TTQEvent * + // Unsupported parameter TQEvent * return KJS::Value(); - TTQEvent * arg1; // Dummy + TQEvent * arg1; // Dummy bool ret; ret = instance->eventFilter( @@ -1260,7 +1260,7 @@ KJS::Value TQListViewImp::resizeMode_66( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQListViewImp::findItem_67( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null; + TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; @@ -1273,7 +1273,7 @@ KJS::Value TQListViewImp::findItem_67( KJS::ExecState *exec, KJS::Object &obj, c arg0, arg1, arg2 ); - return KJS::Value(); // Returns 'TTQListViewItem *' + return KJS::Value(); // Returns 'TQListViewItem *' } diff --git a/kjsembed/qtbindings/qlistview_imp.h b/kjsembed/qtbindings/qlistview_imp.h index f201c179..0ded4900 100644 --- a/kjsembed/qtbindings/qlistview_imp.h +++ b/kjsembed/qtbindings/qlistview_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQListView; +class TQListView; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQListView; namespace KJSEmbed { /** - * Wrapper class for TTQListView methods. + * Wrapper class for TQListView methods. * * @author Richard Moore, [email protected] */ @@ -111,7 +111,7 @@ public: static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQListView *toTQListView( KJS::Object &object ); + static TQListView *toTQListView( KJS::Object &object ); // // Constructors implemented by this class. @@ -210,7 +210,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQListView *instance; // Temp + TQListView *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qlistviewitem_imp.cpp b/kjsembed/qtbindings/qlistviewitem_imp.cpp index 69d94009..f1ed55c2 100644 --- a/kjsembed/qtbindings/qlistviewitem_imp.cpp +++ b/kjsembed/qtbindings/qlistviewitem_imp.cpp @@ -31,17 +31,17 @@ namespace Bindings { JSOpaqueProxy *prx = 0; if ( arg0 ) { - if ( arg0->typeName() == "TTQListViewItem" ) { - TTQListViewItem * parent = arg0->toNative<TTQListViewItem>(); - prx = new JSOpaqueProxy( new TTQListViewItem( parent ), "TTQListViewItem" ); + if ( arg0->typeName() == "TQListViewItem" ) { + TQListViewItem * parent = arg0->toNative<TQListViewItem>(); + prx = new JSOpaqueProxy( new TQListViewItem( parent ), "TQListViewItem" ); } else { return KJS::Object(); } } else { JSObjectProxy *arg0 = JSProxy::toObjectProxy( args[ 0 ].imp() ); if ( arg0 ) { - TTQListView * parent = ( TTQListView * ) ( arg0->widget() ); - prx = new JSOpaqueProxy( new TTQListViewItem( parent ), "TTQListViewItem" ); + TQListView * parent = ( TQListView * ) ( arg0->widget() ); + prx = new JSOpaqueProxy( new TQListViewItem( parent ), "TQListViewItem" ); } else { return KJS::Object(); } @@ -60,12 +60,12 @@ namespace Bindings { } } -TTQListViewItemImp::TQListViewItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TQListViewItemImp::TQListViewItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQListViewItemImp::~TQListViewItemImp() +TQListViewItemImp::~TQListViewItemImp() { } @@ -80,7 +80,7 @@ void TQListViewItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -159,7 +159,7 @@ void TQListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -172,21 +172,21 @@ void TQListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQListViewItem pointer from an Object. + * Extract a TQListViewItem pointer from an Object. */ -TTQListViewItem *TQListViewItemImp::toTQListViewItem( KJS::Object &self ) +TQListViewItem *TQListViewItemImp::toTQListViewItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQListViewItem *>( obj ); + return dynamic_cast<TQListViewItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - return op->toNative<TTQListViewItem>(); + return op->toNative<TQListViewItem>(); } /** @@ -232,7 +232,7 @@ KJS::Object TQListViewItemImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQListViewItemCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQListViewItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -240,13 +240,13 @@ KJS::Object TQListViewItemImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQListViewItemImp::TQListViewItem_1( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0 ); #endif @@ -257,13 +257,13 @@ return KJS::Object(); KJS::Object TQListViewItemImp::TQListViewItem_2( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0 ); #endif @@ -274,18 +274,18 @@ KJS::Object TQListViewItemImp::TQListViewItem_3( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1 ); @@ -297,18 +297,18 @@ KJS::Object TQListViewItemImp::TQListViewItem_4( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1 ); @@ -321,29 +321,29 @@ KJS::Object TQListViewItemImp::TQListViewItem_5( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -363,29 +363,29 @@ KJS::Object TQListViewItemImp::TQListViewItem_6( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -405,34 +405,34 @@ return KJS::Object(); KJS::Object TQListViewItemImp::TQListViewItem_7( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - TTQString arg9 = extractTQString(exec, args, 9); + TQString arg9 = extractTQString(exec, args, 9); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -452,34 +452,34 @@ return KJS::Object(); KJS::Object TQListViewItemImp::TQListViewItem_8( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - TTQString arg9 = extractTQString(exec, args, 9); + TQString arg9 = extractTQString(exec, args, 9); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -722,7 +722,7 @@ KJS::Value TQListViewItemImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TTQString msg = i18n( "TQListViewItemImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQListViewItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -730,10 +730,10 @@ KJS::Value TQListViewItemImp::call( KJS::ExecState *exec, KJS::Object &self, con KJS::Value TQListViewItemImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->insertItem( arg0 ); @@ -744,10 +744,10 @@ KJS::Value TQListViewItemImp::insertItem_10( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewItemImp::takeItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->takeItem( arg0 ); @@ -758,10 +758,10 @@ KJS::Value TQListViewItemImp::takeItem_11( KJS::ExecState *exec, KJS::Object &ob KJS::Value TQListViewItemImp::removeItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -798,15 +798,15 @@ KJS::Value TQListViewItemImp::totalHeight_15( KJS::ExecState *exec, KJS::Object KJS::Value TQListViewItemImp::width_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter const TTQFontMetrics & + // Unsupported parameter const TQFontMetrics & return KJS::Value(); - const TTQFontMetrics & arg0; // Dummy + const TQFontMetrics & arg0; // Dummy - // Unsupported parameter const TTQListView * + // Unsupported parameter const TQListView * return KJS::Value(); - const TTQListView * arg1; // Dummy + const TQListView * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -846,7 +846,7 @@ KJS::Value TQListViewItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj int arg0 = extractInt(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); instance->setText( arg0, @@ -860,7 +860,7 @@ KJS::Value TQListViewItemImp::text_20( KJS::ExecState *exec, KJS::Object &obj, c int arg0 = extractInt(exec, args, 0); - TTQString ret; + TQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); @@ -872,7 +872,7 @@ KJS::Value TQListViewItemImp::setPixmap_21( KJS::ExecState *exec, KJS::Object &o int arg0 = extractInt(exec, args, 0); - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); instance->setPixmap( arg0, @@ -888,7 +888,7 @@ KJS::Value TQListViewItemImp::pixmap_22( KJS::ExecState *exec, KJS::Object &obj, instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'const TTQPixmap *' + return KJS::Value(); // Returns 'const TQPixmap *' } @@ -899,7 +899,7 @@ KJS::Value TQListViewItemImp::key_23( KJS::ExecState *exec, KJS::Object &obj, co bool arg1 = extractBool(exec, args, 1); - TTQString ret; + TQString ret; ret = instance->key( arg0, arg1 ); @@ -910,10 +910,10 @@ KJS::Value TQListViewItemImp::key_23( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value TQListViewItemImp::compare_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -1002,15 +1002,15 @@ KJS::Value TQListViewItemImp::isSelected_31( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewItemImp::paintCell_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -1033,15 +1033,15 @@ return KJS::Object(); KJS::Value TQListViewItemImp::paintBranches_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -1064,17 +1064,17 @@ return KJS::Object(); KJS::Value TQListViewItemImp::paintFocus_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy - TTQRect arg2 = extractTQRect(exec, args, 2); + TQRect arg2 = extractTQRect(exec, args, 2); instance->paintFocus( arg0, @@ -1089,10 +1089,10 @@ return KJS::Object(); KJS::Value TQListViewItemImp::firstChild_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->firstChild( ); + TQListViewItem *item = instance->firstChild( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1106,10 +1106,10 @@ KJS::Value TQListViewItemImp::firstChild_35( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewItemImp::nextSibling_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->nextSibling( ); + TQListViewItem *item = instance->nextSibling( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1123,10 +1123,10 @@ KJS::Value TQListViewItemImp::nextSibling_36( KJS::ExecState *exec, KJS::Object KJS::Value TQListViewItemImp::parent_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->parent( ); + TQListViewItem *item = instance->parent( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1140,10 +1140,10 @@ KJS::Value TQListViewItemImp::parent_37( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQListViewItemImp::itemAbove_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->itemAbove( ); + TQListViewItem *item = instance->itemAbove( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1157,10 +1157,10 @@ KJS::Value TQListViewItemImp::itemAbove_38( KJS::ExecState *exec, KJS::Object &o KJS::Value TQListViewItemImp::itemBelow_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->itemBelow( ); + TQListViewItem *item = instance->itemBelow( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1184,7 +1184,7 @@ KJS::Value TQListViewItemImp::listView_41( KJS::ExecState *exec, KJS::Object &ob { instance->listView( ); - return KJS::Value(); // Returns 'TTQListView *' + return KJS::Value(); // Returns 'TQListView *' } @@ -1247,10 +1247,10 @@ KJS::Value TQListViewItemImp::sort_47( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQListViewItemImp::moveItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->moveItem( arg0 ); @@ -1301,10 +1301,10 @@ KJS::Value TQListViewItemImp::dropEnabled_52( KJS::ExecState *exec, KJS::Object KJS::Value TQListViewItemImp::acceptDrop_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQMimeSource * + // Unsupported parameter const TQMimeSource * return KJS::Value(); - const TTQMimeSource * arg0; // Dummy + const TQMimeSource * arg0; // Dummy bool ret; ret = instance->acceptDrop( diff --git a/kjsembed/qtbindings/qlistviewitem_imp.h b/kjsembed/qtbindings/qlistviewitem_imp.h index b4c7caa8..72dfdd6e 100644 --- a/kjsembed/qtbindings/qlistviewitem_imp.h +++ b/kjsembed/qtbindings/qlistviewitem_imp.h @@ -10,7 +10,7 @@ #include <kjsembed/jsobjectproxy_imp.h> #include <kjsembed/jsbindingbase.h> -class TTQListViewItem; +class TQListViewItem; /** * Namespace containing the KJSEmbed library. @@ -26,7 +26,7 @@ namespace Bindings { }; } /** - * Wrapper class for TTQListViewItem methods. + * Wrapper class for TQListViewItem methods. * * @author Richard Moore, [email protected] */ @@ -122,7 +122,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQListViewItem *toTQListViewItem( KJS::Object &object ); + static TQListViewItem *toTQListViewItem( KJS::Object &object ); // // Constructors implemented by this class. @@ -213,7 +213,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQListViewItem *instance; // Temp + TQListViewItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qmenudata_imp.cpp b/kjsembed/qtbindings/qmenudata_imp.cpp index 925e4125..22b16d3e 100644 --- a/kjsembed/qtbindings/qmenudata_imp.cpp +++ b/kjsembed/qtbindings/qmenudata_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQMenuDataImp::TQMenuDataImp( KJS::ExecState *exec, int mid, bool constructor ) +TQMenuDataImp::TQMenuDataImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQMenuDataImp::~TQMenuDataImp() +TQMenuDataImp::~TQMenuDataImp() { } @@ -43,7 +43,7 @@ void TQMenuDataImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -121,7 +121,7 @@ void TQMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -134,25 +134,25 @@ void TQMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQMenuData pointer from an Object. + * Extract a TQMenuData pointer from an Object. */ -TTQMenuData *TQMenuDataImp::toTQMenuData( KJS::Object &self ) +TQMenuData *TQMenuDataImp::toTQMenuData( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQMenuData *>( obj ); + return dynamic_cast<TQMenuData *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQMenuData" ) + if ( op->typeName() != "TQMenuData" ) return 0; - return op->toNative<TTQMenuData>(); + return op->toNative<TQMenuData>(); } /** @@ -170,7 +170,7 @@ KJS::Object TQMenuDataImp::construct( KJS::ExecState *exec, const KJS::List &arg break; } - TTQString msg = i18n("TQMenuDataCons has no constructor with id '%1'").arg(id); + TQString msg = i18n("TQMenuDataCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -179,9 +179,9 @@ KJS::Object TQMenuDataImp::TQMenuData_1( KJS::ExecState *exec, const KJS::List & { - // We should now create an instance of the TTQMenuData object + // We should now create an instance of the TQMenuData object - TTQMenuData *ret = new TTQMenuData( + TQMenuData *ret = new TQMenuData( ); return KJS::Object(); @@ -409,7 +409,7 @@ KJS::Value TQMenuDataImp::call( KJS::ExecState *exec, KJS::Object &self, const K break; } - TTQString msg = i18n( "TQMenuDataImp has no method with id '%1'" ).arg( id ); + TQString msg = i18n( "TQMenuDataImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -426,19 +426,19 @@ KJS::Value TQMenuDataImp::count_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value TQMenuDataImp::insertItem_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg3; // Dummy + const TQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -462,21 +462,21 @@ KJS::Value TQMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg2; // Dummy + const TQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg4; // Dummy + const TQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -498,19 +498,19 @@ KJS::Value TQMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg3; // Dummy + const TQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -534,21 +534,21 @@ KJS::Value TQMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg2; // Dummy + const TQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg4; // Dummy + const TQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -570,7 +570,7 @@ KJS::Value TQMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -591,9 +591,9 @@ KJS::Value TQMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -612,12 +612,12 @@ KJS::Value TQMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg1; // Dummy + TQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -639,14 +639,14 @@ KJS::Value TQMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg2; // Dummy + TQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -666,7 +666,7 @@ KJS::Value TQMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -687,9 +687,9 @@ KJS::Value TQMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -708,12 +708,12 @@ KJS::Value TQMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg1; // Dummy + TQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -735,14 +735,14 @@ KJS::Value TQMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg2; // Dummy + TQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -762,10 +762,10 @@ KJS::Value TQMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQWidget * + // Unsupported parameter TQWidget * return KJS::Value(); - TTQWidget * arg0; // Dummy + TQWidget * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -786,12 +786,12 @@ KJS::Value TQMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - // Unsupported parameter TTQCustomMenuItem * + // Unsupported parameter TQCustomMenuItem * return KJS::Value(); - TTQCustomMenuItem * arg1; // Dummy + TQCustomMenuItem * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -810,10 +810,10 @@ KJS::Value TQMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::insertItem_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQCustomMenuItem * + // Unsupported parameter TQCustomMenuItem * return KJS::Value(); - TTQCustomMenuItem * arg0; // Dummy + TQCustomMenuItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -887,7 +887,7 @@ KJS::Value TQMenuDataImp::setAccel_24( KJS::ExecState *exec, KJS::Object &obj, c // Unsupported parameter const TQKeySequence return KJS::Value(); - const TTQKeySequence arg0; // Dummy + const TQKeySequence arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -905,7 +905,7 @@ KJS::Value TQMenuDataImp::iconSet_25( KJS::ExecState *exec, KJS::Object &obj, co instance->iconSet( arg0 ); - return KJS::Value(); // Returns 'TTQIconSet *' + return KJS::Value(); // Returns 'TQIconSet *' } @@ -914,7 +914,7 @@ KJS::Value TQMenuDataImp::text_26( KJS::ExecState *exec, KJS::Object &obj, const int arg0 = extractInt(exec, args, 0); - TTQString ret; + TQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); @@ -928,7 +928,7 @@ KJS::Value TQMenuDataImp::pixmap_27( KJS::ExecState *exec, KJS::Object &obj, con instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'TTQPixmap *' + return KJS::Value(); // Returns 'TQPixmap *' } @@ -937,7 +937,7 @@ KJS::Value TQMenuDataImp::setWhatsThis_28( KJS::ExecState *exec, KJS::Object &ob int arg0 = extractInt(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); instance->setWhatsThis( arg0, @@ -951,7 +951,7 @@ KJS::Value TQMenuDataImp::whatsThis_29( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - TTQString ret; + TQString ret; ret = instance->whatsThis( arg0 ); return KJS::String( ret ); @@ -963,7 +963,7 @@ KJS::Value TQMenuDataImp::changeItem_30( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); instance->changeItem( arg0, @@ -977,7 +977,7 @@ KJS::Value TQMenuDataImp::changeItem_31( KJS::ExecState *exec, KJS::Object &obj, int arg0 = extractInt(exec, args, 0); - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); instance->changeItem( arg0, @@ -994,9 +994,9 @@ KJS::Value TQMenuDataImp::changeItem_32( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg1; // Dummy + const TQIconSet arg1; // Dummy - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); instance->changeItem( arg0, @@ -1014,9 +1014,9 @@ KJS::Value TQMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg1; // Dummy + const TQIconSet arg1; // Dummy - TTQPixmap arg2 = extractTQPixmap(exec, args, 2); + TQPixmap arg2 = extractTQPixmap(exec, args, 2); instance->changeItem( arg0, @@ -1029,7 +1029,7 @@ KJS::Value TQMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1043,7 +1043,7 @@ KJS::Value TQMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuDataImp::changeItem_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPixmap arg0 = extractTQPixmap(exec, args, 0); + TQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1060,9 +1060,9 @@ KJS::Value TQMenuDataImp::changeItem_36( KJS::ExecState *exec, KJS::Object &obj, // Unsupported parameter const TQIconSet return KJS::Value(); - const TTQIconSet arg0; // Dummy + const TQIconSet arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -1218,10 +1218,10 @@ KJS::Value TQMenuDataImp::connectItem_48( KJS::ExecState *exec, KJS::Object &obj int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1239,10 +1239,10 @@ KJS::Value TQMenuDataImp::disconnectItem_49( KJS::ExecState *exec, KJS::Object & int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const TTQObject * + // Unsupported parameter const TQObject * return KJS::Value(); - const TTQObject * arg1; // Dummy + const TQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1289,7 +1289,7 @@ KJS::Value TQMenuDataImp::findItem_52( KJS::ExecState *exec, KJS::Object &obj, c instance->findItem( arg0 ); - return KJS::Value(); // Returns 'TTQMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } @@ -1298,25 +1298,25 @@ KJS::Value TQMenuDataImp::findItem_53( KJS::ExecState *exec, KJS::Object &obj, c int arg0 = extractInt(exec, args, 0); - // Unsupported parameter TTQMenuData ** + // Unsupported parameter TQMenuData ** return KJS::Value(); - TTQMenuData ** arg1; // Dummy + TQMenuData ** arg1; // Dummy instance->findItem( arg0, arg1 ); - return KJS::Value(); // Returns 'TTQMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } KJS::Value TQMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQPopupMenu * + // Unsupported parameter TQPopupMenu * return KJS::Value(); - TTQPopupMenu * arg0; // Dummy + TQPopupMenu * arg0; // Dummy // Unsupported parameter int * return KJS::Value(); @@ -1326,7 +1326,7 @@ KJS::Value TQMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, instance->findPopup( arg0, arg1 ); - return KJS::Value(); // Returns 'TTQMenuItem *' + return KJS::Value(); // Returns 'TQMenuItem *' } diff --git a/kjsembed/qtbindings/qmenudata_imp.h b/kjsembed/qtbindings/qmenudata_imp.h index 6409dca6..dfab42e8 100644 --- a/kjsembed/qtbindings/qmenudata_imp.h +++ b/kjsembed/qtbindings/qmenudata_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQMenuData; +class TQMenuData; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQMenuData; namespace KJSEmbed { /** - * Wrapper class for TTQMenuData methods. + * Wrapper class for TQMenuData methods. * * @author Richard Moore, [email protected] */ @@ -105,7 +105,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQMenuData *toTQMenuData( KJS::Object &object ); + static TQMenuData *toTQMenuData( KJS::Object &object ); // // Constructors implemented by this class. @@ -188,7 +188,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQMenuData *instance; // Temp + TQMenuData *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qmenuitem_imp.cpp b/kjsembed/qtbindings/qmenuitem_imp.cpp index 75118e4e..f65fa910 100644 --- a/kjsembed/qtbindings/qmenuitem_imp.cpp +++ b/kjsembed/qtbindings/qmenuitem_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQMenuItemImp::TQMenuItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TQMenuItemImp::TQMenuItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQMenuItemImp::~TQMenuItemImp() +TQMenuItemImp::~TQMenuItemImp() { } @@ -43,7 +43,7 @@ void TQMenuItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -91,24 +91,24 @@ void TQMenuItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQMenuItem pointer from an Object. + * Extract a TQMenuItem pointer from an Object. */ -TTQMenuItem *TQMenuItemImp::toTQMenuItem( KJS::Object &self ) +TQMenuItem *TQMenuItemImp::toTQMenuItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQMenuItem *>( obj ); + return dynamic_cast<TQMenuItem *>( obj ); } - if( !JSProxy::checkType(self, JSProxy::ObjectProxy, "TTQMenuItem") ) { - TTQObject *obj = JSProxy::toObjectProxy( self.imp() )->object(); - return dynamic_cast<TTQMenuItem *>( obj ); + if( !JSProxy::checkType(self, JSProxy::ObjectProxy, "TQMenuItem") ) { + TQObject *obj = JSProxy::toObjectProxy( self.imp() )->object(); + return dynamic_cast<TQMenuItem *>( obj ); } - if( !JSProxy::checkType(self, JSProxy::OpaqueProxy, "TTQMenuItem") ) { - return JSProxy::toOpaqueProxy( self.imp() )->toNative<TTQMenuItem>(); + if( !JSProxy::checkType(self, JSProxy::OpaqueProxy, "TQMenuItem") ) { + return JSProxy::toOpaqueProxy( self.imp() )->toNative<TQMenuItem>(); } return 0; @@ -129,7 +129,7 @@ KJS::Object TQMenuItemImp::construct( KJS::ExecState *exec, const KJS::List &arg break; } - TTQString msg = i18n("TQMenuItemCons has no constructor with id '%1'").arg(id); + TQString msg = i18n("TQMenuItemCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -138,9 +138,9 @@ KJS::Object TQMenuItemImp::TQMenuItem_1( KJS::ExecState *exec, const KJS::List & { - // We should now create an instance of the TTQMenuItem object + // We should now create an instance of the TQMenuItem object - TTQMenuItem *ret = new TTQMenuItem( + TQMenuItem *ret = new TQMenuItem( ); return KJS::Object(); @@ -236,7 +236,7 @@ KJS::Value TQMenuItemImp::call( KJS::ExecState *exec, KJS::Object &self, const K break; } - TTQString msg = i18n( "TQMenuItemImp has no method with id '%1'" ).arg( id ); + TQString msg = i18n( "TQMenuItemImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -254,14 +254,14 @@ KJS::Value TQMenuItemImp::iconSet_4( KJS::ExecState *exec, KJS::Object &obj, con { instance->iconSet( ); - return KJS::Value(); // Returns 'TTQIconSet *' + return KJS::Value(); // Returns 'TQIconSet *' } KJS::Value TQMenuItemImp::text_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString ret; + TQString ret; ret = instance->text( ); return KJS::String( ret ); @@ -270,7 +270,7 @@ KJS::Value TQMenuItemImp::text_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::Value TQMenuItemImp::whatsThis_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString ret; + TQString ret; ret = instance->whatsThis( ); return KJS::String( ret ); @@ -287,7 +287,7 @@ KJS::Value TQMenuItemImp::popup_8( KJS::ExecState *exec, KJS::Object &obj, const { instance->popup( ); - return KJS::Value(); // Returns 'TTQPopupMenu *' + return KJS::Value(); // Returns 'TQPopupMenu *' } @@ -295,7 +295,7 @@ KJS::Value TQMenuItemImp::widget_9( KJS::ExecState *exec, KJS::Object &obj, cons { instance->widget( ); - return KJS::Value(); // Returns 'TTQWidget *' + return KJS::Value(); // Returns 'TQWidget *' } @@ -303,7 +303,7 @@ KJS::Value TQMenuItemImp::custom_10( KJS::ExecState *exec, KJS::Object &obj, con { instance->custom( ); - return KJS::Value(); // Returns 'TTQCustomMenuItem *' + return KJS::Value(); // Returns 'TQCustomMenuItem *' } @@ -318,7 +318,7 @@ KJS::Value TQMenuItemImp::signal_12( KJS::ExecState *exec, KJS::Object &obj, con { instance->signal( ); - return KJS::Value(); // Returns 'TTQSignal *' + return KJS::Value(); // Returns 'TQSignal *' } @@ -379,7 +379,7 @@ KJS::Value TQMenuItemImp::isEnabledAndVisible_18( KJS::ExecState *exec, KJS::Obj KJS::Value TQMenuItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); instance->setText( arg0 ); @@ -412,7 +412,7 @@ KJS::Value TQMenuItemImp::setVisible_21( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQMenuItemImp::setWhatsThis_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQString arg0 = extractTQString(exec, args, 0); + TQString arg0 = extractTQString(exec, args, 0); instance->setWhatsThis( arg0 ); diff --git a/kjsembed/qtbindings/qmenuitem_imp.h b/kjsembed/qtbindings/qmenuitem_imp.h index ad1e480b..9739d078 100644 --- a/kjsembed/qtbindings/qmenuitem_imp.h +++ b/kjsembed/qtbindings/qmenuitem_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQMenuItem; +class TQMenuItem; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQMenuItem; namespace KJSEmbed { /** - * Wrapper class for TTQMenuItem methods. + * Wrapper class for TQMenuItem methods. * * @author Richard Moore, [email protected] */ @@ -72,7 +72,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQMenuItem *toTQMenuItem( KJS::Object &object ); + static TQMenuItem *toTQMenuItem( KJS::Object &object ); // // Constructors implemented by this class. @@ -122,7 +122,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQMenuItem *instance; // Temp + TQMenuItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qpopupmenu_imp.cpp b/kjsembed/qtbindings/qpopupmenu_imp.cpp index f11c9a3b..1c94776a 100644 --- a/kjsembed/qtbindings/qpopupmenu_imp.cpp +++ b/kjsembed/qtbindings/qpopupmenu_imp.cpp @@ -23,12 +23,12 @@ */ namespace KJSEmbed { -TTQPopupMenuImp::TQPopupMenuImp( KJS::ExecState *exec, int mid, bool constructor ) +TQPopupMenuImp::TQPopupMenuImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQPopupMenuImp::~TQPopupMenuImp() +TQPopupMenuImp::~TQPopupMenuImp() { } @@ -43,7 +43,7 @@ void TQPopupMenuImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -85,7 +85,7 @@ void TQPopupMenuImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -98,25 +98,25 @@ void TQPopupMenuImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQPopupMenu pointer from an Object. + * Extract a TQPopupMenu pointer from an Object. */ -TTQPopupMenu *TQPopupMenuImp::toTQPopupMenu( KJS::Object &self ) +TQPopupMenu *TQPopupMenuImp::toTQPopupMenu( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQPopupMenu *>( obj ); + return dynamic_cast<TQPopupMenu *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TTQPopupMenu" ) + if ( op->typeName() != "TQPopupMenu" ) return 0; - return op->toNative<TTQPopupMenu>(); + return op->toNative<TQPopupMenu>(); } /** @@ -134,7 +134,7 @@ KJS::Object TQPopupMenuImp::construct( KJS::ExecState *exec, const KJS::List &ar break; } - TTQString msg = i18n("TQPopupMenuCons has no constructor with id '%1'").arg(id); + TQString msg = i18n("TQPopupMenuCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -142,17 +142,17 @@ KJS::Object TQPopupMenuImp::construct( KJS::ExecState *exec, const KJS::List &ar KJS::Object TQPopupMenuImp::TQPopupMenu_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TTQWidget * + // Unsupported parameter TQWidget * return KJS::Object(); - TTQWidget * arg0; // Dummy + TQWidget * arg0; // Dummy const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - // We should now create an instance of the TTQPopupMenu object + // We should now create an instance of the TQPopupMenu object - TTQPopupMenu *ret = new TTQPopupMenu( + TQPopupMenu *ret = new TQPopupMenu( arg0, arg1 ); @@ -238,7 +238,7 @@ KJS::Value TQPopupMenuImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TTQString msg = i18n( "TQPopupMenuImp has no method with id '%1'" ).arg( id ); + TQString msg = i18n( "TQPopupMenuImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -246,7 +246,7 @@ KJS::Value TQPopupMenuImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Value TQPopupMenuImp::popup_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint arg0 = extractTQPoint(exec, args, 0); + TQPoint arg0 = extractTQPoint(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -291,7 +291,7 @@ KJS::Value TQPopupMenuImp::isCheckable_6( KJS::ExecState *exec, KJS::Object &obj KJS::Value TQPopupMenuImp::setFont_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQFont arg0 = extractTQFont(exec, args, 0); + TQFont arg0 = extractTQFont(exec, args, 0); instance->setFont( arg0 ); @@ -327,7 +327,7 @@ KJS::Value TQPopupMenuImp::exec_10( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value TQPopupMenuImp::exec_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint arg0 = extractTQPoint(exec, args, 0); + TQPoint arg0 = extractTQPoint(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -352,7 +352,7 @@ KJS::Value TQPopupMenuImp::setActiveItem_12( KJS::ExecState *exec, KJS::Object & KJS::Value TQPopupMenuImp::sizeHint_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQSize ret; + TQSize ret; ret = instance->sizeHint( ); return convertToValue( exec, ret ); @@ -374,7 +374,7 @@ KJS::Value TQPopupMenuImp::idAt_14( KJS::ExecState *exec, KJS::Object &obj, cons KJS::Value TQPopupMenuImp::idAt_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQPoint arg0 = extractTQPoint(exec, args, 0); + TQPoint arg0 = extractTQPoint(exec, args, 0); int ret; ret = instance->idAt( @@ -422,7 +422,7 @@ KJS::Value TQPopupMenuImp::itemGeometry_19( KJS::ExecState *exec, KJS::Object &o { int arg0 = extractInt(exec, args, 0); - TTQRect ret; + TQRect ret; ret = instance->itemGeometry( arg0 ); diff --git a/kjsembed/qtbindings/qpopupmenu_imp.h b/kjsembed/qtbindings/qpopupmenu_imp.h index 38e1bdfc..f1d0a92f 100644 --- a/kjsembed/qtbindings/qpopupmenu_imp.h +++ b/kjsembed/qtbindings/qpopupmenu_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TTQPopupMenu; +class TQPopupMenu; /** * Namespace containing the KJSEmbed library. @@ -17,7 +17,7 @@ class TTQPopupMenu; namespace KJSEmbed { /** - * Wrapper class for TTQPopupMenu methods. + * Wrapper class for TQPopupMenu methods. * * @author Richard Moore, [email protected] */ @@ -69,7 +69,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TTQPopupMenu *toTQPopupMenu( KJS::Object &object ); + static TQPopupMenu *toTQPopupMenu( KJS::Object &object ); // // Constructors implemented by this class. @@ -116,7 +116,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TTQPopupMenu *instance; // Temp + TQPopupMenu *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qt_imp.cpp b/kjsembed/qtbindings/qt_imp.cpp index bd3fcf2f..0f6bf134 100644 --- a/kjsembed/qtbindings/qt_imp.cpp +++ b/kjsembed/qtbindings/qt_imp.cpp @@ -41,7 +41,7 @@ void QtImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -705,7 +705,7 @@ void QtImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -724,7 +724,7 @@ Qt *QtImp::toQt( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) return dynamic_cast<Qt *>( obj ); } @@ -750,7 +750,7 @@ KJS::Object QtImp::construct( KJS::ExecState *exec, const KJS::List &args ) break; } - TTQString msg = i18n("QtCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("QtCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -765,7 +765,7 @@ KJS::Value QtImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List break; } - TTQString msg = i18n( "QtImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "QtImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } |