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