summaryrefslogtreecommitdiffstats
path: root/kjsembed/qtbindings/qchecklistitem_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/qtbindings/qchecklistitem_imp.cpp')
-rw-r--r--kjsembed/qtbindings/qchecklistitem_imp.cpp208
1 files changed, 104 insertions, 104 deletions
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;