summaryrefslogtreecommitdiffstats
path: root/kjsembed/qtbindings/qcanvasview_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/qtbindings/qcanvasview_imp.cpp')
-rw-r--r--kjsembed/qtbindings/qcanvasview_imp.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/kjsembed/qtbindings/qcanvasview_imp.cpp b/kjsembed/qtbindings/qcanvasview_imp.cpp
index bfa3229b..f32faef7 100644
--- a/kjsembed/qtbindings/qcanvasview_imp.cpp
+++ b/kjsembed/qtbindings/qcanvasview_imp.cpp
@@ -23,12 +23,12 @@
*/
namespace KJSEmbed {
-TTQCanvasViewImp::TQCanvasViewImp( KJS::ExecState *exec, int mid, bool constructor )
+TQCanvasViewImp::TQCanvasViewImp( KJS::ExecState *exec, int mid, bool constructor )
: JSProxyImp(exec), id(mid), cons(constructor)
{
}
-TTQCanvasViewImp::~TQCanvasViewImp()
+TQCanvasViewImp::~TQCanvasViewImp()
{
}
@@ -43,7 +43,7 @@ void TQCanvasViewImp::addStaticBindings( KJS::ExecState *exec, KJS::Object &obje
};
int idx = 0;
- TTQCString lastName;
+ TQCString lastName;
while( methods[idx].name ) {
if ( lastName != methods[idx].name ) {
@@ -73,7 +73,7 @@ void TQCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
};
int idx = 0;
- TTQCString lastName;
+ TQCString lastName;
while( methods[idx].name ) {
if ( lastName != methods[idx].name ) {
@@ -86,25 +86,25 @@ void TQCanvasViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
/**
- * Extract a TTQCanvasView pointer from an Object.
+ * Extract a TQCanvasView pointer from an Object.
*/
-TTQCanvasView *TQCanvasViewImp::toTQCanvasView( KJS::Object &self )
+TQCanvasView *TQCanvasViewImp::toTQCanvasView( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
- TTQObject *obj = ob->object();
+ TQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<TTQCanvasView *>( obj );
+ return dynamic_cast<TQCanvasView *>( obj );
}
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
if ( !op )
return 0;
- if ( op->typeName() != "TTQCanvasView" )
+ if ( op->typeName() != "TQCanvasView" )
return 0;
- return op->toNative<TTQCanvasView>();
+ return op->toNative<TQCanvasView>();
}
/**
@@ -126,7 +126,7 @@ KJS::Object TQCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &a
break;
}
- TTQString msg = i18n("TQCanvasViewCons has no constructor with id '%1'.").arg(id);
+ TQString msg = i18n("TQCanvasViewCons has no constructor with id '%1'.").arg(id);
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -134,50 +134,50 @@ KJS::Object TQCanvasViewImp::construct( KJS::ExecState *exec, const KJS::List &a
KJS::Object TQCanvasViewImp::TQCanvasView_1( KJS::ExecState *exec, const KJS::List &args )
{
- TTQWidget *arg0 = extractTQWidget(exec, args, 0);
+ TQWidget *arg0 = extractTQWidget(exec, args, 0);
const char *arg1 = (args.size() >= 2) ? args[1].toString(exec).ascii() : 0;
- TQt::WFlags arg2 = 0; // TODO (hack for TTQCanvasView)
+ TQt::WFlags arg2 = 0; // TODO (hack for TQCanvasView)
- // We should now create an instance of the TTQCanvasView object
+ // We should now create an instance of the TQCanvasView object
- TTQCanvasView *ret = new TTQCanvasView(
+ TQCanvasView *ret = new TQCanvasView(
arg0,
arg1,
arg2 );
- JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvasView");
+ JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView");
return KJS::Object( prx );
}
KJS::Object TQCanvasViewImp::TQCanvasView_2( KJS::ExecState *exec, const KJS::List &args )
{
- TTQCanvas * arg0 = 0L;;
+ TQCanvas * arg0 = 0L;;
KJS::Object obj = args[0].toObject(exec);
JSObjectProxy *proxy = JSProxy::toObjectProxy( obj.imp() );
- if ( proxy ) arg0 = dynamic_cast<TTQCanvas *>( proxy->widget() );
+ if ( proxy ) arg0 = dynamic_cast<TQCanvas *>( proxy->widget() );
- TTQWidget * arg1 = extractTQWidget(exec, args, 1);
+ TQWidget * arg1 = extractTQWidget(exec, args, 1);
const char *arg2 = (args.size() >= 3) ? args[2].toString(exec).ascii() : 0;
- TQt::WFlags arg3 = 0; // TODO (hack for TTQCanvasView)
+ TQt::WFlags arg3 = 0; // TODO (hack for TQCanvasView)
- // We should now create an instance of the TTQCanvasView object
+ // We should now create an instance of the TQCanvasView object
- TTQCanvasView *ret = new TTQCanvasView(
+ TQCanvasView *ret = new TQCanvasView(
arg0,
arg1,
arg2,
arg3 );
- JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TTQCanvasView");
+ JSOpaqueProxy *prx = new JSOpaqueProxy( ret, "TQCanvasView");
return KJS::Object( prx );
}
@@ -211,7 +211,7 @@ KJS::Value TQCanvasViewImp::call( KJS::ExecState *exec, KJS::Object &self, const
break;
}
- TTQString msg = i18n( "TQCanvasViewImp has no method with id '%1'." ).arg( id );
+ TQString msg = i18n( "TQCanvasViewImp has no method with id '%1'." ).arg( id );
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -220,17 +220,17 @@ KJS::Value TQCanvasViewImp::canvas_4( KJS::ExecState *exec, KJS::Object &obj, co
{
instance->canvas( );
- return KJS::Value(); // Returns 'TTQCanvas *'
+ return KJS::Value(); // Returns 'TQCanvas *'
}
KJS::Value TQCanvasViewImp::setCanvas_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter TTQCanvas *
+ // Unsupported parameter TQCanvas *
return KJS::Value();
- TTQCanvas * arg0; // Dummy
+ TQCanvas * arg0; // Dummy
instance->setCanvas(
arg0 );
@@ -242,7 +242,7 @@ KJS::Value TQCanvasViewImp::worldMatrix_6( KJS::ExecState *exec, KJS::Object &ob
{
instance->worldMatrix( );
- return KJS::Value(); // Returns 'const TTQWMatrix &'
+ return KJS::Value(); // Returns 'const TQWMatrix &'
}
@@ -250,14 +250,14 @@ KJS::Value TQCanvasViewImp::inverseWorldMatrix_7( KJS::ExecState *exec, KJS::Obj
{
instance->inverseWorldMatrix( );
- return KJS::Value(); // Returns 'const TTQWMatrix &'
+ return KJS::Value(); // Returns 'const TQWMatrix &'
}
KJS::Value TQCanvasViewImp::setWorldMatrix_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TTQWMatrix arg0; // TODO (hack for qcanvasview)
+ TQWMatrix arg0; // TODO (hack for qcanvasview)
bool ret;
ret = instance->setWorldMatrix(