diff options
Diffstat (limited to 'kjsembed/qtbindings')
45 files changed, 2406 insertions, 2406 deletions
diff --git a/kjsembed/qtbindings/qcanvas_imp.cpp b/kjsembed/qtbindings/qcanvas_imp.cpp index f653416b..d686d862 100644 --- a/kjsembed/qtbindings/qcanvas_imp.cpp +++ b/kjsembed/qtbindings/qcanvas_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasImp::QCanvasImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasImp::TQCanvasImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasImp::~QCanvasImp() +TTQCanvasImp::~TQCanvasImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasImp *meth = new QCanvasImp( exec, methods[idx].id ); + TQCanvasImp *meth = new TQCanvasImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -116,11 +116,11 @@ void QCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasImp *meth = new QCanvasImp( exec, methods[idx].id ); + TQCanvasImp *meth = new TQCanvasImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -129,77 +129,77 @@ void QCanvasImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvas pointer from an Object. + * Extract a TTQCanvas pointer from an Object. */ -TQCanvas *QCanvasImp::toQCanvas( KJS::Object &self ) +TTQCanvas *TQCanvasImp::toTQCanvas( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvas *>( obj ); + return dynamic_cast<TTQCanvas *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvas" ) + if ( op->typeName() != "TTQCanvas" ) return 0; - return op->toNative<TQCanvas>(); + return op->toNative<TTQCanvas>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvas_1: - return QCanvas_1( exec, args ); + return TQCanvas_1( exec, args ); break; case Constructor_QCanvas_2: - return QCanvas_2( exec, args ); + return TQCanvas_2( exec, args ); break; case Constructor_QCanvas_3: - return QCanvas_3( exec, args ); + return TQCanvas_3( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasImp::QCanvas_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasImp::TQCanvas_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQObject * + // Unsupported parameter TTQObject * - TQObject * arg0 = extractQObject(exec,args,0); + TTQObject * 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 TQCanvas object + // We should now create an instance of the TTQCanvas object - TQCanvas *ret = new TQCanvas( + TTQCanvas *ret = new TTQCanvas( arg0, arg1 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvas"); return KJS::Object( prx ); } -KJS::Object QCanvasImp::QCanvas_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasImp::TQCanvas_2( KJS::ExecState *exec, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -207,23 +207,23 @@ KJS::Object QCanvasImp::QCanvas_2( KJS::ExecState *exec, const KJS::List &args ) int arg1 = extractInt(exec, args, 1); - // We should now create an instance of the TQCanvas object + // We should now create an instance of the TTQCanvas object - TQCanvas *ret = new TQCanvas( + TTQCanvas *ret = new TTQCanvas( arg0, arg1 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvas"); return KJS::Object( prx ); } -KJS::Object QCanvasImp::QCanvas_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasImp::TQCanvas_3( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter QPixmap + // Unsupported parameter TQPixmap - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -234,9 +234,9 @@ KJS::Object QCanvasImp::QCanvas_3( KJS::ExecState *exec, const KJS::List &args ) int arg4 = extractInt(exec, args, 4); - // We should now create an instance of the TQCanvas object + // We should now create an instance of the TTQCanvas object - TQCanvas *ret = new TQCanvas( + TTQCanvas *ret = new TTQCanvas( arg0, arg1, @@ -244,13 +244,13 @@ KJS::Object QCanvasImp::QCanvas_3( KJS::ExecState *exec, const KJS::List &args ) arg3, arg4 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvas"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvas"); return KJS::Object( prx ); } -KJS::Value QCanvasImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasImp::toQCanvas( self ); + instance = TQCanvasImp::toTQCanvas( self ); switch( id ) { @@ -450,18 +450,18 @@ KJS::Value QCanvasImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS: break; } - TQString msg = i18n( "QCanvasImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasImp::setTiles_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setTiles_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QPixmap + // Unsupported parameter TQPixmap return KJS::Value(); - TQPixmap arg0; // Dummy + TTQPixmap arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -481,10 +481,10 @@ KJS::Value QCanvasImp::setTiles_5( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasImp::setBackgroundPixmap_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setBackgroundPixmap_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); instance->setBackgroundPixmap( arg0 ); @@ -492,19 +492,19 @@ KJS::Value QCanvasImp::setBackgroundPixmap_6( KJS::ExecState *exec, KJS::Object } -KJS::Value QCanvasImp::backgroundPixmap_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::backgroundPixmap_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap ret; + TTQPixmap ret; ret = instance->backgroundPixmap( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasImp::setBackgroundColor_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setBackgroundColor_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQColor arg0 = extractQColor(exec, args, 0); + TTQColor arg0 = extractTQColor(exec, args, 0); instance->setBackgroundColor( arg0 ); @@ -512,15 +512,15 @@ KJS::Value QCanvasImp::setBackgroundColor_8( KJS::ExecState *exec, KJS::Object & } -KJS::Value QCanvasImp::backgroundColor_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::backgroundColor_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->backgroundColor( ); - return KJS::Value(); // Returns 'QColor' + return KJS::Value(); // Returns 'TQColor' } -KJS::Value QCanvasImp::setTile_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setTile_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -537,7 +537,7 @@ KJS::Value QCanvasImp::setTile_10( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasImp::tile_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::tile_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -552,7 +552,7 @@ KJS::Value QCanvasImp::tile_11( KJS::ExecState *exec, KJS::Object &obj, const KJ } -KJS::Value QCanvasImp::tilesHorizontally_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::tilesHorizontally_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -561,7 +561,7 @@ KJS::Value QCanvasImp::tilesHorizontally_12( KJS::ExecState *exec, KJS::Object & } -KJS::Value QCanvasImp::tilesVertically_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::tilesVertically_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -570,7 +570,7 @@ KJS::Value QCanvasImp::tilesVertically_13( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasImp::tileWidth_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::tileWidth_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -579,7 +579,7 @@ KJS::Value QCanvasImp::tileWidth_14( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QCanvasImp::tileHeight_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::tileHeight_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -588,7 +588,7 @@ KJS::Value QCanvasImp::tileHeight_15( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasImp::resize_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::resize_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -602,7 +602,7 @@ KJS::Value QCanvasImp::resize_16( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasImp::width_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::width_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -611,7 +611,7 @@ KJS::Value QCanvasImp::width_17( KJS::ExecState *exec, KJS::Object &obj, const K } -KJS::Value QCanvasImp::height_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::height_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -620,25 +620,25 @@ KJS::Value QCanvasImp::height_18( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasImp::size_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::size_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQSize ret; + TTQSize ret; ret = instance->size( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasImp::rect_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::rect_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect ret; + TTQRect ret; ret = instance->rect( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasImp::onCanvas_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::onCanvas_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -653,10 +653,10 @@ KJS::Value QCanvasImp::onCanvas_21( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasImp::onCanvas_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::onCanvas_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint arg0 = extractQPoint(exec, args, 0); + TTQPoint arg0 = extractTQPoint(exec, args, 0); bool ret; ret = instance->onCanvas( @@ -665,7 +665,7 @@ KJS::Value QCanvasImp::onCanvas_22( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasImp::validChunk_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::validChunk_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -680,10 +680,10 @@ KJS::Value QCanvasImp::validChunk_23( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasImp::validChunk_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::validChunk_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint arg0 = extractQPoint(exec, args, 0); + TTQPoint arg0 = extractTQPoint(exec, args, 0); bool ret; ret = instance->validChunk( @@ -692,7 +692,7 @@ KJS::Value QCanvasImp::validChunk_24( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasImp::chunkSize_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::chunkSize_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -701,7 +701,7 @@ KJS::Value QCanvasImp::chunkSize_25( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QCanvasImp::retune_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::retune_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -715,7 +715,7 @@ KJS::Value QCanvasImp::retune_26( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasImp::sameChunk_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::sameChunk_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -736,7 +736,7 @@ KJS::Value QCanvasImp::sameChunk_27( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QCanvasImp::setChangedChunk_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setChangedChunk_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -750,7 +750,7 @@ KJS::Value QCanvasImp::setChangedChunk_28( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasImp::setChangedChunkContaining_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setChangedChunkContaining_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -764,7 +764,7 @@ KJS::Value QCanvasImp::setChangedChunkContaining_29( KJS::ExecState *exec, KJS:: } -KJS::Value QCanvasImp::setAllChanged_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setAllChanged_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->setAllChanged( ); @@ -772,10 +772,10 @@ KJS::Value QCanvasImp::setAllChanged_30( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasImp::setChanged_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setChanged_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect arg0 = extractQRect(exec, args, 0); + TTQRect arg0 = extractTQRect(exec, args, 0); instance->setChanged( arg0 ); @@ -783,10 +783,10 @@ KJS::Value QCanvasImp::setChanged_31( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasImp::setUnchanged_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setUnchanged_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect arg0 = extractQRect(exec, args, 0); + TTQRect arg0 = extractTQRect(exec, args, 0); instance->setUnchanged( arg0 ); @@ -794,13 +794,13 @@ KJS::Value QCanvasImp::setUnchanged_32( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasImp::addItemToChunk_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::addItemToChunk_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -814,13 +814,13 @@ KJS::Value QCanvasImp::addItemToChunk_33( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasImp::removeItemFromChunk_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::removeItemFromChunk_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -834,13 +834,13 @@ KJS::Value QCanvasImp::removeItemFromChunk_34( KJS::ExecState *exec, KJS::Object } -KJS::Value QCanvasImp::addItemToChunkContaining_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::addItemToChunkContaining_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -854,13 +854,13 @@ KJS::Value QCanvasImp::addItemToChunkContaining_35( KJS::ExecState *exec, KJS::O } -KJS::Value QCanvasImp::removeItemFromChunkContaining_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::removeItemFromChunkContaining_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -874,45 +874,45 @@ KJS::Value QCanvasImp::removeItemFromChunkContaining_36( KJS::ExecState *exec, K } -KJS::Value QCanvasImp::allItems_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::allItems_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->allItems( ); - return KJS::Value(); // Returns 'QCanvasItemList' + return KJS::Value(); // Returns 'TQCanvasItemList' } -KJS::Value QCanvasImp::collisions_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::collisions_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint arg0 = extractQPoint(exec, args, 0); + TTQPoint arg0 = extractTQPoint(exec, args, 0); instance->collisions( arg0 ); - return KJS::Value(); // Returns 'QCanvasItemList' + return KJS::Value(); // Returns 'TQCanvasItemList' } -KJS::Value QCanvasImp::collisions_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::collisions_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect arg0 = extractQRect(exec, args, 0); + TTQRect arg0 = extractTQRect(exec, args, 0); instance->collisions( arg0 ); - return KJS::Value(); // Returns 'QCanvasItemList' + return KJS::Value(); // Returns 'TQCanvasItemList' } -KJS::Value QCanvasImp::collisions_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::collisions_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPointArray arg0; // TODO (hack for qcanvas) + TTQPointArray arg0; // TODO (hack for qcanvas) - // Unsupported parameter const TQCanvasItem * + // Unsupported parameter const TTQCanvasItem * return KJS::Value(); - const TQCanvasItem * arg1; // Dummy + const TTQCanvasItem * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -920,19 +920,19 @@ KJS::Value QCanvasImp::collisions_40( KJS::ExecState *exec, KJS::Object &obj, co arg0, arg1, arg2 ); - return KJS::Value(); // Returns 'QCanvasItemList' + return KJS::Value(); // Returns 'TQCanvasItemList' } -KJS::Value QCanvasImp::drawArea_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::drawArea_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect arg0 = extractQRect(exec, args, 0); + TTQRect arg0 = extractTQRect(exec, args, 0); - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); - TQPainter * arg1; // Dummy + TTQPainter * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -944,13 +944,13 @@ KJS::Value QCanvasImp::drawArea_41( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasImp::addView_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::addView_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasView * + // Unsupported parameter TTQCanvasView * return KJS::Value(); - TQCanvasView * arg0; // Dummy + TTQCanvasView * arg0; // Dummy instance->addView( arg0 ); @@ -958,13 +958,13 @@ KJS::Value QCanvasImp::addView_42( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasImp::removeView_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::removeView_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasView * + // Unsupported parameter TTQCanvasView * return KJS::Value(); - TQCanvasView * arg0; // Dummy + TTQCanvasView * arg0; // Dummy instance->removeView( arg0 ); @@ -972,15 +972,15 @@ KJS::Value QCanvasImp::removeView_43( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasImp::drawCanvasArea_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::drawCanvasArea_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect arg0 = extractQRect(exec, args, 0); + TTQRect arg0 = extractTQRect(exec, args, 0); - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); - TQPainter * arg1; // Dummy + TTQPainter * arg1; // Dummy bool arg2 = extractBool(exec, args, 2); @@ -992,20 +992,20 @@ KJS::Value QCanvasImp::drawCanvasArea_44( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasImp::drawViewArea_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::drawViewArea_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasView * + // Unsupported parameter TTQCanvasView * return KJS::Value(); - TQCanvasView * arg0; // Dummy + TTQCanvasView * arg0; // Dummy - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); - TQPainter * arg1; // Dummy + TTQPainter * arg1; // Dummy - TQRect arg2 = extractQRect(exec, args, 2); + TTQRect arg2 = extractTQRect(exec, args, 2); bool arg3 = extractBool(exec, args, 3); @@ -1018,13 +1018,13 @@ KJS::Value QCanvasImp::drawViewArea_45( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasImp::addItem_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::addItem_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy instance->addItem( arg0 ); @@ -1032,13 +1032,13 @@ KJS::Value QCanvasImp::addItem_46( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasImp::addAnimation_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::addAnimation_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy instance->addAnimation( arg0 ); @@ -1046,13 +1046,13 @@ KJS::Value QCanvasImp::addAnimation_47( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasImp::removeItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::removeItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -1060,13 +1060,13 @@ KJS::Value QCanvasImp::removeItem_48( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasImp::removeAnimation_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::removeAnimation_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasItem * + // Unsupported parameter TTQCanvasItem * return KJS::Value(); - TQCanvasItem * arg0; // Dummy + TTQCanvasItem * arg0; // Dummy instance->removeAnimation( arg0 ); @@ -1074,7 +1074,7 @@ KJS::Value QCanvasImp::removeAnimation_49( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasImp::setAdvancePeriod_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setAdvancePeriod_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1085,7 +1085,7 @@ KJS::Value QCanvasImp::setAdvancePeriod_50( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasImp::setUpdatePeriod_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setUpdatePeriod_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1096,7 +1096,7 @@ KJS::Value QCanvasImp::setUpdatePeriod_51( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasImp::setDoubleBuffering_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasImp::setDoubleBuffering_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); diff --git a/kjsembed/qtbindings/qcanvas_imp.h b/kjsembed/qtbindings/qcanvas_imp.h index 255bbe44..fd91b3ba 100644 --- a/kjsembed/qtbindings/qcanvas_imp.h +++ b/kjsembed/qtbindings/qcanvas_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvas; +class TTQCanvas; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvas; namespace KJSEmbed { /** - * Wrapper class for TQCanvas methods. + * Wrapper class for TTQCanvas methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasImp : public JSProxyImp +class TQCanvasImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -87,8 +87,8 @@ public: Method_Last = -1 }; - QCanvasImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasImp(); + TQCanvasImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -102,15 +102,15 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvas *toQCanvas( KJS::Object &object ); + static TTQCanvas *toTQCanvas( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvas_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvas_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvas_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvas_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvas_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvas_3( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -182,7 +182,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvas *instance; // Temp + TTQCanvas *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasellipse_imp.cpp b/kjsembed/qtbindings/qcanvasellipse_imp.cpp index 6d9311e7..deab7241 100644 --- a/kjsembed/qtbindings/qcanvasellipse_imp.cpp +++ b/kjsembed/qtbindings/qcanvasellipse_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasEllipseImp::QCanvasEllipseImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasEllipseImp::TQCanvasEllipseImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasEllipseImp::~QCanvasEllipseImp() +TTQCanvasEllipseImp::~TQCanvasEllipseImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasEllipseImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasEllipseImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasEllipseImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasEllipseImp *meth = new QCanvasEllipseImp( exec, methods[idx].id ); + TQCanvasEllipseImp *meth = new TQCanvasEllipseImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasEllipseImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasEllipseImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasEllipseImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -77,11 +77,11 @@ void QCanvasEllipseImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasEllipseImp *meth = new QCanvasEllipseImp( exec, methods[idx].id ); + TQCanvasEllipseImp *meth = new TQCanvasEllipseImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -90,89 +90,89 @@ void QCanvasEllipseImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasEllipse pointer from an Object. + * Extract a TTQCanvasEllipse pointer from an Object. */ -TQCanvasEllipse *QCanvasEllipseImp::toQCanvasEllipse( KJS::Object &self ) +TTQCanvasEllipse *TQCanvasEllipseImp::toTQCanvasEllipse( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasEllipse *>( obj ); + return dynamic_cast<TTQCanvasEllipse *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasEllipse" ) + if ( op->typeName() != "TTQCanvasEllipse" ) return 0; - return op->toNative<TQCanvasEllipse>(); + return op->toNative<TTQCanvasEllipse>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasEllipseImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasEllipseImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasEllipse_1: - return QCanvasEllipse_1( exec, args ); + return TQCanvasEllipse_1( exec, args ); break; case Constructor_QCanvasEllipse_2: - return QCanvasEllipse_2( exec, args ); + return TQCanvasEllipse_2( exec, args ); break; case Constructor_QCanvasEllipse_3: - return QCanvasEllipse_3( exec, args ); + return TQCanvasEllipse_3( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasEllipseCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasEllipseCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasEllipseImp::QCanvasEllipse_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasEllipseImp::TQCanvasEllipse_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasEllipse object + // We should now create an instance of the TTQCanvasEllipse object - TQCanvasEllipse *ret = new TQCanvasEllipse( + TTQCanvasEllipse *ret = new TTQCanvasEllipse( arg0 ); } -KJS::Object QCanvasEllipseImp::QCanvasEllipse_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasEllipseImp::TQCanvasEllipse_2( KJS::ExecState *exec, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); int arg1 = extractInt(exec, args, 1); - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg2; // Dummy + TTQCanvas * arg2; // Dummy - // We should now create an instance of the TQCanvasEllipse object + // We should now create an instance of the TTQCanvasEllipse object - TQCanvasEllipse *ret = new TQCanvasEllipse( + TTQCanvasEllipse *ret = new TTQCanvasEllipse( arg0, arg1, @@ -181,7 +181,7 @@ KJS::Object QCanvasEllipseImp::QCanvasEllipse_2( KJS::ExecState *exec, const KJS } -KJS::Object QCanvasEllipseImp::QCanvasEllipse_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasEllipseImp::TQCanvasEllipse_3( KJS::ExecState *exec, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -192,15 +192,15 @@ KJS::Object QCanvasEllipseImp::QCanvasEllipse_3( KJS::ExecState *exec, const KJS int arg3 = extractInt(exec, args, 3); - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg4; // Dummy + TTQCanvas * arg4; // Dummy - // We should now create an instance of the TQCanvasEllipse object + // We should now create an instance of the TTQCanvasEllipse object - TQCanvasEllipse *ret = new TQCanvasEllipse( + TTQCanvasEllipse *ret = new TTQCanvasEllipse( arg0, arg1, @@ -211,9 +211,9 @@ KJS::Object QCanvasEllipseImp::QCanvasEllipse_3( KJS::ExecState *exec, const KJS } -KJS::Value QCanvasEllipseImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasEllipseImp::toQCanvasEllipse( self ); + instance = TQCanvasEllipseImp::toTQCanvasEllipse( self ); switch( id ) { @@ -257,12 +257,12 @@ KJS::Value QCanvasEllipseImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TQString msg = i18n( "QCanvasEllipseImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasEllipseImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasEllipseImp::width_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::width_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -271,7 +271,7 @@ KJS::Value QCanvasEllipseImp::width_5( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasEllipseImp::height_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::height_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -280,7 +280,7 @@ KJS::Value QCanvasEllipseImp::height_6( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasEllipseImp::setSize_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::setSize_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -294,7 +294,7 @@ KJS::Value QCanvasEllipseImp::setSize_7( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasEllipseImp::setAngles_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::setAngles_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -308,7 +308,7 @@ KJS::Value QCanvasEllipseImp::setAngles_8( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasEllipseImp::angleStart_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::angleStart_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -317,7 +317,7 @@ KJS::Value QCanvasEllipseImp::angleStart_9( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasEllipseImp::angleLength_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::angleLength_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -326,21 +326,21 @@ KJS::Value QCanvasEllipseImp::angleLength_10( KJS::ExecState *exec, KJS::Object } -KJS::Value QCanvasEllipseImp::areaPoints_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::areaPoints_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->areaPoints( ); - return KJS::Value(); // Returns 'QPointArray' + return KJS::Value(); // Returns 'TQPointArray' } -KJS::Value QCanvasEllipseImp::collidesWith_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::collidesWith_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQCanvasItem * + // Unsupported parameter const TTQCanvasItem * return KJS::Value(); - const TQCanvasItem * arg0; // Dummy + const TTQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -349,7 +349,7 @@ KJS::Value QCanvasEllipseImp::collidesWith_12( KJS::ExecState *exec, KJS::Object } -KJS::Value QCanvasEllipseImp::rtti_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasEllipseImp::rtti_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; diff --git a/kjsembed/qtbindings/qcanvasellipse_imp.h b/kjsembed/qtbindings/qcanvasellipse_imp.h index 2a61a439..a0a03c8a 100644 --- a/kjsembed/qtbindings/qcanvasellipse_imp.h +++ b/kjsembed/qtbindings/qcanvasellipse_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasEllipse; +class TTQCanvasEllipse; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasEllipse; namespace KJSEmbed { /** - * Wrapper class for TQCanvasEllipse methods. + * Wrapper class for TTQCanvasEllipse methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasEllipseImp : public JSProxyImp +class TQCanvasEllipseImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -48,8 +48,8 @@ public: Method_Last = -1 }; - QCanvasEllipseImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasEllipseImp(); + TQCanvasEllipseImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasEllipseImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -63,15 +63,15 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasEllipse *toQCanvasEllipse( KJS::Object &object ); + static TTQCanvasEllipse *toTQCanvasEllipse( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasEllipse_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasEllipse_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasEllipse_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasEllipse_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasEllipse_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasEllipse_3( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -104,7 +104,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasEllipse *instance; // Temp + TTQCanvasEllipse *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasitem_imp.cpp b/kjsembed/qtbindings/qcanvasitem_imp.cpp index 9a3d0a5b..9e009567 100644 --- a/kjsembed/qtbindings/qcanvasitem_imp.cpp +++ b/kjsembed/qtbindings/qcanvasitem_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasItemImp::QCanvasItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasItemImp::TQCanvasItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasItemImp::~QCanvasItemImp() +TTQCanvasItemImp::~TQCanvasItemImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasItemImp *meth = new QCanvasItemImp( exec, methods[idx].id ); + TQCanvasItemImp *meth = new TQCanvasItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -66,15 +66,15 @@ void QCanvasItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec EnumValue enums[] = { // enum RttiValues - { "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 }, + { "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 }, { 0, 0 } }; @@ -89,7 +89,7 @@ void QCanvasItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -135,11 +135,11 @@ void QCanvasItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasItemImp *meth = new QCanvasItemImp( exec, methods[idx].id ); + TQCanvasItemImp *meth = new TQCanvasItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -148,64 +148,64 @@ void QCanvasItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasItem pointer from an Object. + * Extract a TTQCanvasItem pointer from an Object. */ -TQCanvasItem *QCanvasItemImp::toQCanvasItem( KJS::Object &self ) +TTQCanvasItem *TQCanvasItemImp::toTQCanvasItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasItem *>( obj ); + return dynamic_cast<TTQCanvasItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; /* - if ( !op->inherits(TQCANVASITEM_OBJECT_NAME_STRING) ) { + if ( !op->inherits(TTQCANVASITEM_OBJECT_NAME_STRING) ) { kdDebug() << "Typename of opaque canvas item is " << op->typeName() << endl; // Check superclasses return 0; } */ - return op->toNative<TQCanvasItem>(); + return op->toNative<TTQCanvasItem>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasItem_1: - return QCanvasItem_1( exec, args ); + return TQCanvasItem_1( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasItemCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasItemImp::QCanvasItem_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasItemImp::TQCanvasItem_1( KJS::ExecState *exec, const KJS::List &args ) { #if 0 // This constructor has been disabled by the XSL template - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasItem object + // We should now create an instance of the TTQCanvasItem object - TQCanvasItem *ret = new TQCanvasItem( + TTQCanvasItem *ret = new TTQCanvasItem( arg0 ); @@ -215,13 +215,13 @@ KJS::Object QCanvasItemImp::QCanvasItem_1( KJS::ExecState *exec, const KJS::List } -KJS::Value QCanvasItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasItemImp::toQCanvasItem( self ); + instance = TQCanvasItemImp::toTQCanvasItem( self ); /* if ( !instance ) { - TQString msg = i18n( "QCanvasItemImp was not valid" ); + TTQString msg = i18n( "TQCanvasItemImp was not valid" ); return throwError(exec, msg,KJS::ReferenceError); } */ @@ -384,12 +384,12 @@ KJS::Value QCanvasItemImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TQString msg = i18n( "QCanvasItemImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasItemImp::x_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::x_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double ret; @@ -398,7 +398,7 @@ KJS::Value QCanvasItemImp::x_3( KJS::ExecState *exec, KJS::Object &obj, const KJ } -KJS::Value QCanvasItemImp::y_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::y_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double ret; @@ -407,7 +407,7 @@ KJS::Value QCanvasItemImp::y_4( KJS::ExecState *exec, KJS::Object &obj, const KJ } -KJS::Value QCanvasItemImp::z_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::z_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double ret; @@ -416,7 +416,7 @@ KJS::Value QCanvasItemImp::z_5( KJS::ExecState *exec, KJS::Object &obj, const KJ } -KJS::Value QCanvasItemImp::moveBy_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::moveBy_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -430,7 +430,7 @@ KJS::Value QCanvasItemImp::moveBy_6( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QCanvasItemImp::move_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::move_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -444,7 +444,7 @@ KJS::Value QCanvasItemImp::move_7( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasItemImp::setX_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setX_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -455,7 +455,7 @@ KJS::Value QCanvasItemImp::setX_8( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasItemImp::setY_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setY_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -466,7 +466,7 @@ KJS::Value QCanvasItemImp::setY_9( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasItemImp::setZ_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setZ_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -477,7 +477,7 @@ KJS::Value QCanvasItemImp::setZ_10( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasItemImp::animated_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::animated_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -486,7 +486,7 @@ KJS::Value QCanvasItemImp::animated_11( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::setAnimated_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setAnimated_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -497,7 +497,7 @@ KJS::Value QCanvasItemImp::setAnimated_12( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasItemImp::setVelocity_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setVelocity_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -511,7 +511,7 @@ KJS::Value QCanvasItemImp::setVelocity_13( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasItemImp::setXVelocity_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setXVelocity_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -522,7 +522,7 @@ KJS::Value QCanvasItemImp::setXVelocity_14( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasItemImp::setYVelocity_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setYVelocity_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -533,7 +533,7 @@ KJS::Value QCanvasItemImp::setYVelocity_15( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasItemImp::xVelocity_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::xVelocity_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double ret; @@ -542,7 +542,7 @@ KJS::Value QCanvasItemImp::xVelocity_16( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::yVelocity_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::yVelocity_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double ret; @@ -551,7 +551,7 @@ KJS::Value QCanvasItemImp::yVelocity_17( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::advance_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::advance_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -562,13 +562,13 @@ KJS::Value QCanvasItemImp::advance_18( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasItemImp::collidesWith_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::collidesWith_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQCanvasItem * + // Unsupported parameter const TTQCanvasItem * return KJS::Value(); - const TQCanvasItem * arg0; // Dummy + const TTQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -577,24 +577,24 @@ KJS::Value QCanvasItemImp::collidesWith_19( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasItemImp::collisions_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::collisions_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); instance->collisions( arg0 ); - return KJS::Value(); // Returns 'QCanvasItemList' + return KJS::Value(); // Returns 'TQCanvasItemList' } -KJS::Value QCanvasItemImp::setCanvas_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setCanvas_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Value(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy instance->setCanvas( arg0 ); @@ -602,10 +602,10 @@ KJS::Value QCanvasItemImp::setCanvas_21( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::draw_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::draw_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPainter arg0; // TODO (hack for qcanvas) + TTQPainter arg0; // TODO (hack for qcanvas) instance->draw( arg0 ); @@ -613,7 +613,7 @@ KJS::Value QCanvasItemImp::draw_22( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasItemImp::show_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::show_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->show( ); @@ -621,7 +621,7 @@ KJS::Value QCanvasItemImp::show_23( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasItemImp::hide_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::hide_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->hide( ); @@ -629,7 +629,7 @@ KJS::Value QCanvasItemImp::hide_24( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasItemImp::setVisible_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setVisible_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -640,7 +640,7 @@ KJS::Value QCanvasItemImp::setVisible_25( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasItemImp::isVisible_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::isVisible_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -649,7 +649,7 @@ KJS::Value QCanvasItemImp::isVisible_26( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::setSelected_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setSelected_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -660,7 +660,7 @@ KJS::Value QCanvasItemImp::setSelected_27( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasItemImp::isSelected_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::isSelected_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -669,7 +669,7 @@ KJS::Value QCanvasItemImp::isSelected_28( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasItemImp::setEnabled_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setEnabled_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -680,7 +680,7 @@ KJS::Value QCanvasItemImp::setEnabled_29( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasItemImp::isEnabled_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::isEnabled_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -689,7 +689,7 @@ KJS::Value QCanvasItemImp::isEnabled_30( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::setActive_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::setActive_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -700,7 +700,7 @@ KJS::Value QCanvasItemImp::setActive_31( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::isActive_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::isActive_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -709,7 +709,7 @@ KJS::Value QCanvasItemImp::isActive_32( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::visible_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::visible_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -718,7 +718,7 @@ KJS::Value QCanvasItemImp::visible_33( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasItemImp::selected_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::selected_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -727,7 +727,7 @@ KJS::Value QCanvasItemImp::selected_34( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasItemImp::enabled_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::enabled_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -736,7 +736,7 @@ KJS::Value QCanvasItemImp::enabled_35( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasItemImp::active_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::active_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -745,7 +745,7 @@ KJS::Value QCanvasItemImp::active_36( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasItemImp::rtti_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::rtti_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -754,29 +754,29 @@ KJS::Value QCanvasItemImp::rtti_37( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QCanvasItemImp::boundingRect_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::boundingRect_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect ret; + TTQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasItemImp::boundingRectAdvanced_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::boundingRectAdvanced_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect ret; + TTQRect ret; ret = instance->boundingRectAdvanced( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasItemImp::canvas_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemImp::canvas_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->canvas( ); - return KJS::Value(); // Returns 'TQCanvas *' + return KJS::Value(); // Returns 'TTQCanvas *' } diff --git a/kjsembed/qtbindings/qcanvasitem_imp.h b/kjsembed/qtbindings/qcanvasitem_imp.h index d0823afe..577bb7b1 100644 --- a/kjsembed/qtbindings/qcanvasitem_imp.h +++ b/kjsembed/qtbindings/qcanvasitem_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasItem; +class TTQCanvasItem; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasItem; namespace KJSEmbed { /** - * Wrapper class for TQCanvasItem methods. + * Wrapper class for TTQCanvasItem methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasItemImp : public JSProxyImp +class TQCanvasItemImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -75,8 +75,8 @@ public: Method_Last = -1 }; - QCanvasItemImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasItemImp(); + TQCanvasItemImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasItemImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -90,13 +90,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasItem *toQCanvasItem( KJS::Object &object ); + static TTQCanvasItem *toTQCanvasItem( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasItem_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasItem_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -158,7 +158,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasItem *instance; // Temp + TTQCanvasItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasitemlist_imp.cpp b/kjsembed/qtbindings/qcanvasitemlist_imp.cpp index fd87e511..31f027fd 100644 --- a/kjsembed/qtbindings/qcanvasitemlist_imp.cpp +++ b/kjsembed/qtbindings/qcanvasitemlist_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasItemListImp::QCanvasItemListImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasItemListImp::TQCanvasItemListImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasItemListImp::~QCanvasItemListImp() +TTQCanvasItemListImp::~TQCanvasItemListImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasItemListImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasItemListImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasItemListImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &o }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasItemListImp *meth = new QCanvasItemListImp( exec, methods[idx].id ); + TQCanvasItemListImp *meth = new TQCanvasItemListImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasItemListImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &o /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasItemListImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasItemListImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -70,11 +70,11 @@ void QCanvasItemListImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasItemListImp *meth = new QCanvasItemListImp( exec, methods[idx].id ); + TQCanvasItemListImp *meth = new TQCanvasItemListImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -83,31 +83,31 @@ void QCanvasItemListImp::addBindings( KJS::ExecState *exec, KJS::Object &object } /** - * Extract a TQCanvasItemList pointer from an Object. + * Extract a TTQCanvasItemList pointer from an Object. */ -TQCanvasItemList *QCanvasItemListImp::toQCanvasItemList( KJS::Object &self ) +TTQCanvasItemList *TQCanvasItemListImp::toTQCanvasItemList( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasItemList *>( obj ); + return dynamic_cast<TTQCanvasItemList *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasItemList" ) + if ( op->typeName() != "TTQCanvasItemList" ) return 0; - return op->toNative<TQCanvasItemList>(); + return op->toNative<TTQCanvasItemList>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasItemListImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasItemListImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { @@ -115,14 +115,14 @@ KJS::Object QCanvasItemListImp::construct( KJS::ExecState *exec, const KJS::List break; } - TQString msg = i18n("QCanvasItemListCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasItemListCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasItemListImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasItemListImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasItemListImp::toQCanvasItemList( self ); + instance = TQCanvasItemListImp::toTQCanvasItemList( self ); switch( id ) { @@ -138,12 +138,12 @@ KJS::Value QCanvasItemListImp::call( KJS::ExecState *exec, KJS::Object &self, co break; } - TQString msg = i18n( "QCanvasItemListImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasItemListImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasItemListImp::sort_1( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemListImp::sort_1( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->sort( ); @@ -151,10 +151,10 @@ KJS::Value QCanvasItemListImp::sort_1( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasItemListImp::drawUnique_2( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasItemListImp::drawUnique_2( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPainter arg0; // TODO (hack for qcanvas) + TTQPainter arg0; // TODO (hack for qcanvas) instance->drawUnique( arg0 ); diff --git a/kjsembed/qtbindings/qcanvasitemlist_imp.h b/kjsembed/qtbindings/qcanvasitemlist_imp.h index 3f2edae1..1ec604e0 100644 --- a/kjsembed/qtbindings/qcanvasitemlist_imp.h +++ b/kjsembed/qtbindings/qcanvasitemlist_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasItemList; +class TTQCanvasItemList; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasItemList; namespace KJSEmbed { /** - * Wrapper class for TQCanvasItemList methods. + * Wrapper class for TTQCanvasItemList methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasItemListImp : public JSProxyImp +class TQCanvasItemListImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -38,8 +38,8 @@ public: Method_Last = -1 }; - QCanvasItemListImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasItemListImp(); + TQCanvasItemListImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasItemListImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -53,7 +53,7 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasItemList *toQCanvasItemList( KJS::Object &object ); + static TTQCanvasItemList *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: - TQCanvasItemList *instance; // Temp + TTQCanvasItemList *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasline_imp.cpp b/kjsembed/qtbindings/qcanvasline_imp.cpp index 429321f3..af6a7b53 100644 --- a/kjsembed/qtbindings/qcanvasline_imp.cpp +++ b/kjsembed/qtbindings/qcanvasline_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasLineImp::QCanvasLineImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasLineImp::TQCanvasLineImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasLineImp::~QCanvasLineImp() +TTQCanvasLineImp::~TQCanvasLineImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasLineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasLineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasLineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasLineImp *meth = new QCanvasLineImp( exec, methods[idx].id ); + TQCanvasLineImp *meth = new TQCanvasLineImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasLineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasLineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasLineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -74,11 +74,11 @@ void QCanvasLineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasLineImp *meth = new QCanvasLineImp( exec, methods[idx].id ); + TQCanvasLineImp *meth = new TQCanvasLineImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -87,68 +87,68 @@ void QCanvasLineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasLine pointer from an Object. + * Extract a TTQCanvasLine pointer from an Object. */ -TQCanvasLine *QCanvasLineImp::toQCanvasLine( KJS::Object &self ) +TTQCanvasLine *TQCanvasLineImp::toTQCanvasLine( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasLine *>( obj ); + return dynamic_cast<TTQCanvasLine *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasLine" ) + if ( op->typeName() != "TTQCanvasLine" ) return 0; - return op->toNative<TQCanvasLine>(); + return op->toNative<TTQCanvasLine>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasLineImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasLineImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasLine_1: - return QCanvasLine_1( exec, args ); + return TQCanvasLine_1( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasLineCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasLineCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasLineImp::QCanvasLine_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasLineImp::TQCanvasLine_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasLine object + // We should now create an instance of the TTQCanvasLine object - TQCanvasLine *ret = new TQCanvasLine( + TTQCanvasLine *ret = new TTQCanvasLine( arg0 ); } -KJS::Value QCanvasLineImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasLineImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasLineImp::toQCanvasLine( self ); + instance = TQCanvasLineImp::toTQCanvasLine( self ); switch( id ) { @@ -180,12 +180,12 @@ KJS::Value QCanvasLineImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TQString msg = i18n( "QCanvasLineImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasLineImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasLineImp::setPoints_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasLineImp::setPoints_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -205,25 +205,25 @@ KJS::Value QCanvasLineImp::setPoints_3( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasLineImp::startPoint_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasLineImp::startPoint_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint ret; + TTQPoint ret; ret = instance->startPoint( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasLineImp::endPoint_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasLineImp::endPoint_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint ret; + TTQPoint ret; ret = instance->endPoint( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasLineImp::rtti_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasLineImp::rtti_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -232,13 +232,13 @@ KJS::Value QCanvasLineImp::rtti_6( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QCanvasLineImp::setPen_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasLineImp::setPen_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QPen + // Unsupported parameter TQPen return KJS::Value(); - TQPen arg0; // Dummy + TTQPen arg0; // Dummy instance->setPen( arg0 ); @@ -246,7 +246,7 @@ KJS::Value QCanvasLineImp::setPen_7( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QCanvasLineImp::moveBy_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasLineImp::moveBy_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); diff --git a/kjsembed/qtbindings/qcanvasline_imp.h b/kjsembed/qtbindings/qcanvasline_imp.h index 95ab8cb3..f876b8e1 100644 --- a/kjsembed/qtbindings/qcanvasline_imp.h +++ b/kjsembed/qtbindings/qcanvasline_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasLine; +class TTQCanvasLine; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasLine; namespace KJSEmbed { /** - * Wrapper class for TQCanvasLine methods. + * Wrapper class for TTQCanvasLine methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasLineImp : public JSProxyImp +class TQCanvasLineImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -43,8 +43,8 @@ public: Method_Last = -1 }; - QCanvasLineImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasLineImp(); + TQCanvasLineImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasLineImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -58,13 +58,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasLine *toQCanvasLine( KJS::Object &object ); + static TTQCanvasLine *toTQCanvasLine( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasLine_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasLine_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -94,7 +94,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasLine *instance; // Temp + TTQCanvasLine *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspixmap_imp.cpp b/kjsembed/qtbindings/qcanvaspixmap_imp.cpp index 505cdb1f..bc11e8ce 100644 --- a/kjsembed/qtbindings/qcanvaspixmap_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspixmap_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasPixmapImp::QCanvasPixmapImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasPixmapImp::TQCanvasPixmapImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasPixmapImp::~QCanvasPixmapImp() +TTQCanvasPixmapImp::~TQCanvasPixmapImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasPixmapImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPixmapImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasPixmapImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPixmapImp *meth = new QCanvasPixmapImp( exec, methods[idx].id ); + TQCanvasPixmapImp *meth = new TQCanvasPixmapImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasPixmapImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasPixmapImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPixmapImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -71,11 +71,11 @@ void QCanvasPixmapImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPixmapImp *meth = new QCanvasPixmapImp( exec, methods[idx].id ); + TQCanvasPixmapImp *meth = new TQCanvasPixmapImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -84,79 +84,79 @@ void QCanvasPixmapImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasPixmap pointer from an Object. + * Extract a TTQCanvasPixmap pointer from an Object. */ -TQCanvasPixmap *QCanvasPixmapImp::toQCanvasPixmap( KJS::Object &self ) +TTQCanvasPixmap *TQCanvasPixmapImp::toTQCanvasPixmap( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasPixmap *>( obj ); + return dynamic_cast<TTQCanvasPixmap *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasPixmap" ) + if ( op->typeName() != "TTQCanvasPixmap" ) return 0; - return op->toNative<TQCanvasPixmap>(); + return op->toNative<TTQCanvasPixmap>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasPixmapImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasPixmap_1: - return QCanvasPixmap_1( exec, args ); + return TQCanvasPixmap_1( exec, args ); break; case Constructor_QCanvasPixmap_2: - return QCanvasPixmap_2( exec, args ); + return TQCanvasPixmap_2( exec, args ); break; case Constructor_QCanvasPixmap_3: - return QCanvasPixmap_3( exec, args ); + return TQCanvasPixmap_3( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasPixmapCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasPixmapCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasPixmapImp::QCanvasPixmap_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_1( KJS::ExecState *exec, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); - // We should now create an instance of the TQCanvasPixmap object + // We should now create an instance of the TTQCanvasPixmap object - TQCanvasPixmap *ret = new TQCanvasPixmap( + TTQCanvasPixmap *ret = new TTQCanvasPixmap( arg0 ); return KJS::Object(); } -KJS::Object QCanvasPixmapImp::QCanvasPixmap_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_2( KJS::ExecState *exec, const KJS::List &args ) { - TQImage arg0 = extractQImage(exec, args, 0); + TTQImage arg0 = extractTQImage(exec, args, 0); - // We should now create an instance of the TQCanvasPixmap object + // We should now create an instance of the TTQCanvasPixmap object - TQCanvasPixmap *ret = new TQCanvasPixmap( + TTQCanvasPixmap *ret = new TTQCanvasPixmap( arg0 ); @@ -164,17 +164,17 @@ KJS::Object QCanvasPixmapImp::QCanvasPixmap_2( KJS::ExecState *exec, const KJS:: } -KJS::Object QCanvasPixmapImp::QCanvasPixmap_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapImp::TQCanvasPixmap_3( KJS::ExecState *exec, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); - TQPoint arg1 = extractQPoint(exec, args, 1); + TTQPoint arg1 = extractTQPoint(exec, args, 1); - // We should now create an instance of the TQCanvasPixmap object + // We should now create an instance of the TTQCanvasPixmap object - TQCanvasPixmap *ret = new TQCanvasPixmap( + TTQCanvasPixmap *ret = new TTQCanvasPixmap( arg0, arg1 ); @@ -183,9 +183,9 @@ KJS::Object QCanvasPixmapImp::QCanvasPixmap_3( KJS::ExecState *exec, const KJS:: } -KJS::Value QCanvasPixmapImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasPixmapImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasPixmapImp::toQCanvasPixmap( self ); + instance = TQCanvasPixmapImp::toTQCanvasPixmap( self ); switch( id ) { @@ -205,12 +205,12 @@ KJS::Value QCanvasPixmapImp::call( KJS::ExecState *exec, KJS::Object &self, cons break; } - TQString msg = i18n( "QCanvasPixmapImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasPixmapImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasPixmapImp::offsetX_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapImp::offsetX_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -219,7 +219,7 @@ KJS::Value QCanvasPixmapImp::offsetX_5( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasPixmapImp::offsetY_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapImp::offsetY_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -228,7 +228,7 @@ KJS::Value QCanvasPixmapImp::offsetY_6( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasPixmapImp::setOffset_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapImp::setOffset_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); diff --git a/kjsembed/qtbindings/qcanvaspixmap_imp.h b/kjsembed/qtbindings/qcanvaspixmap_imp.h index 607ff4d4..958c5dda 100644 --- a/kjsembed/qtbindings/qcanvaspixmap_imp.h +++ b/kjsembed/qtbindings/qcanvaspixmap_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasPixmap; +class TTQCanvasPixmap; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasPixmap; namespace KJSEmbed { /** - * Wrapper class for TQCanvasPixmap methods. + * Wrapper class for TTQCanvasPixmap methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasPixmapImp : public JSProxyImp +class TQCanvasPixmapImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -42,8 +42,8 @@ public: Method_Last = -1 }; - QCanvasPixmapImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasPixmapImp(); + TQCanvasPixmapImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasPixmapImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -57,15 +57,15 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasPixmap *toQCanvasPixmap( KJS::Object &object ); + static TTQCanvasPixmap *toTQCanvasPixmap( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasPixmap_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasPixmap_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasPixmap_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPixmap_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPixmap_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPixmap_3( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -92,7 +92,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasPixmap *instance; // Temp + TTQCanvasPixmap *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp b/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp index d3f249d9..73a6f58b 100644 --- a/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspixmaparray_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasPixmapArrayImp::QCanvasPixmapArrayImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasPixmapArrayImp::TQCanvasPixmapArrayImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasPixmapArrayImp::~QCanvasPixmapArrayImp() +TTQCanvasPixmapArrayImp::~TQCanvasPixmapArrayImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasPixmapArrayImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPixmapArrayImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasPixmapArrayImp::addStaticBindings( KJS::ExecState *exec, KJS::Object }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPixmapArrayImp *meth = new QCanvasPixmapArrayImp( exec, methods[idx].id ); + TQCanvasPixmapArrayImp *meth = new TQCanvasPixmapArrayImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasPixmapArrayImp::addStaticBindings( KJS::ExecState *exec, KJS::Object /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasPixmapArrayImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPixmapArrayImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -74,11 +74,11 @@ void QCanvasPixmapArrayImp::addBindings( KJS::ExecState *exec, KJS::Object &obje }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPixmapArrayImp *meth = new QCanvasPixmapArrayImp( exec, methods[idx].id ); + TQCanvasPixmapArrayImp *meth = new TQCanvasPixmapArrayImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -87,82 +87,82 @@ void QCanvasPixmapArrayImp::addBindings( KJS::ExecState *exec, KJS::Object &obje } /** - * Extract a TQCanvasPixmapArray pointer from an Object. + * Extract a TTQCanvasPixmapArray pointer from an Object. */ -TQCanvasPixmapArray *QCanvasPixmapArrayImp::toQCanvasPixmapArray( KJS::Object &self ) +TTQCanvasPixmapArray *TQCanvasPixmapArrayImp::toTQCanvasPixmapArray( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasPixmapArray *>( obj ); + return dynamic_cast<TTQCanvasPixmapArray *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasPixmapArray" ) + if ( op->typeName() != "TTQCanvasPixmapArray" ) return 0; - return op->toNative<TQCanvasPixmapArray>(); + return op->toNative<TTQCanvasPixmapArray>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasPixmapArrayImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapArrayImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasPixmapArray_1: - return QCanvasPixmapArray_1( exec, args ); + return TQCanvasPixmapArray_1( exec, args ); break; case Constructor_QCanvasPixmapArray_2: - return QCanvasPixmapArray_2( exec, args ); + return TQCanvasPixmapArray_2( exec, args ); break; case Constructor_QCanvasPixmapArray_3: - return QCanvasPixmapArray_3( exec, args ); + return TQCanvasPixmapArray_3( exec, args ); break; case Constructor_QCanvasPixmapArray_4: - return QCanvasPixmapArray_4( exec, args ); + return TQCanvasPixmapArray_4( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasPixmapArrayCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasPixmapArrayCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasPixmapArrayImp::QCanvasPixmapArray_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_1( KJS::ExecState *exec, const KJS::List &args ) { - // We should now create an instance of the TQCanvasPixmapArray object + // We should now create an instance of the TTQCanvasPixmapArray object - TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( + TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( ); return KJS::Object(); } -KJS::Object QCanvasPixmapArrayImp::QCanvasPixmapArray_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_2( KJS::ExecState *exec, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); - // We should now create an instance of the TQCanvasPixmapArray object + // We should now create an instance of the TTQCanvasPixmapArray object - TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( + TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( arg0, arg1 ); @@ -170,23 +170,23 @@ KJS::Object QCanvasPixmapArrayImp::QCanvasPixmapArray_2( KJS::ExecState *exec, c } -KJS::Object QCanvasPixmapArrayImp::QCanvasPixmapArray_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_3( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQPtrList< TQPixmap > + // Unsupported parameter TTQPtrList< TTQPixmap > return KJS::Object(); - TQPtrList< TQPixmap > arg0; // Dummy + TTQPtrList< TTQPixmap > arg0; // Dummy - // Unsupported parameter TQPtrList< TQPoint > + // Unsupported parameter TTQPtrList< TTQPoint > return KJS::Object(); - TQPtrList< TQPoint > arg1; // Dummy + TTQPtrList< TTQPoint > arg1; // Dummy - // We should now create an instance of the TQCanvasPixmapArray object + // We should now create an instance of the TTQCanvasPixmapArray object - TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( + TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( arg0, arg1 ); @@ -194,23 +194,23 @@ KJS::Object QCanvasPixmapArrayImp::QCanvasPixmapArray_3( KJS::ExecState *exec, c } -KJS::Object QCanvasPixmapArrayImp::QCanvasPixmapArray_4( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPixmapArrayImp::TQCanvasPixmapArray_4( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQValueList< TQPixmap > + // Unsupported parameter TTQValueList< TTQPixmap > return KJS::Object(); - TQValueList< TQPixmap > arg0; // Dummy + TTQValueList< TTQPixmap > arg0; // Dummy - // Unsupported parameter QPointArray + // Unsupported parameter TQPointArray return KJS::Object(); - TQPointArray arg1; // Dummy + TTQPointArray arg1; // Dummy - // We should now create an instance of the TQCanvasPixmapArray object + // We should now create an instance of the TTQCanvasPixmapArray object - TQCanvasPixmapArray *ret = new TQCanvasPixmapArray( + TTQCanvasPixmapArray *ret = new TTQCanvasPixmapArray( arg0, arg1 ); @@ -218,9 +218,9 @@ KJS::Object QCanvasPixmapArrayImp::QCanvasPixmapArray_4( KJS::ExecState *exec, c } -KJS::Value QCanvasPixmapArrayImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasPixmapArrayImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasPixmapArrayImp::toQCanvasPixmapArray( self ); + instance = TQCanvasPixmapArrayImp::toTQCanvasPixmapArray( self ); switch( id ) { @@ -252,15 +252,15 @@ KJS::Value QCanvasPixmapArrayImp::call( KJS::ExecState *exec, KJS::Object &self, break; } - TQString msg = i18n( "QCanvasPixmapArrayImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasPixmapArrayImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasPixmapArrayImp::readPixmaps_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapArrayImp::readPixmaps_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -272,10 +272,10 @@ KJS::Value QCanvasPixmapArrayImp::readPixmaps_6( KJS::ExecState *exec, KJS::Obje } -KJS::Value QCanvasPixmapArrayImp::readCollisionMasks_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapArrayImp::readCollisionMasks_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); bool ret; ret = instance->readCollisionMasks( @@ -284,7 +284,7 @@ KJS::Value QCanvasPixmapArrayImp::readCollisionMasks_7( KJS::ExecState *exec, KJ } -KJS::Value QCanvasPixmapArrayImp::isValid_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapArrayImp::isValid_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -293,26 +293,26 @@ KJS::Value QCanvasPixmapArrayImp::isValid_9( KJS::ExecState *exec, KJS::Object & } -KJS::Value QCanvasPixmapArrayImp::image_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapArrayImp::image_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->image( arg0 ); - return KJS::Value(); // Returns 'TQCanvasPixmap *' + return KJS::Value(); // Returns 'TTQCanvasPixmap *' } -KJS::Value QCanvasPixmapArrayImp::setImage_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapArrayImp::setImage_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - // Unsupported parameter TQCanvasPixmap * + // Unsupported parameter TTQCanvasPixmap * return KJS::Value(); - TQCanvasPixmap * arg1; // Dummy + TTQCanvasPixmap * arg1; // Dummy instance->setImage( arg0, @@ -321,7 +321,7 @@ KJS::Value QCanvasPixmapArrayImp::setImage_11( KJS::ExecState *exec, KJS::Object } -KJS::Value QCanvasPixmapArrayImp::count_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPixmapArrayImp::count_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { uint ret; diff --git a/kjsembed/qtbindings/qcanvaspixmaparray_imp.h b/kjsembed/qtbindings/qcanvaspixmaparray_imp.h index c1dba541..32fd3d96 100644 --- a/kjsembed/qtbindings/qcanvaspixmaparray_imp.h +++ b/kjsembed/qtbindings/qcanvaspixmaparray_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasPixmapArray; +class TTQCanvasPixmapArray; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasPixmapArray; namespace KJSEmbed { /** - * Wrapper class for TQCanvasPixmapArray methods. + * Wrapper class for TTQCanvasPixmapArray methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasPixmapArrayImp : public JSProxyImp +class TQCanvasPixmapArrayImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -46,8 +46,8 @@ public: Method_Last = -1 }; - QCanvasPixmapArrayImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasPixmapArrayImp(); + TQCanvasPixmapArrayImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasPixmapArrayImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -61,16 +61,16 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasPixmapArray *toQCanvasPixmapArray( KJS::Object &object ); + static TTQCanvasPixmapArray *toTQCanvasPixmapArray( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasPixmapArray_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasPixmapArray_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasPixmapArray_3( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasPixmapArray_4( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPixmapArray_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPixmapArray_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPixmapArray_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPixmapArray_4( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -100,7 +100,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasPixmapArray *instance; // Temp + TTQCanvasPixmapArray *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspolygon_imp.cpp b/kjsembed/qtbindings/qcanvaspolygon_imp.cpp index 4064e3f0..37109043 100644 --- a/kjsembed/qtbindings/qcanvaspolygon_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspolygon_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasPolygonImp::QCanvasPolygonImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasPolygonImp::TQCanvasPolygonImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasPolygonImp::~QCanvasPolygonImp() +TTQCanvasPolygonImp::~TQCanvasPolygonImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasPolygonImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPolygonImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasPolygonImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPolygonImp *meth = new QCanvasPolygonImp( exec, methods[idx].id ); + TQCanvasPolygonImp *meth = new TQCanvasPolygonImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasPolygonImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -73,11 +73,11 @@ void QCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPolygonImp *meth = new QCanvasPolygonImp( exec, methods[idx].id ); + TQCanvasPolygonImp *meth = new TQCanvasPolygonImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -86,68 +86,68 @@ void QCanvasPolygonImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasPolygon pointer from an Object. + * Extract a TTQCanvasPolygon pointer from an Object. */ -TQCanvasPolygon *QCanvasPolygonImp::toQCanvasPolygon( KJS::Object &self ) +TTQCanvasPolygon *TQCanvasPolygonImp::toTQCanvasPolygon( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasPolygon *>( obj ); + return dynamic_cast<TTQCanvasPolygon *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasPolygon" ) + if ( op->typeName() != "TTQCanvasPolygon" ) return 0; - return op->toNative<TQCanvasPolygon>(); + return op->toNative<TTQCanvasPolygon>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasPolygonImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPolygonImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasPolygon_1: - return QCanvasPolygon_1( exec, args ); + return TQCanvasPolygon_1( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasPolygonCons has no constructor with id '%1',").arg(id); + TTQString msg = i18n("TQCanvasPolygonCons has no constructor with id '%1',").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasPolygonImp::QCanvasPolygon_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPolygonImp::TQCanvasPolygon_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasPolygon object + // We should now create an instance of the TTQCanvasPolygon object - TQCanvasPolygon *ret = new TQCanvasPolygon( + TTQCanvasPolygon *ret = new TTQCanvasPolygon( arg0 ); } -KJS::Value QCanvasPolygonImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasPolygonImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasPolygonImp::toQCanvasPolygon( self ); + instance = TQCanvasPolygonImp::toTQCanvasPolygon( self ); switch( id ) { @@ -175,18 +175,18 @@ KJS::Value QCanvasPolygonImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TQString msg = i18n( "QCanvasPolygonImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasPolygonImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasPolygonImp::setPoints_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonImp::setPoints_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QPointArray + // Unsupported parameter TQPointArray return KJS::Value(); - TQPointArray arg0; // Dummy + TTQPointArray arg0; // Dummy instance->setPoints( arg0 ); @@ -194,15 +194,15 @@ KJS::Value QCanvasPolygonImp::setPoints_3( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasPolygonImp::points_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonImp::points_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->points( ); - return KJS::Value(); // Returns 'QPointArray' + return KJS::Value(); // Returns 'TQPointArray' } -KJS::Value QCanvasPolygonImp::moveBy_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonImp::moveBy_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -216,15 +216,15 @@ KJS::Value QCanvasPolygonImp::moveBy_5( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasPolygonImp::areaPoints_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonImp::areaPoints_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->areaPoints( ); - return KJS::Value(); // Returns 'QPointArray' + return KJS::Value(); // Returns 'TQPointArray' } -KJS::Value QCanvasPolygonImp::rtti_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonImp::rtti_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; diff --git a/kjsembed/qtbindings/qcanvaspolygon_imp.h b/kjsembed/qtbindings/qcanvaspolygon_imp.h index 98398bf0..aadcdf7f 100644 --- a/kjsembed/qtbindings/qcanvaspolygon_imp.h +++ b/kjsembed/qtbindings/qcanvaspolygon_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasPolygon; +class TTQCanvasPolygon; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasPolygon; namespace KJSEmbed { /** - * Wrapper class for TQCanvasPolygon methods. + * Wrapper class for TTQCanvasPolygon methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasPolygonImp : public JSProxyImp +class TQCanvasPolygonImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -42,8 +42,8 @@ public: Method_Last = -1 }; - QCanvasPolygonImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasPolygonImp(); + TQCanvasPolygonImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasPolygonImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -57,13 +57,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasPolygon *toQCanvasPolygon( KJS::Object &object ); + static TTQCanvasPolygon *toTQCanvasPolygon( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasPolygon_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPolygon_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -92,7 +92,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasPolygon *instance; // Temp + TTQCanvasPolygon *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp index 64500a9b..8dc06e3a 100644 --- a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp +++ b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasPolygonalItemImp::QCanvasPolygonalItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasPolygonalItemImp::TQCanvasPolygonalItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasPolygonalItemImp::~QCanvasPolygonalItemImp() +TTQCanvasPolygonalItemImp::~TQCanvasPolygonalItemImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasPolygonalItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPolygonalItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasPolygonalItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Obje }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPolygonalItemImp *meth = new QCanvasPolygonalItemImp( exec, methods[idx].id ); + TQCanvasPolygonalItemImp *meth = new TQCanvasPolygonalItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasPolygonalItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Obje /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasPolygonalItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasPolygonalItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -77,11 +77,11 @@ void QCanvasPolygonalItemImp::addBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasPolygonalItemImp *meth = new QCanvasPolygonalItemImp( exec, methods[idx].id ); + TQCanvasPolygonalItemImp *meth = new TQCanvasPolygonalItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -90,61 +90,61 @@ void QCanvasPolygonalItemImp::addBindings( KJS::ExecState *exec, KJS::Object &ob } /** - * Extract a TQCanvasPolygonalItem pointer from an Object. + * Extract a TTQCanvasPolygonalItem pointer from an Object. */ -TQCanvasPolygonalItem *QCanvasPolygonalItemImp::toQCanvasPolygonalItem( KJS::Object &self ) +TTQCanvasPolygonalItem *TQCanvasPolygonalItemImp::toTQCanvasPolygonalItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasPolygonalItem *>( obj ); + return dynamic_cast<TTQCanvasPolygonalItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasPolygonalItem" ) + if ( op->typeName() != "TTQCanvasPolygonalItem" ) return 0; - return op->toNative<TQCanvasPolygonalItem>(); + return op->toNative<TTQCanvasPolygonalItem>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasPolygonalItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPolygonalItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasPolygonalItem_1: - return QCanvasPolygonalItem_1( exec, args ); + return TQCanvasPolygonalItem_1( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasPolygonalItemCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasPolygonalItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasPolygonalItemImp::QCanvasPolygonalItem_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasPolygonalItemImp::TQCanvasPolygonalItem_1( KJS::ExecState *exec, const KJS::List &args ) { #if 0 // This constructor has been disabled by the XSL template - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasPolygonalItem object + // We should now create an instance of the TTQCanvasPolygonalItem object - TQCanvasPolygonalItem *ret = new TQCanvasPolygonalItem( + TTQCanvasPolygonalItem *ret = new TTQCanvasPolygonalItem( arg0 ); @@ -153,9 +153,9 @@ KJS::Object QCanvasPolygonalItemImp::QCanvasPolygonalItem_1( KJS::ExecState *exe return KJS::Object(); } -KJS::Value QCanvasPolygonalItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasPolygonalItemImp::toQCanvasPolygonalItem( self ); + instance = TQCanvasPolygonalItemImp::toTQCanvasPolygonalItem( self ); switch( id ) { @@ -199,18 +199,18 @@ KJS::Value QCanvasPolygonalItemImp::call( KJS::ExecState *exec, KJS::Object &sel break; } - TQString msg = i18n( "QCanvasPolygonalItemImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasPolygonalItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasPolygonalItemImp::collidesWith_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::collidesWith_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQCanvasItem * + // Unsupported parameter const TTQCanvasItem * return KJS::Value(); - const TQCanvasItem * arg0; // Dummy + const TTQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -219,13 +219,13 @@ KJS::Value QCanvasPolygonalItemImp::collidesWith_3( KJS::ExecState *exec, KJS::O } -KJS::Value QCanvasPolygonalItemImp::setPen_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::setPen_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QPen + // Unsupported parameter TQPen return KJS::Value(); - TQPen arg0; // Dummy + TTQPen arg0; // Dummy instance->setPen( arg0 ); @@ -233,13 +233,13 @@ KJS::Value QCanvasPolygonalItemImp::setPen_4( KJS::ExecState *exec, KJS::Object } -KJS::Value QCanvasPolygonalItemImp::setBrush_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::setBrush_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QBrush + // Unsupported parameter TQBrush return KJS::Value(); - TQBrush arg0; // Dummy + TTQBrush arg0; // Dummy instance->setBrush( arg0 ); @@ -247,50 +247,50 @@ KJS::Value QCanvasPolygonalItemImp::setBrush_5( KJS::ExecState *exec, KJS::Objec } -KJS::Value QCanvasPolygonalItemImp::pen_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::pen_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPen ret; + TTQPen ret; ret = instance->pen( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasPolygonalItemImp::brush_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::brush_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQBrush ret; + TTQBrush ret; ret = instance->brush( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasPolygonalItemImp::areaPoints_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::areaPoints_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->areaPoints( ); - return KJS::Value(); // Returns 'QPointArray' + return KJS::Value(); // Returns 'TQPointArray' } -KJS::Value QCanvasPolygonalItemImp::areaPointsAdvanced_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::areaPointsAdvanced_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->areaPointsAdvanced( ); - return KJS::Value(); // Returns 'QPointArray' + return KJS::Value(); // Returns 'TQPointArray' } -KJS::Value QCanvasPolygonalItemImp::boundingRect_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::boundingRect_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect ret; + TTQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasPolygonalItemImp::rtti_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasPolygonalItemImp::rtti_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; diff --git a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h index 389ed346..80ff4445 100644 --- a/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h +++ b/kjsembed/qtbindings/qcanvaspolygonalitem_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasPolygonalItem; +class TTQCanvasPolygonalItem; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasPolygonalItem; namespace KJSEmbed { /** - * Wrapper class for TQCanvasPolygonalItem methods. + * Wrapper class for TTQCanvasPolygonalItem methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasPolygonalItemImp : public JSProxyImp +class TQCanvasPolygonalItemImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -46,8 +46,8 @@ public: Method_Last = -1 }; - QCanvasPolygonalItemImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasPolygonalItemImp(); + TQCanvasPolygonalItemImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasPolygonalItemImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -61,13 +61,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasPolygonalItem *toQCanvasPolygonalItem( KJS::Object &object ); + static TTQCanvasPolygonalItem *toTQCanvasPolygonalItem( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasPolygonalItem_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasPolygonalItem_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -100,7 +100,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasPolygonalItem *instance; // Temp + TTQCanvasPolygonalItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasrectangle_imp.cpp b/kjsembed/qtbindings/qcanvasrectangle_imp.cpp index 72c7ee08..19564e7b 100644 --- a/kjsembed/qtbindings/qcanvasrectangle_imp.cpp +++ b/kjsembed/qtbindings/qcanvasrectangle_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasRectangleImp::QCanvasRectangleImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasRectangleImp::TQCanvasRectangleImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasRectangleImp::~QCanvasRectangleImp() +TTQCanvasRectangleImp::~TQCanvasRectangleImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasRectangleImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasRectangleImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasRectangleImp::addStaticBindings( KJS::ExecState *exec, KJS::Object & }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasRectangleImp *meth = new QCanvasRectangleImp( exec, methods[idx].id ); + TQCanvasRectangleImp *meth = new TQCanvasRectangleImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasRectangleImp::addStaticBindings( KJS::ExecState *exec, KJS::Object & /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -76,11 +76,11 @@ void QCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasRectangleImp *meth = new QCanvasRectangleImp( exec, methods[idx].id ); + TQCanvasRectangleImp *meth = new TQCanvasRectangleImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -89,87 +89,87 @@ void QCanvasRectangleImp::addBindings( KJS::ExecState *exec, KJS::Object &object } /** - * Extract a TQCanvasRectangle pointer from an Object. + * Extract a TTQCanvasRectangle pointer from an Object. */ -TQCanvasRectangle *QCanvasRectangleImp::toQCanvasRectangle( KJS::Object &self ) +TTQCanvasRectangle *TQCanvasRectangleImp::toTQCanvasRectangle( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasRectangle *>( obj ); + return dynamic_cast<TTQCanvasRectangle *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasRectangle" ) + if ( op->typeName() != "TTQCanvasRectangle" ) return 0; - return op->toNative<TQCanvasRectangle>(); + return op->toNative<TTQCanvasRectangle>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasRectangleImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasRectangleImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasRectangle_1: - return QCanvasRectangle_1( exec, args ); + return TQCanvasRectangle_1( exec, args ); break; case Constructor_QCanvasRectangle_2: - return QCanvasRectangle_2( exec, args ); + return TQCanvasRectangle_2( exec, args ); break; case Constructor_QCanvasRectangle_3: - return QCanvasRectangle_3( exec, args ); + return TQCanvasRectangle_3( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasRectangleCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasRectangleCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasRectangleImp::QCanvasRectangle_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasRectangleImp::TQCanvasRectangle_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasRectangle object + // We should now create an instance of the TTQCanvasRectangle object - TQCanvasRectangle *ret = new TQCanvasRectangle( + TTQCanvasRectangle *ret = new TTQCanvasRectangle( arg0 ); } -KJS::Object QCanvasRectangleImp::QCanvasRectangle_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasRectangleImp::TQCanvasRectangle_2( KJS::ExecState *exec, const KJS::List &args ) { - TQRect arg0 = extractQRect(exec, args, 0); + TTQRect arg0 = extractTQRect(exec, args, 0); - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg1; // Dummy + TTQCanvas * arg1; // Dummy - // We should now create an instance of the TQCanvasRectangle object + // We should now create an instance of the TTQCanvasRectangle object - TQCanvasRectangle *ret = new TQCanvasRectangle( + TTQCanvasRectangle *ret = new TTQCanvasRectangle( arg0, arg1 ); @@ -177,7 +177,7 @@ KJS::Object QCanvasRectangleImp::QCanvasRectangle_2( KJS::ExecState *exec, const } -KJS::Object QCanvasRectangleImp::QCanvasRectangle_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasRectangleImp::TQCanvasRectangle_3( KJS::ExecState *exec, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -188,15 +188,15 @@ KJS::Object QCanvasRectangleImp::QCanvasRectangle_3( KJS::ExecState *exec, const int arg3 = extractInt(exec, args, 3); - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg4; // Dummy + TTQCanvas * arg4; // Dummy - // We should now create an instance of the TQCanvasRectangle object + // We should now create an instance of the TTQCanvasRectangle object - TQCanvasRectangle *ret = new TQCanvasRectangle( + TTQCanvasRectangle *ret = new TTQCanvasRectangle( arg0, arg1, @@ -207,9 +207,9 @@ KJS::Object QCanvasRectangleImp::QCanvasRectangle_3( KJS::ExecState *exec, const } -KJS::Value QCanvasRectangleImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasRectangleImp::toQCanvasRectangle( self ); + instance = TQCanvasRectangleImp::toTQCanvasRectangle( self ); switch( id ) { @@ -249,12 +249,12 @@ KJS::Value QCanvasRectangleImp::call( KJS::ExecState *exec, KJS::Object &self, c break; } - TQString msg = i18n( "QCanvasRectangleImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasRectangleImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasRectangleImp::width_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::width_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -263,7 +263,7 @@ KJS::Value QCanvasRectangleImp::width_5( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasRectangleImp::height_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::height_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -272,7 +272,7 @@ KJS::Value QCanvasRectangleImp::height_6( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasRectangleImp::setSize_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::setSize_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -286,39 +286,39 @@ KJS::Value QCanvasRectangleImp::setSize_7( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasRectangleImp::size_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::size_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQSize ret; + TTQSize ret; ret = instance->size( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasRectangleImp::areaPoints_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::areaPoints_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->areaPoints( ); - return KJS::Value(); // Returns 'QPointArray' + return KJS::Value(); // Returns 'TQPointArray' } -KJS::Value QCanvasRectangleImp::rect_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::rect_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect ret; + TTQRect ret; ret = instance->rect( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasRectangleImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQCanvasItem * + // Unsupported parameter const TTQCanvasItem * return KJS::Value(); - const TQCanvasItem * arg0; // Dummy + const TTQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -327,7 +327,7 @@ KJS::Value QCanvasRectangleImp::collidesWith_11( KJS::ExecState *exec, KJS::Obje } -KJS::Value QCanvasRectangleImp::rtti_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasRectangleImp::rtti_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; diff --git a/kjsembed/qtbindings/qcanvasrectangle_imp.h b/kjsembed/qtbindings/qcanvasrectangle_imp.h index 1e141fe2..3daf243a 100644 --- a/kjsembed/qtbindings/qcanvasrectangle_imp.h +++ b/kjsembed/qtbindings/qcanvasrectangle_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasRectangle; +class TTQCanvasRectangle; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasRectangle; namespace KJSEmbed { /** - * Wrapper class for TQCanvasRectangle methods. + * Wrapper class for TTQCanvasRectangle methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasRectangleImp : public JSProxyImp +class TQCanvasRectangleImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -47,8 +47,8 @@ public: Method_Last = -1 }; - QCanvasRectangleImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasRectangleImp(); + TQCanvasRectangleImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasRectangleImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -62,15 +62,15 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasRectangle *toQCanvasRectangle( KJS::Object &object ); + static TTQCanvasRectangle *toTQCanvasRectangle( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasRectangle_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasRectangle_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasRectangle_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasRectangle_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasRectangle_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasRectangle_3( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -102,7 +102,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasRectangle *instance; // Temp + TTQCanvasRectangle *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasspline_imp.cpp b/kjsembed/qtbindings/qcanvasspline_imp.cpp index 54edeb8f..26e4c4c7 100644 --- a/kjsembed/qtbindings/qcanvasspline_imp.cpp +++ b/kjsembed/qtbindings/qcanvasspline_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasSplineImp::QCanvasSplineImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasSplineImp::TQCanvasSplineImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasSplineImp::~QCanvasSplineImp() +TTQCanvasSplineImp::~TQCanvasSplineImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasSplineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasSplineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasSplineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasSplineImp *meth = new QCanvasSplineImp( exec, methods[idx].id ); + TQCanvasSplineImp *meth = new TQCanvasSplineImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasSplineImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasSplineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasSplineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -72,11 +72,11 @@ void QCanvasSplineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasSplineImp *meth = new QCanvasSplineImp( exec, methods[idx].id ); + TQCanvasSplineImp *meth = new TQCanvasSplineImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -85,68 +85,68 @@ void QCanvasSplineImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasSpline pointer from an Object. + * Extract a TTQCanvasSpline pointer from an Object. */ -TQCanvasSpline *QCanvasSplineImp::toQCanvasSpline( KJS::Object &self ) +TTQCanvasSpline *TQCanvasSplineImp::toTQCanvasSpline( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasSpline *>( obj ); + return dynamic_cast<TTQCanvasSpline *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasSpline" ) + if ( op->typeName() != "TTQCanvasSpline" ) return 0; - return op->toNative<TQCanvasSpline>(); + return op->toNative<TTQCanvasSpline>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasSplineImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasSplineImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasSpline_1: - return QCanvasSpline_1( exec, args ); + return TQCanvasSpline_1( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasSplineCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasSplineCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasSplineImp::QCanvasSpline_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasSplineImp::TQCanvasSpline_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasSpline object + // We should now create an instance of the TTQCanvasSpline object - TQCanvasSpline *ret = new TQCanvasSpline( + TTQCanvasSpline *ret = new TTQCanvasSpline( arg0 ); } -KJS::Value QCanvasSplineImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasSplineImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasSplineImp::toQCanvasSpline( self ); + instance = TQCanvasSplineImp::toTQCanvasSpline( self ); switch( id ) { @@ -170,18 +170,18 @@ KJS::Value QCanvasSplineImp::call( KJS::ExecState *exec, KJS::Object &self, cons break; } - TQString msg = i18n( "QCanvasSplineImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasSplineImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasSplineImp::setControlPoints_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSplineImp::setControlPoints_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter QPointArray + // Unsupported parameter TQPointArray return KJS::Value(); - TQPointArray arg0; // Dummy + TTQPointArray arg0; // Dummy bool arg1 = extractBool(exec, args, 1); @@ -192,15 +192,15 @@ KJS::Value QCanvasSplineImp::setControlPoints_3( KJS::ExecState *exec, KJS::Obje } -KJS::Value QCanvasSplineImp::controlPoints_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSplineImp::controlPoints_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->controlPoints( ); - return KJS::Value(); // Returns 'QPointArray' + return KJS::Value(); // Returns 'TQPointArray' } -KJS::Value QCanvasSplineImp::closed_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSplineImp::closed_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -209,7 +209,7 @@ KJS::Value QCanvasSplineImp::closed_5( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasSplineImp::rtti_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSplineImp::rtti_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; diff --git a/kjsembed/qtbindings/qcanvasspline_imp.h b/kjsembed/qtbindings/qcanvasspline_imp.h index 73f87999..be3a29ea 100644 --- a/kjsembed/qtbindings/qcanvasspline_imp.h +++ b/kjsembed/qtbindings/qcanvasspline_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasSpline; +class TTQCanvasSpline; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasSpline; namespace KJSEmbed { /** - * Wrapper class for TQCanvasSpline methods. + * Wrapper class for TTQCanvasSpline methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasSplineImp : public JSProxyImp +class TQCanvasSplineImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -41,8 +41,8 @@ public: Method_Last = -1 }; - QCanvasSplineImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasSplineImp(); + TQCanvasSplineImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasSplineImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -56,13 +56,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasSpline *toQCanvasSpline( KJS::Object &object ); + static TTQCanvasSpline *toTQCanvasSpline( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasSpline_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasSpline_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -90,7 +90,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasSpline *instance; // Temp + TTQCanvasSpline *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvassprite_imp.cpp b/kjsembed/qtbindings/qcanvassprite_imp.cpp index 7d9898b3..d4c8dc23 100644 --- a/kjsembed/qtbindings/qcanvassprite_imp.cpp +++ b/kjsembed/qtbindings/qcanvassprite_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasSpriteImp::QCanvasSpriteImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasSpriteImp::TQCanvasSpriteImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasSpriteImp::~QCanvasSpriteImp() +TTQCanvasSpriteImp::~TQCanvasSpriteImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasSpriteImp *meth = new QCanvasSpriteImp( exec, methods[idx].id ); + TQCanvasSpriteImp *meth = new TQCanvasSpriteImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -66,8 +66,8 @@ void QCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj EnumValue enums[] = { // enum FrameAnimationType - { "Cycle", TQCanvasSprite::Cycle }, - { "Oscillate", TQCanvasSprite::Oscillate }, + { "Cycle", TTQCanvasSprite::Cycle }, + { "Oscillate", TTQCanvasSprite::Oscillate }, { 0, 0 } }; @@ -82,7 +82,7 @@ void QCanvasSpriteImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -115,11 +115,11 @@ void QCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasSpriteImp *meth = new QCanvasSpriteImp( exec, methods[idx].id ); + TQCanvasSpriteImp *meth = new TQCanvasSpriteImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -128,64 +128,64 @@ void QCanvasSpriteImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasSprite pointer from an Object. + * Extract a TTQCanvasSprite pointer from an Object. */ -TQCanvasSprite *QCanvasSpriteImp::toQCanvasSprite( KJS::Object &self ) +TTQCanvasSprite *TQCanvasSpriteImp::toTQCanvasSprite( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasSprite *>( obj ); + return dynamic_cast<TTQCanvasSprite *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasSprite" ) + if ( op->typeName() != "TTQCanvasSprite" ) return 0; - return op->toNative<TQCanvasSprite>(); + return op->toNative<TTQCanvasSprite>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasSpriteImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasSpriteImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasSprite_1: - return QCanvasSprite_1( exec, args ); + return TQCanvasSprite_1( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasSpriteCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasSpriteCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasSpriteImp::QCanvasSprite_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasSpriteImp::TQCanvasSprite_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQCanvasPixmapArray * + // Unsupported parameter TTQCanvasPixmapArray * return KJS::Object(); - TQCanvasPixmapArray * arg0; // Dummy + TTQCanvasPixmapArray * arg0; // Dummy - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg1; // Dummy + TTQCanvas * arg1; // Dummy - // We should now create an instance of the TQCanvasSprite object + // We should now create an instance of the TTQCanvasSprite object - TQCanvasSprite *ret = new TQCanvasSprite( + TTQCanvasSprite *ret = new TTQCanvasSprite( arg0, arg1 ); @@ -193,9 +193,9 @@ KJS::Object QCanvasSpriteImp::QCanvasSprite_1( KJS::ExecState *exec, const KJS:: } -KJS::Value QCanvasSpriteImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasSpriteImp::toQCanvasSprite( self ); + instance = TQCanvasSpriteImp::toTQCanvasSprite( self ); switch( id ) { @@ -303,18 +303,18 @@ KJS::Value QCanvasSpriteImp::call( KJS::ExecState *exec, KJS::Object &self, cons break; } - TQString msg = i18n( "QCanvasSpriteImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasSpriteImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasSpriteImp::setSequence_2( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::setSequence_2( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvasPixmapArray * + // Unsupported parameter TTQCanvasPixmapArray * return KJS::Value(); - TQCanvasPixmapArray * arg0; // Dummy + TTQCanvasPixmapArray * arg0; // Dummy instance->setSequence( arg0 ); @@ -322,7 +322,7 @@ KJS::Value QCanvasSpriteImp::setSequence_2( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasSpriteImp::move_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::move_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -336,7 +336,7 @@ KJS::Value QCanvasSpriteImp::move_4( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QCanvasSpriteImp::move_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::move_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -353,7 +353,7 @@ KJS::Value QCanvasSpriteImp::move_5( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QCanvasSpriteImp::setFrame_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::setFrame_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -364,10 +364,10 @@ KJS::Value QCanvasSpriteImp::setFrame_6( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasSpriteImp::setFrameAnimation_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::setFrameAnimation_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQCanvasSprite::FrameAnimationType arg0 = TQCanvasSprite::Cycle; // TODO (hack for TQCanvasSprite) + TTQCanvasSprite::FrameAnimationType arg0 = TTQCanvasSprite::Cycle; // TODO (hack for TTQCanvasSprite) int arg1 = extractInt(exec, args, 1); @@ -381,7 +381,7 @@ KJS::Value QCanvasSpriteImp::setFrameAnimation_7( KJS::ExecState *exec, KJS::Obj } -KJS::Value QCanvasSpriteImp::frame_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::frame_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -390,7 +390,7 @@ KJS::Value QCanvasSpriteImp::frame_8( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasSpriteImp::frameCount_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::frameCount_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -399,7 +399,7 @@ KJS::Value QCanvasSpriteImp::frameCount_9( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasSpriteImp::rtti_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::rtti_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -408,13 +408,13 @@ KJS::Value QCanvasSpriteImp::rtti_10( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasSpriteImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::collidesWith_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQCanvasItem * + // Unsupported parameter const TTQCanvasItem * return KJS::Value(); - const TQCanvasItem * arg0; // Dummy + const TTQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -423,16 +423,16 @@ KJS::Value QCanvasSpriteImp::collidesWith_11( KJS::ExecState *exec, KJS::Object } -KJS::Value QCanvasSpriteImp::boundingRect_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::boundingRect_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect ret; + TTQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasSpriteImp::width_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::width_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -441,7 +441,7 @@ KJS::Value QCanvasSpriteImp::width_13( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasSpriteImp::height_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::height_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -450,7 +450,7 @@ KJS::Value QCanvasSpriteImp::height_14( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasSpriteImp::leftEdge_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::leftEdge_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -459,7 +459,7 @@ KJS::Value QCanvasSpriteImp::leftEdge_15( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasSpriteImp::topEdge_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::topEdge_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -468,7 +468,7 @@ KJS::Value QCanvasSpriteImp::topEdge_16( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasSpriteImp::rightEdge_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::rightEdge_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -477,7 +477,7 @@ KJS::Value QCanvasSpriteImp::rightEdge_17( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasSpriteImp::bottomEdge_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::bottomEdge_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -486,7 +486,7 @@ KJS::Value QCanvasSpriteImp::bottomEdge_18( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasSpriteImp::leftEdge_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::leftEdge_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -498,7 +498,7 @@ KJS::Value QCanvasSpriteImp::leftEdge_19( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QCanvasSpriteImp::topEdge_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::topEdge_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -510,7 +510,7 @@ KJS::Value QCanvasSpriteImp::topEdge_20( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasSpriteImp::rightEdge_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::rightEdge_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -522,7 +522,7 @@ KJS::Value QCanvasSpriteImp::rightEdge_21( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QCanvasSpriteImp::bottomEdge_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::bottomEdge_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -534,34 +534,34 @@ KJS::Value QCanvasSpriteImp::bottomEdge_22( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasSpriteImp::image_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::image_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->image( ); - return KJS::Value(); // Returns 'TQCanvasPixmap *' + return KJS::Value(); // Returns 'TTQCanvasPixmap *' } -KJS::Value QCanvasSpriteImp::imageAdvanced_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::imageAdvanced_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->imageAdvanced( ); - return KJS::Value(); // Returns 'TQCanvasPixmap *' + return KJS::Value(); // Returns 'TTQCanvasPixmap *' } -KJS::Value QCanvasSpriteImp::image_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::image_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->image( arg0 ); - return KJS::Value(); // Returns 'TQCanvasPixmap *' + return KJS::Value(); // Returns 'TTQCanvasPixmap *' } -KJS::Value QCanvasSpriteImp::advance_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::advance_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -572,10 +572,10 @@ KJS::Value QCanvasSpriteImp::advance_26( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasSpriteImp::draw_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasSpriteImp::draw_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPainter arg0; // TODO (hack for qcanvas) + TTQPainter arg0; // TODO (hack for qcanvas) instance->draw( arg0 ); diff --git a/kjsembed/qtbindings/qcanvassprite_imp.h b/kjsembed/qtbindings/qcanvassprite_imp.h index 4fe40dc1..969cd9cf 100644 --- a/kjsembed/qtbindings/qcanvassprite_imp.h +++ b/kjsembed/qtbindings/qcanvassprite_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasSprite; +class TTQCanvasSprite; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasSprite; namespace KJSEmbed { /** - * Wrapper class for TQCanvasSprite methods. + * Wrapper class for TTQCanvasSprite methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasSpriteImp : public JSProxyImp +class TQCanvasSpriteImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -62,8 +62,8 @@ public: Method_Last = -1 }; - QCanvasSpriteImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasSpriteImp(); + TQCanvasSpriteImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasSpriteImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -77,13 +77,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasSprite *toQCanvasSprite( KJS::Object &object ); + static TTQCanvasSprite *toTQCanvasSprite( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasSprite_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasSprite_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -132,7 +132,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasSprite *instance; // Temp + TTQCanvasSprite *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvastext_imp.cpp b/kjsembed/qtbindings/qcanvastext_imp.cpp index 44db9795..bb1c00ce 100644 --- a/kjsembed/qtbindings/qcanvastext_imp.cpp +++ b/kjsembed/qtbindings/qcanvastext_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasTextImp::QCanvasTextImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasTextImp::TQCanvasTextImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasTextImp::~QCanvasTextImp() +TTQCanvasTextImp::~TQCanvasTextImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasTextImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasTextImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasTextImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasTextImp *meth = new QCanvasTextImp( exec, methods[idx].id ); + TQCanvasTextImp *meth = new TQCanvasTextImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasTextImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasTextImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasTextImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -80,11 +80,11 @@ void QCanvasTextImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasTextImp *meth = new QCanvasTextImp( exec, methods[idx].id ); + TQCanvasTextImp *meth = new TQCanvasTextImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -93,87 +93,87 @@ void QCanvasTextImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasText pointer from an Object. + * Extract a TTQCanvasText pointer from an Object. */ -TQCanvasText *QCanvasTextImp::toQCanvasText( KJS::Object &self ) +TTQCanvasText *TQCanvasTextImp::toTQCanvasText( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasText *>( obj ); + return dynamic_cast<TTQCanvasText *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasText" ) + if ( op->typeName() != "TTQCanvasText" ) return 0; - return op->toNative<TQCanvasText>(); + return op->toNative<TTQCanvasText>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasTextImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasTextImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasText_1: - return QCanvasText_1( exec, args ); + return TQCanvasText_1( exec, args ); break; case Constructor_QCanvasText_2: - return QCanvasText_2( exec, args ); + return TQCanvasText_2( exec, args ); break; case Constructor_QCanvasText_3: - return QCanvasText_3( exec, args ); + return TQCanvasText_3( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasTextCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasTextCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasTextImp::QCanvasText_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasTextImp::TQCanvasText_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy - // We should now create an instance of the TQCanvasText object + // We should now create an instance of the TTQCanvasText object - TQCanvasText *ret = new TQCanvasText( + TTQCanvasText *ret = new TTQCanvasText( arg0 ); } -KJS::Object QCanvasTextImp::QCanvasText_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasTextImp::TQCanvasText_2( KJS::ExecState *exec, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg1; // Dummy + TTQCanvas * arg1; // Dummy - // We should now create an instance of the TQCanvasText object + // We should now create an instance of the TTQCanvasText object - TQCanvasText *ret = new TQCanvasText( + TTQCanvasText *ret = new TTQCanvasText( arg0, arg1 ); @@ -181,25 +181,25 @@ KJS::Object QCanvasTextImp::QCanvasText_2( KJS::ExecState *exec, const KJS::List } -KJS::Object QCanvasTextImp::QCanvasText_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasTextImp::TQCanvasText_3( KJS::ExecState *exec, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter QFont + // Unsupported parameter TQFont return KJS::Object(); - TQFont arg1; // Dummy + TTQFont arg1; // Dummy - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Object(); - TQCanvas * arg2; // Dummy + TTQCanvas * arg2; // Dummy - // We should now create an instance of the TQCanvasText object + // We should now create an instance of the TTQCanvasText object - TQCanvasText *ret = new TQCanvasText( + TTQCanvasText *ret = new TTQCanvasText( arg0, arg1, @@ -208,9 +208,9 @@ KJS::Object QCanvasTextImp::QCanvasText_3( KJS::ExecState *exec, const KJS::List } -KJS::Value QCanvasTextImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasTextImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasTextImp::toQCanvasText( self ); + instance = TQCanvasTextImp::toTQCanvasText( self ); switch( id ) { @@ -266,15 +266,15 @@ KJS::Value QCanvasTextImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TQString msg = i18n( "QCanvasTextImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasTextImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasTextImp::setText_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::setText_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); instance->setText( arg0 ); @@ -282,10 +282,10 @@ KJS::Value QCanvasTextImp::setText_5( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasTextImp::setFont_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::setFont_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQFont arg0 = extractQFont(exec, args, 0); + TTQFont arg0 = extractTQFont(exec, args, 0); instance->setFont( arg0 ); @@ -293,10 +293,10 @@ KJS::Value QCanvasTextImp::setFont_6( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasTextImp::setColor_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::setColor_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQColor arg0 = extractQColor(exec, args, 0); + TTQColor arg0 = extractTQColor(exec, args, 0); instance->setColor( arg0 ); @@ -304,32 +304,32 @@ KJS::Value QCanvasTextImp::setColor_7( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCanvasTextImp::text_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::text_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->text( ); return KJS::String( ret ); } -KJS::Value QCanvasTextImp::font_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::font_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->font( ); - return KJS::Value(); // Returns 'QFont' + return KJS::Value(); // Returns 'TQFont' } -KJS::Value QCanvasTextImp::color_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::color_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->color( ); - return KJS::Value(); // Returns 'QColor' + return KJS::Value(); // Returns 'TQColor' } -KJS::Value QCanvasTextImp::moveBy_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::moveBy_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { double arg0 = extractDouble(exec, args, 0); @@ -343,7 +343,7 @@ KJS::Value QCanvasTextImp::moveBy_11( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QCanvasTextImp::textFlags_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::textFlags_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -352,7 +352,7 @@ KJS::Value QCanvasTextImp::textFlags_12( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasTextImp::setTextFlags_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::setTextFlags_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -363,22 +363,22 @@ KJS::Value QCanvasTextImp::setTextFlags_13( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasTextImp::boundingRect_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::boundingRect_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQRect ret; + TTQRect ret; ret = instance->boundingRect( ); return convertToValue( exec, ret ); } -KJS::Value QCanvasTextImp::collidesWith_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::collidesWith_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQCanvasItem * + // Unsupported parameter const TTQCanvasItem * return KJS::Value(); - const TQCanvasItem * arg0; // Dummy + const TTQCanvasItem * arg0; // Dummy bool ret; ret = instance->collidesWith( @@ -387,7 +387,7 @@ KJS::Value QCanvasTextImp::collidesWith_15( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QCanvasTextImp::rtti_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasTextImp::rtti_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; diff --git a/kjsembed/qtbindings/qcanvastext_imp.h b/kjsembed/qtbindings/qcanvastext_imp.h index 11f50a51..e4e40590 100644 --- a/kjsembed/qtbindings/qcanvastext_imp.h +++ b/kjsembed/qtbindings/qcanvastext_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasText; +class TTQCanvasText; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasText; namespace KJSEmbed { /** - * Wrapper class for TQCanvasText methods. + * Wrapper class for TTQCanvasText methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasTextImp : public JSProxyImp +class TQCanvasTextImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -51,8 +51,8 @@ public: Method_Last = -1 }; - QCanvasTextImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasTextImp(); + TQCanvasTextImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasTextImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -66,15 +66,15 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasText *toQCanvasText( KJS::Object &object ); + static TTQCanvasText *toTQCanvasText( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasText_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasText_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasText_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasText_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasText_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasText_3( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -110,7 +110,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasText *instance; // Temp + TTQCanvasText *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcanvasview_imp.cpp b/kjsembed/qtbindings/qcanvasview_imp.cpp index bf190920..bfa3229b 100644 --- a/kjsembed/qtbindings/qcanvasview_imp.cpp +++ b/kjsembed/qtbindings/qcanvasview_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QCanvasViewImp::QCanvasViewImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCanvasViewImp::TQCanvasViewImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCanvasViewImp::~QCanvasViewImp() +TTQCanvasViewImp::~TQCanvasViewImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QCanvasViewImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasViewImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QCanvasViewImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasViewImp *meth = new QCanvasViewImp( exec, methods[idx].id ); + TQCanvasViewImp *meth = new TQCanvasViewImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QCanvasViewImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &objec /** * Adds bindings for instance methods to the specified Object. */ -void QCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -73,11 +73,11 @@ void QCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QCanvasViewImp *meth = new QCanvasViewImp( exec, methods[idx].id ); + TQCanvasViewImp *meth = new TQCanvasViewImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -86,104 +86,104 @@ void QCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQCanvasView pointer from an Object. + * Extract a TTQCanvasView pointer from an Object. */ -TQCanvasView *QCanvasViewImp::toQCanvasView( KJS::Object &self ) +TTQCanvasView *TQCanvasViewImp::toTQCanvasView( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCanvasView *>( obj ); + return dynamic_cast<TTQCanvasView *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQCanvasView" ) + if ( op->typeName() != "TTQCanvasView" ) return 0; - return op->toNative<TQCanvasView>(); + return op->toNative<TTQCanvasView>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCanvasView_1: - return QCanvasView_1( exec, args ); + return TQCanvasView_1( exec, args ); break; case Constructor_QCanvasView_2: - return QCanvasView_2( exec, args ); + return TQCanvasView_2( exec, args ); break; default: break; } - TQString msg = i18n("QCanvasViewCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCanvasViewCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCanvasViewImp::QCanvasView_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasViewImp::TQCanvasView_1( KJS::ExecState *exec, const KJS::List &args ) { - TQWidget *arg0 = extractQWidget(exec, args, 0); + TTQWidget *arg0 = extractTQWidget(exec, args, 0); const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - Qt::WFlags arg2 = 0; // TODO (hack for TQCanvasView) + TQt::WFlags arg2 = 0; // TODO (hack for TTQCanvasView) - // We should now create an instance of the TQCanvasView object + // We should now create an instance of the TTQCanvasView object - TQCanvasView *ret = new TQCanvasView( + TTQCanvasView *ret = new TTQCanvasView( arg0, arg1, arg2 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvasView"); return KJS::Object( prx ); } -KJS::Object QCanvasViewImp::QCanvasView_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCanvasViewImp::TQCanvasView_2( KJS::ExecState *exec, const KJS::List &args ) { - TQCanvas * arg0 = 0L;; + TTQCanvas * arg0 = 0L;; KJS::Object obj = args[0].toObject(exec); JSObjectProxy *proxy = JSProxy::toObjectProxy( obj.imp() ); - if ( proxy ) arg0 = dynamic_cast<TQCanvas *>( proxy->widget() ); + if ( proxy ) arg0 = dynamic_cast<TTQCanvas *>( proxy->widget() ); - TQWidget * arg1 = extractQWidget(exec, args, 1); + TTQWidget * arg1 = extractTQWidget(exec, args, 1); const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; - Qt::WFlags arg3 = 0; // TODO (hack for TQCanvasView) + TQt::WFlags arg3 = 0; // TODO (hack for TTQCanvasView) - // We should now create an instance of the TQCanvasView object + // We should now create an instance of the TTQCanvasView object - TQCanvasView *ret = new TQCanvasView( + TTQCanvasView *ret = new TTQCanvasView( arg0, arg1, arg2, arg3 ); - JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView"); + JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvasView"); return KJS::Object( prx ); } -KJS::Value QCanvasViewImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCanvasViewImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCanvasViewImp::toQCanvasView( self ); + instance = TQCanvasViewImp::toTQCanvasView( self ); switch( id ) { @@ -211,26 +211,26 @@ KJS::Value QCanvasViewImp::call( KJS::ExecState *exec, KJS::Object &self, const break; } - TQString msg = i18n( "QCanvasViewImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCanvasViewImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCanvasViewImp::canvas_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasViewImp::canvas_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->canvas( ); - return KJS::Value(); // Returns 'TQCanvas *' + return KJS::Value(); // Returns 'TTQCanvas *' } -KJS::Value QCanvasViewImp::setCanvas_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasViewImp::setCanvas_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCanvas * + // Unsupported parameter TTQCanvas * return KJS::Value(); - TQCanvas * arg0; // Dummy + TTQCanvas * arg0; // Dummy instance->setCanvas( arg0 ); @@ -238,26 +238,26 @@ KJS::Value QCanvasViewImp::setCanvas_5( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCanvasViewImp::worldMatrix_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasViewImp::worldMatrix_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->worldMatrix( ); - return KJS::Value(); // Returns 'const TQWMatrix &' + return KJS::Value(); // Returns 'const TTQWMatrix &' } -KJS::Value QCanvasViewImp::inverseWorldMatrix_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasViewImp::inverseWorldMatrix_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->inverseWorldMatrix( ); - return KJS::Value(); // Returns 'const TQWMatrix &' + return KJS::Value(); // Returns 'const TTQWMatrix &' } -KJS::Value QCanvasViewImp::setWorldMatrix_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCanvasViewImp::setWorldMatrix_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQWMatrix arg0; // TODO (hack for qcanvasview) + TTQWMatrix 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 24322716..01a8b1e6 100644 --- a/kjsembed/qtbindings/qcanvasview_imp.h +++ b/kjsembed/qtbindings/qcanvasview_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQCanvasView; +class TTQCanvasView; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQCanvasView; namespace KJSEmbed { /** - * Wrapper class for TQCanvasView methods. + * Wrapper class for TTQCanvasView methods. * * @author Richard Moore, rich@kde.org */ -class QCanvasViewImp : public JSProxyImp +class TQCanvasViewImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -43,8 +43,8 @@ public: Method_Last = -1 }; - QCanvasViewImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCanvasViewImp(); + TQCanvasViewImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCanvasViewImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -58,14 +58,14 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCanvasView *toQCanvasView( KJS::Object &object ); + static TTQCanvasView *toTQCanvasView( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCanvasView_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCanvasView_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasView_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCanvasView_2( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -94,7 +94,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCanvasView *instance; // Temp + TTQCanvasView *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qchecklistitem_imp.cpp b/kjsembed/qtbindings/qchecklistitem_imp.cpp index 508861f5..7fe6d673 100644 --- a/kjsembed/qtbindings/qchecklistitem_imp.cpp +++ b/kjsembed/qtbindings/qchecklistitem_imp.cpp @@ -22,27 +22,27 @@ namespace KJSEmbed { namespace Bindings { - KJS::Object QCheckListItemLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const + KJS::Object TQCheckListItemLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const { if ( args.size() == 0 ) { // FALL THRU } else { JSOpaqueProxy * arg0 = JSProxy::toOpaqueProxy( args[ 0 ].imp() ); - TQString arg1 = ( args.size() >= 2 ) ? args[ 1 ].toString( exec ).qstring() : TQString::null; + TTQString arg1 = ( args.size() >= 2 ) ? args[ 1 ].toString( exec ).qstring() : TTQString::null; JSOpaqueProxy *prx = 0; if ( arg0 ) { - if ( arg0->typeName() == "TQListViewItem" ) { - TQListViewItem * parent = arg0->toNative<TQListViewItem>(); - prx = new JSOpaqueProxy( new TQCheckListItem( parent, arg1 ), "TQCheckListItem" ); + if ( arg0->typeName() == "TTQListViewItem" ) { + TTQListViewItem * parent = arg0->toNative<TTQListViewItem>(); + prx = new JSOpaqueProxy( new TTQCheckListItem( parent, arg1 ), "TTQCheckListItem" ); } else { return KJS::Object(); } } else { JSObjectProxy *arg0 = JSProxy::toObjectProxy( args[ 0 ].imp() ); if ( arg0 ) { - TQListView * parent = ( TQListView * ) ( arg0->widget() ); - prx = new JSOpaqueProxy( new TQCheckListItem( parent, arg1 ), "TQCheckListItem" ); + TTQListView * parent = ( TTQListView * ) ( arg0->widget() ); + prx = new JSOpaqueProxy( new TTQCheckListItem( parent, arg1 ), "TTQCheckListItem" ); } else { return KJS::Object(); } @@ -54,23 +54,23 @@ namespace Bindings { } return KJS::Object(); } - void QCheckListItemLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const + void TQCheckListItemLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const { - QListViewItemImp::addBindings( exec, proxy ); - QCheckListItemImp::addBindings( exec, proxy ); + TQListViewItemImp::addBindings( exec, proxy ); + TQCheckListItemImp::addBindings( exec, proxy ); } } -QCheckListItemImp::QCheckListItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQCheckListItemImp::TQCheckListItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QCheckListItemImp::~QCheckListItemImp() +TTQCheckListItemImp::~TQCheckListItemImp() { } -void QCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -92,11 +92,11 @@ void QCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].id ) { if ( lastName != methods[idx].name ) { - QCheckListItemImp *meth = new QCheckListItemImp( exec, methods[idx].id ); + TQCheckListItemImp *meth = new TQCheckListItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -115,15 +115,15 @@ void QCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) EnumValue enums[] = { // enum Type - { "RadioButton", TQCheckListItem::RadioButton }, - { "CheckBox", TQCheckListItem::CheckBox }, - { "Controller", TQCheckListItem::Controller }, - { "RadioButtonController", TQCheckListItem::RadioButtonController }, - { "CheckBoxController", TQCheckListItem::CheckBoxController }, + { "RadioButton", TTQCheckListItem::RadioButton }, + { "CheckBox", TTQCheckListItem::CheckBox }, + { "Controller", TTQCheckListItem::Controller }, + { "RadioButtonController", TTQCheckListItem::RadioButtonController }, + { "CheckBoxController", TTQCheckListItem::CheckBoxController }, // enum ToggleState - { "Off", TQCheckListItem::Off }, - { "NoChange", TQCheckListItem::NoChange }, - { "On", TQCheckListItem::On }, + { "Off", TTQCheckListItem::Off }, + { "NoChange", TTQCheckListItem::NoChange }, + { "On", TTQCheckListItem::On }, { 0, 0 } }; @@ -135,196 +135,196 @@ void QCheckListItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } -TQCheckListItem *QCheckListItemImp::toQCheckListItem( KJS::Object &self ) +TTQCheckListItem *TQCheckListItemImp::toTQCheckListItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQCheckListItem *>( obj ); + return dynamic_cast<TTQCheckListItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - return op->toNative<TQCheckListItem>(); + return op->toNative<TTQCheckListItem>(); } -KJS::Object QCheckListItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QCheckListItem_1: - return QCheckListItem_1( exec, args ); + return TQCheckListItem_1( exec, args ); break; case Constructor_QCheckListItem_2: - return QCheckListItem_2( exec, args ); + return TQCheckListItem_2( exec, args ); break; case Constructor_QCheckListItem_3: - return QCheckListItem_3( exec, args ); + return TQCheckListItem_3( exec, args ); break; case Constructor_QCheckListItem_4: - return QCheckListItem_4( exec, args ); + return TQCheckListItem_4( exec, args ); break; case Constructor_QCheckListItem_5: - return QCheckListItem_5( exec, args ); + return TQCheckListItem_5( exec, args ); break; case Constructor_QCheckListItem_6: - return QCheckListItem_6( exec, args ); + return TQCheckListItem_6( exec, args ); break; case Constructor_QCheckListItem_7: - return QCheckListItem_7( exec, args ); + return TQCheckListItem_7( exec, args ); break; case Constructor_QCheckListItem_8: - return QCheckListItem_8( exec, args ); + return TQCheckListItem_8( exec, args ); break; default: break; } - TQString msg = i18n("QCheckListItemCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQCheckListItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QCheckListItemImp::QCheckListItem_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_1( KJS::ExecState *exec, const KJS::List &args ) { - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); - TQWidget *arg1 = extractQWidget(exec,args,1); + TTQWidget *arg1 = extractTQWidget(exec,args,1); - TQWidget *arg2 = extractQWidget(exec,args,2); + TTQWidget *arg2 = extractTQWidget(exec,args,2); return KJS::Object( ); } -KJS::Object QCheckListItemImp::QCheckListItem_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_2( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg1 = extractQWidget(exec,args,0); + TTQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg2 = extractQWidget(exec,args,0); + TTQWidget *arg2 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg3 = extractQWidget(exec,args,0); + TTQWidget *arg3 = extractTQWidget(exec,args,0); return KJS::Object(); } -KJS::Object QCheckListItemImp::QCheckListItem_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_3( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg1 = extractQWidget(exec,args,0); + TTQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg2 = extractQWidget(exec,args,0); + TTQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } -KJS::Object QCheckListItemImp::QCheckListItem_4( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_4( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg1 = extractQWidget(exec,args,0); + TTQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg2 = extractQWidget(exec,args,0); + TTQWidget *arg2 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg3 = extractQWidget(exec,args,0); + TTQWidget *arg3 = extractTQWidget(exec,args,0); return KJS::Object(); } -KJS::Object QCheckListItemImp::QCheckListItem_5( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_5( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg1 = extractQWidget(exec,args,0); + TTQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg2 = extractQWidget(exec,args,0); + TTQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } -KJS::Object QCheckListItemImp::QCheckListItem_6( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_6( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg1 = extractQWidget(exec,args,0); + TTQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg2 = extractQWidget(exec,args,0); + TTQWidget *arg2 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg3 = extractQWidget(exec,args,0); + TTQWidget *arg3 = extractTQWidget(exec,args,0); return KJS::Object(); } -KJS::Object QCheckListItemImp::QCheckListItem_7( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_7( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg1 = extractQWidget(exec,args,0); + TTQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg2 = extractQWidget(exec,args,0); + TTQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } -KJS::Object QCheckListItemImp::QCheckListItem_8( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQCheckListItemImp::TQCheckListItem_8( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = extractQWidget(exec,args,0); + TTQWidget *arg0 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg1 = extractQWidget(exec,args,0); + TTQWidget *arg1 = extractTQWidget(exec,args,0); // TODO - TQWidget *arg2 = extractQWidget(exec,args,0); + TTQWidget *arg2 = extractTQWidget(exec,args,0); return KJS::Object(); } -KJS::Value QCheckListItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQCheckListItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QCheckListItemImp::toQCheckListItem( self ); + instance = TQCheckListItemImp::toTQCheckListItem( self ); switch( id ) { @@ -388,23 +388,23 @@ KJS::Value QCheckListItemImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TQString msg = i18n( "QCheckListItemImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQCheckListItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QCheckListItemImp::paintCell_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::paintCell_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); - TQPainter * arg0; // Dummy + TTQPainter * arg0; // Dummy - // Unsupported parameter const TQColorGroup & + // Unsupported parameter const TTQColorGroup & return KJS::Value(); #if 0 - const TQColorGroup & arg1; // Dummy + const TTQColorGroup & arg1; // Dummy int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1; @@ -422,20 +422,20 @@ KJS::Value QCheckListItemImp::paintCell_10( KJS::ExecState *exec, KJS::Object &o #endif } -KJS::Value QCheckListItemImp::paintFocus_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::paintFocus_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); #if 0 - TQPainter * arg0; // Dummy + TTQPainter * arg0; // Dummy - // Unsupported parameter const TQColorGroup & + // Unsupported parameter const TTQColorGroup & return KJS::Value(); - const TQColorGroup & arg1; // Dummy + const TTQColorGroup & arg1; // Dummy - TQRect arg2 = extractQRect(exec, args, 2); + TTQRect arg2 = extractTQRect(exec, args, 2); instance->paintFocus( arg0, @@ -445,18 +445,18 @@ KJS::Value QCheckListItemImp::paintFocus_11( KJS::ExecState *exec, KJS::Object & #endif } -KJS::Value QCheckListItemImp::width_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::width_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQFontMetrics & + // Unsupported parameter const TTQFontMetrics & return KJS::Value(); #if 0 - const TQFontMetrics & arg0; // Dummy + const TTQFontMetrics & arg0; // Dummy - // Unsupported parameter const TQListView * + // Unsupported parameter const TTQListView * return KJS::Value(); - const TQListView * arg1; // Dummy + const TTQListView * arg1; // Dummy int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1; @@ -469,7 +469,7 @@ KJS::Value QCheckListItemImp::width_12( KJS::ExecState *exec, KJS::Object &obj, #endif } -KJS::Value QCheckListItemImp::setup_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::setup_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->setup( ); @@ -477,7 +477,7 @@ KJS::Value QCheckListItemImp::setup_13( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCheckListItemImp::setOn_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::setOn_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -488,7 +488,7 @@ KJS::Value QCheckListItemImp::setOn_14( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCheckListItemImp::isOn_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::isOn_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -497,7 +497,7 @@ KJS::Value QCheckListItemImp::isOn_15( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCheckListItemImp::type_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::type_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->type( ); @@ -505,28 +505,28 @@ KJS::Value QCheckListItemImp::type_16( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QCheckListItemImp::text_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::text_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->text( ); return KJS::String( ret ); } -KJS::Value QCheckListItemImp::text_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::text_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; - TQString ret; + TTQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); } -KJS::Value QCheckListItemImp::setTristate_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::setTristate_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -537,7 +537,7 @@ KJS::Value QCheckListItemImp::setTristate_19( KJS::ExecState *exec, KJS::Object } -KJS::Value QCheckListItemImp::isTristate_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::isTristate_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -546,7 +546,7 @@ KJS::Value QCheckListItemImp::isTristate_20( KJS::ExecState *exec, KJS::Object & } -KJS::Value QCheckListItemImp::state_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::state_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->state( ); @@ -554,7 +554,7 @@ KJS::Value QCheckListItemImp::state_21( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QCheckListItemImp::setState_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::setState_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { // Unsupported parameter ToggleState @@ -568,7 +568,7 @@ KJS::Value QCheckListItemImp::setState_22( KJS::ExecState *exec, KJS::Object &ob #endif } -KJS::Value QCheckListItemImp::rtti_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQCheckListItemImp::rtti_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; diff --git a/kjsembed/qtbindings/qchecklistitem_imp.h b/kjsembed/qtbindings/qchecklistitem_imp.h index 4ba46d32..a24c316f 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 TQCheckListItem; +class TTQCheckListItem; /** * Namespace containing the KJSEmbed library. @@ -18,7 +18,7 @@ class TQCheckListItem; namespace KJSEmbed { namespace Bindings { - class QCheckListItemLoader : public JSBindingBase + class TQCheckListItemLoader : public JSBindingBase { public: KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const; @@ -26,11 +26,11 @@ namespace Bindings { }; } /** - * Wrapper class for TQCheckListItem methods. + * Wrapper class for TTQCheckListItem methods. * * @author Richard Moore, rich@kde.org */ -class QCheckListItemImp : public JSProxyImp +class TQCheckListItemImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -67,25 +67,25 @@ public: Method_Last = -1 }; - QCheckListItemImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QCheckListItemImp(); + TQCheckListItemImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQCheckListItemImp(); static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQCheckListItem *toQCheckListItem( KJS::Object &object ); + static TTQCheckListItem *toTQCheckListItem( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QCheckListItem_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCheckListItem_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCheckListItem_3( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCheckListItem_4( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCheckListItem_5( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCheckListItem_6( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCheckListItem_7( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QCheckListItem_8( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_4( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_5( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_6( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_7( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQCheckListItem_8( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -123,7 +123,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQCheckListItem *instance; // Temp + TTQCheckListItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qcombobox_imp.cpp b/kjsembed/qtbindings/qcombobox_imp.cpp index 330da994..28cf620c 100644 --- a/kjsembed/qtbindings/qcombobox_imp.cpp +++ b/kjsembed/qtbindings/qcombobox_imp.cpp @@ -21,19 +21,19 @@ */ namespace KJSEmbed { -QComboBoxImp::QComboBoxImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQComboBoxImp::TQComboBoxImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QComboBoxImp::~QComboBoxImp() +TTQComboBoxImp::~TQComboBoxImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QComboBoxImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQComboBoxImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -41,11 +41,11 @@ void QComboBoxImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QComboBoxImp *meth = new QComboBoxImp( exec, methods[idx].id ); + TQComboBoxImp *meth = new TQComboBoxImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -64,12 +64,12 @@ void QComboBoxImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object EnumValue enums[] = { // enum Policy - { "NoInsertion", TQComboBox::NoInsertion }, - { "AtTop", TQComboBox::AtTop }, - { "AtCurrent", TQComboBox::AtCurrent }, - { "AtBottom", TQComboBox::AtBottom }, - { "AfterCurrent", TQComboBox::AfterCurrent }, - { "BeforeCurrent", TQComboBox::BeforeCurrent }, + { "NoInsertion", TTQComboBox::NoInsertion }, + { "AtTop", TTQComboBox::AtTop }, + { "AtCurrent", TTQComboBox::AtCurrent }, + { "AtBottom", TTQComboBox::AtBottom }, + { "AfterCurrent", TTQComboBox::AfterCurrent }, + { "BeforeCurrent", TTQComboBox::BeforeCurrent }, { 0, 0 } }; @@ -84,7 +84,7 @@ void QComboBoxImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object /** * Adds bindings for instance methods to the specified Object. */ -void QComboBoxImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQComboBoxImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -137,11 +137,11 @@ void QComboBoxImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QComboBoxImp *meth = new QComboBoxImp( exec, methods[idx].id ); + TQComboBoxImp *meth = new TQComboBoxImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -150,63 +150,63 @@ void QComboBoxImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQComboBox pointer from an Object. + * Extract a TTQComboBox pointer from an Object. */ -TQComboBox *QComboBoxImp::toQComboBox( KJS::Object &self ) +TTQComboBox *TQComboBoxImp::toTQComboBox( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQComboBox *>( obj ); + return dynamic_cast<TTQComboBox *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQComboBox" ) + if ( op->typeName() != "TTQComboBox" ) return 0; - return op->toNative<TQComboBox>(); + return op->toNative<TTQComboBox>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QComboBoxImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQComboBoxImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QComboBox_1: - return QComboBox_1( exec, args ); + return TQComboBox_1( exec, args ); break; case Constructor_QComboBox_2: - return QComboBox_2( exec, args ); + return TQComboBox_2( exec, args ); break; default: break; } - TQString msg = i18n("QComboBoxCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQComboBoxCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QComboBoxImp::QComboBox_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQComboBoxImp::TQComboBox_1( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQWidget * + // Unsupported parameter TTQWidget * return KJS::Value(); - TQWidget * arg0; // Dummy + TTQWidget * arg0; // Dummy const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - // We should now create an object of type QComboBoxQComboBox *ret = new TQComboBox( + // We should now create an object of type TQComboBoxTQComboBox *ret = new TTQComboBox( arg0, arg1 ); @@ -214,20 +214,20 @@ KJS::Object QComboBoxImp::QComboBox_1( KJS::ExecState *exec, const KJS::List &ar return KJS::Object(); } -KJS::Object QComboBoxImp::QComboBox_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQComboBoxImp::TQComboBox_2( KJS::ExecState *exec, const KJS::List &args ) { #if 0 bool arg0 = extractBool(exec, args, 0); - // Unsupported parameter TQWidget * + // Unsupported parameter TTQWidget * return KJS::Value(); - TQWidget * arg1; // Dummy + TTQWidget * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; - // We should now create an object of type QComboBoxQComboBox *ret = new TQComboBox( + // We should now create an object of type TQComboBoxTQComboBox *ret = new TTQComboBox( arg0, arg1, @@ -237,9 +237,9 @@ return KJS::Object(); } -KJS::Value QComboBoxImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQComboBoxImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QComboBoxImp::toQComboBox( self ); + instance = TQComboBoxImp::toTQComboBox( self ); switch( id ) { @@ -427,12 +427,12 @@ KJS::Value QComboBoxImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ break; } - TQString msg = i18n( "QComboBoxImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQComboBoxImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QComboBoxImp::count_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::count_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -441,10 +441,10 @@ KJS::Value QComboBoxImp::count_4( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QComboBoxImp::insertStringList_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertStringList_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQStringList arg0 = extractQStringList(exec, args, 0); + TTQStringList arg0 = extractTQStringList(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -455,10 +455,10 @@ KJS::Value QComboBoxImp::insertStringList_5( KJS::ExecState *exec, KJS::Object & } -KJS::Value QComboBoxImp::insertStrList_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertStrList_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQStrList arg0 = extractQStrList(exec, args, 0); + TTQStrList arg0 = extractTQStrList(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -469,13 +469,13 @@ KJS::Value QComboBoxImp::insertStrList_6( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QComboBoxImp::insertStrList_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertStrList_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQStrList * + // Unsupported parameter const TTQStrList * return KJS::Value(); - const TQStrList * arg0; // Dummy + const TTQStrList * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -486,7 +486,7 @@ KJS::Value QComboBoxImp::insertStrList_7( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QComboBoxImp::insertStrList_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertStrList_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { // Unsupported parameter const char ** @@ -506,10 +506,10 @@ KJS::Value QComboBoxImp::insertStrList_8( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QComboBoxImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -520,10 +520,10 @@ KJS::Value QComboBoxImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QComboBoxImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -534,12 +534,12 @@ KJS::Value QComboBoxImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -551,7 +551,7 @@ KJS::Value QComboBoxImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::removeItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::removeItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -562,7 +562,7 @@ KJS::Value QComboBoxImp::removeItem_12( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::currentItem_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::currentItem_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -571,7 +571,7 @@ KJS::Value QComboBoxImp::currentItem_13( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::setCurrentItem_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setCurrentItem_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -582,19 +582,19 @@ KJS::Value QComboBoxImp::setCurrentItem_14( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QComboBoxImp::currentText_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::currentText_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->currentText( ); return KJS::String( ret ); } -KJS::Value QComboBoxImp::setCurrentText_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setCurrentText_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); instance->setCurrentText( arg0 ); @@ -602,33 +602,33 @@ KJS::Value QComboBoxImp::setCurrentText_16( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QComboBoxImp::text_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::text_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQString ret; + TTQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); } -KJS::Value QComboBoxImp::pixmap_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::pixmap_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'const TQPixmap *' + return KJS::Value(); // Returns 'const TTQPixmap *' } -KJS::Value QComboBoxImp::changeItem_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::changeItem_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -639,10 +639,10 @@ KJS::Value QComboBoxImp::changeItem_19( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::changeItem_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::changeItem_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -653,12 +653,12 @@ KJS::Value QComboBoxImp::changeItem_20( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::changeItem_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::changeItem_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -670,7 +670,7 @@ KJS::Value QComboBoxImp::changeItem_21( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::autoResize_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::autoResize_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -679,7 +679,7 @@ KJS::Value QComboBoxImp::autoResize_22( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::setAutoResize_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setAutoResize_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -690,19 +690,19 @@ KJS::Value QComboBoxImp::setAutoResize_23( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QComboBoxImp::sizeHint_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::sizeHint_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQSize ret; + TTQSize ret; ret = instance->sizeHint( ); return convertToValue( exec, ret ); } -KJS::Value QComboBoxImp::setPalette_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setPalette_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPalette arg0 = extractQPalette(exec, args, 0); + TTQPalette arg0 = extractTQPalette(exec, args, 0); instance->setPalette( arg0 ); @@ -710,10 +710,10 @@ KJS::Value QComboBoxImp::setPalette_25( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::setFont_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setFont_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQFont arg0 = extractQFont(exec, args, 0); + TTQFont arg0 = extractTQFont(exec, args, 0); instance->setFont( arg0 ); @@ -721,7 +721,7 @@ KJS::Value QComboBoxImp::setFont_26( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QComboBoxImp::setEnabled_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setEnabled_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -732,7 +732,7 @@ KJS::Value QComboBoxImp::setEnabled_27( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::setSizeLimit_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setSizeLimit_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -743,7 +743,7 @@ KJS::Value QComboBoxImp::setSizeLimit_28( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QComboBoxImp::sizeLimit_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::sizeLimit_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -752,7 +752,7 @@ KJS::Value QComboBoxImp::sizeLimit_29( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QComboBoxImp::setMaxCount_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setMaxCount_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -763,7 +763,7 @@ KJS::Value QComboBoxImp::setMaxCount_30( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::maxCount_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::maxCount_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -772,10 +772,10 @@ KJS::Value QComboBoxImp::maxCount_31( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QComboBoxImp::setInsertionPolicy_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setInsertionPolicy_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQComboBox::Policy arg0 = TQComboBox::AtBottom; // TODO (hack for combo box) + TTQComboBox::Policy arg0 = TTQComboBox::AtBottom; // TODO (hack for combo box) instance->setInsertionPolicy( arg0 ); @@ -783,7 +783,7 @@ KJS::Value QComboBoxImp::setInsertionPolicy_32( KJS::ExecState *exec, KJS::Objec } -KJS::Value QComboBoxImp::insertionPolicy_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::insertionPolicy_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->insertionPolicy( ); @@ -791,13 +791,13 @@ KJS::Value QComboBoxImp::insertionPolicy_33( KJS::ExecState *exec, KJS::Object & } -KJS::Value QComboBoxImp::setValidator_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setValidator_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQValidator * + // Unsupported parameter const TTQValidator * return KJS::Value(); - const TQValidator * arg0; // Dummy + const TTQValidator * arg0; // Dummy instance->setValidator( arg0 ); @@ -805,21 +805,21 @@ KJS::Value QComboBoxImp::setValidator_34( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QComboBoxImp::validator_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::validator_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->validator( ); - return KJS::Value(); // Returns 'const TQValidator *' + return KJS::Value(); // Returns 'const TTQValidator *' } -KJS::Value QComboBoxImp::setListBox_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setListBox_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListBox * + // Unsupported parameter TTQListBox * return KJS::Value(); - TQListBox * arg0; // Dummy + TTQListBox * arg0; // Dummy instance->setListBox( arg0 ); @@ -827,21 +827,21 @@ KJS::Value QComboBoxImp::setListBox_36( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::listBox_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::listBox_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->listBox( ); - return KJS::Value(); // Returns 'TQListBox *' + return KJS::Value(); // Returns 'TTQListBox *' } -KJS::Value QComboBoxImp::setLineEdit_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setLineEdit_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQLineEdit * + // Unsupported parameter TTQLineEdit * return KJS::Value(); - TQLineEdit * arg0; // Dummy + TTQLineEdit * arg0; // Dummy instance->setLineEdit( arg0 ); @@ -849,15 +849,15 @@ KJS::Value QComboBoxImp::setLineEdit_38( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::lineEdit_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::lineEdit_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->lineEdit( ); - return KJS::Value(); // Returns 'TQLineEdit *' + return KJS::Value(); // Returns 'TTQLineEdit *' } -KJS::Value QComboBoxImp::setAutoCompletion_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setAutoCompletion_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -868,7 +868,7 @@ KJS::Value QComboBoxImp::setAutoCompletion_40( KJS::ExecState *exec, KJS::Object } -KJS::Value QComboBoxImp::autoCompletion_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::autoCompletion_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -877,18 +877,18 @@ KJS::Value QComboBoxImp::autoCompletion_41( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QComboBoxImp::eventFilter_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::eventFilter_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQObject * + // Unsupported parameter TTQObject * return KJS::Value(); - TQObject * arg0; // Dummy + TTQObject * arg0; // Dummy - // Unsupported parameter TQEvent * + // Unsupported parameter TTQEvent * return KJS::Value(); - TQEvent * arg1; // Dummy + TTQEvent * arg1; // Dummy bool ret; ret = instance->eventFilter( @@ -898,7 +898,7 @@ KJS::Value QComboBoxImp::eventFilter_42( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::setDuplicatesEnabled_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setDuplicatesEnabled_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -909,7 +909,7 @@ KJS::Value QComboBoxImp::setDuplicatesEnabled_43( KJS::ExecState *exec, KJS::Obj } -KJS::Value QComboBoxImp::duplicatesEnabled_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::duplicatesEnabled_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -918,7 +918,7 @@ KJS::Value QComboBoxImp::duplicatesEnabled_44( KJS::ExecState *exec, KJS::Object } -KJS::Value QComboBoxImp::editable_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::editable_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -927,7 +927,7 @@ KJS::Value QComboBoxImp::editable_45( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QComboBoxImp::setEditable_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::setEditable_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -938,7 +938,7 @@ KJS::Value QComboBoxImp::setEditable_46( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QComboBoxImp::popup_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::popup_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->popup( ); @@ -946,7 +946,7 @@ KJS::Value QComboBoxImp::popup_47( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QComboBoxImp::hide_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQComboBoxImp::hide_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->hide( ); diff --git a/kjsembed/qtbindings/qcombobox_imp.h b/kjsembed/qtbindings/qcombobox_imp.h index a11fba7c..f625e73b 100644 --- a/kjsembed/qtbindings/qcombobox_imp.h +++ b/kjsembed/qtbindings/qcombobox_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQComboBox; +class TTQComboBox; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQComboBox; namespace KJSEmbed { /** - * Wrapper class for TQComboBox methods. + * Wrapper class for TTQComboBox methods. * * @author Richard Moore, rich@kde.org */ -class QComboBoxImp : public JSProxyImp +class TQComboBoxImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -83,8 +83,8 @@ public: Method_Last = -1 }; - QComboBoxImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QComboBoxImp(); + TQComboBoxImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQComboBoxImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -98,14 +98,14 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQComboBox *toQComboBox( KJS::Object &object ); + static TTQComboBox *toTQComboBox( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QComboBox_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QComboBox_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQComboBox_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQComboBox_2( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -174,7 +174,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQComboBox *instance; // Temp + TTQComboBox *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qframe_imp.cpp b/kjsembed/qtbindings/qframe_imp.cpp index 146e6bb2..806babee 100644 --- a/kjsembed/qtbindings/qframe_imp.cpp +++ b/kjsembed/qtbindings/qframe_imp.cpp @@ -12,7 +12,7 @@ * Namespace containing the KJSEmbed library. */ namespace KJSEmbed { -void QFrameImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQFrameImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { // // Define the enum constants @@ -25,25 +25,25 @@ void QFrameImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) EnumValue enums[] = { // enum Shape - { "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 }, + { "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 }, // enum Shadow - { "Plain", TQFrame::Plain }, - { "Raised", TQFrame::Raised }, - { "Sunken", TQFrame::Sunken }, - { "MShadow", TQFrame::MShadow }, + { "Plain", TTQFrame::Plain }, + { "Raised", TTQFrame::Raised }, + { "Sunken", TTQFrame::Sunken }, + { "MShadow", TTQFrame::MShadow }, { 0, 0 } }; diff --git a/kjsembed/qtbindings/qframe_imp.h b/kjsembed/qtbindings/qframe_imp.h index 3d386e23..e6a255fe 100644 --- a/kjsembed/qtbindings/qframe_imp.h +++ b/kjsembed/qtbindings/qframe_imp.h @@ -14,11 +14,11 @@ namespace KJSEmbed { /** - * Wrapper class for TQFrame enums. + * Wrapper class for TTQFrame enums. * * @author Ian Reinhart Geiser, geiseri@kde.org */ -class QFrameImp +class TQFrameImp { public: static void addBindings( KJS::ExecState *exec, KJS::Object &object ); diff --git a/kjsembed/qtbindings/qlistview_imp.cpp b/kjsembed/qtbindings/qlistview_imp.cpp index ef670d95..610d5fc0 100644 --- a/kjsembed/qtbindings/qlistview_imp.cpp +++ b/kjsembed/qtbindings/qlistview_imp.cpp @@ -22,16 +22,16 @@ */ namespace KJSEmbed { -QListViewImp::QListViewImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQListViewImp::TQListViewImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QListViewImp::~QListViewImp() +TTQListViewImp::~TQListViewImp() { } -void QListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -108,11 +108,11 @@ void QListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].id ) { if ( lastName != methods[idx].name ) { - QListViewImp *meth = new QListViewImp( exec, methods[idx].id ); + TQListViewImp *meth = new TQListViewImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -131,20 +131,20 @@ void QListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) EnumValue enums[] = { // enum WidthMode - { "Manual", TQListView::Manual }, - { "Maximum", TQListView::Maximum }, + { "Manual", TTQListView::Manual }, + { "Maximum", TTQListView::Maximum }, // enum SelectionMode - { "Single", TQListView::Single }, - { "Multi", TQListView::Multi }, - { "Extended", TQListView::Extended }, - { "NoSelection", TQListView::NoSelection }, + { "Single", TTQListView::Single }, + { "Multi", TTQListView::Multi }, + { "Extended", TTQListView::Extended }, + { "NoSelection", TTQListView::NoSelection }, // enum ResizeMode - { "NoColumn", TQListView::NoColumn }, - { "AllColumns", TQListView::AllColumns }, - { "LastColumn", TQListView::LastColumn }, + { "NoColumn", TTQListView::NoColumn }, + { "AllColumns", TTQListView::AllColumns }, + { "LastColumn", TTQListView::LastColumn }, // enum RenameAction - { "Accept", TQListView::Accept }, - { "Reject", TQListView::Reject }, + { "Accept", TTQListView::Accept }, + { "Reject", TTQListView::Reject }, { 0, 0 } }; @@ -156,60 +156,60 @@ void QListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } -TQListView *QListViewImp::toQListView( KJS::Object &self ) +TTQListView *TQListViewImp::toTQListView( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQListView *>( obj ); + return dynamic_cast<TTQListView *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQListView" ) + if ( op->typeName() != "TTQListView" ) return 0; - return op->toNative<TQListView>(); + return op->toNative<TTQListView>(); } -KJS::Object QListViewImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QListView_1: - return QListView_1( exec, args ); + return TQListView_1( exec, args ); break; default: break; } - TQString msg = i18n("QListViewCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQListViewCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QListViewImp::QListView_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewImp::TQListView_1( KJS::ExecState *exec, const KJS::List &args ) { // TODO - TQWidget *arg0 = 0L; + TTQWidget *arg0 = 0L; // TODO - TQWidget *arg1 = 0L; + TTQWidget *arg1 = 0L; // TODO - TQWidget *arg2 = 0L; + TTQWidget *arg2 = 0L; } -KJS::Value QListViewImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQListViewImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QListViewImp::toQListView( self ); + instance = TQListViewImp::toTQListView( self ); switch( id ) { @@ -493,12 +493,12 @@ KJS::Value QListViewImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ break; } - TQString msg = i18n( "QListViewImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQListViewImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QListViewImp::treeStepSize_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::treeStepSize_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -507,7 +507,7 @@ KJS::Value QListViewImp::treeStepSize_3( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::setTreeStepSize_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setTreeStepSize_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -518,13 +518,13 @@ KJS::Value QListViewImp::setTreeStepSize_4( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->insertItem( arg0 ); @@ -532,13 +532,13 @@ KJS::Value QListViewImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QListViewImp::takeItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::takeItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->takeItem( arg0 ); @@ -546,13 +546,13 @@ KJS::Value QListViewImp::takeItem_6( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QListViewImp::removeItem_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::removeItem_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -560,18 +560,18 @@ KJS::Value QListViewImp::removeItem_7( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QListViewImp::header_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::header_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->header( ); - return KJS::Value(); // Returns 'TQHeader *' + return KJS::Value(); // Returns 'TTQHeader *' } -KJS::Value QListViewImp::addColumn_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::addColumn_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null; + TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; @@ -583,15 +583,15 @@ KJS::Value QListViewImp::addColumn_9( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QListViewImp::addColumn_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::addColumn_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null; + TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null; int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1; @@ -604,7 +604,7 @@ KJS::Value QListViewImp::addColumn_10( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QListViewImp::removeColumn_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::removeColumn_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -615,12 +615,12 @@ KJS::Value QListViewImp::removeColumn_11( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QListViewImp::setColumnText_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setColumnText_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; - TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null; + TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null; instance->setColumnText( arg0, @@ -629,17 +629,17 @@ KJS::Value QListViewImp::setColumnText_12( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewImp::setColumnText_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setColumnText_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg1; // Dummy + const TTQIconSet arg1; // Dummy - TQString arg2 = (args.size() >= 3) ? args[2].toString(exec).qstring() : TQString::null; + TTQString arg2 = (args.size() >= 3) ? args[2].toString(exec).qstring() : TTQString::null; instance->setColumnText( arg0, @@ -649,19 +649,19 @@ KJS::Value QListViewImp::setColumnText_13( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewImp::columnText_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::columnText_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; - TQString ret; + TTQString ret; ret = instance->columnText( arg0 ); return KJS::String( ret ); } -KJS::Value QListViewImp::setColumnWidth_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setColumnWidth_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -675,7 +675,7 @@ KJS::Value QListViewImp::setColumnWidth_15( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewImp::columnWidth_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::columnWidth_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -687,7 +687,7 @@ KJS::Value QListViewImp::columnWidth_16( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::setColumnWidthMode_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setColumnWidthMode_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -704,7 +704,7 @@ KJS::Value QListViewImp::setColumnWidthMode_17( KJS::ExecState *exec, KJS::Objec } -KJS::Value QListViewImp::columnWidthMode_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::columnWidthMode_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -715,7 +715,7 @@ KJS::Value QListViewImp::columnWidthMode_18( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewImp::columns_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::columns_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -724,7 +724,7 @@ KJS::Value QListViewImp::columns_19( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QListViewImp::setColumnAlignment_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setColumnAlignment_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -738,7 +738,7 @@ KJS::Value QListViewImp::setColumnAlignment_20( KJS::ExecState *exec, KJS::Objec } -KJS::Value QListViewImp::columnAlignment_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::columnAlignment_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -750,7 +750,7 @@ KJS::Value QListViewImp::columnAlignment_21( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewImp::show_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::show_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->show( ); @@ -758,41 +758,41 @@ KJS::Value QListViewImp::show_22( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QListViewImp::itemAt_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::itemAt_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQPoint & + // Unsupported parameter const TTQPoint & return KJS::Value(); - const TQPoint & arg0; // Dummy + const TTQPoint & arg0; // Dummy instance->itemAt( arg0 ); - return KJS::Value(); // Returns 'TQListViewItem *' + return KJS::Value(); // Returns 'TTQListViewItem *' } -KJS::Value QListViewImp::itemRect_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::itemRect_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQListViewItem * + // Unsupported parameter const TTQListViewItem * return KJS::Value(); - const TQListViewItem * arg0; // Dummy + const TTQListViewItem * arg0; // Dummy instance->itemRect( arg0 ); - return KJS::Value(); // Returns 'QRect' + return KJS::Value(); // Returns 'TQRect' } -KJS::Value QListViewImp::itemPos_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::itemPos_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQListViewItem * + // Unsupported parameter const TTQListViewItem * return KJS::Value(); - const TQListViewItem * arg0; // Dummy + const TTQListViewItem * arg0; // Dummy int ret; ret = instance->itemPos( @@ -801,13 +801,13 @@ KJS::Value QListViewImp::itemPos_25( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QListViewImp::ensureItemVisible_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::ensureItemVisible_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQListViewItem * + // Unsupported parameter const TTQListViewItem * return KJS::Value(); - const TQListViewItem * arg0; // Dummy + const TTQListViewItem * arg0; // Dummy instance->ensureItemVisible( arg0 ); @@ -815,13 +815,13 @@ KJS::Value QListViewImp::ensureItemVisible_26( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewImp::repaintItem_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::repaintItem_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQListViewItem * + // Unsupported parameter const TTQListViewItem * return KJS::Value(); - const TQListViewItem * arg0; // Dummy + const TTQListViewItem * arg0; // Dummy instance->repaintItem( arg0 ); @@ -829,7 +829,7 @@ KJS::Value QListViewImp::repaintItem_27( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::setMultiSelection_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setMultiSelection_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -840,7 +840,7 @@ KJS::Value QListViewImp::setMultiSelection_28( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewImp::isMultiSelection_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::isMultiSelection_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -849,7 +849,7 @@ KJS::Value QListViewImp::isMultiSelection_29( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewImp::setSelectionMode_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setSelectionMode_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { // Unsupported parameter SelectionMode @@ -863,7 +863,7 @@ KJS::Value QListViewImp::setSelectionMode_30( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewImp::selectionMode_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::selectionMode_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->selectionMode( ); @@ -871,7 +871,7 @@ KJS::Value QListViewImp::selectionMode_31( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewImp::clearSelection_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::clearSelection_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->clearSelection( ); @@ -879,13 +879,13 @@ KJS::Value QListViewImp::clearSelection_32( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewImp::setSelected_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setSelected_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -896,13 +896,13 @@ KJS::Value QListViewImp::setSelected_33( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::setSelectionAnchor_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setSelectionAnchor_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->setSelectionAnchor( arg0 ); @@ -910,13 +910,13 @@ KJS::Value QListViewImp::setSelectionAnchor_34( KJS::ExecState *exec, KJS::Objec } -KJS::Value QListViewImp::isSelected_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::isSelected_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQListViewItem * + // Unsupported parameter const TTQListViewItem * return KJS::Value(); - const TQListViewItem * arg0; // Dummy + const TTQListViewItem * arg0; // Dummy bool ret; ret = instance->isSelected( @@ -925,21 +925,21 @@ KJS::Value QListViewImp::isSelected_35( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::selectedItem_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::selectedItem_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->selectedItem( ); - return KJS::Value(); // Returns 'TQListViewItem *' + return KJS::Value(); // Returns 'TTQListViewItem *' } -KJS::Value QListViewImp::setOpen_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setOpen_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -950,13 +950,13 @@ KJS::Value QListViewImp::setOpen_37( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QListViewImp::isOpen_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::isOpen_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQListViewItem * + // Unsupported parameter const TTQListViewItem * return KJS::Value(); - const TQListViewItem * arg0; // Dummy + const TTQListViewItem * arg0; // Dummy bool ret; ret = instance->isOpen( @@ -965,13 +965,13 @@ KJS::Value QListViewImp::isOpen_38( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QListViewImp::setCurrentItem_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setCurrentItem_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->setCurrentItem( arg0 ); @@ -979,31 +979,31 @@ KJS::Value QListViewImp::setCurrentItem_39( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewImp::currentItem_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::currentItem_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->currentItem( ); - return KJS::Value(); // Returns 'TQListViewItem *' + return KJS::Value(); // Returns 'TTQListViewItem *' } -KJS::Value QListViewImp::firstChild_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::firstChild_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->firstChild( ); - return KJS::Value(); // Returns 'TQListViewItem *' + return KJS::Value(); // Returns 'TTQListViewItem *' } -KJS::Value QListViewImp::lastItem_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::lastItem_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->lastItem( ); - return KJS::Value(); // Returns 'TQListViewItem *' + return KJS::Value(); // Returns 'TTQListViewItem *' } -KJS::Value QListViewImp::childCount_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::childCount_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -1012,7 +1012,7 @@ KJS::Value QListViewImp::childCount_43( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::setAllColumnsShowFocus_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setAllColumnsShowFocus_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -1023,7 +1023,7 @@ KJS::Value QListViewImp::setAllColumnsShowFocus_44( KJS::ExecState *exec, KJS::O } -KJS::Value QListViewImp::allColumnsShowFocus_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::allColumnsShowFocus_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1032,7 +1032,7 @@ KJS::Value QListViewImp::allColumnsShowFocus_45( KJS::ExecState *exec, KJS::Obje } -KJS::Value QListViewImp::setItemMargin_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setItemMargin_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -1043,7 +1043,7 @@ KJS::Value QListViewImp::setItemMargin_46( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewImp::itemMargin_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::itemMargin_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -1052,7 +1052,7 @@ KJS::Value QListViewImp::itemMargin_47( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::setRootIsDecorated_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setRootIsDecorated_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -1063,7 +1063,7 @@ KJS::Value QListViewImp::setRootIsDecorated_48( KJS::ExecState *exec, KJS::Objec } -KJS::Value QListViewImp::rootIsDecorated_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::rootIsDecorated_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1072,7 +1072,7 @@ KJS::Value QListViewImp::rootIsDecorated_49( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewImp::setSorting_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setSorting_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -1086,7 +1086,7 @@ KJS::Value QListViewImp::setSorting_50( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::sortColumn_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::sortColumn_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -1095,7 +1095,7 @@ KJS::Value QListViewImp::sortColumn_51( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::setSortColumn_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setSortColumn_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -1106,7 +1106,7 @@ KJS::Value QListViewImp::setSortColumn_52( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewImp::sortOrder_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::sortOrder_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->sortOrder( ); @@ -1114,7 +1114,7 @@ KJS::Value QListViewImp::sortOrder_53( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QListViewImp::setSortOrder_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setSortOrder_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { // Unsupported parameter SortOrder @@ -1128,7 +1128,7 @@ KJS::Value QListViewImp::setSortOrder_54( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QListViewImp::sort_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::sort_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->sort( ); @@ -1136,10 +1136,10 @@ KJS::Value QListViewImp::sort_55( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QListViewImp::setFont_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setFont_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQFont arg0; // TODO + TTQFont arg0; // TODO instance->setFont( arg0 ); @@ -1147,10 +1147,10 @@ KJS::Value QListViewImp::setFont_56( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QListViewImp::setPalette_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setPalette_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPalette arg0; // TODO + TTQPalette arg0; // TODO instance->setPalette( arg0 ); @@ -1158,18 +1158,18 @@ KJS::Value QListViewImp::setPalette_57( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::eventFilter_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::eventFilter_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQObject * + // Unsupported parameter TTQObject * return KJS::Value(); - TQObject * arg0; // Dummy + TTQObject * arg0; // Dummy - // Unsupported parameter TQEvent * + // Unsupported parameter TTQEvent * return KJS::Value(); - TQEvent * arg1; // Dummy + TTQEvent * arg1; // Dummy bool ret; ret = instance->eventFilter( @@ -1179,23 +1179,23 @@ KJS::Value QListViewImp::eventFilter_58( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::sizeHint_59( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::sizeHint_59( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->sizeHint( ); - return KJS::Value(); // Returns 'QSize' + return KJS::Value(); // Returns 'TQSize' } -KJS::Value QListViewImp::minimumSizeHint_60( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::minimumSizeHint_60( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->minimumSizeHint( ); - return KJS::Value(); // Returns 'QSize' + return KJS::Value(); // Returns 'TQSize' } -KJS::Value QListViewImp::setShowSortIndicator_61( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setShowSortIndicator_61( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -1206,7 +1206,7 @@ KJS::Value QListViewImp::setShowSortIndicator_61( KJS::ExecState *exec, KJS::Obj } -KJS::Value QListViewImp::showSortIndicator_62( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::showSortIndicator_62( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1215,7 +1215,7 @@ KJS::Value QListViewImp::showSortIndicator_62( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewImp::setShowToolTips_63( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setShowToolTips_63( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -1226,7 +1226,7 @@ KJS::Value QListViewImp::setShowToolTips_63( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewImp::showToolTips_64( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::showToolTips_64( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1235,7 +1235,7 @@ KJS::Value QListViewImp::showToolTips_64( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QListViewImp::setResizeMode_65( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setResizeMode_65( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { // Unsupported parameter ResizeMode @@ -1249,7 +1249,7 @@ KJS::Value QListViewImp::setResizeMode_65( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewImp::resizeMode_66( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::resizeMode_66( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->resizeMode( ); @@ -1257,10 +1257,10 @@ KJS::Value QListViewImp::resizeMode_66( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::findItem_67( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::findItem_67( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null; + TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; @@ -1273,11 +1273,11 @@ KJS::Value QListViewImp::findItem_67( KJS::ExecState *exec, KJS::Object &obj, co arg0, arg1, arg2 ); - return KJS::Value(); // Returns 'TQListViewItem *' + return KJS::Value(); // Returns 'TTQListViewItem *' } -KJS::Value QListViewImp::setDefaultRenameAction_68( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::setDefaultRenameAction_68( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { // Unsupported parameter RenameAction @@ -1291,7 +1291,7 @@ KJS::Value QListViewImp::setDefaultRenameAction_68( KJS::ExecState *exec, KJS::O } -KJS::Value QListViewImp::defaultRenameAction_69( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::defaultRenameAction_69( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->defaultRenameAction( ); @@ -1299,7 +1299,7 @@ KJS::Value QListViewImp::defaultRenameAction_69( KJS::ExecState *exec, KJS::Obje } -KJS::Value QListViewImp::isRenaming_70( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::isRenaming_70( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1308,7 +1308,7 @@ KJS::Value QListViewImp::isRenaming_70( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewImp::hideColumn_71( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewImp::hideColumn_71( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; diff --git a/kjsembed/qtbindings/qlistview_imp.h b/kjsembed/qtbindings/qlistview_imp.h index 22786b8d..f201c179 100644 --- a/kjsembed/qtbindings/qlistview_imp.h +++ b/kjsembed/qtbindings/qlistview_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQListView; +class TTQListView; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQListView; namespace KJSEmbed { /** - * Wrapper class for TQListView methods. + * Wrapper class for TTQListView methods. * * @author Richard Moore, rich@kde.org */ -class QListViewImp : public JSProxyImp +class TQListViewImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -106,18 +106,18 @@ public: Method_Last = -1 }; - QListViewImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QListViewImp(); + TQListViewImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQListViewImp(); static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQListView *toQListView( KJS::Object &object ); + static TTQListView *toTQListView( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QListView_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListView_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -210,7 +210,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQListView *instance; // Temp + TTQListView *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qlistviewitem_imp.cpp b/kjsembed/qtbindings/qlistviewitem_imp.cpp index 13765e2b..69d94009 100644 --- a/kjsembed/qtbindings/qlistviewitem_imp.cpp +++ b/kjsembed/qtbindings/qlistviewitem_imp.cpp @@ -22,7 +22,7 @@ namespace KJSEmbed { namespace Bindings { - KJS::Object QListViewItemLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const + KJS::Object TQListViewItemLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const { if ( args.size() == 0 ) { // FALL THRU @@ -31,17 +31,17 @@ namespace Bindings { JSOpaqueProxy *prx = 0; if ( arg0 ) { - if ( arg0->typeName() == "TQListViewItem" ) { - TQListViewItem * parent = arg0->toNative<TQListViewItem>(); - prx = new JSOpaqueProxy( new TQListViewItem( parent ), "TQListViewItem" ); + if ( arg0->typeName() == "TTQListViewItem" ) { + TTQListViewItem * parent = arg0->toNative<TTQListViewItem>(); + prx = new JSOpaqueProxy( new TTQListViewItem( parent ), "TTQListViewItem" ); } else { return KJS::Object(); } } else { JSObjectProxy *arg0 = JSProxy::toObjectProxy( args[ 0 ].imp() ); if ( arg0 ) { - TQListView * parent = ( TQListView * ) ( arg0->widget() ); - prx = new JSOpaqueProxy( new TQListViewItem( parent ), "TQListViewItem" ); + TTQListView * parent = ( TTQListView * ) ( arg0->widget() ); + prx = new JSOpaqueProxy( new TTQListViewItem( parent ), "TTQListViewItem" ); } else { return KJS::Object(); } @@ -54,25 +54,25 @@ namespace Bindings { return KJS::Object(); } - void QListViewItemLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const + void TQListViewItemLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const { - QListViewItemImp::addBindings( exec, proxy ); + TQListViewItemImp::addBindings( exec, proxy ); } } -QListViewItemImp::QListViewItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQListViewItemImp::TQListViewItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QListViewItemImp::~QListViewItemImp() +TTQListViewItemImp::~TQListViewItemImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QListViewItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQListViewItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -80,11 +80,11 @@ void QListViewItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QListViewItemImp *meth = new QListViewItemImp( exec, methods[idx].id ); + TQListViewItemImp *meth = new TQListViewItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -97,7 +97,7 @@ void QListViewItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obj /** * Adds bindings for instance methods to the specified Object. */ -void QListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -159,11 +159,11 @@ void QListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QListViewItemImp *meth = new QListViewItemImp( exec, methods[idx].id ); + TQListViewItemImp *meth = new TQListViewItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -172,81 +172,81 @@ void QListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQListViewItem pointer from an Object. + * Extract a TTQListViewItem pointer from an Object. */ -TQListViewItem *QListViewItemImp::toQListViewItem( KJS::Object &self ) +TTQListViewItem *TQListViewItemImp::toTQListViewItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQListViewItem *>( obj ); + return dynamic_cast<TTQListViewItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - return op->toNative<TQListViewItem>(); + return op->toNative<TTQListViewItem>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QListViewItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QListViewItem_1: - return QListViewItem_1( exec, args ); + return TQListViewItem_1( exec, args ); break; case Constructor_QListViewItem_2: - return QListViewItem_2( exec, args ); + return TQListViewItem_2( exec, args ); break; case Constructor_QListViewItem_3: - return QListViewItem_3( exec, args ); + return TQListViewItem_3( exec, args ); break; case Constructor_QListViewItem_4: - return QListViewItem_4( exec, args ); + return TQListViewItem_4( exec, args ); break; case Constructor_QListViewItem_5: - return QListViewItem_5( exec, args ); + return TQListViewItem_5( exec, args ); break; case Constructor_QListViewItem_6: - return QListViewItem_6( exec, args ); + return TQListViewItem_6( exec, args ); break; case Constructor_QListViewItem_7: - return QListViewItem_7( exec, args ); + return TQListViewItem_7( exec, args ); break; case Constructor_QListViewItem_8: - return QListViewItem_8( exec, args ); + return TQListViewItem_8( exec, args ); break; default: break; } - TQString msg = i18n("QListViewItemCons has no constructor with id '%1'.").arg(id); + TTQString msg = i18n("TQListViewItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QListViewItemImp::QListViewItem_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_1( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListView * + // Unsupported parameter TTQListView * return KJS::Value(); - TQListView * arg0; // Dummy + TTQListView * arg0; // Dummy - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0 ); #endif @@ -254,38 +254,38 @@ return KJS::Object(); } -KJS::Object QListViewItemImp::QListViewItem_2( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_2( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0 ); #endif return KJS::Object(); } -KJS::Object QListViewItemImp::QListViewItem_3( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_3( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListView * + // Unsupported parameter TTQListView * return KJS::Value(); - TQListView * arg0; // Dummy + TTQListView * arg0; // Dummy - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg1; // Dummy + TTQListViewItem * arg1; // Dummy - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0, arg1 ); @@ -293,22 +293,22 @@ KJS::Object QListViewItemImp::QListViewItem_3( KJS::ExecState *exec, const KJS:: return KJS::Object(); } -KJS::Object QListViewItemImp::QListViewItem_4( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_4( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg1; // Dummy + TTQListViewItem * arg1; // Dummy - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0, arg1 ); @@ -317,33 +317,33 @@ return KJS::Object(); } -KJS::Object QListViewItemImp::QListViewItem_5( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_5( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListView * + // Unsupported parameter TTQListView * return KJS::Value(); - TQListView * arg0; // Dummy + TTQListView * arg0; // Dummy - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); - TQString arg2 = extractQString(exec, args, 2); + TTQString arg2 = extractTQString(exec, args, 2); - TQString arg3 = extractQString(exec, args, 3); + TTQString arg3 = extractTQString(exec, args, 3); - TQString arg4 = extractQString(exec, args, 4); + TTQString arg4 = extractTQString(exec, args, 4); - TQString arg5 = extractQString(exec, args, 5); + TTQString arg5 = extractTQString(exec, args, 5); - TQString arg6 = extractQString(exec, args, 6); + TTQString arg6 = extractTQString(exec, args, 6); - TQString arg7 = extractQString(exec, args, 7); + TTQString arg7 = extractTQString(exec, args, 7); - TQString arg8 = extractQString(exec, args, 8); + TTQString arg8 = extractTQString(exec, args, 8); - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0, arg1, @@ -359,33 +359,33 @@ return KJS::Object(); } -KJS::Object QListViewItemImp::QListViewItem_6( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_6( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); - TQString arg2 = extractQString(exec, args, 2); + TTQString arg2 = extractTQString(exec, args, 2); - TQString arg3 = extractQString(exec, args, 3); + TTQString arg3 = extractTQString(exec, args, 3); - TQString arg4 = extractQString(exec, args, 4); + TTQString arg4 = extractTQString(exec, args, 4); - TQString arg5 = extractQString(exec, args, 5); + TTQString arg5 = extractTQString(exec, args, 5); - TQString arg6 = extractQString(exec, args, 6); + TTQString arg6 = extractTQString(exec, args, 6); - TQString arg7 = extractQString(exec, args, 7); + TTQString arg7 = extractTQString(exec, args, 7); - TQString arg8 = extractQString(exec, args, 8); + TTQString arg8 = extractTQString(exec, args, 8); - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0, arg1, @@ -402,37 +402,37 @@ return KJS::Object(); } -KJS::Object QListViewItemImp::QListViewItem_7( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_7( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListView * + // Unsupported parameter TTQListView * return KJS::Value(); - TQListView * arg0; // Dummy + TTQListView * arg0; // Dummy - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg1; // Dummy + TTQListViewItem * arg1; // Dummy - TQString arg2 = extractQString(exec, args, 2); + TTQString arg2 = extractTQString(exec, args, 2); - TQString arg3 = extractQString(exec, args, 3); + TTQString arg3 = extractTQString(exec, args, 3); - TQString arg4 = extractQString(exec, args, 4); + TTQString arg4 = extractTQString(exec, args, 4); - TQString arg5 = extractQString(exec, args, 5); + TTQString arg5 = extractTQString(exec, args, 5); - TQString arg6 = extractQString(exec, args, 6); + TTQString arg6 = extractTQString(exec, args, 6); - TQString arg7 = extractQString(exec, args, 7); + TTQString arg7 = extractTQString(exec, args, 7); - TQString arg8 = extractQString(exec, args, 8); + TTQString arg8 = extractTQString(exec, args, 8); - TQString arg9 = extractQString(exec, args, 9); + TTQString arg9 = extractTQString(exec, args, 9); - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0, arg1, @@ -449,37 +449,37 @@ return KJS::Object(); } -KJS::Object QListViewItemImp::QListViewItem_8( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQListViewItemImp::TQListViewItem_8( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg1; // Dummy + TTQListViewItem * arg1; // Dummy - TQString arg2 = extractQString(exec, args, 2); + TTQString arg2 = extractTQString(exec, args, 2); - TQString arg3 = extractQString(exec, args, 3); + TTQString arg3 = extractTQString(exec, args, 3); - TQString arg4 = extractQString(exec, args, 4); + TTQString arg4 = extractTQString(exec, args, 4); - TQString arg5 = extractQString(exec, args, 5); + TTQString arg5 = extractTQString(exec, args, 5); - TQString arg6 = extractQString(exec, args, 6); + TTQString arg6 = extractTQString(exec, args, 6); - TQString arg7 = extractQString(exec, args, 7); + TTQString arg7 = extractTQString(exec, args, 7); - TQString arg8 = extractQString(exec, args, 8); + TTQString arg8 = extractTQString(exec, args, 8); - TQString arg9 = extractQString(exec, args, 9); + TTQString arg9 = extractTQString(exec, args, 9); - // We should now create an object of type QListViewItemQListViewItem *ret = new TQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( arg0, arg1, @@ -496,9 +496,9 @@ return KJS::Object(); } -KJS::Value QListViewItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQListViewItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QListViewItemImp::toQListViewItem( self ); + instance = TQListViewItemImp::toTQListViewItem( self ); switch( id ) { @@ -722,18 +722,18 @@ KJS::Value QListViewItemImp::call( KJS::ExecState *exec, KJS::Object &self, cons break; } - TQString msg = i18n( "QListViewItemImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "TQListViewItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QListViewItemImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->insertItem( arg0 ); @@ -741,13 +741,13 @@ KJS::Value QListViewItemImp::insertItem_10( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::takeItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::takeItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->takeItem( arg0 ); @@ -755,13 +755,13 @@ KJS::Value QListViewItemImp::takeItem_11( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QListViewItemImp::removeItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::removeItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -769,7 +769,7 @@ KJS::Value QListViewItemImp::removeItem_12( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::height_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::height_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -778,7 +778,7 @@ KJS::Value QListViewItemImp::height_13( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::invalidateHeight_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::invalidateHeight_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->invalidateHeight( ); @@ -786,7 +786,7 @@ KJS::Value QListViewItemImp::invalidateHeight_14( KJS::ExecState *exec, KJS::Obj } -KJS::Value QListViewItemImp::totalHeight_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::totalHeight_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -795,18 +795,18 @@ KJS::Value QListViewItemImp::totalHeight_15( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewItemImp::width_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::width_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter const TQFontMetrics & + // Unsupported parameter const TTQFontMetrics & return KJS::Value(); - const TQFontMetrics & arg0; // Dummy + const TTQFontMetrics & arg0; // Dummy - // Unsupported parameter const TQListView * + // Unsupported parameter const TTQListView * return KJS::Value(); - const TQListView * arg1; // Dummy + const TTQListView * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -821,7 +821,7 @@ return KJS::Object(); } -KJS::Value QListViewItemImp::widthChanged_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::widthChanged_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -832,7 +832,7 @@ KJS::Value QListViewItemImp::widthChanged_17( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewItemImp::depth_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::depth_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -841,12 +841,12 @@ KJS::Value QListViewItemImp::depth_18( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QListViewItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); instance->setText( arg0, @@ -855,24 +855,24 @@ KJS::Value QListViewItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::text_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::text_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQString ret; + TTQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); } -KJS::Value QListViewItemImp::setPixmap_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setPixmap_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQPixmap arg1 = extractQPixmap(exec, args, 1); + TTQPixmap arg1 = extractTQPixmap(exec, args, 1); instance->setPixmap( arg0, @@ -881,25 +881,25 @@ KJS::Value QListViewItemImp::setPixmap_21( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewItemImp::pixmap_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::pixmap_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'const TQPixmap *' + return KJS::Value(); // Returns 'const TTQPixmap *' } -KJS::Value QListViewItemImp::key_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::key_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); bool arg1 = extractBool(exec, args, 1); - TQString ret; + TTQString ret; ret = instance->key( arg0, arg1 ); @@ -907,13 +907,13 @@ KJS::Value QListViewItemImp::key_23( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QListViewItemImp::compare_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::compare_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -928,7 +928,7 @@ KJS::Value QListViewItemImp::compare_24( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::sortChildItems_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::sortChildItems_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -942,7 +942,7 @@ KJS::Value QListViewItemImp::sortChildItems_25( KJS::ExecState *exec, KJS::Objec } -KJS::Value QListViewItemImp::childCount_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::childCount_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -951,7 +951,7 @@ KJS::Value QListViewItemImp::childCount_26( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::isOpen_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::isOpen_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -960,7 +960,7 @@ KJS::Value QListViewItemImp::isOpen_27( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::setOpen_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setOpen_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -971,7 +971,7 @@ KJS::Value QListViewItemImp::setOpen_28( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::setup_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setup_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->setup( ); @@ -979,7 +979,7 @@ KJS::Value QListViewItemImp::setup_29( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QListViewItemImp::setSelected_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setSelected_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -990,7 +990,7 @@ KJS::Value QListViewItemImp::setSelected_30( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewItemImp::isSelected_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::isSelected_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -999,18 +999,18 @@ KJS::Value QListViewItemImp::isSelected_31( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::paintCell_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::paintCell_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); - TQPainter * arg0; // Dummy + TTQPainter * arg0; // Dummy - // Unsupported parameter const TQColorGroup & + // Unsupported parameter const TTQColorGroup & return KJS::Value(); - const TQColorGroup & arg1; // Dummy + const TTQColorGroup & arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -1030,18 +1030,18 @@ KJS::Value QListViewItemImp::paintCell_32( KJS::ExecState *exec, KJS::Object &ob return KJS::Object(); } -KJS::Value QListViewItemImp::paintBranches_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::paintBranches_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); - TQPainter * arg0; // Dummy + TTQPainter * arg0; // Dummy - // Unsupported parameter const TQColorGroup & + // Unsupported parameter const TTQColorGroup & return KJS::Value(); - const TQColorGroup & arg1; // Dummy + const TTQColorGroup & arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -1061,20 +1061,20 @@ return KJS::Object(); } -KJS::Value QListViewItemImp::paintFocus_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::paintFocus_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TQPainter * + // Unsupported parameter TTQPainter * return KJS::Value(); - TQPainter * arg0; // Dummy + TTQPainter * arg0; // Dummy - // Unsupported parameter const TQColorGroup & + // Unsupported parameter const TTQColorGroup & return KJS::Value(); - const TQColorGroup & arg1; // Dummy + const TTQColorGroup & arg1; // Dummy - TQRect arg2 = extractQRect(exec, args, 2); + TTQRect arg2 = extractTQRect(exec, args, 2); instance->paintFocus( arg0, @@ -1086,13 +1086,13 @@ return KJS::Object(); } -KJS::Value QListViewItemImp::firstChild_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::firstChild_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQListViewItem *item = instance->firstChild( ); + TTQListViewItem *item = instance->firstChild( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1103,13 +1103,13 @@ KJS::Value QListViewItemImp::firstChild_35( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::nextSibling_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::nextSibling_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQListViewItem *item = instance->nextSibling( ); + TTQListViewItem *item = instance->nextSibling( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1120,13 +1120,13 @@ KJS::Value QListViewItemImp::nextSibling_36( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewItemImp::parent_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::parent_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQListViewItem *item = instance->parent( ); + TTQListViewItem *item = instance->parent( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1137,13 +1137,13 @@ KJS::Value QListViewItemImp::parent_37( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::itemAbove_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::itemAbove_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQListViewItem *item = instance->itemAbove( ); + TTQListViewItem *item = instance->itemAbove( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1154,13 +1154,13 @@ KJS::Value QListViewItemImp::itemAbove_38( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewItemImp::itemBelow_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::itemBelow_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQListViewItem *item = instance->itemBelow( ); + TTQListViewItem *item = instance->itemBelow( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1171,7 +1171,7 @@ KJS::Value QListViewItemImp::itemBelow_39( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewItemImp::itemPos_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::itemPos_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -1180,15 +1180,15 @@ KJS::Value QListViewItemImp::itemPos_40( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::listView_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::listView_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->listView( ); - return KJS::Value(); // Returns 'TQListView *' + return KJS::Value(); // Returns 'TTQListView *' } -KJS::Value QListViewItemImp::setSelectable_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setSelectable_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -1199,7 +1199,7 @@ KJS::Value QListViewItemImp::setSelectable_42( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewItemImp::isSelectable_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::isSelectable_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1208,7 +1208,7 @@ KJS::Value QListViewItemImp::isSelectable_43( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewItemImp::setExpandable_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setExpandable_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -1219,7 +1219,7 @@ KJS::Value QListViewItemImp::setExpandable_44( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewItemImp::isExpandable_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::isExpandable_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1228,7 +1228,7 @@ KJS::Value QListViewItemImp::isExpandable_45( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewItemImp::repaint_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::repaint_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->repaint( ); @@ -1236,7 +1236,7 @@ KJS::Value QListViewItemImp::repaint_46( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QListViewItemImp::sort_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::sort_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->sort( ); @@ -1244,13 +1244,13 @@ KJS::Value QListViewItemImp::sort_47( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QListViewItemImp::moveItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::moveItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQListViewItem * + // Unsupported parameter TTQListViewItem * return KJS::Value(); - TQListViewItem * arg0; // Dummy + TTQListViewItem * arg0; // Dummy instance->moveItem( arg0 ); @@ -1258,7 +1258,7 @@ KJS::Value QListViewItemImp::moveItem_48( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QListViewItemImp::setDragEnabled_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setDragEnabled_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -1269,7 +1269,7 @@ KJS::Value QListViewItemImp::setDragEnabled_49( KJS::ExecState *exec, KJS::Objec } -KJS::Value QListViewItemImp::setDropEnabled_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setDropEnabled_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -1280,7 +1280,7 @@ KJS::Value QListViewItemImp::setDropEnabled_50( KJS::ExecState *exec, KJS::Objec } -KJS::Value QListViewItemImp::dragEnabled_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::dragEnabled_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1289,7 +1289,7 @@ KJS::Value QListViewItemImp::dragEnabled_51( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewItemImp::dropEnabled_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::dropEnabled_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1298,13 +1298,13 @@ KJS::Value QListViewItemImp::dropEnabled_52( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewItemImp::acceptDrop_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::acceptDrop_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TQMimeSource * + // Unsupported parameter const TTQMimeSource * return KJS::Value(); - const TQMimeSource * arg0; // Dummy + const TTQMimeSource * arg0; // Dummy bool ret; ret = instance->acceptDrop( @@ -1313,7 +1313,7 @@ KJS::Value QListViewItemImp::acceptDrop_53( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::setVisible_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setVisible_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -1324,7 +1324,7 @@ KJS::Value QListViewItemImp::setVisible_54( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::isVisible_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::isVisible_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1333,7 +1333,7 @@ KJS::Value QListViewItemImp::isVisible_55( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewItemImp::setRenameEnabled_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setRenameEnabled_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1347,7 +1347,7 @@ KJS::Value QListViewItemImp::setRenameEnabled_56( KJS::ExecState *exec, KJS::Obj } -KJS::Value QListViewItemImp::renameEnabled_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::renameEnabled_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1359,7 +1359,7 @@ KJS::Value QListViewItemImp::renameEnabled_57( KJS::ExecState *exec, KJS::Object } -KJS::Value QListViewItemImp::startRename_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::startRename_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1370,7 +1370,7 @@ KJS::Value QListViewItemImp::startRename_58( KJS::ExecState *exec, KJS::Object & } -KJS::Value QListViewItemImp::setEnabled_59( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setEnabled_59( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -1381,7 +1381,7 @@ KJS::Value QListViewItemImp::setEnabled_59( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QListViewItemImp::isEnabled_60( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::isEnabled_60( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -1390,7 +1390,7 @@ KJS::Value QListViewItemImp::isEnabled_60( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QListViewItemImp::rtti_61( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::rtti_61( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -1399,7 +1399,7 @@ KJS::Value QListViewItemImp::rtti_61( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QListViewItemImp::setMultiLinesEnabled_62( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::setMultiLinesEnabled_62( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -1410,7 +1410,7 @@ KJS::Value QListViewItemImp::setMultiLinesEnabled_62( KJS::ExecState *exec, KJS: } -KJS::Value QListViewItemImp::multiLinesEnabled_63( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQListViewItemImp::multiLinesEnabled_63( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; diff --git a/kjsembed/qtbindings/qlistviewitem_imp.h b/kjsembed/qtbindings/qlistviewitem_imp.h index 2f0eb21b..b4c7caa8 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 TQListViewItem; +class TTQListViewItem; /** * Namespace containing the KJSEmbed library. @@ -18,7 +18,7 @@ class TQListViewItem; namespace KJSEmbed { namespace Bindings { - class QListViewItemLoader : public JSBindingBase + class TQListViewItemLoader : public JSBindingBase { public: KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const; @@ -26,11 +26,11 @@ namespace Bindings { }; } /** - * Wrapper class for TQListViewItem methods. + * Wrapper class for TTQListViewItem methods. * * @author Richard Moore, rich@kde.org */ -class QListViewItemImp : public JSProxyImp +class TQListViewItemImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -107,8 +107,8 @@ public: Method_Last = -1 }; - QListViewItemImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QListViewItemImp(); + TQListViewItemImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQListViewItemImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -122,20 +122,20 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQListViewItem *toQListViewItem( KJS::Object &object ); + static TTQListViewItem *toTQListViewItem( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QListViewItem_1( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QListViewItem_2( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QListViewItem_3( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QListViewItem_4( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QListViewItem_5( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QListViewItem_6( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QListViewItem_7( KJS::ExecState *exec, const KJS::List &args ); - KJS::Object QListViewItem_8( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_2( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_3( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_4( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_5( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_6( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_7( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQListViewItem_8( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -213,7 +213,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQListViewItem *instance; // Temp + TTQListViewItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qmenudata_imp.cpp b/kjsembed/qtbindings/qmenudata_imp.cpp index da91f8dd..925e4125 100644 --- a/kjsembed/qtbindings/qmenudata_imp.cpp +++ b/kjsembed/qtbindings/qmenudata_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QMenuDataImp::QMenuDataImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQMenuDataImp::TQMenuDataImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QMenuDataImp::~QMenuDataImp() +TTQMenuDataImp::~TQMenuDataImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QMenuDataImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQMenuDataImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QMenuDataImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QMenuDataImp *meth = new QMenuDataImp( exec, methods[idx].id ); + TQMenuDataImp *meth = new TQMenuDataImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QMenuDataImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object /** * Adds bindings for instance methods to the specified Object. */ -void QMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -121,11 +121,11 @@ void QMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QMenuDataImp *meth = new QMenuDataImp( exec, methods[idx].id ); + TQMenuDataImp *meth = new TQMenuDataImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -134,62 +134,62 @@ void QMenuDataImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQMenuData pointer from an Object. + * Extract a TTQMenuData pointer from an Object. */ -TQMenuData *QMenuDataImp::toQMenuData( KJS::Object &self ) +TTQMenuData *TQMenuDataImp::toTQMenuData( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQMenuData *>( obj ); + return dynamic_cast<TTQMenuData *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQMenuData" ) + if ( op->typeName() != "TTQMenuData" ) return 0; - return op->toNative<TQMenuData>(); + return op->toNative<TTQMenuData>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QMenuDataImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQMenuDataImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QMenuData_1: - return QMenuData_1( exec, args ); + return TQMenuData_1( exec, args ); break; default: break; } - TQString msg = i18n("QMenuDataCons has no constructor with id '%1'").arg(id); + TTQString msg = i18n("TQMenuDataCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QMenuDataImp::QMenuData_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQMenuDataImp::TQMenuData_1( KJS::ExecState *exec, const KJS::List &args ) { - // We should now create an instance of the TQMenuData object + // We should now create an instance of the TTQMenuData object - TQMenuData *ret = new TQMenuData( + TTQMenuData *ret = new TTQMenuData( ); return KJS::Object(); } -KJS::Value QMenuDataImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQMenuDataImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QMenuDataImp::toQMenuData( self ); + instance = TQMenuDataImp::toTQMenuData( self ); switch( id ) { @@ -409,12 +409,12 @@ KJS::Value QMenuDataImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ break; } - TQString msg = i18n( "QMenuDataImp has no method with id '%1'" ).arg( id ); + TTQString msg = i18n( "TQMenuDataImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QMenuDataImp::count_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::count_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { uint ret; @@ -423,22 +423,22 @@ KJS::Value QMenuDataImp::count_3( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QMenuDataImp::insertItem_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter const TQObject * + // Unsupported parameter const TTQObject * return KJS::Value(); - const TQObject * arg1; // Dummy + const TTQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; - // Unsupported parameter const QKeySequence + // Unsupported parameter const TQKeySequence return KJS::Value(); - const TQKeySequence arg3; // Dummy + const TTQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -456,27 +456,27 @@ KJS::Value QMenuDataImp::insertItem_4( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); - // Unsupported parameter const TQObject * + // Unsupported parameter const TTQObject * return KJS::Value(); - const TQObject * arg2; // Dummy + const TTQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; - // Unsupported parameter const QKeySequence + // Unsupported parameter const TQKeySequence return KJS::Value(); - const TQKeySequence arg4; // Dummy + const TTQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -495,22 +495,22 @@ KJS::Value QMenuDataImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuDataImp::insertItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); - // Unsupported parameter const TQObject * + // Unsupported parameter const TTQObject * return KJS::Value(); - const TQObject * arg1; // Dummy + const TTQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; - // Unsupported parameter const QKeySequence + // Unsupported parameter const TQKeySequence return KJS::Value(); - const TQKeySequence arg3; // Dummy + const TTQKeySequence arg3; // Dummy int arg4 = extractInt(exec, args, 4); @@ -528,27 +528,27 @@ KJS::Value QMenuDataImp::insertItem_6( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQPixmap arg1 = extractQPixmap(exec, args, 1); + TTQPixmap arg1 = extractTQPixmap(exec, args, 1); - // Unsupported parameter const TQObject * + // Unsupported parameter const TTQObject * return KJS::Value(); - const TQObject * arg2; // Dummy + const TTQObject * arg2; // Dummy const char *arg3 = (args.size() >= 4) ? args[3].toString(exec).ascii() : 0; - // Unsupported parameter const QKeySequence + // Unsupported parameter const TQKeySequence return KJS::Value(); - const TQKeySequence arg4; // Dummy + const TTQKeySequence arg4; // Dummy int arg5 = extractInt(exec, args, 5); @@ -567,10 +567,10 @@ KJS::Value QMenuDataImp::insertItem_7( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuDataImp::insertItem_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -585,15 +585,15 @@ KJS::Value QMenuDataImp::insertItem_8( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -609,15 +609,15 @@ KJS::Value QMenuDataImp::insertItem_9( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuDataImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); - // Unsupported parameter TQPopupMenu * + // Unsupported parameter TTQPopupMenu * return KJS::Value(); - TQPopupMenu * arg1; // Dummy + TTQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -633,20 +633,20 @@ KJS::Value QMenuDataImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); - // Unsupported parameter TQPopupMenu * + // Unsupported parameter TTQPopupMenu * return KJS::Value(); - TQPopupMenu * arg2; // Dummy + TTQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -663,10 +663,10 @@ KJS::Value QMenuDataImp::insertItem_11( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -681,15 +681,15 @@ KJS::Value QMenuDataImp::insertItem_12( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQPixmap arg1 = extractQPixmap(exec, args, 1); + TTQPixmap arg1 = extractTQPixmap(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -705,15 +705,15 @@ KJS::Value QMenuDataImp::insertItem_13( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); - // Unsupported parameter TQPopupMenu * + // Unsupported parameter TTQPopupMenu * return KJS::Value(); - TQPopupMenu * arg1; // Dummy + TTQPopupMenu * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -729,20 +729,20 @@ KJS::Value QMenuDataImp::insertItem_14( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQPixmap arg1 = extractQPixmap(exec, args, 1); + TTQPixmap arg1 = extractTQPixmap(exec, args, 1); - // Unsupported parameter TQPopupMenu * + // Unsupported parameter TTQPopupMenu * return KJS::Value(); - TQPopupMenu * arg2; // Dummy + TTQPopupMenu * arg2; // Dummy int arg3 = extractInt(exec, args, 3); @@ -759,13 +759,13 @@ KJS::Value QMenuDataImp::insertItem_15( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQWidget * + // Unsupported parameter TTQWidget * return KJS::Value(); - TQWidget * arg0; // Dummy + TTQWidget * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -780,18 +780,18 @@ KJS::Value QMenuDataImp::insertItem_16( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - // Unsupported parameter TQCustomMenuItem * + // Unsupported parameter TTQCustomMenuItem * return KJS::Value(); - TQCustomMenuItem * arg1; // Dummy + TTQCustomMenuItem * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -807,13 +807,13 @@ KJS::Value QMenuDataImp::insertItem_17( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertItem_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertItem_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQCustomMenuItem * + // Unsupported parameter TTQCustomMenuItem * return KJS::Value(); - TQCustomMenuItem * arg0; // Dummy + TTQCustomMenuItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -828,7 +828,7 @@ KJS::Value QMenuDataImp::insertItem_18( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::insertSeparator_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::insertSeparator_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -840,7 +840,7 @@ KJS::Value QMenuDataImp::insertSeparator_19( KJS::ExecState *exec, KJS::Object & } -KJS::Value QMenuDataImp::removeItem_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::removeItem_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -851,7 +851,7 @@ KJS::Value QMenuDataImp::removeItem_20( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::removeItemAt_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::removeItemAt_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -862,7 +862,7 @@ KJS::Value QMenuDataImp::removeItemAt_21( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QMenuDataImp::clear_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::clear_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->clear( ); @@ -870,24 +870,24 @@ KJS::Value QMenuDataImp::clear_22( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QMenuDataImp::accel_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::accel_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->accel( arg0 ); - return KJS::Value(); // Returns 'QKeySequence' + return KJS::Value(); // Returns 'TQKeySequence' } -KJS::Value QMenuDataImp::setAccel_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::setAccel_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QKeySequence + // Unsupported parameter const TQKeySequence return KJS::Value(); - const TQKeySequence arg0; // Dummy + const TTQKeySequence arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -898,46 +898,46 @@ KJS::Value QMenuDataImp::setAccel_24( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QMenuDataImp::iconSet_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::iconSet_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->iconSet( arg0 ); - return KJS::Value(); // Returns 'TQIconSet *' + return KJS::Value(); // Returns 'TTQIconSet *' } -KJS::Value QMenuDataImp::text_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::text_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQString ret; + TTQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); } -KJS::Value QMenuDataImp::pixmap_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::pixmap_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'TQPixmap *' + return KJS::Value(); // Returns 'TTQPixmap *' } -KJS::Value QMenuDataImp::setWhatsThis_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::setWhatsThis_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); instance->setWhatsThis( arg0, @@ -946,24 +946,24 @@ KJS::Value QMenuDataImp::setWhatsThis_28( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QMenuDataImp::whatsThis_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::whatsThis_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQString ret; + TTQString ret; ret = instance->whatsThis( arg0 ); return KJS::String( ret ); } -KJS::Value QMenuDataImp::changeItem_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::changeItem_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); instance->changeItem( arg0, @@ -972,12 +972,12 @@ KJS::Value QMenuDataImp::changeItem_30( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::changeItem_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::changeItem_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQPixmap arg1 = extractQPixmap(exec, args, 1); + TTQPixmap arg1 = extractTQPixmap(exec, args, 1); instance->changeItem( arg0, @@ -986,17 +986,17 @@ KJS::Value QMenuDataImp::changeItem_31( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::changeItem_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::changeItem_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg1; // Dummy + const TTQIconSet arg1; // Dummy - TQString arg2 = extractQString(exec, args, 2); + TTQString arg2 = extractTQString(exec, args, 2); instance->changeItem( arg0, @@ -1006,17 +1006,17 @@ KJS::Value QMenuDataImp::changeItem_32( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg1; // Dummy + const TTQIconSet arg1; // Dummy - TQPixmap arg2 = extractQPixmap(exec, args, 2); + TTQPixmap arg2 = extractTQPixmap(exec, args, 2); instance->changeItem( arg0, @@ -1026,10 +1026,10 @@ KJS::Value QMenuDataImp::changeItem_33( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1040,10 +1040,10 @@ KJS::Value QMenuDataImp::changeItem_34( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::changeItem_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::changeItem_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPixmap arg0 = extractQPixmap(exec, args, 0); + TTQPixmap arg0 = extractTQPixmap(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -1054,15 +1054,15 @@ KJS::Value QMenuDataImp::changeItem_35( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::changeItem_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::changeItem_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const QIconSet + // Unsupported parameter const TQIconSet return KJS::Value(); - const TQIconSet arg0; // Dummy + const TTQIconSet arg0; // Dummy - TQString arg1 = extractQString(exec, args, 1); + TTQString arg1 = extractTQString(exec, args, 1); int arg2 = extractInt(exec, args, 2); @@ -1074,7 +1074,7 @@ KJS::Value QMenuDataImp::changeItem_36( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::isItemActive_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::isItemActive_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1086,7 +1086,7 @@ KJS::Value QMenuDataImp::isItemActive_37( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QMenuDataImp::isItemEnabled_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::isItemEnabled_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1098,7 +1098,7 @@ KJS::Value QMenuDataImp::isItemEnabled_38( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QMenuDataImp::setItemEnabled_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::setItemEnabled_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1112,7 +1112,7 @@ KJS::Value QMenuDataImp::setItemEnabled_39( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QMenuDataImp::isItemChecked_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::isItemChecked_40( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1124,7 +1124,7 @@ KJS::Value QMenuDataImp::isItemChecked_40( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QMenuDataImp::setItemChecked_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::setItemChecked_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1138,7 +1138,7 @@ KJS::Value QMenuDataImp::setItemChecked_41( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QMenuDataImp::isItemVisible_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::isItemVisible_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1150,7 +1150,7 @@ KJS::Value QMenuDataImp::isItemVisible_42( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QMenuDataImp::setItemVisible_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::setItemVisible_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1164,7 +1164,7 @@ KJS::Value QMenuDataImp::setItemVisible_43( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QMenuDataImp::updateItem_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::updateItem_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1175,7 +1175,7 @@ KJS::Value QMenuDataImp::updateItem_44( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::indexOf_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::indexOf_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1187,7 +1187,7 @@ KJS::Value QMenuDataImp::indexOf_45( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QMenuDataImp::idAt_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::idAt_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1199,7 +1199,7 @@ KJS::Value QMenuDataImp::idAt_46( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QMenuDataImp::setId_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::setId_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1213,15 +1213,15 @@ KJS::Value QMenuDataImp::setId_47( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QMenuDataImp::connectItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::connectItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const TQObject * + // Unsupported parameter const TTQObject * return KJS::Value(); - const TQObject * arg1; // Dummy + const TTQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1234,15 +1234,15 @@ KJS::Value QMenuDataImp::connectItem_48( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuDataImp::disconnectItem_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::disconnectItem_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - // Unsupported parameter const TQObject * + // Unsupported parameter const TTQObject * return KJS::Value(); - const TQObject * arg1; // Dummy + const TTQObject * arg1; // Dummy const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0; @@ -1255,7 +1255,7 @@ KJS::Value QMenuDataImp::disconnectItem_49( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QMenuDataImp::setItemParameter_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::setItemParameter_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1270,7 +1270,7 @@ KJS::Value QMenuDataImp::setItemParameter_50( KJS::ExecState *exec, KJS::Object } -KJS::Value QMenuDataImp::itemParameter_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::itemParameter_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -1282,41 +1282,41 @@ KJS::Value QMenuDataImp::itemParameter_51( KJS::ExecState *exec, KJS::Object &ob } -KJS::Value QMenuDataImp::findItem_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::findItem_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); instance->findItem( arg0 ); - return KJS::Value(); // Returns 'TQMenuItem *' + return KJS::Value(); // Returns 'TTQMenuItem *' } -KJS::Value QMenuDataImp::findItem_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::findItem_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - // Unsupported parameter TQMenuData ** + // Unsupported parameter TTQMenuData ** return KJS::Value(); - TQMenuData ** arg1; // Dummy + TTQMenuData ** arg1; // Dummy instance->findItem( arg0, arg1 ); - return KJS::Value(); // Returns 'TQMenuItem *' + return KJS::Value(); // Returns 'TTQMenuItem *' } -KJS::Value QMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TQPopupMenu * + // Unsupported parameter TTQPopupMenu * return KJS::Value(); - TQPopupMenu * arg0; // Dummy + TTQPopupMenu * arg0; // Dummy // Unsupported parameter int * return KJS::Value(); @@ -1326,11 +1326,11 @@ KJS::Value QMenuDataImp::findPopup_54( KJS::ExecState *exec, KJS::Object &obj, c instance->findPopup( arg0, arg1 ); - return KJS::Value(); // Returns 'TQMenuItem *' + return KJS::Value(); // Returns 'TTQMenuItem *' } -KJS::Value QMenuDataImp::activateItemAt_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuDataImp::activateItemAt_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); diff --git a/kjsembed/qtbindings/qmenudata_imp.h b/kjsembed/qtbindings/qmenudata_imp.h index 83f84aa5..6409dca6 100644 --- a/kjsembed/qtbindings/qmenudata_imp.h +++ b/kjsembed/qtbindings/qmenudata_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQMenuData; +class TTQMenuData; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQMenuData; namespace KJSEmbed { /** - * Wrapper class for TQMenuData methods. + * Wrapper class for TTQMenuData methods. * * @author Richard Moore, rich@kde.org */ -class QMenuDataImp : public JSProxyImp +class TQMenuDataImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -90,8 +90,8 @@ public: Method_Last = -1 }; - QMenuDataImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QMenuDataImp(); + TQMenuDataImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQMenuDataImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -105,13 +105,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQMenuData *toQMenuData( KJS::Object &object ); + static TTQMenuData *toTQMenuData( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QMenuData_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQMenuData_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -188,7 +188,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQMenuData *instance; // Temp + TTQMenuData *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qmenuitem_imp.cpp b/kjsembed/qtbindings/qmenuitem_imp.cpp index c2be558c..75118e4e 100644 --- a/kjsembed/qtbindings/qmenuitem_imp.cpp +++ b/kjsembed/qtbindings/qmenuitem_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QMenuItemImp::QMenuItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQMenuItemImp::TQMenuItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QMenuItemImp::~QMenuItemImp() +TTQMenuItemImp::~TQMenuItemImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QMenuItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQMenuItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QMenuItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QMenuItemImp *meth = new QMenuItemImp( exec, methods[idx].id ); + TQMenuItemImp *meth = new TQMenuItemImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QMenuItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object /** * Adds bindings for instance methods to the specified Object. */ -void QMenuItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQMenuItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { { Method_id_3, "id" }, @@ -86,29 +86,29 @@ void QMenuItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { 0, 0 } }; - JSProxy::addMethods<QMenuItemImp>(exec, methods, object ); + JSProxy::addMethods<TQMenuItemImp>(exec, methods, object ); } /** - * Extract a TQMenuItem pointer from an Object. + * Extract a TTQMenuItem pointer from an Object. */ -TQMenuItem *QMenuItemImp::toQMenuItem( KJS::Object &self ) +TTQMenuItem *TQMenuItemImp::toTQMenuItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQMenuItem *>( obj ); + 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::ObjectProxy, "TTQMenuItem") ) { + TTQObject *obj = JSProxy::toObjectProxy( self.imp() )->object(); + return dynamic_cast<TTQMenuItem *>( obj ); } - if( !JSProxy::checkType(self, JSProxy::OpaqueProxy, "TQMenuItem") ) { - return JSProxy::toOpaqueProxy( self.imp() )->toNative<TQMenuItem>(); + if( !JSProxy::checkType(self, JSProxy::OpaqueProxy, "TTQMenuItem") ) { + return JSProxy::toOpaqueProxy( self.imp() )->toNative<TTQMenuItem>(); } return 0; @@ -117,38 +117,38 @@ TQMenuItem *QMenuItemImp::toQMenuItem( KJS::Object &self ) /** * Select and invoke the correct constructor. */ -KJS::Object QMenuItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQMenuItemImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QMenuItem_1: - return QMenuItem_1( exec, args ); + return TQMenuItem_1( exec, args ); break; default: break; } - TQString msg = i18n("QMenuItemCons has no constructor with id '%1'").arg(id); + TTQString msg = i18n("TQMenuItemCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QMenuItemImp::QMenuItem_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQMenuItemImp::TQMenuItem_1( KJS::ExecState *exec, const KJS::List &args ) { - // We should now create an instance of the TQMenuItem object + // We should now create an instance of the TTQMenuItem object - TQMenuItem *ret = new TQMenuItem( + TTQMenuItem *ret = new TTQMenuItem( ); return KJS::Object(); } -KJS::Value QMenuItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQMenuItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QMenuItemImp::toQMenuItem( self ); + instance = TQMenuItemImp::toTQMenuItem( self ); switch( id ) { @@ -236,12 +236,12 @@ KJS::Value QMenuItemImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ break; } - TQString msg = i18n( "QMenuItemImp has no method with id '%1'" ).arg( id ); + TTQString msg = i18n( "TQMenuItemImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QMenuItemImp::id_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::id_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -250,79 +250,79 @@ KJS::Value QMenuItemImp::id_3( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QMenuItemImp::iconSet_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::iconSet_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->iconSet( ); - return KJS::Value(); // Returns 'TQIconSet *' + return KJS::Value(); // Returns 'TTQIconSet *' } -KJS::Value QMenuItemImp::text_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::text_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->text( ); return KJS::String( ret ); } -KJS::Value QMenuItemImp::whatsThis_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::whatsThis_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->whatsThis( ); return KJS::String( ret ); } -KJS::Value QMenuItemImp::pixmap_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::pixmap_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { return convertToValue(exec, *instance->pixmap( )); } -KJS::Value QMenuItemImp::popup_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::popup_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->popup( ); - return KJS::Value(); // Returns 'TQPopupMenu *' + return KJS::Value(); // Returns 'TTQPopupMenu *' } -KJS::Value QMenuItemImp::widget_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::widget_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->widget( ); - return KJS::Value(); // Returns 'TQWidget *' + return KJS::Value(); // Returns 'TTQWidget *' } -KJS::Value QMenuItemImp::custom_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::custom_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->custom( ); - return KJS::Value(); // Returns 'TQCustomMenuItem *' + return KJS::Value(); // Returns 'TTQCustomMenuItem *' } -KJS::Value QMenuItemImp::key_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::key_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { return convertToValue( exec, instance->key( )); } -KJS::Value QMenuItemImp::signal_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::signal_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->signal( ); - return KJS::Value(); // Returns 'TQSignal *' + return KJS::Value(); // Returns 'TTQSignal *' } -KJS::Value QMenuItemImp::isSeparator_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::isSeparator_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -331,7 +331,7 @@ KJS::Value QMenuItemImp::isSeparator_13( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuItemImp::isEnabled_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::isEnabled_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -340,7 +340,7 @@ KJS::Value QMenuItemImp::isEnabled_14( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuItemImp::isChecked_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::isChecked_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -349,7 +349,7 @@ KJS::Value QMenuItemImp::isChecked_15( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuItemImp::isDirty_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::isDirty_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -358,7 +358,7 @@ KJS::Value QMenuItemImp::isDirty_16( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QMenuItemImp::isVisible_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::isVisible_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -367,7 +367,7 @@ KJS::Value QMenuItemImp::isVisible_17( KJS::ExecState *exec, KJS::Object &obj, c } -KJS::Value QMenuItemImp::isEnabledAndVisible_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::isEnabledAndVisible_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -376,10 +376,10 @@ KJS::Value QMenuItemImp::isEnabledAndVisible_18( KJS::ExecState *exec, KJS::Obje } -KJS::Value QMenuItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); instance->setText( arg0 ); @@ -387,7 +387,7 @@ KJS::Value QMenuItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QMenuItemImp::setDirty_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::setDirty_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -398,7 +398,7 @@ KJS::Value QMenuItemImp::setDirty_20( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QMenuItemImp::setVisible_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::setVisible_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -409,10 +409,10 @@ KJS::Value QMenuItemImp::setVisible_21( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QMenuItemImp::setWhatsThis_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQMenuItemImp::setWhatsThis_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString arg0 = extractQString(exec, args, 0); + TTQString arg0 = extractTQString(exec, args, 0); instance->setWhatsThis( arg0 ); diff --git a/kjsembed/qtbindings/qmenuitem_imp.h b/kjsembed/qtbindings/qmenuitem_imp.h index 59b7d996..ad1e480b 100644 --- a/kjsembed/qtbindings/qmenuitem_imp.h +++ b/kjsembed/qtbindings/qmenuitem_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQMenuItem; +class TTQMenuItem; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQMenuItem; namespace KJSEmbed { /** - * Wrapper class for TQMenuItem methods. + * Wrapper class for TTQMenuItem methods. * * @author Richard Moore, rich@kde.org */ -class QMenuItemImp : public JSProxyImp +class TQMenuItemImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -57,8 +57,8 @@ public: Method_Last = -1 }; - QMenuItemImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QMenuItemImp(); + TQMenuItemImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQMenuItemImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -72,13 +72,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQMenuItem *toQMenuItem( KJS::Object &object ); + static TTQMenuItem *toTQMenuItem( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QMenuItem_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQMenuItem_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -122,7 +122,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQMenuItem *instance; // Temp + TTQMenuItem *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qpopupmenu_imp.cpp b/kjsembed/qtbindings/qpopupmenu_imp.cpp index 7b652422..f11c9a3b 100644 --- a/kjsembed/qtbindings/qpopupmenu_imp.cpp +++ b/kjsembed/qtbindings/qpopupmenu_imp.cpp @@ -23,19 +23,19 @@ */ namespace KJSEmbed { -QPopupMenuImp::QPopupMenuImp( KJS::ExecState *exec, int mid, bool constructor ) +TTQPopupMenuImp::TQPopupMenuImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -QPopupMenuImp::~QPopupMenuImp() +TTQPopupMenuImp::~TQPopupMenuImp() { } /** * Adds bindings for static methods and enum constants to the specified Object. */ -void QPopupMenuImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQPopupMenuImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -43,11 +43,11 @@ void QPopupMenuImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QPopupMenuImp *meth = new QPopupMenuImp( exec, methods[idx].id ); + TQPopupMenuImp *meth = new TQPopupMenuImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -60,7 +60,7 @@ void QPopupMenuImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object /** * Adds bindings for instance methods to the specified Object. */ -void QPopupMenuImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQPopupMenuImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -85,11 +85,11 @@ void QPopupMenuImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { - QPopupMenuImp *meth = new QPopupMenuImp( exec, methods[idx].id ); + TQPopupMenuImp *meth = new TQPopupMenuImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); lastName = methods[idx].name; } @@ -98,61 +98,61 @@ void QPopupMenuImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TQPopupMenu pointer from an Object. + * Extract a TTQPopupMenu pointer from an Object. */ -TQPopupMenu *QPopupMenuImp::toQPopupMenu( KJS::Object &self ) +TTQPopupMenu *TQPopupMenuImp::toTQPopupMenu( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TQObject *obj = ob->object(); + TTQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TQPopupMenu *>( obj ); + return dynamic_cast<TTQPopupMenu *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - if ( op->typeName() != "TQPopupMenu" ) + if ( op->typeName() != "TTQPopupMenu" ) return 0; - return op->toNative<TQPopupMenu>(); + return op->toNative<TTQPopupMenu>(); } /** * Select and invoke the correct constructor. */ -KJS::Object QPopupMenuImp::construct( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQPopupMenuImp::construct( KJS::ExecState *exec, const KJS::List &args ) { switch( id ) { case Constructor_QPopupMenu_1: - return QPopupMenu_1( exec, args ); + return TQPopupMenu_1( exec, args ); break; default: break; } - TQString msg = i18n("QPopupMenuCons has no constructor with id '%1'").arg(id); + TTQString msg = i18n("TQPopupMenuCons has no constructor with id '%1'").arg(id); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Object QPopupMenuImp::QPopupMenu_1( KJS::ExecState *exec, const KJS::List &args ) +KJS::Object TQPopupMenuImp::TQPopupMenu_1( KJS::ExecState *exec, const KJS::List &args ) { - // Unsupported parameter TQWidget * + // Unsupported parameter TTQWidget * return KJS::Object(); - TQWidget * arg0; // Dummy + TTQWidget * arg0; // Dummy const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0; - // We should now create an instance of the TQPopupMenu object + // We should now create an instance of the TTQPopupMenu object - TQPopupMenu *ret = new TQPopupMenu( + TTQPopupMenu *ret = new TTQPopupMenu( arg0, arg1 ); @@ -160,9 +160,9 @@ KJS::Object QPopupMenuImp::QPopupMenu_1( KJS::ExecState *exec, const KJS::List & } -KJS::Value QPopupMenuImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQPopupMenuImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { - instance = QPopupMenuImp::toQPopupMenu( self ); + instance = TQPopupMenuImp::toTQPopupMenu( self ); switch( id ) { @@ -238,15 +238,15 @@ KJS::Value QPopupMenuImp::call( KJS::ExecState *exec, KJS::Object &self, const K break; } - TQString msg = i18n( "QPopupMenuImp has no method with id '%1'" ).arg( id ); + TTQString msg = i18n( "TQPopupMenuImp has no method with id '%1'" ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QPopupMenuImp::popup_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::popup_3( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint arg0 = extractQPoint(exec, args, 0); + TTQPoint arg0 = extractTQPoint(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -257,7 +257,7 @@ KJS::Value QPopupMenuImp::popup_3( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QPopupMenuImp::updateItem_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::updateItem_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -268,7 +268,7 @@ KJS::Value QPopupMenuImp::updateItem_4( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QPopupMenuImp::setCheckable_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::setCheckable_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = extractBool(exec, args, 0); @@ -279,7 +279,7 @@ KJS::Value QPopupMenuImp::setCheckable_5( KJS::ExecState *exec, KJS::Object &obj } -KJS::Value QPopupMenuImp::isCheckable_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::isCheckable_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -288,10 +288,10 @@ KJS::Value QPopupMenuImp::isCheckable_6( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QPopupMenuImp::setFont_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::setFont_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQFont arg0 = extractQFont(exec, args, 0); + TTQFont arg0 = extractTQFont(exec, args, 0); instance->setFont( arg0 ); @@ -299,7 +299,7 @@ KJS::Value QPopupMenuImp::setFont_7( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QPopupMenuImp::show_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::show_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->show( ); @@ -307,7 +307,7 @@ KJS::Value QPopupMenuImp::show_8( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QPopupMenuImp::hide_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::hide_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->hide( ); @@ -315,7 +315,7 @@ KJS::Value QPopupMenuImp::hide_9( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QPopupMenuImp::exec_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::exec_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int ret; @@ -324,10 +324,10 @@ KJS::Value QPopupMenuImp::exec_10( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QPopupMenuImp::exec_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::exec_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint arg0 = extractQPoint(exec, args, 0); + TTQPoint arg0 = extractTQPoint(exec, args, 0); int arg1 = extractInt(exec, args, 1); @@ -339,7 +339,7 @@ KJS::Value QPopupMenuImp::exec_11( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QPopupMenuImp::setActiveItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::setActiveItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -350,16 +350,16 @@ KJS::Value QPopupMenuImp::setActiveItem_12( KJS::ExecState *exec, KJS::Object &o } -KJS::Value QPopupMenuImp::sizeHint_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::sizeHint_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQSize ret; + TTQSize ret; ret = instance->sizeHint( ); return convertToValue( exec, ret ); } -KJS::Value QPopupMenuImp::idAt_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::idAt_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -371,10 +371,10 @@ KJS::Value QPopupMenuImp::idAt_14( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QPopupMenuImp::idAt_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::idAt_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQPoint arg0 = extractQPoint(exec, args, 0); + TTQPoint arg0 = extractTQPoint(exec, args, 0); int ret; ret = instance->idAt( @@ -383,7 +383,7 @@ KJS::Value QPopupMenuImp::idAt_15( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QPopupMenuImp::customWhatsThis_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::customWhatsThis_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -392,7 +392,7 @@ KJS::Value QPopupMenuImp::customWhatsThis_16( KJS::ExecState *exec, KJS::Object } -KJS::Value QPopupMenuImp::insertTearOffHandle_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::insertTearOffHandle_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -407,7 +407,7 @@ KJS::Value QPopupMenuImp::insertTearOffHandle_17( KJS::ExecState *exec, KJS::Obj } -KJS::Value QPopupMenuImp::activateItemAt_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::activateItemAt_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); @@ -418,11 +418,11 @@ KJS::Value QPopupMenuImp::activateItemAt_18( KJS::ExecState *exec, KJS::Object & } -KJS::Value QPopupMenuImp::itemGeometry_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQPopupMenuImp::itemGeometry_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = extractInt(exec, args, 0); - TQRect ret; + TTQRect ret; ret = instance->itemGeometry( arg0 ); diff --git a/kjsembed/qtbindings/qpopupmenu_imp.h b/kjsembed/qtbindings/qpopupmenu_imp.h index 3a0c019d..38e1bdfc 100644 --- a/kjsembed/qtbindings/qpopupmenu_imp.h +++ b/kjsembed/qtbindings/qpopupmenu_imp.h @@ -9,7 +9,7 @@ #include <kjsembed/jsobjectproxy_imp.h> -class TQPopupMenu; +class TTQPopupMenu; /** * Namespace containing the KJSEmbed library. @@ -17,11 +17,11 @@ class TQPopupMenu; namespace KJSEmbed { /** - * Wrapper class for TQPopupMenu methods. + * Wrapper class for TTQPopupMenu methods. * * @author Richard Moore, rich@kde.org */ -class QPopupMenuImp : public JSProxyImp +class TQPopupMenuImp : public JSProxyImp { public: /** Enumerates the constructors supported by this class. */ @@ -54,8 +54,8 @@ public: Method_Last = -1 }; - QPopupMenuImp( KJS::ExecState *exec, int id, bool constructor=false ); - ~QPopupMenuImp(); + TQPopupMenuImp( KJS::ExecState *exec, int id, bool constructor=false ); + ~TQPopupMenuImp(); /** * Adds the static bindings for this class to the specified Object. The @@ -69,13 +69,13 @@ public: */ static void addBindings( KJS::ExecState *exec, KJS::Object &object ); - static TQPopupMenu *toQPopupMenu( KJS::Object &object ); + static TTQPopupMenu *toTQPopupMenu( KJS::Object &object ); // // Constructors implemented by this class. // - KJS::Object QPopupMenu_1( KJS::ExecState *exec, const KJS::List &args ); + KJS::Object TQPopupMenu_1( KJS::ExecState *exec, const KJS::List &args ); // // Methods implemented by this class. @@ -116,7 +116,7 @@ public: virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ); private: - TQPopupMenu *instance; // Temp + TTQPopupMenu *instance; // Temp int id; bool cons; }; diff --git a/kjsembed/qtbindings/qt_imp.cpp b/kjsembed/qtbindings/qt_imp.cpp index 99cae783..bd3fcf2f 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; - TQCString lastName; + TTQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -64,625 +64,625 @@ void QtImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &object ) EnumValue enums[] = { // enum ButtonState - { "NoButton", Qt::NoButton }, - { "LeftButton", Qt::LeftButton }, - { "RightButton", Qt::RightButton }, - { "MidButton", Qt::MidButton }, - { "MouseButtonMask", Qt::MouseButtonMask }, - { "ShiftButton", Qt::ShiftButton }, - { "ControlButton", Qt::ControlButton }, - { "AltButton", Qt::AltButton }, - { "MetaButton", Qt::MetaButton }, - { "KeyButtonMask", Qt::KeyButtonMask }, - { "Keypad", Qt::Keypad }, + { "NoButton", TQt::NoButton }, + { "LeftButton", TQt::LeftButton }, + { "RightButton", TQt::RightButton }, + { "MidButton", TQt::MidButton }, + { "MouseButtonMask", TQt::MouseButtonMask }, + { "ShiftButton", TQt::ShiftButton }, + { "ControlButton", TQt::ControlButton }, + { "AltButton", TQt::AltButton }, + { "MetaButton", TQt::MetaButton }, + { "KeyButtonMask", TQt::KeyButtonMask }, + { "Keypad", TQt::Keypad }, // enum Orientation - { "Horizontal", Qt::Horizontal }, - { "Vertical", Qt::Vertical }, + { "Horizontal", TQt::Horizontal }, + { "Vertical", TQt::Vertical }, // enum SortOrder - { "Ascending", Qt::Ascending }, - { "Descending", Qt::Descending }, + { "Ascending", TQt::Ascending }, + { "Descending", TQt::Descending }, // enum AlignmentFlags - { "AlignAuto", Qt::AlignAuto }, - { "AlignLeft", Qt::AlignLeft }, - { "AlignRight", Qt::AlignRight }, - { "AlignHCenter", Qt::AlignHCenter }, - { "AlignJustify", Qt::AlignJustify }, - { "AlignHorizontal_Mask", Qt::AlignHorizontal_Mask }, - { "AlignTop", Qt::AlignTop }, - { "AlignBottom", Qt::AlignBottom }, - { "AlignVCenter", Qt::AlignVCenter }, - { "AlignVertical_Mask", Qt::AlignVertical_Mask }, - { "AlignCenter", Qt::AlignCenter }, + { "AlignAuto", TQt::AlignAuto }, + { "AlignLeft", TQt::AlignLeft }, + { "AlignRight", TQt::AlignRight }, + { "AlignHCenter", TQt::AlignHCenter }, + { "AlignJustify", TQt::AlignJustify }, + { "AlignHorizontal_Mask", TQt::AlignHorizontal_Mask }, + { "AlignTop", TQt::AlignTop }, + { "AlignBottom", TQt::AlignBottom }, + { "AlignVCenter", TQt::AlignVCenter }, + { "AlignVertical_Mask", TQt::AlignVertical_Mask }, + { "AlignCenter", TQt::AlignCenter }, // enum TextFlags - { "SingleLine", Qt::SingleLine }, - { "DontClip", Qt::DontClip }, - { "ExpandTabs", Qt::ExpandTabs }, - { "ShowPrefix", Qt::ShowPrefix }, - { "WordBreak", Qt::WordBreak }, - { "BreakAnywhere", Qt::BreakAnywhere }, - { "DontPrint", Qt::DontPrint }, - { "Underline", Qt::Underline }, - { "Overline", Qt::Overline }, - { "StrikeOut", Qt::StrikeOut }, - { "IncludeTrailingSpaces", Qt::IncludeTrailingSpaces }, - { "NoAccel", Qt::NoAccel }, + { "SingleLine", TQt::SingleLine }, + { "DontClip", TQt::DontClip }, + { "ExpandTabs", TQt::ExpandTabs }, + { "ShowPrefix", TQt::ShowPrefix }, + { "WordBreak", TQt::WordBreak }, + { "BreakAnywhere", TQt::BreakAnywhere }, + { "DontPrint", TQt::DontPrint }, + { "Underline", TQt::Underline }, + { "Overline", TQt::Overline }, + { "StrikeOut", TQt::StrikeOut }, + { "IncludeTrailingSpaces", TQt::IncludeTrailingSpaces }, + { "NoAccel", TQt::NoAccel }, // enum WidgetState - { "WState_Created", Qt::WState_Created }, - { "WState_Disabled", Qt::WState_Disabled }, - { "WState_Visible", Qt::WState_Visible }, - { "WState_ForceHide", Qt::WState_ForceHide }, - { "WState_OwnCursor", Qt::WState_OwnCursor }, - { "WState_MouseTracking", Qt::WState_MouseTracking }, - { "WState_CompressKeys", Qt::WState_CompressKeys }, - { "WState_BlockUpdates", Qt::WState_BlockUpdates }, - { "WState_InPaintEvent", Qt::WState_InPaintEvent }, - { "WState_Reparented", Qt::WState_Reparented }, - { "WState_ConfigPending", Qt::WState_ConfigPending }, - { "WState_Resized", Qt::WState_Resized }, - { "WState_AutoMask", Qt::WState_AutoMask }, - { "WState_Polished", Qt::WState_Polished }, - { "WState_DND", Qt::WState_DND }, - { "WState_Reserved0", Qt::WState_Reserved0 }, - { "WState_FullScreen", Qt::WState_FullScreen }, - { "WState_OwnSizePolicy", Qt::WState_OwnSizePolicy }, - { "WState_CreatedHidden", Qt::WState_CreatedHidden }, - { "WState_Maximized", Qt::WState_Maximized }, - { "WState_Minimized", Qt::WState_Minimized }, - { "WState_ForceDisabled", Qt::WState_ForceDisabled }, - { "WState_Exposed", Qt::WState_Exposed }, - { "WState_HasMouse", Qt::WState_HasMouse }, + { "WState_Created", TQt::WState_Created }, + { "WState_Disabled", TQt::WState_Disabled }, + { "WState_Visible", TQt::WState_Visible }, + { "WState_ForceHide", TQt::WState_ForceHide }, + { "WState_OwnCursor", TQt::WState_OwnCursor }, + { "WState_MouseTracking", TQt::WState_MouseTracking }, + { "WState_CompressKeys", TQt::WState_CompressKeys }, + { "WState_BlockUpdates", TQt::WState_BlockUpdates }, + { "WState_InPaintEvent", TQt::WState_InPaintEvent }, + { "WState_Reparented", TQt::WState_Reparented }, + { "WState_ConfigPending", TQt::WState_ConfigPending }, + { "WState_Resized", TQt::WState_Resized }, + { "WState_AutoMask", TQt::WState_AutoMask }, + { "WState_Polished", TQt::WState_Polished }, + { "WState_DND", TQt::WState_DND }, + { "WState_Reserved0", TQt::WState_Reserved0 }, + { "WState_FullScreen", TQt::WState_FullScreen }, + { "WState_OwnSizePolicy", TQt::WState_OwnSizePolicy }, + { "WState_CreatedHidden", TQt::WState_CreatedHidden }, + { "WState_Maximized", TQt::WState_Maximized }, + { "WState_Minimized", TQt::WState_Minimized }, + { "WState_ForceDisabled", TQt::WState_ForceDisabled }, + { "WState_Exposed", TQt::WState_Exposed }, + { "WState_HasMouse", TQt::WState_HasMouse }, // enum WidgetFlags - { "WType_TopLevel", Qt::WType_TopLevel }, - { "WType_Dialog", Qt::WType_Dialog }, - { "WType_Popup", Qt::WType_Popup }, - { "WType_Desktop", Qt::WType_Desktop }, - { "WType_Mask", Qt::WType_Mask }, - { "WStyle_Customize", Qt::WStyle_Customize }, - { "WStyle_NormalBorder", Qt::WStyle_NormalBorder }, - { "WStyle_DialogBorder", Qt::WStyle_DialogBorder }, - { "WStyle_NoBorder", Qt::WStyle_NoBorder }, - { "WStyle_Title", Qt::WStyle_Title }, - { "WStyle_SysMenu", Qt::WStyle_SysMenu }, - { "WStyle_Minimize", Qt::WStyle_Minimize }, - { "WStyle_Maximize", Qt::WStyle_Maximize }, - { "WStyle_MinMax", Qt::WStyle_MinMax }, - { "WStyle_Tool", Qt::WStyle_Tool }, - { "WStyle_StaysOnTop", Qt::WStyle_StaysOnTop }, - { "WStyle_ContextHelp", Qt::WStyle_ContextHelp }, - { "WStyle_Reserved", Qt::WStyle_Reserved }, - { "WStyle_Mask", Qt::WStyle_Mask }, - { "WDestructiveClose", Qt::WDestructiveClose }, - { "WPaintDesktop", Qt::WPaintDesktop }, - { "WPaintUnclipped", Qt::WPaintUnclipped }, - { "WPaintClever", Qt::WPaintClever }, - { "WResizeNoErase", Qt::WResizeNoErase }, - { "WMouseNoMask", Qt::WMouseNoMask }, - { "WStaticContents", Qt::WStaticContents }, - { "WRepaintNoErase", Qt::WRepaintNoErase }, - { "WX11BypassWM", Qt::WX11BypassWM }, - { "WWinOwnDC", Qt::WWinOwnDC }, - { "WMacNoSheet", Qt::WMacNoSheet }, - { "WMacDrawer", Qt::WMacDrawer }, - { "WGroupLeader", Qt::WGroupLeader }, - { "WShowModal", Qt::WShowModal }, - { "WNoMousePropagation", Qt::WNoMousePropagation }, - { "WSubWindow", Qt::WSubWindow }, - { "WStyle_Splash", Qt::WStyle_Splash }, - { "WNoAutoErase", Qt::WNoAutoErase }, - { "WNorthWestGravity", Qt::WNorthWestGravity }, - { "WType_Modal", Qt::WType_Modal }, - { "WStyle_Dialog", Qt::WStyle_Dialog }, - { "WStyle_NoBorderEx", Qt::WStyle_NoBorderEx }, + { "WType_TopLevel", TQt::WType_TopLevel }, + { "WType_Dialog", TQt::WType_Dialog }, + { "WType_Popup", TQt::WType_Popup }, + { "WType_Desktop", TQt::WType_Desktop }, + { "WType_Mask", TQt::WType_Mask }, + { "WStyle_Customize", TQt::WStyle_Customize }, + { "WStyle_NormalBorder", TQt::WStyle_NormalBorder }, + { "WStyle_DialogBorder", TQt::WStyle_DialogBorder }, + { "WStyle_NoBorder", TQt::WStyle_NoBorder }, + { "WStyle_Title", TQt::WStyle_Title }, + { "WStyle_SysMenu", TQt::WStyle_SysMenu }, + { "WStyle_Minimize", TQt::WStyle_Minimize }, + { "WStyle_Maximize", TQt::WStyle_Maximize }, + { "WStyle_MinMax", TQt::WStyle_MinMax }, + { "WStyle_Tool", TQt::WStyle_Tool }, + { "WStyle_StaysOnTop", TQt::WStyle_StaysOnTop }, + { "WStyle_ContextHelp", TQt::WStyle_ContextHelp }, + { "WStyle_Reserved", TQt::WStyle_Reserved }, + { "WStyle_Mask", TQt::WStyle_Mask }, + { "WDestructiveClose", TQt::WDestructiveClose }, + { "WPaintDesktop", TQt::WPaintDesktop }, + { "WPaintUnclipped", TQt::WPaintUnclipped }, + { "WPaintClever", TQt::WPaintClever }, + { "WResizeNoErase", TQt::WResizeNoErase }, + { "WMouseNoMask", TQt::WMouseNoMask }, + { "WStaticContents", TQt::WStaticContents }, + { "WRepaintNoErase", TQt::WRepaintNoErase }, + { "WX11BypassWM", TQt::WX11BypassWM }, + { "WWinOwnDC", TQt::WWinOwnDC }, + { "WMacNoSheet", TQt::WMacNoSheet }, + { "WMacDrawer", TQt::WMacDrawer }, + { "WGroupLeader", TQt::WGroupLeader }, + { "WShowModal", TQt::WShowModal }, + { "WNoMousePropagation", TQt::WNoMousePropagation }, + { "WSubWindow", TQt::WSubWindow }, + { "WStyle_Splash", TQt::WStyle_Splash }, + { "WNoAutoErase", TQt::WNoAutoErase }, + { "WNorthWestGravity", TQt::WNorthWestGravity }, + { "WType_Modal", TQt::WType_Modal }, + { "WStyle_Dialog", TQt::WStyle_Dialog }, + { "WStyle_NoBorderEx", TQt::WStyle_NoBorderEx }, // enum WindowState - { "WindowNoState", Qt::WindowNoState }, - { "WindowMinimized", Qt::WindowMinimized }, - { "WindowMaximized", Qt::WindowMaximized }, - { "WindowFullScreen", Qt::WindowFullScreen }, - { "WindowActive", Qt::WindowActive }, + { "WindowNoState", TQt::WindowNoState }, + { "WindowMinimized", TQt::WindowMinimized }, + { "WindowMaximized", TQt::WindowMaximized }, + { "WindowFullScreen", TQt::WindowFullScreen }, + { "WindowActive", TQt::WindowActive }, // enum ImageConversionFlags - { "ColorMode_Mask", Qt::ColorMode_Mask }, - { "AutoColor", Qt::AutoColor }, - { "ColorOnly", Qt::ColorOnly }, - { "MonoOnly", Qt::MonoOnly }, - { "AlphaDither_Mask", Qt::AlphaDither_Mask }, - { "ThresholdAlphaDither", Qt::ThresholdAlphaDither }, - { "OrderedAlphaDither", Qt::OrderedAlphaDither }, - { "DiffuseAlphaDither", Qt::DiffuseAlphaDither }, - { "NoAlpha", Qt::NoAlpha }, - { "Dither_Mask", Qt::Dither_Mask }, - { "DiffuseDither", Qt::DiffuseDither }, - { "OrderedDither", Qt::OrderedDither }, - { "ThresholdDither", Qt::ThresholdDither }, - { "DitherMode_Mask", Qt::DitherMode_Mask }, - { "AutoDither", Qt::AutoDither }, - { "PreferDither", Qt::PreferDither }, - { "AvoidDither", Qt::AvoidDither }, + { "ColorMode_Mask", TQt::ColorMode_Mask }, + { "AutoColor", TQt::AutoColor }, + { "ColorOnly", TQt::ColorOnly }, + { "MonoOnly", TQt::MonoOnly }, + { "AlphaDither_Mask", TQt::AlphaDither_Mask }, + { "ThresholdAlphaDither", TQt::ThresholdAlphaDither }, + { "OrderedAlphaDither", TQt::OrderedAlphaDither }, + { "DiffuseAlphaDither", TQt::DiffuseAlphaDither }, + { "NoAlpha", TQt::NoAlpha }, + { "Dither_Mask", TQt::Dither_Mask }, + { "DiffuseDither", TQt::DiffuseDither }, + { "OrderedDither", TQt::OrderedDither }, + { "ThresholdDither", TQt::ThresholdDither }, + { "DitherMode_Mask", TQt::DitherMode_Mask }, + { "AutoDither", TQt::AutoDither }, + { "PreferDither", TQt::PreferDither }, + { "AvoidDither", TQt::AvoidDither }, // enum BGMode - { "TransparentMode", Qt::TransparentMode }, - { "OpaqueMode", Qt::OpaqueMode }, + { "TransparentMode", TQt::TransparentMode }, + { "OpaqueMode", TQt::OpaqueMode }, // enum PaintUnit - { "PixelUnit", Qt::PixelUnit }, - { "LoMetricUnit", Qt::LoMetricUnit }, - { "HiMetricUnit", Qt::HiMetricUnit }, - { "LoEnglishUnit", Qt::LoEnglishUnit }, - { "HiEnglishUnit", Qt::HiEnglishUnit }, - { "TwipsUnit", Qt::TwipsUnit }, + { "PixelUnit", TQt::PixelUnit }, + { "LoMetricUnit", TQt::LoMetricUnit }, + { "HiMetricUnit", TQt::HiMetricUnit }, + { "LoEnglishUnit", TQt::LoEnglishUnit }, + { "HiEnglishUnit", TQt::HiEnglishUnit }, + { "TwipsUnit", TQt::TwipsUnit }, // enum GUIStyle - { "MacStyle", Qt::MacStyle }, - { "WindowsStyle", Qt::WindowsStyle }, - { "Win3Style", Qt::Win3Style }, - { "PMStyle", Qt::PMStyle }, - { "MotifStyle", Qt::MotifStyle }, + { "MacStyle", TQt::MacStyle }, + { "WindowsStyle", TQt::WindowsStyle }, + { "Win3Style", TQt::Win3Style }, + { "PMStyle", TQt::PMStyle }, + { "MotifStyle", TQt::MotifStyle }, // enum SequenceMatch - { "NoMatch", Qt::NoMatch }, - { "PartialMatch", Qt::PartialMatch }, - { "Identical", Qt::Identical }, + { "NoMatch", TQt::NoMatch }, + { "PartialMatch", TQt::PartialMatch }, + { "Identical", TQt::Identical }, // enum Modifier - { "META", Qt::META }, - { "SHIFT", Qt::SHIFT }, - { "CTRL", Qt::CTRL }, - { "ALT", Qt::ALT }, - { "MODIFIER_MASK", Qt::MODIFIER_MASK }, - { "UNICODE_ACCEL", Qt::UNICODE_ACCEL }, - { "ASCII_ACCEL", Qt::ASCII_ACCEL }, + { "META", TQt::META }, + { "SHIFT", TQt::SHIFT }, + { "CTRL", TQt::CTRL }, + { "ALT", TQt::ALT }, + { "MODIFIER_MASK", TQt::MODIFIER_MASK }, + { "UNICODE_ACCEL", TQt::UNICODE_ACCEL }, + { "ASCII_ACCEL", TQt::ASCII_ACCEL }, // enum Key - { "Key_Escape", Qt::Key_Escape }, - { "Key_Tab", Qt::Key_Tab }, - { "Key_Backtab", Qt::Key_Backtab }, - { "Key_BackTab", Qt::Key_BackTab }, - { "Key_Backspace", Qt::Key_Backspace }, - { "Key_BackSpace", Qt::Key_BackSpace }, - { "Key_Return", Qt::Key_Return }, - { "Key_Enter", Qt::Key_Enter }, - { "Key_Insert", Qt::Key_Insert }, - { "Key_Delete", Qt::Key_Delete }, - { "Key_Pause", Qt::Key_Pause }, - { "Key_Print", Qt::Key_Print }, - { "Key_SysReq", Qt::Key_SysReq }, - { "Key_Clear", Qt::Key_Clear }, - { "Key_Home", Qt::Key_Home }, - { "Key_End", Qt::Key_End }, - { "Key_Left", Qt::Key_Left }, - { "Key_Up", Qt::Key_Up }, - { "Key_Right", Qt::Key_Right }, - { "Key_Down", Qt::Key_Down }, - { "Key_Prior", Qt::Key_Prior }, - { "Key_PageUp", Qt::Key_PageUp }, - { "Key_Next", Qt::Key_Next }, - { "Key_PageDown", Qt::Key_PageDown }, - { "Key_Shift", Qt::Key_Shift }, - { "Key_Control", Qt::Key_Control }, - { "Key_Meta", Qt::Key_Meta }, - { "Key_Alt", Qt::Key_Alt }, - { "Key_CapsLock", Qt::Key_CapsLock }, - { "Key_NumLock", Qt::Key_NumLock }, - { "Key_ScrollLock", Qt::Key_ScrollLock }, - { "Key_F1", Qt::Key_F1 }, - { "Key_F2", Qt::Key_F2 }, - { "Key_F3", Qt::Key_F3 }, - { "Key_F4", Qt::Key_F4 }, - { "Key_F5", Qt::Key_F5 }, - { "Key_F6", Qt::Key_F6 }, - { "Key_F7", Qt::Key_F7 }, - { "Key_F8", Qt::Key_F8 }, - { "Key_F9", Qt::Key_F9 }, - { "Key_F10", Qt::Key_F10 }, - { "Key_F11", Qt::Key_F11 }, - { "Key_F12", Qt::Key_F12 }, - { "Key_F13", Qt::Key_F13 }, - { "Key_F14", Qt::Key_F14 }, - { "Key_F15", Qt::Key_F15 }, - { "Key_F16", Qt::Key_F16 }, - { "Key_F17", Qt::Key_F17 }, - { "Key_F18", Qt::Key_F18 }, - { "Key_F19", Qt::Key_F19 }, - { "Key_F20", Qt::Key_F20 }, - { "Key_F21", Qt::Key_F21 }, - { "Key_F22", Qt::Key_F22 }, - { "Key_F23", Qt::Key_F23 }, - { "Key_F24", Qt::Key_F24 }, - { "Key_F25", Qt::Key_F25 }, - { "Key_F26", Qt::Key_F26 }, - { "Key_F27", Qt::Key_F27 }, - { "Key_F28", Qt::Key_F28 }, - { "Key_F29", Qt::Key_F29 }, - { "Key_F30", Qt::Key_F30 }, - { "Key_F31", Qt::Key_F31 }, - { "Key_F32", Qt::Key_F32 }, - { "Key_F33", Qt::Key_F33 }, - { "Key_F34", Qt::Key_F34 }, - { "Key_F35", Qt::Key_F35 }, - { "Key_Super_L", Qt::Key_Super_L }, - { "Key_Super_R", Qt::Key_Super_R }, - { "Key_Menu", Qt::Key_Menu }, - { "Key_Hyper_L", Qt::Key_Hyper_L }, - { "Key_Hyper_R", Qt::Key_Hyper_R }, - { "Key_Help", Qt::Key_Help }, - { "Key_Direction_L", Qt::Key_Direction_L }, - { "Key_Direction_R", Qt::Key_Direction_R }, - { "Key_Space", Qt::Key_Space }, - { "Key_Any", Qt::Key_Any }, - { "Key_Exclam", Qt::Key_Exclam }, - { "Key_QuoteDbl", Qt::Key_QuoteDbl }, - { "Key_NumberSign", Qt::Key_NumberSign }, - { "Key_Dollar", Qt::Key_Dollar }, - { "Key_Percent", Qt::Key_Percent }, - { "Key_Ampersand", Qt::Key_Ampersand }, - { "Key_Apostrophe", Qt::Key_Apostrophe }, - { "Key_ParenLeft", Qt::Key_ParenLeft }, - { "Key_ParenRight", Qt::Key_ParenRight }, - { "Key_Asterisk", Qt::Key_Asterisk }, - { "Key_Plus", Qt::Key_Plus }, - { "Key_Comma", Qt::Key_Comma }, - { "Key_Minus", Qt::Key_Minus }, - { "Key_Period", Qt::Key_Period }, - { "Key_Slash", Qt::Key_Slash }, - { "Key_0", Qt::Key_0 }, - { "Key_1", Qt::Key_1 }, - { "Key_2", Qt::Key_2 }, - { "Key_3", Qt::Key_3 }, - { "Key_4", Qt::Key_4 }, - { "Key_5", Qt::Key_5 }, - { "Key_6", Qt::Key_6 }, - { "Key_7", Qt::Key_7 }, - { "Key_8", Qt::Key_8 }, - { "Key_9", Qt::Key_9 }, - { "Key_Colon", Qt::Key_Colon }, - { "Key_Semicolon", Qt::Key_Semicolon }, - { "Key_Less", Qt::Key_Less }, - { "Key_Equal", Qt::Key_Equal }, - { "Key_Greater", Qt::Key_Greater }, - { "Key_Question", Qt::Key_Question }, - { "Key_At", Qt::Key_At }, - { "Key_A", Qt::Key_A }, - { "Key_B", Qt::Key_B }, - { "Key_C", Qt::Key_C }, - { "Key_D", Qt::Key_D }, - { "Key_E", Qt::Key_E }, - { "Key_F", Qt::Key_F }, - { "Key_G", Qt::Key_G }, - { "Key_H", Qt::Key_H }, - { "Key_I", Qt::Key_I }, - { "Key_J", Qt::Key_J }, - { "Key_K", Qt::Key_K }, - { "Key_L", Qt::Key_L }, - { "Key_M", Qt::Key_M }, - { "Key_N", Qt::Key_N }, - { "Key_O", Qt::Key_O }, - { "Key_P", Qt::Key_P }, - { "Key_Q", Qt::Key_Q }, - { "Key_R", Qt::Key_R }, - { "Key_S", Qt::Key_S }, - { "Key_T", Qt::Key_T }, - { "Key_U", Qt::Key_U }, - { "Key_V", Qt::Key_V }, - { "Key_W", Qt::Key_W }, - { "Key_X", Qt::Key_X }, - { "Key_Y", Qt::Key_Y }, - { "Key_Z", Qt::Key_Z }, - { "Key_BracketLeft", Qt::Key_BracketLeft }, - { "Key_Backslash", Qt::Key_Backslash }, - { "Key_BracketRight", Qt::Key_BracketRight }, - { "Key_AsciiCircum", Qt::Key_AsciiCircum }, - { "Key_Underscore", Qt::Key_Underscore }, - { "Key_QuoteLeft", Qt::Key_QuoteLeft }, - { "Key_BraceLeft", Qt::Key_BraceLeft }, - { "Key_Bar", Qt::Key_Bar }, - { "Key_BraceRight", Qt::Key_BraceRight }, - { "Key_AsciiTilde", Qt::Key_AsciiTilde }, - { "Key_nobreakspace", Qt::Key_nobreakspace }, - { "Key_exclamdown", Qt::Key_exclamdown }, - { "Key_cent", Qt::Key_cent }, - { "Key_sterling", Qt::Key_sterling }, - { "Key_currency", Qt::Key_currency }, - { "Key_yen", Qt::Key_yen }, - { "Key_brokenbar", Qt::Key_brokenbar }, - { "Key_section", Qt::Key_section }, - { "Key_diaeresis", Qt::Key_diaeresis }, - { "Key_copyright", Qt::Key_copyright }, - { "Key_ordfeminine", Qt::Key_ordfeminine }, - { "Key_guillemotleft", Qt::Key_guillemotleft }, - { "Key_notsign", Qt::Key_notsign }, - { "Key_hyphen", Qt::Key_hyphen }, - { "Key_registered", Qt::Key_registered }, - { "Key_macron", Qt::Key_macron }, - { "Key_degree", Qt::Key_degree }, - { "Key_plusminus", Qt::Key_plusminus }, - { "Key_twosuperior", Qt::Key_twosuperior }, - { "Key_threesuperior", Qt::Key_threesuperior }, - { "Key_acute", Qt::Key_acute }, - { "Key_mu", Qt::Key_mu }, - { "Key_paragraph", Qt::Key_paragraph }, - { "Key_periodcentered", Qt::Key_periodcentered }, - { "Key_cedilla", Qt::Key_cedilla }, - { "Key_onesuperior", Qt::Key_onesuperior }, - { "Key_masculine", Qt::Key_masculine }, - { "Key_guillemotright", Qt::Key_guillemotright }, - { "Key_onequarter", Qt::Key_onequarter }, - { "Key_onehalf", Qt::Key_onehalf }, - { "Key_threequarters", Qt::Key_threequarters }, - { "Key_questiondown", Qt::Key_questiondown }, - { "Key_Agrave", Qt::Key_Agrave }, - { "Key_Aacute", Qt::Key_Aacute }, - { "Key_Acircumflex", Qt::Key_Acircumflex }, - { "Key_Atilde", Qt::Key_Atilde }, - { "Key_Adiaeresis", Qt::Key_Adiaeresis }, - { "Key_Aring", Qt::Key_Aring }, - { "Key_AE", Qt::Key_AE }, - { "Key_Ccedilla", Qt::Key_Ccedilla }, - { "Key_Egrave", Qt::Key_Egrave }, - { "Key_Eacute", Qt::Key_Eacute }, - { "Key_Ecircumflex", Qt::Key_Ecircumflex }, - { "Key_Ediaeresis", Qt::Key_Ediaeresis }, - { "Key_Igrave", Qt::Key_Igrave }, - { "Key_Iacute", Qt::Key_Iacute }, - { "Key_Icircumflex", Qt::Key_Icircumflex }, - { "Key_Idiaeresis", Qt::Key_Idiaeresis }, - { "Key_ETH", Qt::Key_ETH }, - { "Key_Ntilde", Qt::Key_Ntilde }, - { "Key_Ograve", Qt::Key_Ograve }, - { "Key_Oacute", Qt::Key_Oacute }, - { "Key_Ocircumflex", Qt::Key_Ocircumflex }, - { "Key_Otilde", Qt::Key_Otilde }, - { "Key_Odiaeresis", Qt::Key_Odiaeresis }, - { "Key_multiply", Qt::Key_multiply }, - { "Key_Ooblique", Qt::Key_Ooblique }, - { "Key_Ugrave", Qt::Key_Ugrave }, - { "Key_Uacute", Qt::Key_Uacute }, - { "Key_Ucircumflex", Qt::Key_Ucircumflex }, - { "Key_Udiaeresis", Qt::Key_Udiaeresis }, - { "Key_Yacute", Qt::Key_Yacute }, - { "Key_THORN", Qt::Key_THORN }, - { "Key_ssharp", Qt::Key_ssharp }, - { "Key_agrave", Qt::Key_agrave }, - { "Key_aacute", Qt::Key_aacute }, - { "Key_acircumflex", Qt::Key_acircumflex }, - { "Key_atilde", Qt::Key_atilde }, - { "Key_adiaeresis", Qt::Key_adiaeresis }, - { "Key_aring", Qt::Key_aring }, - { "Key_ae", Qt::Key_ae }, - { "Key_ccedilla", Qt::Key_ccedilla }, - { "Key_egrave", Qt::Key_egrave }, - { "Key_eacute", Qt::Key_eacute }, - { "Key_ecircumflex", Qt::Key_ecircumflex }, - { "Key_ediaeresis", Qt::Key_ediaeresis }, - { "Key_igrave", Qt::Key_igrave }, - { "Key_iacute", Qt::Key_iacute }, - { "Key_icircumflex", Qt::Key_icircumflex }, - { "Key_idiaeresis", Qt::Key_idiaeresis }, - { "Key_eth", Qt::Key_eth }, - { "Key_ntilde", Qt::Key_ntilde }, - { "Key_ograve", Qt::Key_ograve }, - { "Key_oacute", Qt::Key_oacute }, - { "Key_ocircumflex", Qt::Key_ocircumflex }, - { "Key_otilde", Qt::Key_otilde }, - { "Key_odiaeresis", Qt::Key_odiaeresis }, - { "Key_division", Qt::Key_division }, - { "Key_oslash", Qt::Key_oslash }, - { "Key_ugrave", Qt::Key_ugrave }, - { "Key_uacute", Qt::Key_uacute }, - { "Key_ucircumflex", Qt::Key_ucircumflex }, - { "Key_udiaeresis", Qt::Key_udiaeresis }, - { "Key_yacute", Qt::Key_yacute }, - { "Key_thorn", Qt::Key_thorn }, - { "Key_ydiaeresis", Qt::Key_ydiaeresis }, - { "Key_Back", Qt::Key_Back }, - { "Key_Forward", Qt::Key_Forward }, - { "Key_Stop", Qt::Key_Stop }, - { "Key_Refresh", Qt::Key_Refresh }, - { "Key_VolumeDown", Qt::Key_VolumeDown }, - { "Key_VolumeMute", Qt::Key_VolumeMute }, - { "Key_VolumeUp", Qt::Key_VolumeUp }, - { "Key_BassBoost", Qt::Key_BassBoost }, - { "Key_BassUp", Qt::Key_BassUp }, - { "Key_BassDown", Qt::Key_BassDown }, - { "Key_TrebleUp", Qt::Key_TrebleUp }, - { "Key_TrebleDown", Qt::Key_TrebleDown }, - { "Key_MediaPlay", Qt::Key_MediaPlay }, - { "Key_MediaStop", Qt::Key_MediaStop }, - { "Key_MediaPrev", Qt::Key_MediaPrev }, - { "Key_MediaNext", Qt::Key_MediaNext }, - { "Key_MediaRecord", Qt::Key_MediaRecord }, - { "Key_HomePage", Qt::Key_HomePage }, - { "Key_Favorites", Qt::Key_Favorites }, - { "Key_Search", Qt::Key_Search }, - { "Key_Standby", Qt::Key_Standby }, - { "Key_OpenUrl", Qt::Key_OpenUrl }, - { "Key_LaunchMail", Qt::Key_LaunchMail }, - { "Key_LaunchMedia", Qt::Key_LaunchMedia }, - { "Key_Launch0", Qt::Key_Launch0 }, - { "Key_Launch1", Qt::Key_Launch1 }, - { "Key_Launch2", Qt::Key_Launch2 }, - { "Key_Launch3", Qt::Key_Launch3 }, - { "Key_Launch4", Qt::Key_Launch4 }, - { "Key_Launch5", Qt::Key_Launch5 }, - { "Key_Launch6", Qt::Key_Launch6 }, - { "Key_Launch7", Qt::Key_Launch7 }, - { "Key_Launch8", Qt::Key_Launch8 }, - { "Key_Launch9", Qt::Key_Launch9 }, - { "Key_LaunchA", Qt::Key_LaunchA }, - { "Key_LaunchB", Qt::Key_LaunchB }, - { "Key_LaunchC", Qt::Key_LaunchC }, - { "Key_LaunchD", Qt::Key_LaunchD }, - { "Key_LaunchE", Qt::Key_LaunchE }, - { "Key_LaunchF", Qt::Key_LaunchF }, - { "Key_MediaLast", Qt::Key_MediaLast }, - { "Key_unknown", Qt::Key_unknown }, + { "Key_Escape", TQt::Key_Escape }, + { "Key_Tab", TQt::Key_Tab }, + { "Key_Backtab", TQt::Key_Backtab }, + { "Key_BackTab", TQt::Key_BackTab }, + { "Key_Backspace", TQt::Key_Backspace }, + { "Key_BackSpace", TQt::Key_BackSpace }, + { "Key_Return", TQt::Key_Return }, + { "Key_Enter", TQt::Key_Enter }, + { "Key_Insert", TQt::Key_Insert }, + { "Key_Delete", TQt::Key_Delete }, + { "Key_Pause", TQt::Key_Pause }, + { "Key_Print", TQt::Key_Print }, + { "Key_SysReq", TQt::Key_SysReq }, + { "Key_Clear", TQt::Key_Clear }, + { "Key_Home", TQt::Key_Home }, + { "Key_End", TQt::Key_End }, + { "Key_Left", TQt::Key_Left }, + { "Key_Up", TQt::Key_Up }, + { "Key_Right", TQt::Key_Right }, + { "Key_Down", TQt::Key_Down }, + { "Key_Prior", TQt::Key_Prior }, + { "Key_PageUp", TQt::Key_PageUp }, + { "Key_Next", TQt::Key_Next }, + { "Key_PageDown", TQt::Key_PageDown }, + { "Key_Shift", TQt::Key_Shift }, + { "Key_Control", TQt::Key_Control }, + { "Key_Meta", TQt::Key_Meta }, + { "Key_Alt", TQt::Key_Alt }, + { "Key_CapsLock", TQt::Key_CapsLock }, + { "Key_NumLock", TQt::Key_NumLock }, + { "Key_ScrollLock", TQt::Key_ScrollLock }, + { "Key_F1", TQt::Key_F1 }, + { "Key_F2", TQt::Key_F2 }, + { "Key_F3", TQt::Key_F3 }, + { "Key_F4", TQt::Key_F4 }, + { "Key_F5", TQt::Key_F5 }, + { "Key_F6", TQt::Key_F6 }, + { "Key_F7", TQt::Key_F7 }, + { "Key_F8", TQt::Key_F8 }, + { "Key_F9", TQt::Key_F9 }, + { "Key_F10", TQt::Key_F10 }, + { "Key_F11", TQt::Key_F11 }, + { "Key_F12", TQt::Key_F12 }, + { "Key_F13", TQt::Key_F13 }, + { "Key_F14", TQt::Key_F14 }, + { "Key_F15", TQt::Key_F15 }, + { "Key_F16", TQt::Key_F16 }, + { "Key_F17", TQt::Key_F17 }, + { "Key_F18", TQt::Key_F18 }, + { "Key_F19", TQt::Key_F19 }, + { "Key_F20", TQt::Key_F20 }, + { "Key_F21", TQt::Key_F21 }, + { "Key_F22", TQt::Key_F22 }, + { "Key_F23", TQt::Key_F23 }, + { "Key_F24", TQt::Key_F24 }, + { "Key_F25", TQt::Key_F25 }, + { "Key_F26", TQt::Key_F26 }, + { "Key_F27", TQt::Key_F27 }, + { "Key_F28", TQt::Key_F28 }, + { "Key_F29", TQt::Key_F29 }, + { "Key_F30", TQt::Key_F30 }, + { "Key_F31", TQt::Key_F31 }, + { "Key_F32", TQt::Key_F32 }, + { "Key_F33", TQt::Key_F33 }, + { "Key_F34", TQt::Key_F34 }, + { "Key_F35", TQt::Key_F35 }, + { "Key_Super_L", TQt::Key_Super_L }, + { "Key_Super_R", TQt::Key_Super_R }, + { "Key_Menu", TQt::Key_Menu }, + { "Key_Hyper_L", TQt::Key_Hyper_L }, + { "Key_Hyper_R", TQt::Key_Hyper_R }, + { "Key_Help", TQt::Key_Help }, + { "Key_Direction_L", TQt::Key_Direction_L }, + { "Key_Direction_R", TQt::Key_Direction_R }, + { "Key_Space", TQt::Key_Space }, + { "Key_Any", TQt::Key_Any }, + { "Key_Exclam", TQt::Key_Exclam }, + { "Key_QuoteDbl", TQt::Key_QuoteDbl }, + { "Key_NumberSign", TQt::Key_NumberSign }, + { "Key_Dollar", TQt::Key_Dollar }, + { "Key_Percent", TQt::Key_Percent }, + { "Key_Ampersand", TQt::Key_Ampersand }, + { "Key_Apostrophe", TQt::Key_Apostrophe }, + { "Key_ParenLeft", TQt::Key_ParenLeft }, + { "Key_ParenRight", TQt::Key_ParenRight }, + { "Key_Asterisk", TQt::Key_Asterisk }, + { "Key_Plus", TQt::Key_Plus }, + { "Key_Comma", TQt::Key_Comma }, + { "Key_Minus", TQt::Key_Minus }, + { "Key_Period", TQt::Key_Period }, + { "Key_Slash", TQt::Key_Slash }, + { "Key_0", TQt::Key_0 }, + { "Key_1", TQt::Key_1 }, + { "Key_2", TQt::Key_2 }, + { "Key_3", TQt::Key_3 }, + { "Key_4", TQt::Key_4 }, + { "Key_5", TQt::Key_5 }, + { "Key_6", TQt::Key_6 }, + { "Key_7", TQt::Key_7 }, + { "Key_8", TQt::Key_8 }, + { "Key_9", TQt::Key_9 }, + { "Key_Colon", TQt::Key_Colon }, + { "Key_Semicolon", TQt::Key_Semicolon }, + { "Key_Less", TQt::Key_Less }, + { "Key_Equal", TQt::Key_Equal }, + { "Key_Greater", TQt::Key_Greater }, + { "Key_Question", TQt::Key_Question }, + { "Key_At", TQt::Key_At }, + { "Key_A", TQt::Key_A }, + { "Key_B", TQt::Key_B }, + { "Key_C", TQt::Key_C }, + { "Key_D", TQt::Key_D }, + { "Key_E", TQt::Key_E }, + { "Key_F", TQt::Key_F }, + { "Key_G", TQt::Key_G }, + { "Key_H", TQt::Key_H }, + { "Key_I", TQt::Key_I }, + { "Key_J", TQt::Key_J }, + { "Key_K", TQt::Key_K }, + { "Key_L", TQt::Key_L }, + { "Key_M", TQt::Key_M }, + { "Key_N", TQt::Key_N }, + { "Key_O", TQt::Key_O }, + { "Key_P", TQt::Key_P }, + { "Key_Q", TQt::Key_Q }, + { "Key_R", TQt::Key_R }, + { "Key_S", TQt::Key_S }, + { "Key_T", TQt::Key_T }, + { "Key_U", TQt::Key_U }, + { "Key_V", TQt::Key_V }, + { "Key_W", TQt::Key_W }, + { "Key_X", TQt::Key_X }, + { "Key_Y", TQt::Key_Y }, + { "Key_Z", TQt::Key_Z }, + { "Key_BracketLeft", TQt::Key_BracketLeft }, + { "Key_Backslash", TQt::Key_Backslash }, + { "Key_BracketRight", TQt::Key_BracketRight }, + { "Key_AsciiCircum", TQt::Key_AsciiCircum }, + { "Key_Underscore", TQt::Key_Underscore }, + { "Key_QuoteLeft", TQt::Key_QuoteLeft }, + { "Key_BraceLeft", TQt::Key_BraceLeft }, + { "Key_Bar", TQt::Key_Bar }, + { "Key_BraceRight", TQt::Key_BraceRight }, + { "Key_AsciiTilde", TQt::Key_AsciiTilde }, + { "Key_nobreakspace", TQt::Key_nobreakspace }, + { "Key_exclamdown", TQt::Key_exclamdown }, + { "Key_cent", TQt::Key_cent }, + { "Key_sterling", TQt::Key_sterling }, + { "Key_currency", TQt::Key_currency }, + { "Key_yen", TQt::Key_yen }, + { "Key_brokenbar", TQt::Key_brokenbar }, + { "Key_section", TQt::Key_section }, + { "Key_diaeresis", TQt::Key_diaeresis }, + { "Key_copyright", TQt::Key_copyright }, + { "Key_ordfeminine", TQt::Key_ordfeminine }, + { "Key_guillemotleft", TQt::Key_guillemotleft }, + { "Key_notsign", TQt::Key_notsign }, + { "Key_hyphen", TQt::Key_hyphen }, + { "Key_registered", TQt::Key_registered }, + { "Key_macron", TQt::Key_macron }, + { "Key_degree", TQt::Key_degree }, + { "Key_plusminus", TQt::Key_plusminus }, + { "Key_twosuperior", TQt::Key_twosuperior }, + { "Key_threesuperior", TQt::Key_threesuperior }, + { "Key_acute", TQt::Key_acute }, + { "Key_mu", TQt::Key_mu }, + { "Key_paragraph", TQt::Key_paragraph }, + { "Key_periodcentered", TQt::Key_periodcentered }, + { "Key_cedilla", TQt::Key_cedilla }, + { "Key_onesuperior", TQt::Key_onesuperior }, + { "Key_masculine", TQt::Key_masculine }, + { "Key_guillemotright", TQt::Key_guillemotright }, + { "Key_onequarter", TQt::Key_onequarter }, + { "Key_onehalf", TQt::Key_onehalf }, + { "Key_threequarters", TQt::Key_threequarters }, + { "Key_questiondown", TQt::Key_questiondown }, + { "Key_Agrave", TQt::Key_Agrave }, + { "Key_Aacute", TQt::Key_Aacute }, + { "Key_Acircumflex", TQt::Key_Acircumflex }, + { "Key_Atilde", TQt::Key_Atilde }, + { "Key_Adiaeresis", TQt::Key_Adiaeresis }, + { "Key_Aring", TQt::Key_Aring }, + { "Key_AE", TQt::Key_AE }, + { "Key_Ccedilla", TQt::Key_Ccedilla }, + { "Key_Egrave", TQt::Key_Egrave }, + { "Key_Eacute", TQt::Key_Eacute }, + { "Key_Ecircumflex", TQt::Key_Ecircumflex }, + { "Key_Ediaeresis", TQt::Key_Ediaeresis }, + { "Key_Igrave", TQt::Key_Igrave }, + { "Key_Iacute", TQt::Key_Iacute }, + { "Key_Icircumflex", TQt::Key_Icircumflex }, + { "Key_Idiaeresis", TQt::Key_Idiaeresis }, + { "Key_ETH", TQt::Key_ETH }, + { "Key_Ntilde", TQt::Key_Ntilde }, + { "Key_Ograve", TQt::Key_Ograve }, + { "Key_Oacute", TQt::Key_Oacute }, + { "Key_Ocircumflex", TQt::Key_Ocircumflex }, + { "Key_Otilde", TQt::Key_Otilde }, + { "Key_Odiaeresis", TQt::Key_Odiaeresis }, + { "Key_multiply", TQt::Key_multiply }, + { "Key_Ooblique", TQt::Key_Ooblique }, + { "Key_Ugrave", TQt::Key_Ugrave }, + { "Key_Uacute", TQt::Key_Uacute }, + { "Key_Ucircumflex", TQt::Key_Ucircumflex }, + { "Key_Udiaeresis", TQt::Key_Udiaeresis }, + { "Key_Yacute", TQt::Key_Yacute }, + { "Key_THORN", TQt::Key_THORN }, + { "Key_ssharp", TQt::Key_ssharp }, + { "Key_agrave", TQt::Key_agrave }, + { "Key_aacute", TQt::Key_aacute }, + { "Key_acircumflex", TQt::Key_acircumflex }, + { "Key_atilde", TQt::Key_atilde }, + { "Key_adiaeresis", TQt::Key_adiaeresis }, + { "Key_aring", TQt::Key_aring }, + { "Key_ae", TQt::Key_ae }, + { "Key_ccedilla", TQt::Key_ccedilla }, + { "Key_egrave", TQt::Key_egrave }, + { "Key_eacute", TQt::Key_eacute }, + { "Key_ecircumflex", TQt::Key_ecircumflex }, + { "Key_ediaeresis", TQt::Key_ediaeresis }, + { "Key_igrave", TQt::Key_igrave }, + { "Key_iacute", TQt::Key_iacute }, + { "Key_icircumflex", TQt::Key_icircumflex }, + { "Key_idiaeresis", TQt::Key_idiaeresis }, + { "Key_eth", TQt::Key_eth }, + { "Key_ntilde", TQt::Key_ntilde }, + { "Key_ograve", TQt::Key_ograve }, + { "Key_oacute", TQt::Key_oacute }, + { "Key_ocircumflex", TQt::Key_ocircumflex }, + { "Key_otilde", TQt::Key_otilde }, + { "Key_odiaeresis", TQt::Key_odiaeresis }, + { "Key_division", TQt::Key_division }, + { "Key_oslash", TQt::Key_oslash }, + { "Key_ugrave", TQt::Key_ugrave }, + { "Key_uacute", TQt::Key_uacute }, + { "Key_ucircumflex", TQt::Key_ucircumflex }, + { "Key_udiaeresis", TQt::Key_udiaeresis }, + { "Key_yacute", TQt::Key_yacute }, + { "Key_thorn", TQt::Key_thorn }, + { "Key_ydiaeresis", TQt::Key_ydiaeresis }, + { "Key_Back", TQt::Key_Back }, + { "Key_Forward", TQt::Key_Forward }, + { "Key_Stop", TQt::Key_Stop }, + { "Key_Refresh", TQt::Key_Refresh }, + { "Key_VolumeDown", TQt::Key_VolumeDown }, + { "Key_VolumeMute", TQt::Key_VolumeMute }, + { "Key_VolumeUp", TQt::Key_VolumeUp }, + { "Key_BassBoost", TQt::Key_BassBoost }, + { "Key_BassUp", TQt::Key_BassUp }, + { "Key_BassDown", TQt::Key_BassDown }, + { "Key_TrebleUp", TQt::Key_TrebleUp }, + { "Key_TrebleDown", TQt::Key_TrebleDown }, + { "Key_MediaPlay", TQt::Key_MediaPlay }, + { "Key_MediaStop", TQt::Key_MediaStop }, + { "Key_MediaPrev", TQt::Key_MediaPrev }, + { "Key_MediaNext", TQt::Key_MediaNext }, + { "Key_MediaRecord", TQt::Key_MediaRecord }, + { "Key_HomePage", TQt::Key_HomePage }, + { "Key_Favorites", TQt::Key_Favorites }, + { "Key_Search", TQt::Key_Search }, + { "Key_Standby", TQt::Key_Standby }, + { "Key_OpenUrl", TQt::Key_OpenUrl }, + { "Key_LaunchMail", TQt::Key_LaunchMail }, + { "Key_LaunchMedia", TQt::Key_LaunchMedia }, + { "Key_Launch0", TQt::Key_Launch0 }, + { "Key_Launch1", TQt::Key_Launch1 }, + { "Key_Launch2", TQt::Key_Launch2 }, + { "Key_Launch3", TQt::Key_Launch3 }, + { "Key_Launch4", TQt::Key_Launch4 }, + { "Key_Launch5", TQt::Key_Launch5 }, + { "Key_Launch6", TQt::Key_Launch6 }, + { "Key_Launch7", TQt::Key_Launch7 }, + { "Key_Launch8", TQt::Key_Launch8 }, + { "Key_Launch9", TQt::Key_Launch9 }, + { "Key_LaunchA", TQt::Key_LaunchA }, + { "Key_LaunchB", TQt::Key_LaunchB }, + { "Key_LaunchC", TQt::Key_LaunchC }, + { "Key_LaunchD", TQt::Key_LaunchD }, + { "Key_LaunchE", TQt::Key_LaunchE }, + { "Key_LaunchF", TQt::Key_LaunchF }, + { "Key_MediaLast", TQt::Key_MediaLast }, + { "Key_unknown", TQt::Key_unknown }, // enum ArrowType - { "UpArrow", Qt::UpArrow }, - { "DownArrow", Qt::DownArrow }, - { "LeftArrow", Qt::LeftArrow }, - { "RightArrow", Qt::RightArrow }, + { "UpArrow", TQt::UpArrow }, + { "DownArrow", TQt::DownArrow }, + { "LeftArrow", TQt::LeftArrow }, + { "RightArrow", TQt::RightArrow }, // enum RasterOp - { "CopyROP", Qt::CopyROP }, - { "OrROP", Qt::OrROP }, - { "XorROP", Qt::XorROP }, - { "NotAndROP", Qt::NotAndROP }, - { "EraseROP", Qt::EraseROP }, - { "NotCopyROP", Qt::NotCopyROP }, - { "NotOrROP", Qt::NotOrROP }, - { "NotXorROP", Qt::NotXorROP }, - { "AndROP", Qt::AndROP }, - { "NotEraseROP", Qt::NotEraseROP }, - { "NotROP", Qt::NotROP }, - { "ClearROP", Qt::ClearROP }, - { "SetROP", Qt::SetROP }, - { "NopROP", Qt::NopROP }, - { "AndNotROP", Qt::AndNotROP }, - { "OrNotROP", Qt::OrNotROP }, - { "NandROP", Qt::NandROP }, - { "NorROP", Qt::NorROP }, - { "LastROP", Qt::LastROP }, + { "CopyROP", TQt::CopyROP }, + { "OrROP", TQt::OrROP }, + { "XorROP", TQt::XorROP }, + { "NotAndROP", TQt::NotAndROP }, + { "EraseROP", TQt::EraseROP }, + { "NotCopyROP", TQt::NotCopyROP }, + { "NotOrROP", TQt::NotOrROP }, + { "NotXorROP", TQt::NotXorROP }, + { "AndROP", TQt::AndROP }, + { "NotEraseROP", TQt::NotEraseROP }, + { "NotROP", TQt::NotROP }, + { "ClearROP", TQt::ClearROP }, + { "SetROP", TQt::SetROP }, + { "NopROP", TQt::NopROP }, + { "AndNotROP", TQt::AndNotROP }, + { "OrNotROP", TQt::OrNotROP }, + { "NandROP", TQt::NandROP }, + { "NorROP", TQt::NorROP }, + { "LastROP", TQt::LastROP }, // enum PenStyle - { "NoPen", Qt::NoPen }, - { "SolidLine", Qt::SolidLine }, - { "DashLine", Qt::DashLine }, - { "DotLine", Qt::DotLine }, - { "DashDotLine", Qt::DashDotLine }, - { "DashDotDotLine", Qt::DashDotDotLine }, - { "MPenStyle", Qt::MPenStyle }, + { "NoPen", TQt::NoPen }, + { "SolidLine", TQt::SolidLine }, + { "DashLine", TQt::DashLine }, + { "DotLine", TQt::DotLine }, + { "DashDotLine", TQt::DashDotLine }, + { "DashDotDotLine", TQt::DashDotDotLine }, + { "MPenStyle", TQt::MPenStyle }, // enum PenCapStyle - { "FlatCap", Qt::FlatCap }, - { "SquareCap", Qt::SquareCap }, - { "RoundCap", Qt::RoundCap }, - { "MPenCapStyle", Qt::MPenCapStyle }, + { "FlatCap", TQt::FlatCap }, + { "SquareCap", TQt::SquareCap }, + { "RoundCap", TQt::RoundCap }, + { "MPenCapStyle", TQt::MPenCapStyle }, // enum PenJoinStyle - { "MiterJoin", Qt::MiterJoin }, - { "BevelJoin", Qt::BevelJoin }, - { "RoundJoin", Qt::RoundJoin }, - { "MPenJoinStyle", Qt::MPenJoinStyle }, + { "MiterJoin", TQt::MiterJoin }, + { "BevelJoin", TQt::BevelJoin }, + { "RoundJoin", TQt::RoundJoin }, + { "MPenJoinStyle", TQt::MPenJoinStyle }, // enum BrushStyle - { "NoBrush", Qt::NoBrush }, - { "SolidPattern", Qt::SolidPattern }, - { "Dense1Pattern", Qt::Dense1Pattern }, - { "Dense2Pattern", Qt::Dense2Pattern }, - { "Dense3Pattern", Qt::Dense3Pattern }, - { "Dense4Pattern", Qt::Dense4Pattern }, - { "Dense5Pattern", Qt::Dense5Pattern }, - { "Dense6Pattern", Qt::Dense6Pattern }, - { "Dense7Pattern", Qt::Dense7Pattern }, - { "HorPattern", Qt::HorPattern }, - { "VerPattern", Qt::VerPattern }, - { "CrossPattern", Qt::CrossPattern }, - { "BDiagPattern", Qt::BDiagPattern }, - { "FDiagPattern", Qt::FDiagPattern }, - { "DiagCrossPattern", Qt::DiagCrossPattern }, - { "CustomPattern", Qt::CustomPattern }, + { "NoBrush", TQt::NoBrush }, + { "SolidPattern", TQt::SolidPattern }, + { "Dense1Pattern", TQt::Dense1Pattern }, + { "Dense2Pattern", TQt::Dense2Pattern }, + { "Dense3Pattern", TQt::Dense3Pattern }, + { "Dense4Pattern", TQt::Dense4Pattern }, + { "Dense5Pattern", TQt::Dense5Pattern }, + { "Dense6Pattern", TQt::Dense6Pattern }, + { "Dense7Pattern", TQt::Dense7Pattern }, + { "HorPattern", TQt::HorPattern }, + { "VerPattern", TQt::VerPattern }, + { "CrossPattern", TQt::CrossPattern }, + { "BDiagPattern", TQt::BDiagPattern }, + { "FDiagPattern", TQt::FDiagPattern }, + { "DiagCrossPattern", TQt::DiagCrossPattern }, + { "CustomPattern", TQt::CustomPattern }, // enum MacintoshVersion - { "MV_Unknown", Qt::MV_Unknown }, - { "MV_9", Qt::MV_9 }, - { "MV_10_DOT_0", Qt::MV_10_DOT_0 }, - { "MV_10_DOT_1", Qt::MV_10_DOT_1 }, - { "MV_10_DOT_2", Qt::MV_10_DOT_2 }, - { "MV_10_DOT_3", Qt::MV_10_DOT_3 }, - { "MV_CHEETAH", Qt::MV_CHEETAH }, - { "MV_PUMA", Qt::MV_PUMA }, - { "MV_JAGUAR", Qt::MV_JAGUAR }, - { "MV_PANTHER", Qt::MV_PANTHER }, + { "MV_Unknown", TQt::MV_Unknown }, + { "MV_9", TQt::MV_9 }, + { "MV_10_DOT_0", TQt::MV_10_DOT_0 }, + { "MV_10_DOT_1", TQt::MV_10_DOT_1 }, + { "MV_10_DOT_2", TQt::MV_10_DOT_2 }, + { "MV_10_DOT_3", TQt::MV_10_DOT_3 }, + { "MV_CHEETAH", TQt::MV_CHEETAH }, + { "MV_PUMA", TQt::MV_PUMA }, + { "MV_JAGUAR", TQt::MV_JAGUAR }, + { "MV_PANTHER", TQt::MV_PANTHER }, // enum WindowsVersion - { "WV_32s", Qt::WV_32s }, - { "WV_95", Qt::WV_95 }, - { "WV_98", Qt::WV_98 }, - { "WV_Me", Qt::WV_Me }, - { "WV_DOS_based", Qt::WV_DOS_based }, - { "WV_NT", Qt::WV_NT }, - { "WV_2000", Qt::WV_2000 }, - { "WV_XP", Qt::WV_XP }, - { "WV_2003", Qt::WV_2003 }, - { "WV_NT_based", Qt::WV_NT_based }, - { "WV_CE", Qt::WV_CE }, - { "WV_CENET", Qt::WV_CENET }, - { "WV_CE_based", Qt::WV_CE_based }, + { "WV_32s", TQt::WV_32s }, + { "WV_95", TQt::WV_95 }, + { "WV_98", TQt::WV_98 }, + { "WV_Me", TQt::WV_Me }, + { "WV_DOS_based", TQt::WV_DOS_based }, + { "WV_NT", TQt::WV_NT }, + { "WV_2000", TQt::WV_2000 }, + { "WV_XP", TQt::WV_XP }, + { "WV_2003", TQt::WV_2003 }, + { "WV_NT_based", TQt::WV_NT_based }, + { "WV_CE", TQt::WV_CE }, + { "WV_CENET", TQt::WV_CENET }, + { "WV_CE_based", TQt::WV_CE_based }, // enum UIEffect - { "UI_General", Qt::UI_General }, - { "UI_AnimateMenu", Qt::UI_AnimateMenu }, - { "UI_FadeMenu", Qt::UI_FadeMenu }, - { "UI_AnimateCombo", Qt::UI_AnimateCombo }, - { "UI_AnimateTooltip", Qt::UI_AnimateTooltip }, - { "UI_FadeTooltip", Qt::UI_FadeTooltip }, - { "UI_AnimateToolBox", Qt::UI_AnimateToolBox }, + { "UI_General", TQt::UI_General }, + { "UI_AnimateMenu", TQt::UI_AnimateMenu }, + { "UI_FadeMenu", TQt::UI_FadeMenu }, + { "UI_AnimateCombo", TQt::UI_AnimateCombo }, + { "UI_AnimateTooltip", TQt::UI_AnimateTooltip }, + { "UI_FadeTooltip", TQt::UI_FadeTooltip }, + { "UI_AnimateToolBox", TQt::UI_AnimateToolBox }, // enum CursorShape - { "ArrowCursor", Qt::ArrowCursor }, - { "UpArrowCursor", Qt::UpArrowCursor }, - { "CrossCursor", Qt::CrossCursor }, - { "WaitCursor", Qt::WaitCursor }, - { "IbeamCursor", Qt::IbeamCursor }, - { "SizeVerCursor", Qt::SizeVerCursor }, - { "SizeHorCursor", Qt::SizeHorCursor }, - { "SizeBDiagCursor", Qt::SizeBDiagCursor }, - { "SizeFDiagCursor", Qt::SizeFDiagCursor }, - { "SizeAllCursor", Qt::SizeAllCursor }, - { "BlankCursor", Qt::BlankCursor }, - { "SplitVCursor", Qt::SplitVCursor }, - { "SplitHCursor", Qt::SplitHCursor }, - { "PointingHandCursor", Qt::PointingHandCursor }, - { "ForbiddenCursor", Qt::ForbiddenCursor }, - { "WhatsThisCursor", Qt::WhatsThisCursor }, - { "BusyCursor", Qt::BusyCursor }, - { "LastCursor", Qt::LastCursor }, - { "BitmapCursor", Qt::BitmapCursor }, + { "ArrowCursor", TQt::ArrowCursor }, + { "UpArrowCursor", TQt::UpArrowCursor }, + { "CrossCursor", TQt::CrossCursor }, + { "WaitCursor", TQt::WaitCursor }, + { "IbeamCursor", TQt::IbeamCursor }, + { "SizeVerCursor", TQt::SizeVerCursor }, + { "SizeHorCursor", TQt::SizeHorCursor }, + { "SizeBDiagCursor", TQt::SizeBDiagCursor }, + { "SizeFDiagCursor", TQt::SizeFDiagCursor }, + { "SizeAllCursor", TQt::SizeAllCursor }, + { "BlankCursor", TQt::BlankCursor }, + { "SplitVCursor", TQt::SplitVCursor }, + { "SplitHCursor", TQt::SplitHCursor }, + { "PointingHandCursor", TQt::PointingHandCursor }, + { "ForbiddenCursor", TQt::ForbiddenCursor }, + { "WhatsThisCursor", TQt::WhatsThisCursor }, + { "BusyCursor", TQt::BusyCursor }, + { "LastCursor", TQt::LastCursor }, + { "BitmapCursor", TQt::BitmapCursor }, // enum TextFormat - { "PlainText", Qt::PlainText }, - { "RichText", Qt::RichText }, - { "AutoText", Qt::AutoText }, - { "LogText", Qt::LogText }, + { "PlainText", TQt::PlainText }, + { "RichText", TQt::RichText }, + { "AutoText", TQt::AutoText }, + { "LogText", TQt::LogText }, // enum AnchorAttribute - { "AnchorName", Qt::AnchorName }, - { "AnchorHref", Qt::AnchorHref }, + { "AnchorName", TQt::AnchorName }, + { "AnchorHref", TQt::AnchorHref }, // enum Dock - { "DockUnmanaged", Qt::DockUnmanaged }, - { "DockTornOff", Qt::DockTornOff }, - { "DockTop", Qt::DockTop }, - { "DockBottom", Qt::DockBottom }, - { "DockRight", Qt::DockRight }, - { "DockLeft", Qt::DockLeft }, - { "DockMinimized", Qt::DockMinimized }, - { "Unmanaged", Qt::Unmanaged }, - { "TornOff", Qt::TornOff }, - { "Top", Qt::Top }, - { "Bottom", Qt::Bottom }, - { "Right", Qt::Right }, - { "Left", Qt::Left }, - { "Minimized", Qt::Minimized }, + { "DockUnmanaged", TQt::DockUnmanaged }, + { "DockTornOff", TQt::DockTornOff }, + { "DockTop", TQt::DockTop }, + { "DockBottom", TQt::DockBottom }, + { "DockRight", TQt::DockRight }, + { "DockLeft", TQt::DockLeft }, + { "DockMinimized", TQt::DockMinimized }, + { "Unmanaged", TQt::Unmanaged }, + { "TornOff", TQt::TornOff }, + { "Top", TQt::Top }, + { "Bottom", TQt::Bottom }, + { "Right", TQt::Right }, + { "Left", TQt::Left }, + { "Minimized", TQt::Minimized }, // enum DateFormat - { "TextDate", Qt::TextDate }, - { "ISODate", Qt::ISODate }, - { "LocalDate", Qt::LocalDate }, + { "TextDate", TQt::TextDate }, + { "ISODate", TQt::ISODate }, + { "LocalDate", TQt::LocalDate }, // enum TimeSpec - { "LocalTime", Qt::LocalTime }, - { "UTC", Qt::UTC }, + { "LocalTime", TQt::LocalTime }, + { "UTC", TQt::UTC }, // enum BackgroundMode - { "FixedColor", Qt::FixedColor }, - { "FixedPixmap", Qt::FixedPixmap }, - { "NoBackground", Qt::NoBackground }, - { "PaletteForeground", Qt::PaletteForeground }, - { "PaletteButton", Qt::PaletteButton }, - { "PaletteLight", Qt::PaletteLight }, - { "PaletteMidlight", Qt::PaletteMidlight }, - { "PaletteDark", Qt::PaletteDark }, - { "PaletteMid", Qt::PaletteMid }, - { "PaletteText", Qt::PaletteText }, - { "PaletteBrightText", Qt::PaletteBrightText }, - { "PaletteBase", Qt::PaletteBase }, - { "PaletteBackground", Qt::PaletteBackground }, - { "PaletteShadow", Qt::PaletteShadow }, - { "PaletteHighlight", Qt::PaletteHighlight }, - { "PaletteHighlightedText", Qt::PaletteHighlightedText }, - { "PaletteButtonText", Qt::PaletteButtonText }, - { "PaletteLink", Qt::PaletteLink }, - { "PaletteLinkVisited", Qt::PaletteLinkVisited }, - { "X11ParentRelative", Qt::X11ParentRelative }, + { "FixedColor", TQt::FixedColor }, + { "FixedPixmap", TQt::FixedPixmap }, + { "NoBackground", TQt::NoBackground }, + { "PaletteForeground", TQt::PaletteForeground }, + { "PaletteButton", TQt::PaletteButton }, + { "PaletteLight", TQt::PaletteLight }, + { "PaletteMidlight", TQt::PaletteMidlight }, + { "PaletteDark", TQt::PaletteDark }, + { "PaletteMid", TQt::PaletteMid }, + { "PaletteText", TQt::PaletteText }, + { "PaletteBrightText", TQt::PaletteBrightText }, + { "PaletteBase", TQt::PaletteBase }, + { "PaletteBackground", TQt::PaletteBackground }, + { "PaletteShadow", TQt::PaletteShadow }, + { "PaletteHighlight", TQt::PaletteHighlight }, + { "PaletteHighlightedText", TQt::PaletteHighlightedText }, + { "PaletteButtonText", TQt::PaletteButtonText }, + { "PaletteLink", TQt::PaletteLink }, + { "PaletteLinkVisited", TQt::PaletteLinkVisited }, + { "X11ParentRelative", TQt::X11ParentRelative }, // enum StringComparisonMode - { "CaseSensitive", Qt::CaseSensitive }, - { "BeginsWith", Qt::BeginsWith }, - { "EndsWith", Qt::EndsWith }, - { "Contains", Qt::Contains }, - { "ExactMatch", Qt::ExactMatch }, + { "CaseSensitive", TQt::CaseSensitive }, + { "BeginsWith", TQt::BeginsWith }, + { "EndsWith", TQt::EndsWith }, + { "Contains", TQt::Contains }, + { "ExactMatch", TQt::ExactMatch }, // enum Corner - { "TopLeft", Qt::TopLeft }, - { "TopRight", Qt::TopRight }, - { "BottomLeft", Qt::BottomLeft }, - { "BottomRight", Qt::BottomRight }, + { "TopLeft", TQt::TopLeft }, + { "TopRight", TQt::TopRight }, + { "BottomLeft", TQt::BottomLeft }, + { "BottomRight", TQt::BottomRight }, { 0, 0 } }; @@ -705,7 +705,7 @@ void QtImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TQCString lastName; + TTQCString 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 ) { - TQObject *obj = ob->object(); + TTQObject *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; } - TQString msg = i18n("QtCons has no constructor with id '%1'.").arg(id); + TTQString 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; } - TQString msg = i18n( "QtImp has no method with id '%1'." ).arg( id ); + TTQString msg = i18n( "QtImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } |