diff options
Diffstat (limited to 'kjsembed/qtbindings/qlistviewitem_imp.cpp')
-rw-r--r-- | kjsembed/qtbindings/qlistviewitem_imp.cpp | 250 |
1 files changed, 125 insertions, 125 deletions
diff --git a/kjsembed/qtbindings/qlistviewitem_imp.cpp b/kjsembed/qtbindings/qlistviewitem_imp.cpp index 69d94009..f1ed55c2 100644 --- a/kjsembed/qtbindings/qlistviewitem_imp.cpp +++ b/kjsembed/qtbindings/qlistviewitem_imp.cpp @@ -31,17 +31,17 @@ namespace Bindings { JSOpaqueProxy *prx = 0; if ( arg0 ) { - if ( arg0->typeName() == "TTQListViewItem" ) { - TTQListViewItem * parent = arg0->toNative<TTQListViewItem>(); - prx = new JSOpaqueProxy( new TTQListViewItem( parent ), "TTQListViewItem" ); + if ( arg0->typeName() == "TQListViewItem" ) { + TQListViewItem * parent = arg0->toNative<TQListViewItem>(); + prx = new JSOpaqueProxy( new TQListViewItem( parent ), "TQListViewItem" ); } else { return KJS::Object(); } } else { JSObjectProxy *arg0 = JSProxy::toObjectProxy( args[ 0 ].imp() ); if ( arg0 ) { - TTQListView * parent = ( TTQListView * ) ( arg0->widget() ); - prx = new JSOpaqueProxy( new TTQListViewItem( parent ), "TTQListViewItem" ); + TQListView * parent = ( TQListView * ) ( arg0->widget() ); + prx = new JSOpaqueProxy( new TQListViewItem( parent ), "TQListViewItem" ); } else { return KJS::Object(); } @@ -60,12 +60,12 @@ namespace Bindings { } } -TTQListViewItemImp::TQListViewItemImp( KJS::ExecState *exec, int mid, bool constructor ) +TQListViewItemImp::TQListViewItemImp( KJS::ExecState *exec, int mid, bool constructor ) : JSProxyImp(exec), id(mid), cons(constructor) { } -TTQListViewItemImp::~TQListViewItemImp() +TQListViewItemImp::~TQListViewItemImp() { } @@ -80,7 +80,7 @@ void TQListViewItemImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &ob }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -159,7 +159,7 @@ void TQListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) }; int idx = 0; - TTQCString lastName; + TQCString lastName; while( methods[idx].name ) { if ( lastName != methods[idx].name ) { @@ -172,21 +172,21 @@ void TQListViewItemImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } /** - * Extract a TTQListViewItem pointer from an Object. + * Extract a TQListViewItem pointer from an Object. */ -TTQListViewItem *TQListViewItemImp::toTQListViewItem( KJS::Object &self ) +TQListViewItem *TQListViewItemImp::toTQListViewItem( KJS::Object &self ) { JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() ); if ( ob ) { - TTQObject *obj = ob->object(); + TQObject *obj = ob->object(); if ( obj ) - return dynamic_cast<TTQListViewItem *>( obj ); + return dynamic_cast<TQListViewItem *>( obj ); } JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) return 0; - return op->toNative<TTQListViewItem>(); + return op->toNative<TQListViewItem>(); } /** @@ -232,7 +232,7 @@ KJS::Object TQListViewItemImp::construct( KJS::ExecState *exec, const KJS::List break; } - TTQString msg = i18n("TQListViewItemCons has no constructor with id '%1'.").arg(id); + TQString msg = i18n("TQListViewItemCons has no constructor with id '%1'.").arg(id); return throwError(exec, msg,KJS::ReferenceError); } @@ -240,13 +240,13 @@ KJS::Object TQListViewItemImp::construct( KJS::ExecState *exec, const KJS::List KJS::Object TQListViewItemImp::TQListViewItem_1( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0 ); #endif @@ -257,13 +257,13 @@ return KJS::Object(); KJS::Object TQListViewItemImp::TQListViewItem_2( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0 ); #endif @@ -274,18 +274,18 @@ KJS::Object TQListViewItemImp::TQListViewItem_3( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1 ); @@ -297,18 +297,18 @@ KJS::Object TQListViewItemImp::TQListViewItem_4( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1 ); @@ -321,29 +321,29 @@ KJS::Object TQListViewItemImp::TQListViewItem_5( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -363,29 +363,29 @@ KJS::Object TQListViewItemImp::TQListViewItem_6( KJS::ExecState *exec, const KJS { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -405,34 +405,34 @@ return KJS::Object(); KJS::Object TQListViewItemImp::TQListViewItem_7( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListView * + // Unsupported parameter TQListView * return KJS::Value(); - TTQListView * arg0; // Dummy + TQListView * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - TTQString arg9 = extractTQString(exec, args, 9); + TQString arg9 = extractTQString(exec, args, 9); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -452,34 +452,34 @@ return KJS::Object(); KJS::Object TQListViewItemImp::TQListViewItem_8( KJS::ExecState *exec, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg1; // Dummy + TQListViewItem * arg1; // Dummy - TTQString arg2 = extractTQString(exec, args, 2); + TQString arg2 = extractTQString(exec, args, 2); - TTQString arg3 = extractTQString(exec, args, 3); + TQString arg3 = extractTQString(exec, args, 3); - TTQString arg4 = extractTQString(exec, args, 4); + TQString arg4 = extractTQString(exec, args, 4); - TTQString arg5 = extractTQString(exec, args, 5); + TQString arg5 = extractTQString(exec, args, 5); - TTQString arg6 = extractTQString(exec, args, 6); + TQString arg6 = extractTQString(exec, args, 6); - TTQString arg7 = extractTQString(exec, args, 7); + TQString arg7 = extractTQString(exec, args, 7); - TTQString arg8 = extractTQString(exec, args, 8); + TQString arg8 = extractTQString(exec, args, 8); - TTQString arg9 = extractTQString(exec, args, 9); + TQString arg9 = extractTQString(exec, args, 9); - // We should now create an object of type TQListViewItemTQListViewItem *ret = new TTQListViewItem( + // We should now create an object of type TQListViewItemTQListViewItem *ret = new TQListViewItem( arg0, arg1, @@ -722,7 +722,7 @@ KJS::Value TQListViewItemImp::call( KJS::ExecState *exec, KJS::Object &self, con break; } - TTQString msg = i18n( "TQListViewItemImp has no method with id '%1'." ).arg( id ); + TQString msg = i18n( "TQListViewItemImp has no method with id '%1'." ).arg( id ); return throwError(exec, msg,KJS::ReferenceError); } @@ -730,10 +730,10 @@ KJS::Value TQListViewItemImp::call( KJS::ExecState *exec, KJS::Object &self, con KJS::Value TQListViewItemImp::insertItem_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->insertItem( arg0 ); @@ -744,10 +744,10 @@ KJS::Value TQListViewItemImp::insertItem_10( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewItemImp::takeItem_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->takeItem( arg0 ); @@ -758,10 +758,10 @@ KJS::Value TQListViewItemImp::takeItem_11( KJS::ExecState *exec, KJS::Object &ob KJS::Value TQListViewItemImp::removeItem_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->removeItem( arg0 ); @@ -798,15 +798,15 @@ KJS::Value TQListViewItemImp::totalHeight_15( KJS::ExecState *exec, KJS::Object KJS::Value TQListViewItemImp::width_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter const TTQFontMetrics & + // Unsupported parameter const TQFontMetrics & return KJS::Value(); - const TTQFontMetrics & arg0; // Dummy + const TQFontMetrics & arg0; // Dummy - // Unsupported parameter const TTQListView * + // Unsupported parameter const TQListView * return KJS::Value(); - const TTQListView * arg1; // Dummy + const TQListView * arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -846,7 +846,7 @@ KJS::Value TQListViewItemImp::setText_19( KJS::ExecState *exec, KJS::Object &obj int arg0 = extractInt(exec, args, 0); - TTQString arg1 = extractTQString(exec, args, 1); + TQString arg1 = extractTQString(exec, args, 1); instance->setText( arg0, @@ -860,7 +860,7 @@ KJS::Value TQListViewItemImp::text_20( KJS::ExecState *exec, KJS::Object &obj, c int arg0 = extractInt(exec, args, 0); - TTQString ret; + TQString ret; ret = instance->text( arg0 ); return KJS::String( ret ); @@ -872,7 +872,7 @@ KJS::Value TQListViewItemImp::setPixmap_21( KJS::ExecState *exec, KJS::Object &o int arg0 = extractInt(exec, args, 0); - TTQPixmap arg1 = extractTQPixmap(exec, args, 1); + TQPixmap arg1 = extractTQPixmap(exec, args, 1); instance->setPixmap( arg0, @@ -888,7 +888,7 @@ KJS::Value TQListViewItemImp::pixmap_22( KJS::ExecState *exec, KJS::Object &obj, instance->pixmap( arg0 ); - return KJS::Value(); // Returns 'const TTQPixmap *' + return KJS::Value(); // Returns 'const TQPixmap *' } @@ -899,7 +899,7 @@ KJS::Value TQListViewItemImp::key_23( KJS::ExecState *exec, KJS::Object &obj, co bool arg1 = extractBool(exec, args, 1); - TTQString ret; + TQString ret; ret = instance->key( arg0, arg1 ); @@ -910,10 +910,10 @@ KJS::Value TQListViewItemImp::key_23( KJS::ExecState *exec, KJS::Object &obj, co KJS::Value TQListViewItemImp::compare_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy int arg1 = extractInt(exec, args, 1); @@ -1002,15 +1002,15 @@ KJS::Value TQListViewItemImp::isSelected_31( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewItemImp::paintCell_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -1033,15 +1033,15 @@ return KJS::Object(); KJS::Value TQListViewItemImp::paintBranches_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy int arg2 = extractInt(exec, args, 2); @@ -1064,17 +1064,17 @@ return KJS::Object(); KJS::Value TQListViewItemImp::paintFocus_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { #if 0 - // Unsupported parameter TTQPainter * + // Unsupported parameter TQPainter * return KJS::Value(); - TTQPainter * arg0; // Dummy + TQPainter * arg0; // Dummy - // Unsupported parameter const TTQColorGroup & + // Unsupported parameter const TQColorGroup & return KJS::Value(); - const TTQColorGroup & arg1; // Dummy + const TQColorGroup & arg1; // Dummy - TTQRect arg2 = extractTQRect(exec, args, 2); + TQRect arg2 = extractTQRect(exec, args, 2); instance->paintFocus( arg0, @@ -1089,10 +1089,10 @@ return KJS::Object(); KJS::Value TQListViewItemImp::firstChild_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->firstChild( ); + TQListViewItem *item = instance->firstChild( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1106,10 +1106,10 @@ KJS::Value TQListViewItemImp::firstChild_35( KJS::ExecState *exec, KJS::Object & KJS::Value TQListViewItemImp::nextSibling_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->nextSibling( ); + TQListViewItem *item = instance->nextSibling( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1123,10 +1123,10 @@ KJS::Value TQListViewItemImp::nextSibling_36( KJS::ExecState *exec, KJS::Object KJS::Value TQListViewItemImp::parent_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->parent( ); + TQListViewItem *item = instance->parent( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1140,10 +1140,10 @@ KJS::Value TQListViewItemImp::parent_37( KJS::ExecState *exec, KJS::Object &obj, KJS::Value TQListViewItemImp::itemAbove_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->itemAbove( ); + TQListViewItem *item = instance->itemAbove( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1157,10 +1157,10 @@ KJS::Value TQListViewItemImp::itemAbove_38( KJS::ExecState *exec, KJS::Object &o KJS::Value TQListViewItemImp::itemBelow_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TTQListViewItem *item = instance->itemBelow( ); + TQListViewItem *item = instance->itemBelow( ); if( item ) { - JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TTQListViewItem" ); + JSOpaqueProxy *prx = new JSOpaqueProxy( item, "TQListViewItem" ); prx->setOwner( JSProxy::Native ); KJS::Object proxyObj( prx ); addBindings(exec,proxyObj); @@ -1184,7 +1184,7 @@ KJS::Value TQListViewItemImp::listView_41( KJS::ExecState *exec, KJS::Object &ob { instance->listView( ); - return KJS::Value(); // Returns 'TTQListView *' + return KJS::Value(); // Returns 'TQListView *' } @@ -1247,10 +1247,10 @@ KJS::Value TQListViewItemImp::sort_47( KJS::ExecState *exec, KJS::Object &obj, c KJS::Value TQListViewItemImp::moveItem_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter TTQListViewItem * + // Unsupported parameter TQListViewItem * return KJS::Value(); - TTQListViewItem * arg0; // Dummy + TQListViewItem * arg0; // Dummy instance->moveItem( arg0 ); @@ -1301,10 +1301,10 @@ KJS::Value TQListViewItemImp::dropEnabled_52( KJS::ExecState *exec, KJS::Object KJS::Value TQListViewItemImp::acceptDrop_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - // Unsupported parameter const TTQMimeSource * + // Unsupported parameter const TQMimeSource * return KJS::Value(); - const TTQMimeSource * arg0; // Dummy + const TQMimeSource * arg0; // Dummy bool ret; ret = instance->acceptDrop( |