summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/bindings')
-rw-r--r--kjsembed/bindings/bindingobject.cpp4
-rw-r--r--kjsembed/bindings/bindingobject.h8
-rw-r--r--kjsembed/bindings/brush_imp.cpp8
-rw-r--r--kjsembed/bindings/dcop_imp.cpp420
-rw-r--r--kjsembed/bindings/dcop_imp.h30
-rw-r--r--kjsembed/bindings/iconset_imp.cpp26
-rw-r--r--kjsembed/bindings/image_imp.cpp42
-rw-r--r--kjsembed/bindings/image_imp.h22
-rw-r--r--kjsembed/bindings/kconfig_imp.cpp112
-rw-r--r--kjsembed/bindings/kconfig_imp.h98
-rw-r--r--kjsembed/bindings/movie_imp.cpp26
-rw-r--r--kjsembed/bindings/movie_imp.h20
-rw-r--r--kjsembed/bindings/netaccess_imp.cpp20
-rw-r--r--kjsembed/bindings/netaccess_imp.h16
-rw-r--r--kjsembed/bindings/painter_imp.cpp66
-rw-r--r--kjsembed/bindings/painter_imp.h44
-rw-r--r--kjsembed/bindings/pen_imp.cpp8
-rw-r--r--kjsembed/bindings/pixmap_imp.cpp20
-rw-r--r--kjsembed/bindings/pixmap_imp.h18
-rw-r--r--kjsembed/bindings/point_imp.cpp8
-rw-r--r--kjsembed/bindings/rect_imp.cpp8
-rw-r--r--kjsembed/bindings/size_imp.cpp24
-rw-r--r--kjsembed/bindings/sql_imp.cpp98
-rw-r--r--kjsembed/bindings/sql_imp.h74
24 files changed, 610 insertions, 610 deletions
diff --git a/kjsembed/bindings/bindingobject.cpp b/kjsembed/bindings/bindingobject.cpp
index c8b2bd1a..2c280e5c 100644
--- a/kjsembed/bindings/bindingobject.cpp
+++ b/kjsembed/bindings/bindingobject.cpp
@@ -5,8 +5,8 @@
namespace KJSEmbed {
namespace Bindings {
-BindingObject::BindingObject( TTQObject *parent, const char *name )
- : TTQObject( parent, name )
+BindingObject::BindingObject( TQObject *parent, const char *name )
+ : TQObject( parent, name )
{
}
diff --git a/kjsembed/bindings/bindingobject.h b/kjsembed/bindings/bindingobject.h
index 6a40f55c..60cb32c2 100644
--- a/kjsembed/bindings/bindingobject.h
+++ b/kjsembed/bindings/bindingobject.h
@@ -28,8 +28,8 @@ namespace KJSEmbed {
namespace Bindings {
/**
- * A baseclass for TTQObject bindings. This class is currently just a
- * stub, but I hope it will contain utilities for TTQObject wrapper
+ * A baseclass for TQObject bindings. This class is currently just a
+ * stub, but I hope it will contain utilities for TQObject wrapper
* classes.
*
* @author Richard Moore, rich@kde.org
@@ -40,7 +40,7 @@ class BindingObject : public TQObject
Q_OBJECT
public:
- BindingObject( TTQObject *parent, const char *name=0 );
+ BindingObject( TQObject *parent, const char *name=0 );
virtual ~BindingObject();
const char *jsClassName() const { return jsClazz; }
@@ -49,7 +49,7 @@ protected:
void setJSClassName( const char *clazz ) { jsClazz = clazz; }
private:
- TTQCString jsClazz;
+ TQCString jsClazz;
class BindingObjectPrivate *d;
};
diff --git a/kjsembed/bindings/brush_imp.cpp b/kjsembed/bindings/brush_imp.cpp
index 571d64ea..ab2eee3f 100644
--- a/kjsembed/bindings/brush_imp.cpp
+++ b/kjsembed/bindings/brush_imp.cpp
@@ -41,7 +41,7 @@ BrushImp::~BrushImp()
void BrushImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQBrush") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQBrush") ) return;
JSProxy::MethodTable methods[] = {
{ Methodstyle, "style"},
@@ -80,9 +80,9 @@ void BrushImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
KJS::Value BrushImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQBrush") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQBrush") ) return KJS::Value();
JSValueProxy *op = JSProxy::toValueProxy( self.imp() );
- TTQBrush brush = op->toVariant().toBrush();
+ TQBrush brush = op->toVariant().toBrush();
KJS::Value retValue = KJS::Value();
switch ( mid ) {
@@ -104,7 +104,7 @@ KJS::Value BrushImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
}
case MethodsetColor:
{
- TTQColor color = extractTQColor(exec, args, 0);
+ TQColor color = extractTQColor(exec, args, 0);
brush.setColor(color);
break;
}
diff --git a/kjsembed/bindings/dcop_imp.cpp b/kjsembed/bindings/dcop_imp.cpp
index 62ffb456..9aa863e1 100644
--- a/kjsembed/bindings/dcop_imp.cpp
+++ b/kjsembed/bindings/dcop_imp.cpp
@@ -65,8 +65,8 @@ namespace KJSEmbed {
namespace Bindings {
KJS::Object JSDCOPRefLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
{
- TTQString application = extractTQString(exec, args, 0);
- TTQString object = extractTQString(exec, args, 1);
+ TQString application = extractTQString(exec, args, 0);
+ TQString object = extractTQString(exec, args, 1);
JSOpaqueProxy * prx;
if( application.isEmpty() )
prx= new JSOpaqueProxy( new DCOPRef(), "DCOPRef" );
@@ -157,14 +157,14 @@ KJS::Value JSDCOPRef::call( KJS::ExecState *exec, KJS::Object &self, const KJS::
kdWarning() << "Not enough args..." << endl;
return KJS::Boolean(false);
}
- TTQByteArray data, replyData;
- TTQDataStream ds( replyData, IO_ReadOnly);
- TTQCString type;
+ TQByteArray data, replyData;
+ TQDataStream ds( replyData, IO_ReadOnly);
+ TQCString type;
- TTQString app = ref->app();
- TTQString interface = ref->obj();
- TTQString function = extractTQString(exec, args, 0);
- TTQStringList argTypes = JSDCOPClient::getTypes( function );
+ TQString app = ref->app();
+ TQString interface = ref->obj();
+ TQString function = extractTQString(exec, args, 0);
+ TQStringList argTypes = JSDCOPClient::getTypes( function );
if( args.size() > 1)
for( int idx = 1; idx < args.size(); ++idx)
@@ -182,12 +182,12 @@ KJS::Value JSDCOPRef::call( KJS::ExecState *exec, KJS::Object &self, const KJS::
if ( args.size() < 1 )
return KJS::Boolean(false);
- TTQByteArray data;
- TTQString app = ref->app();
- TTQString interface = ref->obj();
- TTQString function = extractTQString(exec, args, 0);
+ TQByteArray data;
+ TQString app = ref->app();
+ TQString interface = ref->obj();
+ TQString function = extractTQString(exec, args, 0);
- TTQStringList argTypes = JSDCOPClient::getTypes( function );
+ TQStringList argTypes = JSDCOPClient::getTypes( function );
if( args.size() > 1)
for( int idx = 1; idx < args.size(); ++idx)
@@ -215,9 +215,9 @@ KJS::Value JSDCOPRef::call( KJS::ExecState *exec, KJS::Object &self, const KJS::
}
case MethodsetRef:
{
- TTQString arg0 = extractTQString(exec, args, 0);
- TTQString arg1 = extractTQString(exec, args, 1);
- TTQString arg2 = extractTQString(exec, args, 0);
+ TQString arg0 = extractTQString(exec, args, 0);
+ TQString arg1 = extractTQString(exec, args, 1);
+ TQString arg2 = extractTQString(exec, args, 0);
ref->setRef(arg0.latin1(), arg1.latin1(), arg2.latin1() );
break;
}
@@ -304,52 +304,52 @@ KJS::Value JSDCOPClient::call( KJS::ExecState *exec, KJS::Object &self, const KJ
break;
}
case MethodremoteObjects: {
- TTQString arg0 = extractTQString(exec, args, 0);
+ TQString arg0 = extractTQString(exec, args, 0);
retValue = convertToValue( exec, remoteObjects(arg0));
break;
}
case MethodremoteInterfaces: {
- TTQString arg0 = extractTQString(exec, args, 0);
- TTQString arg1 = extractTQString(exec, args, 1);
+ TQString arg0 = extractTQString(exec, args, 0);
+ TQString arg1 = extractTQString(exec, args, 1);
this->remoteInterfaces(arg0, arg1);
break;
}
case MethodremoteFunctions: {
- TTQString arg0 = extractTQString(exec, args, 0);
- TTQString arg1 = extractTQString(exec, args, 1);
+ TQString arg0 = extractTQString(exec, args, 0);
+ TQString arg1 = extractTQString(exec, args, 1);
remoteFunctions(arg0, arg1);
break;
}
case MethodconnectDCOPSignal: {
- TTQString arg0 = extractTQString(exec, args, 0);
- TTQString arg1 = extractTQString(exec, args, 1);
- TTQString arg2 = extractTQString(exec, args, 2);
- TTQString arg3 = extractTQString(exec, args, 3);
- TTQString arg4 = extractTQString(exec, args, 4);
+ TQString arg0 = extractTQString(exec, args, 0);
+ TQString arg1 = extractTQString(exec, args, 1);
+ TQString arg2 = extractTQString(exec, args, 2);
+ TQString arg3 = extractTQString(exec, args, 3);
+ TQString arg4 = extractTQString(exec, args, 4);
bool arg5 = (args.size() > 5) ? args[5].toBoolean(exec) : false;
connectDCOPSignal( arg0, arg1, arg2, arg3, arg4, arg5);
break;
}
case MethoddisconnectDCOPSignal: {
- TTQString arg0 = extractTQString(exec, args, 0);
- TTQString arg1 = extractTQString(exec, args, 1);
- TTQString arg2 = extractTQString(exec, args, 2);
- TTQString arg3 = extractTQString(exec, args, 3);
- TTQString arg4 = extractTQString(exec, args, 4);
+ TQString arg0 = extractTQString(exec, args, 0);
+ TQString arg1 = extractTQString(exec, args, 1);
+ TQString arg2 = extractTQString(exec, args, 2);
+ TQString arg3 = extractTQString(exec, args, 3);
+ TQString arg4 = extractTQString(exec, args, 4);
disconnectDCOPSignal(arg0, arg1, arg2, arg3, arg4);
break;
}
case MethodDCOPStart: {
- TTQString arg0 = extractTQString(exec, args, 0);
+ TQString arg0 = extractTQString(exec, args, 0);
- retValue = KJS::String( dcopStart( arg0, TTQStringList() ) );
+ retValue = KJS::String( dcopStart( arg0, TQStringList() ) );
break;
}
case MethodappId:
retValue = KJS::String( kapp->dcopClient()->appId().data() );
break;
case MethodisApplicationRegistered: {
- TTQString arg0 = extractTQString(exec, args, 0);
+ TQString arg0 = extractTQString(exec, args, 0);
retValue = KJS::Boolean( kapp->dcopClient()->isApplicationRegistered( arg0.latin1() ) );
break;
}
@@ -387,20 +387,20 @@ KJS::Value JSDCOPClient::dcopCall( KJS::ExecState * exec, KJS::Object &, const K
if ( args.size() < 3 )
return KJS::Boolean(false);
- TTQStringList types;
- TTQByteArray data, replyData;
- TTQDataStream ds( replyData, IO_ReadOnly);
- TTQCString type;
+ TQStringList types;
+ TQByteArray data, replyData;
+ TQDataStream ds( replyData, IO_ReadOnly);
+ TQCString type;
- TTQString app = extractTQString(exec, args, 0);
- TTQString interface = extractTQString(exec, args, 1);
- TTQString function = extractTQString(exec, args, 2);
- TTQStringList argTypes = getTypes( function );
+ TQString app = extractTQString(exec, args, 0);
+ TQString interface = extractTQString(exec, args, 1);
+ TQString function = extractTQString(exec, args, 2);
+ TQStringList argTypes = getTypes( function );
if( args.size() > 3)
for( int idx = 3; idx < args.size(); ++idx)
{
- TTQVariant var = convertToVariant(exec,args[idx] );
+ TQVariant var = convertToVariant(exec,args[idx] );
marshall(var, argTypes[idx -3 ], data);
}
if( !kapp->dcopClient()->call(app.local8Bit(), interface.local8Bit(), function.local8Bit(), data, type, replyData))
@@ -414,23 +414,23 @@ KJS::Value JSDCOPClient::dcopSend( KJS::ExecState * exec, KJS::Object &, const K
if ( args.size() < 3 )
return KJS::Boolean(false);
- TTQByteArray data;
- TTQString app = extractTQString(exec, args, 0);
- TTQString interface = extractTQString(exec, args, 1);
- TTQString function = extractTQString(exec, args, 2);
- TTQStringList argTypes = getTypes( function );
+ TQByteArray data;
+ TQString app = extractTQString(exec, args, 0);
+ TQString interface = extractTQString(exec, args, 1);
+ TQString function = extractTQString(exec, args, 2);
+ TQStringList argTypes = getTypes( function );
if( args.size() > 3)
for( int idx = 3; idx < args.size(); ++idx)
{
- TTQVariant var = convertToVariant(exec,args[idx] );
+ TQVariant var = convertToVariant(exec,args[idx] );
marshall(var, argTypes[idx - 3], data);
}
return KJS::Boolean( kapp->dcopClient()->send(app.local8Bit(), interface.local8Bit(),
function.local8Bit(), data));
}
-KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const TTQCString& type, TTQDataStream& data)
+KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const TQCString& type, TQDataStream& data)
{
kdDebug() << "Demarshall " << type << endl;
@@ -449,23 +449,23 @@ KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const TTQCString& ty
return convertToValue(exec, demarshall(type, data));
}
-TTQStringList JSDCOPClient::getTypes( const TTQString& function )
+TQStringList JSDCOPClient::getTypes( const TQString& function )
{
- TTQCString myFunction = DCOPClient::normalizeFunctionSignature (function.latin1());
- TTQString args = myFunction.mid( myFunction.find('(') + 1 );
+ TQCString myFunction = DCOPClient::normalizeFunctionSignature (function.latin1());
+ TQString args = myFunction.mid( myFunction.find('(') + 1 );
args = args.left( args.length() - 1);
- return TTQStringList::split(',', args);
+ return TQStringList::split(',', args);
}
-void JSDCOPClient::marshall( const TTQVariant& data, const TTQString& typeName, TTQByteArray& buffer )
+void JSDCOPClient::marshall( const TQVariant& data, const TQString& typeName, TQByteArray& buffer )
{
- TTQDataStream stream(buffer, IO_WriteOnly | IO_Append);
+ TQDataStream stream(buffer, IO_WriteOnly | IO_Append);
- if ( typeName == "TTQString" )
+ if ( typeName == "TQString" )
{
stream << data.toString();
}
- else if ( typeName == "TTQCString")
+ else if ( typeName == "TQCString")
{
stream << data.toCString();
}
@@ -485,99 +485,99 @@ void JSDCOPClient::marshall( const TTQVariant& data, const TTQString& typeName,
{
stream << data.toDouble();
}
- else if ( typeName == "TTQMap" )
+ else if ( typeName == "TQMap" )
{
stream << data.toMap();
}
- else if ( typeName == "TTQValueList")
+ else if ( typeName == "TQValueList")
{
stream << data.toList();
}
- else if ( typeName == "TTQFont")
+ else if ( typeName == "TQFont")
{
stream << data.toFont();
}
- else if ( typeName == "TTQPixmap")
+ else if ( typeName == "TQPixmap")
{
stream << data.toPixmap();
}
- else if ( typeName == "TTQBrush")
+ else if ( typeName == "TQBrush")
{
stream << data.toBrush();
}
- else if ( typeName == "TTQRect")
+ else if ( typeName == "TQRect")
{
stream << data.toRect();
}
- else if ( typeName == "TTQSize")
+ else if ( typeName == "TQSize")
{
stream << data.toSize();
}
- else if ( typeName == "TTQColor")
+ else if ( typeName == "TQColor")
{
stream << data.toColor();
}
- else if ( typeName == "TTQPalette")
+ else if ( typeName == "TQPalette")
{
stream << data.toPalette();
}
- else if ( typeName == "TTQColorGroup")
+ else if ( typeName == "TQColorGroup")
{
stream << data.toColorGroup();
}
- /*else if ( typeName == "TTQIconSet")
+ /*else if ( typeName == "TQIconSet")
{
stream << data.toIconSet();
}*/
- else if ( typeName == "TTQPoint")
+ else if ( typeName == "TQPoint")
{
stream << data.toPoint();
}
- else if ( typeName == "TTQImage")
+ else if ( typeName == "TQImage")
{
stream << data.toImage();
}
- else if ( typeName == "TTQPointArray")
+ else if ( typeName == "TQPointArray")
{
stream << data.toPointArray();
}
- else if ( typeName == "TTQRegion")
+ else if ( typeName == "TQRegion")
{
stream << data.toRegion();
}
- else if ( typeName == "TTQBitmap")
+ else if ( typeName == "TQBitmap")
{
stream << data.toBitmap();
}
- else if ( typeName == "TTQCursor")
+ else if ( typeName == "TQCursor")
{
stream << data.toCursor();
}
- /*else if ( typeName == "TTQSizePolicy")
+ /*else if ( typeName == "TQSizePolicy")
{
stream << data.toSizePolicy();
}*/
- else if ( typeName == "TTQDate")
+ else if ( typeName == "TQDate")
{
stream << data.toDate();
}
- else if ( typeName == "TTQTime")
+ else if ( typeName == "TQTime")
{
stream << data.toTime();
}
- else if ( typeName == "TTQDateTime")
+ else if ( typeName == "TQDateTime")
{
stream << data.toDateTime();
}
- else if ( typeName == "TTQByteArray")
+ else if ( typeName == "TQByteArray")
{
stream << data.toByteArray();
}
- else if ( typeName == "TTQBitArray")
+ else if ( typeName == "TQBitArray")
{
stream << data.toBitArray();
}
- else if ( typeName == "TTQKeySequence")
+ else if ( typeName == "TQKeySequence")
{
stream << data.toKeySequence();
}
@@ -591,18 +591,18 @@ void JSDCOPClient::marshall( const TTQVariant& data, const TTQString& typeName,
}
-TTQString JSDCOPClient::dcopStart( const TTQString &appName, const TTQStringList& args )
+TQString JSDCOPClient::dcopStart( const TQString &appName, const TQStringList& args )
{
- TTQString error;
- TTQString startFunction;
+ TQString error;
+ TQString startFunction;
if (appName.endsWith(".desktop"))
- startFunction = "start_service_by_desktop_path(TTQString,TTQStringList)";
+ startFunction = "start_service_by_desktop_path(TQString,TQStringList)";
else
- startFunction = "start_service_by_desktop_name(TTQString,TTQStringList)";
+ startFunction = "start_service_by_desktop_name(TQString,TQStringList)";
- TTQByteArray data, replyData;
- TTQCString replyType;
- TTQDataStream arg(data, IO_WriteOnly);
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << appName << args;
if ( !kapp->dcopClient()->call( "klauncher", "klauncher", startFunction.latin1(), data, replyType, replyData) )
@@ -611,7 +611,7 @@ TTQString JSDCOPClient::dcopStart( const TTQString &appName, const TTQStringList
}
else
{
- TTQDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
if ( replyType != "serviceResult" )
{
@@ -620,8 +620,8 @@ TTQString JSDCOPClient::dcopStart( const TTQString &appName, const TTQStringList
else
{
int result;
- TTQCString dcopName;
- TTQString error;
+ TQCString dcopName;
+ TQString error;
reply >> result >> dcopName >> error;
if (result != 0)
{
@@ -640,57 +640,57 @@ TTQString JSDCOPClient::dcopStart( const TTQString &appName, const TTQStringList
}
-TTQStringList JSDCOPClient::remoteFunctions( const TTQString & remApp, const TTQString & remObj )
+TQStringList JSDCOPClient::remoteFunctions( const TQString & remApp, const TQString & remObj )
{
- TTQStringList returnList;
+ TQStringList returnList;
TQCStringList lst = kapp->dcopClient()->remoteFunctions(remApp.local8Bit(), remObj.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-TTQStringList JSDCOPClient::remoteInterfaces( const TTQString & remApp, const TTQString & remObj )
+TQStringList JSDCOPClient::remoteInterfaces( const TQString & remApp, const TQString & remObj )
{
- TTQStringList returnList;
+ TQStringList returnList;
TQCStringList lst = kapp->dcopClient()->remoteInterfaces(remApp.local8Bit(), remObj.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-TTQStringList JSDCOPClient::remoteObjects( const TTQString & remApp )
+TQStringList JSDCOPClient::remoteObjects( const TQString & remApp )
{
- TTQStringList returnList;
+ TQStringList returnList;
TQCStringList lst = kapp->dcopClient()->remoteObjects(remApp.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-TTQStringList JSDCOPClient::registeredApplications( )
+TQStringList JSDCOPClient::registeredApplications( )
{
- TTQStringList returnList;
+ TQStringList returnList;
TQCStringList lst = kapp->dcopClient()->registeredApplications( );
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-bool JSDCOPClient::connectDCOPSignal (const TTQString &sender, const TTQString &senderObj, const TTQString &signal, const TTQString &receiverObj, const TTQString &slot, bool Volatile)
+bool JSDCOPClient::connectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot, bool Volatile)
{
return kapp->dcopClient()->connectDCOPSignal(sender.latin1(), senderObj.latin1(), signal.latin1(), receiverObj.latin1(), slot.latin1(), Volatile);
}
-bool JSDCOPClient::disconnectDCOPSignal (const TTQString &sender, const TTQString &senderObj, const TTQString &signal, const TTQString &receiverObj, const TTQString &slot)
+bool JSDCOPClient::disconnectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot)
{
return kapp->dcopClient()->disconnectDCOPSignal(sender.latin1(), senderObj.latin1(), signal.latin1(), receiverObj.latin1(), slot.latin1());
}
KJS::Object JSDCOPInterfacerLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
{
- TTQObject *parent = extractTQObject(exec, args, 0);
- TTQString name = extractTQString(exec, args, 1);
- TTQObject *obj = new JSDCOPInterface(jspart->interpreter(),parent, name.latin1() );
+ TQObject *parent = extractTQObject(exec, args, 0);
+ TQString name = extractTQString(exec, args, 1);
+ TQObject *obj = new JSDCOPInterface(jspart->interpreter(),parent, name.latin1() );
JSObjectProxy *prxy = new JSObjectProxy(jspart, obj);
KJS::Object object(prxy);
addBindings(jspart,exec,object);
@@ -704,7 +704,7 @@ void JSDCOPInterfacerLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *
prx->addBindings( exec, proxy );
}
-void JSDCOPInterface::publish( const TTQString & signature )
+void JSDCOPInterface::publish( const TQString & signature )
{
if( m_Members.find(signature.latin1() ) == m_Members.end())
m_Members.append(signature.latin1() );
@@ -714,22 +714,22 @@ JSDCOPInterface::~ JSDCOPInterface( )
{
}
-JSDCOPInterface::JSDCOPInterface( KJS::Interpreter *js, TTQObject * parent, const char * name )
+JSDCOPInterface::JSDCOPInterface( KJS::Interpreter *js, TQObject * parent, const char * name )
: BindingObject( parent, name ),DCOPObject(name), m_js(js)
{
m_Members.clear();
}
-TTQCStringList JSDCOPInterface::functionsDynamic( )
+TQCStringList JSDCOPInterface::functionsDynamic( )
{
return m_Members;
}
-bool JSDCOPInterface::processDynamic( const TTQCString & rawFunction, const TTQByteArray & data, TTQCString & replyType, TTQByteArray & replyData )
+bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByteArray & data, TQCString & replyType, TQByteArray & replyData )
{
bool isOkay = false;
- TTQRegExp reg = TTQRegExp("([_\\d\\w]+)(\\()(.*)(\\))");
+ TQRegExp reg = TQRegExp("([_\\d\\w]+)(\\()(.*)(\\))");
reg.search(rawFunction);
kdDebug() << "Raw function: " << rawFunction << endl;
@@ -737,9 +737,9 @@ bool JSDCOPInterface::processDynamic( const TTQCString & rawFunction, const TTQB
kdDebug() << "Signature: " << reg.cap(1) << endl;
kdDebug() << "Args: " << reg.cap(3) << endl;
- TTQString signature = reg.cap(1);
+ TQString signature = reg.cap(1);
- TTQStringList argStrings = TTQStringList::split(',', reg.cap(3), false);
+ TQStringList argStrings = TQStringList::split(',', reg.cap(3), false);
kdDebug() << argStrings.count() << " args..." << endl;
KJS::ExecState *exec = m_js->globalExec();
@@ -751,7 +751,7 @@ bool JSDCOPInterface::processDynamic( const TTQCString & rawFunction, const TTQB
if ( fun.implementsCall() )
{
- TTQDataStream ds( data, IO_ReadOnly );
+ TQDataStream ds( data, IO_ReadOnly );
KJS::List args;
for( uint idx = 0; idx < argStrings.count(); ++idx)
{
@@ -779,7 +779,7 @@ bool JSDCOPInterface::processDynamic( const TTQCString & rawFunction, const TTQB
if( oprx )
{
replyType = "DCOPRef";
- TTQDataStream refStream( replyData, IO_WriteOnly );
+ TQDataStream refStream( replyData, IO_WriteOnly );
if( oprx->typeName() == "DCOPRef" )
{
DCOPRef ref(*oprx->toNative<DCOPRef>());
@@ -790,7 +790,7 @@ bool JSDCOPInterface::processDynamic( const TTQCString & rawFunction, const TTQB
}
else
{
- TTQVariant returnVariant = convertToVariant(exec, retValue);
+ TQVariant returnVariant = convertToVariant(exec, retValue);
JSDCOPClient::marshall(returnVariant,returnVariant.typeName(), replyData);
replyType = returnVariant.typeName();
isOkay = true;
@@ -800,216 +800,216 @@ bool JSDCOPInterface::processDynamic( const TTQCString & rawFunction, const TTQB
return isOkay;
}
-TTQVariant JSDCOPClient::demarshall( const TTQCString & type, TTQDataStream & reply )
+TQVariant JSDCOPClient::demarshall( const TQCString & type, TQDataStream & reply )
{
kdDebug() << "Type: '" << type << "'"<< endl;
- /*if ( type == "TTQMap" ) // ? dont handle?
+ /*if ( type == "TQMap" ) // ? dont handle?
{
- TTQMap<TTQVariant, TTQVariant> result;
+ TQMap<TQVariant, TQVariant> result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQValueList") // ? dont handle?
+ else if ( type == "TQValueList") // ? dont handle?
{
- TTQValueList<TTQVariant> result;
+ TQValueList<TQVariant> result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}else if ( type == "TQVariantList")
{
TQVariantList result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
else */
- if ( type == "TTQString")
+ if ( type == "TQString")
{
- TTQString result;
+ TQString result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
else if ( type == "int")
{
int result;
reply >> result;
kdDebug() << "Result: " << result << endl;
- return TTQVariant(result);
+ return TQVariant(result);
}
else if ( type == "uint")
{
uint result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
else if ( type == "bool")
{
bool result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
else if ( type == "double")
{
double result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQCString")
+ else if ( type == "TQCString")
{
- TTQCString result;
+ TQCString result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQVariant")
+ else if ( type == "TQVariant")
{
- TTQVariant result;
+ TQVariant result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQFont")
+ else if ( type == "TQFont")
{
- TTQFont result;
+ TQFont result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQPixmap")
+ else if ( type == "TQPixmap")
{
- TTQPixmap result;
+ TQPixmap result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQBrush")
+ else if ( type == "TQBrush")
{
- TTQBrush result;
+ TQBrush result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQRect")
+ else if ( type == "TQRect")
{
- TTQRect result;
+ TQRect result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQSize")
+ else if ( type == "TQSize")
{
- TTQSize result;
+ TQSize result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQColor")
+ else if ( type == "TQColor")
{
- TTQColor result;
+ TQColor result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQPalette")
+ else if ( type == "TQPalette")
{
- TTQPalette result;
+ TQPalette result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQColorGroup")
+ else if ( type == "TQColorGroup")
{
- TTQColorGroup result;
+ TQColorGroup result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- /*else if ( type == "TTQIconSet")
+ /*else if ( type == "TQIconSet")
{
- TTQIconSet result;
+ TQIconSet result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}*/
- else if ( type == "TTQPoint")
+ else if ( type == "TQPoint")
{
- TTQPoint result;
+ TQPoint result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQImage")
+ else if ( type == "TQImage")
{
- TTQImage result;
+ TQImage result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQPointArray")
+ else if ( type == "TQPointArray")
{
- TTQPointArray result;
+ TQPointArray result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQRegion")
+ else if ( type == "TQRegion")
{
- TTQRegion result;
+ TQRegion result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQBitmap")
+ else if ( type == "TQBitmap")
{
- TTQBitmap result;
+ TQBitmap result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQCursor")
+ else if ( type == "TQCursor")
{
- TTQCursor result;
+ TQCursor result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- /*else if ( type == "TTQSizePolicy")
+ /*else if ( type == "TQSizePolicy")
{
- TTQSizePolicy result;
+ TQSizePolicy result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}*/
- else if ( type == "TTQDate")
+ else if ( type == "TQDate")
{
- TTQDate result;
+ TQDate result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQTime")
+ else if ( type == "TQTime")
{
- TTQTime result;
+ TQTime result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQDateTime")
+ else if ( type == "TQDateTime")
{
- TTQDateTime result;
+ TQDateTime result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQByteArray")
+ else if ( type == "TQByteArray")
{
- TTQByteArray result;
+ TQByteArray result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQBitArray")
+ else if ( type == "TQBitArray")
{
- TTQBitArray result;
+ TQBitArray result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQKeySequence")
+ else if ( type == "TQKeySequence")
{
- TTQKeySequence result;
+ TQKeySequence result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
- else if ( type == "TTQStringList")
+ else if ( type == "TQStringList")
{
- TTQStringList result;
+ TQStringList result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
else if ( type == "TQCStringList")
{
- TTQStringList result;
+ TQStringList result;
reply >> result;
- return TTQVariant(result);
+ return TQVariant(result);
}
else
- return TTQVariant();
+ return TQVariant();
}
} // namespace Bindings
diff --git a/kjsembed/bindings/dcop_imp.h b/kjsembed/bindings/dcop_imp.h
index ca20fdca..8b186e72 100644
--- a/kjsembed/bindings/dcop_imp.h
+++ b/kjsembed/bindings/dcop_imp.h
@@ -48,19 +48,19 @@ class JSDCOPInterfacerLoader : public JSBindingBase
};
/**
-* TTQObject Binding for a DCOP interface
+* TQObject Binding for a DCOP interface
*/
class JSDCOPInterface : public BindingObject, public DCOPObject
{
Q_OBJECT
public:
- JSDCOPInterface( KJS::Interpreter *js, TTQObject *parent, const char *name=0 );
+ JSDCOPInterface( KJS::Interpreter *js, TQObject *parent, const char *name=0 );
virtual ~JSDCOPInterface();
TQCStringList functionsDynamic();
- bool processDynamic (const TTQCString &fun, const TTQByteArray &data, TTQCString &replyType, TTQByteArray &replyData);
+ bool processDynamic (const TQCString &fun, const TQByteArray &data, TQCString &replyType, TQByteArray &replyData);
public slots:
- void publish(const TTQString& signature);
+ void publish(const TQString& signature);
private:
TQCStringList m_Members;
@@ -123,23 +123,23 @@ public:
/** Invokes the call function. */
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
- static KJS::Value demarshall( KJS::ExecState * exec, const TTQCString& type, TTQDataStream& data);
- static TTQVariant demarshall( const TTQCString &type, TTQDataStream &ds);
- static void marshall( const TTQVariant& data, const TTQString &typeName, TTQByteArray& buffer );
- static TTQStringList getTypes( const TTQString& function);
+ static KJS::Value demarshall( KJS::ExecState * exec, const TQCString& type, TQDataStream& data);
+ static TQVariant demarshall( const TQCString &type, TQDataStream &ds);
+ static void marshall( const TQVariant& data, const TQString &typeName, TQByteArray& buffer );
+ static TQStringList getTypes( const TQString& function);
bool attach() const;
bool detach() const;
bool isAttached() const;
- TTQString dcopStart( const TTQString& appName, const TTQStringList& args);
- TTQStringList registeredApplications();
- TTQStringList remoteObjects( const TTQString& remApp);
- TTQStringList remoteInterfaces( const TTQString& remApp, const TTQString& remObj );
- TTQStringList remoteFunctions( const TTQString& remApp, const TTQString& remObj);
- bool connectDCOPSignal (const TTQString &sender, const TTQString &senderObj, const TTQString &signal, const TTQString &receiverObj, const TTQString &slot, bool Volatile = false);
- bool disconnectDCOPSignal (const TTQString &sender, const TTQString &senderObj, const TTQString &signal, const TTQString &receiverObj, const TTQString &slot);
+ TQString dcopStart( const TQString& appName, const TQStringList& args);
+ TQStringList registeredApplications();
+ TQStringList remoteObjects( const TQString& remApp);
+ TQStringList remoteInterfaces( const TQString& remApp, const TQString& remObj );
+ TQStringList remoteFunctions( const TQString& remApp, const TQString& remObj);
+ bool connectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot, bool Volatile = false);
+ bool disconnectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot);
KJS::Value dcopCall(KJS::ExecState *exec, KJS::Object &, const KJS::List &args);
KJS::Value dcopSend(KJS::ExecState *exec, KJS::Object &, const KJS::List &args);
private:
diff --git a/kjsembed/bindings/iconset_imp.cpp b/kjsembed/bindings/iconset_imp.cpp
index 230fbe63..43ec0f83 100644
--- a/kjsembed/bindings/iconset_imp.cpp
+++ b/kjsembed/bindings/iconset_imp.cpp
@@ -109,29 +109,29 @@ KJS::Value IconsetImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS:
return KJS::Value();
}
- if ( op->typeName() != "TTQIconSet" ) {
+ if ( op->typeName() != "TQIconSet" ) {
kdWarning() << "IconsetImp::call() failed, type is " << op->typeName() << endl;
return KJS::Value();
}
- TTQIconSet iconset = op->toVariant().toIconSet();
+ TQIconSet iconset = op->toVariant().toIconSet();
KJS::Value retValue = KJS::Value();
switch ( mid ) {
case MethodReset:
{
- TTQPixmap pix = extractTQPixmap(exec, args, 0);
- TTQIconSet::Size size = (TTQIconSet::Size) extractInt(exec, args, 1 );
+ TQPixmap pix = extractTQPixmap(exec, args, 0);
+ TQIconSet::Size size = (TQIconSet::Size) extractInt(exec, args, 1 );
iconset.reset(pix,size);
break;
}
case MethodSetPixmap:
{
- TTQPixmap pix = extractTQPixmap( exec, args, 0);
- TTQString fname = extractTQString( exec, args, 0);
- TTQIconSet::Size size = (TTQIconSet::Size) extractInt(exec, args, 1 );
- TTQIconSet::Mode mode = (TTQIconSet::Mode) extractInt( exec, args, 2 );
- TTQIconSet::State state = (TTQIconSet::State) extractInt( exec, args, 3);
+ TQPixmap pix = extractTQPixmap( exec, args, 0);
+ TQString fname = extractTQString( exec, args, 0);
+ TQIconSet::Size size = (TQIconSet::Size) extractInt(exec, args, 1 );
+ TQIconSet::Mode mode = (TQIconSet::Mode) extractInt( exec, args, 2 );
+ TQIconSet::State state = (TQIconSet::State) extractInt( exec, args, 3);
if( pix.isNull() )
iconset.setPixmap( fname, size, mode, state );
else
@@ -140,13 +140,13 @@ KJS::Value IconsetImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS:
}
case MethodPixmap:
{
- TTQPixmap pix;
+ TQPixmap pix;
if( args.size() == 3 )
{
- TTQIconSet::Size size = (TTQIconSet::Size)extractInt( exec, args, 0 );
- TTQIconSet::Mode mode = (TTQIconSet::Mode)extractInt( exec, args, 1 );
- TTQIconSet::State state = (TTQIconSet::State)extractInt( exec, args, 1 );
+ TQIconSet::Size size = (TQIconSet::Size)extractInt( exec, args, 0 );
+ TQIconSet::Mode mode = (TQIconSet::Mode)extractInt( exec, args, 1 );
+ TQIconSet::State state = (TQIconSet::State)extractInt( exec, args, 1 );
pix = iconset.pixmap( size, mode, state );
}
else
diff --git a/kjsembed/bindings/image_imp.cpp b/kjsembed/bindings/image_imp.cpp
index 8c79e946..eb428ab3 100644
--- a/kjsembed/bindings/image_imp.cpp
+++ b/kjsembed/bindings/image_imp.cpp
@@ -43,7 +43,7 @@ ImageImp::~ImageImp()
void ImageImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQImage") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQImage") ) return;
JSProxy::MethodTable methods[] = {
{ Methodwidth, "width" },
@@ -68,7 +68,7 @@ void ImageImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
}
KJS::Value ImageImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQImage") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQImage") ) return KJS::Value();
JSValueProxy *op = JSProxy::toValueProxy( self.imp() );
img = op->toVariant().toImage();
@@ -99,18 +99,18 @@ KJS::Value ImageImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
}
case Methodload: {
- TTQString arg0 = extractTQString( exec, args, 0);
+ TQString arg0 = extractTQString( exec, args, 0);
retValue = KJS::Boolean( load( arg0 ));
break;
}
case Methodsave: {
- TTQString arg0 = extractTQString( exec, args, 0);
- TTQString arg1 = extractTQString( exec, args, 1);
+ TQString arg0 = extractTQString( exec, args, 0);
+ TQString arg1 = extractTQString( exec, args, 1);
retValue = KJS::Boolean( save( arg0, arg1 ));
break;
}
case MethodsetFormat: {
- TTQString arg0 = extractTQString( exec, args, 0);
+ TQString arg0 = extractTQString( exec, args, 0);
setFormat( arg0 );
break;
}
@@ -127,7 +127,7 @@ KJS::Value ImageImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
break;
}
case MethodsetPixmap: {
- TTQPixmap pix = extractTQPixmap(exec, args, 0);
+ TQPixmap pix = extractTQPixmap(exec, args, 0);
setPixmap(pix);
break;
}
@@ -184,50 +184,50 @@ bool ImageImp::isOk() const {
return !img.isNull();
}
-TTQPixmap ImageImp::pixmap() const {
+TQPixmap ImageImp::pixmap() const {
if ( img.isNull() )
- return TTQPixmap();
+ return TQPixmap();
- TTQPixmap pix;
+ TQPixmap pix;
pix.convertFromImage( img );
return pix;
}
-void ImageImp::setPixmap( const TTQPixmap &pix ) {
+void ImageImp::setPixmap( const TQPixmap &pix ) {
if ( img.isNull() )
- img = TTQImage();
+ img = TQImage();
img = pix.convertToImage();
}
-TTQString ImageImp::format() const {
+TQString ImageImp::format() const {
return fmt;
}
-TTQString ImageImp::filename() const {
+TQString ImageImp::filename() const {
return nm;
}
-void ImageImp::setFormat( const TTQString &f ) {
+void ImageImp::setFormat( const TQString &f ) {
fmt = f;
}
-bool ImageImp::load( const TTQString &filename ) {
+bool ImageImp::load( const TQString &filename ) {
if ( !img.isNull() )
- img = TTQImage();
+ img = TQImage();
nm = filename;
- fmt = TTQImageIO::imageFormat( filename );
+ fmt = TQImageIO::imageFormat( filename );
bool ok = img.load( filename );
if ( !ok ) {
kdWarning() << "Error loading " << filename << endl;
- img = TTQImage();
+ img = TQImage();
}
return ok;
}
-bool ImageImp::save( const TTQString &filename, const TTQString &fmt ) {
+bool ImageImp::save( const TQString &filename, const TQString &fmt ) {
if ( img.isNull() ) {
kdWarning() << "Attempt to save a null image to '" << filename << "'" << endl;
@@ -250,7 +250,7 @@ void ImageImp::smoothScale( int w, int h ) {
void ImageImp::smoothScaleMin( int w, int h ) {
if ( img.isNull())
return;
- img = img.smoothScale( w, h, TTQImage::ScaleMin );
+ img = img.smoothScale( w, h, TQImage::ScaleMin );
}
diff --git a/kjsembed/bindings/image_imp.h b/kjsembed/bindings/image_imp.h
index 94d84e01..39cb7031 100644
--- a/kjsembed/bindings/image_imp.h
+++ b/kjsembed/bindings/image_imp.h
@@ -32,7 +32,7 @@ namespace KJSEmbed {
namespace Bindings {
/**
- * Methods for the TTQImage binding.
+ * Methods for the TQImage binding.
*
* @author Richard Moore, rich@kde.org
* @version $Id$
@@ -66,27 +66,27 @@ public:
private:
- TTQString filename() const;
- TTQString format() const;
+ TQString filename() const;
+ TQString format() const;
int width() const;
int height() const;
int depth() const;
bool isOk() const;
- TTQPixmap pixmap() const;
+ TQPixmap pixmap() const;
- bool load( const TTQString &filename );
- bool save( const TTQString &filename, const TTQString &fmt );
- void setFormat( const TTQString &fmt );
+ bool load( const TQString &filename );
+ bool save( const TQString &filename, const TQString &fmt );
+ void setFormat( const TQString &fmt );
void smoothScale( int w, int h );
void smoothScaleMin( int w, int h );
- void setPixmap( const TTQPixmap &pix );
+ void setPixmap( const TQPixmap &pix );
int mid;
- TTQImage img; // this is a temp!!!
- TTQString nm;
- TTQString fmt;
+ TQImage img; // this is a temp!!!
+ TQString nm;
+ TQString fmt;
};
} // namespace
diff --git a/kjsembed/bindings/kconfig_imp.cpp b/kjsembed/bindings/kconfig_imp.cpp
index c669663f..3cf6e532 100644
--- a/kjsembed/bindings/kconfig_imp.cpp
+++ b/kjsembed/bindings/kconfig_imp.cpp
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-Config::Config( TTQObject *parent, const char *name)
+Config::Config( TQObject *parent, const char *name)
: BindingObject(parent, name)
{
@@ -46,21 +46,21 @@ Config::Config( TTQObject *parent, const char *name)
kdWarning( 80001 ) << "Could not write to config file." << endl;
}
#else
- m_config = new TTQSettings();
+ m_config = new TQSettings();
if( name == 0)
m_name = "qjcmd";
else
m_name = name;
- m_config->setPath( "TQJSEmbed",m_name, TTQSettings::User );
+ m_config->setPath( "TQJSEmbed",m_name, TQSettings::User );
m_forceGlobal = false;
#endif
}
/*
-Config::Config( TTQObject *parent, const char *name , const TTQString& confName)
+Config::Config( TQObject *parent, const char *name , const TQString& confName)
: BindingObject(parent, name)
{
- TTQString fileName = ::locate("kde_config", confName);
+ TQString fileName = ::locate("kde_config", confName);
m_config = new KConfig(fileName);
}
*/
@@ -82,7 +82,7 @@ void Config::setDesktopGroup()
#endif
}
-void Config::setGroup(const TTQString& group)
+void Config::setGroup(const TQString& group)
{
#ifndef QT_ONLY
m_config->setGroup(group);
@@ -92,12 +92,12 @@ void Config::setGroup(const TTQString& group)
#endif
}
-TTQString Config::group()
+TQString Config::group()
{
return m_config->group();
}
-TTQStringList Config::groupList()
+TQStringList Config::groupList()
{
#ifndef QT_ONLY
return m_config->groupList();
@@ -107,7 +107,7 @@ TTQStringList Config::groupList()
#endif
}
-TTQString Config::locale()
+TQString Config::locale()
{
#ifndef QT_ONLY
return m_config->locale();
@@ -122,7 +122,7 @@ void Config::setForceGlobal( bool force )
m_config->setForceGlobal(force);
#else
m_forceGlobal = force;
- m_config->setPath( "TQJSEmbed",m_name, (force)?TTQSettings::Global:TTQSettings::User );
+ m_config->setPath( "TQJSEmbed",m_name, (force)?TQSettings::Global:TQSettings::User );
#endif
}
@@ -203,7 +203,7 @@ void Config::sync()
m_config->sync();
}
-bool Config::hasKey( const TTQString& key ) const
+bool Config::hasKey( const TQString& key ) const
{
#ifndef QT_ONLY
return m_config->hasKey(key);
@@ -212,7 +212,7 @@ bool Config::hasKey( const TTQString& key ) const
#endif
}
-bool Config::entryIsImmutable(const TTQString &key) const
+bool Config::entryIsImmutable(const TQString &key) const
{
#ifndef QT_ONLY
return m_config->entryIsImmutable(key);
@@ -222,7 +222,7 @@ bool Config::entryIsImmutable(const TTQString &key) const
#endif
}
-void Config::revertToDefault(const TTQString &key)
+void Config::revertToDefault(const TQString &key)
{
#ifndef QT_ONLY
m_config->revertToDefault(key);
@@ -231,7 +231,7 @@ void Config::revertToDefault(const TTQString &key)
#endif
}
-bool Config::hasDefault(const TTQString &key) const
+bool Config::hasDefault(const TQString &key) const
{
#ifndef QT_ONLY
return m_config->hasDefault(key);
@@ -250,28 +250,28 @@ void Config::setFileWriteMode(int mode)
#endif
}
-TTQString Config::readEntry(const TTQString& pKey, const TTQString& aDefault ) const
+TQString Config::readEntry(const TQString& pKey, const TQString& aDefault ) const
{
return m_config->readEntry(pKey,aDefault);
}
-TTQVariant Config::readPropertyEntry( const TTQString& pKey, const TTQVariant &pDefault) const
+TQVariant Config::readPropertyEntry( const TQString& pKey, const TQVariant &pDefault) const
{
#ifndef QT_ONLY
return m_config->readPropertyEntry(pKey,pDefault);
#else
- TTQVariant returnVariant;
+ TQVariant returnVariant;
returnVariant = m_config->readEntry(pKey, pDefault.toString());
return returnVariant;
#endif
}
-TTQStringList Config::readListEntry( const TTQString& pKey ) const
+TQStringList Config::readListEntry( const TQString& pKey ) const
{
return m_config->readListEntry(pKey);
}
-TTQString Config::readPathEntry( const TTQString& pKey, const TTQString & aDefault ) const
+TQString Config::readPathEntry( const TQString& pKey, const TQString & aDefault ) const
{
#ifndef QT_ONLY
return m_config->readPathEntry(pKey,aDefault);
@@ -280,7 +280,7 @@ TTQString Config::readPathEntry( const TTQString& pKey, const TTQString & aDefau
#endif
}
-TTQStringList Config::readPathListEntry( const TTQString& pKey ) const
+TQStringList Config::readPathListEntry( const TQString& pKey ) const
{
#ifndef QT_ONLY
return m_config->readPathListEntry(pKey);
@@ -290,12 +290,12 @@ TTQStringList Config::readPathListEntry( const TTQString& pKey ) const
}
-int Config::readNumEntry( const TTQString& pKey, int nDefault) const
+int Config::readNumEntry( const TQString& pKey, int nDefault) const
{
return m_config->readNumEntry(pKey,nDefault);
}
-uint Config::readUnsignedNumEntry( const TTQString& pKey, uint nDefault) const
+uint Config::readUnsignedNumEntry( const TQString& pKey, uint nDefault) const
{
#ifndef QT_ONLY
return m_config->readUnsignedNumEntry(pKey,nDefault);
@@ -304,7 +304,7 @@ uint Config::readUnsignedNumEntry( const TTQString& pKey, uint nDefault) const
#endif
}
-long Config::readLongNumEntry( const TTQString& pKey, long nDefault) const
+long Config::readLongNumEntry( const TQString& pKey, long nDefault) const
{
#ifndef QT_ONLY
return m_config->readLongNumEntry(pKey,nDefault);
@@ -313,7 +313,7 @@ long Config::readLongNumEntry( const TTQString& pKey, long nDefault) const
#endif
}
-double Config::readDoubleNumEntry( const TTQString& pKey, double nDefault ) const
+double Config::readDoubleNumEntry( const TQString& pKey, double nDefault ) const
{
#ifndef QT_ONLY
return m_config->readDoubleNumEntry(pKey,nDefault);
@@ -322,66 +322,66 @@ double Config::readDoubleNumEntry( const TTQString& pKey, double nDefault ) cons
#endif
}
-TTQFont Config::readFontEntry( const TTQString& pKey, const TTQFont* pDefault ) const
+TQFont Config::readFontEntry( const TQString& pKey, const TQFont* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readFontEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toFont();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toFont();
#endif
}
-bool Config::readBoolEntry( const TTQString& pKey, const bool bDefault ) const
+bool Config::readBoolEntry( const TQString& pKey, const bool bDefault ) const
{
return m_config->readBoolEntry(pKey,bDefault);
}
-TTQRect Config::readRectEntry( const TTQString& pKey, const TTQRect* pDefault ) const
+TQRect Config::readRectEntry( const TQString& pKey, const TQRect* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readRectEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toRect();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toRect();
#endif
}
-TTQPoint Config::readPointEntry( const TTQString& pKey, const TTQPoint* pDefault ) const
+TQPoint Config::readPointEntry( const TQString& pKey, const TQPoint* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readPointEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toPoint();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toPoint();
#endif
}
-TTQSize Config::readSizeEntry( const TTQString& pKey, const TTQSize* pDefault ) const
+TQSize Config::readSizeEntry( const TQString& pKey, const TQSize* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readSizeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toSize();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toSize();
#endif
}
-TTQColor Config::readColorEntry( const TTQString& pKey, const TTQColor* pDefault ) const
+TQColor Config::readColorEntry( const TQString& pKey, const TQColor* pDefault ) const
{
#ifndef QT_ONLY
return m_config->readColorEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toColor();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toColor();
#endif
}
-TTQDateTime Config::readDateTimeEntry( const TTQString& pKey, const TTQDateTime* pDefault) const
+TQDateTime Config::readDateTimeEntry( const TQString& pKey, const TQDateTime* pDefault) const
{
#ifndef QT_ONLY
return m_config->readDateTimeEntry(pKey,pDefault);
#else
- return readPropertyEntry(pKey,TTQVariant(*pDefault)).toDateTime();
+ return readPropertyEntry(pKey,TQVariant(*pDefault)).toDateTime();
#endif
}
-TTQString Config::readEntryUntranslated( const TTQString& pKey, const TTQString& aDefault ) const
+TQString Config::readEntryUntranslated( const TQString& pKey, const TQString& aDefault ) const
{
#ifndef QT_ONLY
return m_config->readEntryUntranslated(pKey,aDefault);
@@ -389,12 +389,12 @@ TTQString Config::readEntryUntranslated( const TTQString& pKey, const TTQString&
return m_config->readEntry(pKey,aDefault);
#endif
}
-void Config::writeEntry( const TTQString& pKey, const TTQString& pValue )
+void Config::writeEntry( const TQString& pKey, const TQString& pValue )
{
m_config->writeEntry(pKey,pValue);
}
-void Config::writePropertyEntry( const TTQString& pKey, const TTQVariant& pValue )
+void Config::writePropertyEntry( const TQString& pKey, const TQVariant& pValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, pValue );
@@ -403,7 +403,7 @@ void Config::writePropertyEntry( const TTQString& pKey, const TTQVariant& pValue
#endif
}
-void Config::writeListEntry( const TTQString& pKey, const TTQStringList &rValue )
+void Config::writeListEntry( const TQString& pKey, const TQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -412,7 +412,7 @@ void Config::writeListEntry( const TTQString& pKey, const TTQStringList &rValue
#endif
}
-void Config::writeNumEntry( const TTQString& pKey, int nValue )
+void Config::writeNumEntry( const TQString& pKey, int nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -420,7 +420,7 @@ void Config::writeNumEntry( const TTQString& pKey, int nValue )
m_config->writeEntry(pKey,nValue);
#endif
}
-void Config::writeUnsignedNumEntry( const TTQString& pKey, uint nValue )
+void Config::writeUnsignedNumEntry( const TQString& pKey, uint nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -428,7 +428,7 @@ void Config::writeUnsignedNumEntry( const TTQString& pKey, uint nValue )
writeNumEntry(pKey, (int)nValue );
#endif
}
-void Config::writeLongNumEntry( const TTQString& pKey, unsigned long nValue )
+void Config::writeLongNumEntry( const TQString& pKey, unsigned long nValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, nValue );
@@ -436,15 +436,15 @@ void Config::writeLongNumEntry( const TTQString& pKey, unsigned long nValue )
writeNumEntry(pKey, (int)nValue);
#endif
}
-void Config::writeDoubleNumEntry( const TTQString& pKey, double nValue )
+void Config::writeDoubleNumEntry( const TQString& pKey, double nValue )
{
m_config->writeEntry(pKey,nValue);
}
-void Config::writeBoolEntry( const TTQString& pKey, bool bValue )
+void Config::writeBoolEntry( const TQString& pKey, bool bValue )
{
m_config->writeEntry(pKey,bValue);
}
-void Config::writeFontEntry( const TTQString& pKey, const TTQFont& rFont )
+void Config::writeFontEntry( const TQString& pKey, const TQFont& rFont )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rFont );
@@ -453,7 +453,7 @@ void Config::writeFontEntry( const TTQString& pKey, const TTQFont& rFont )
#endif
}
-void Config::writeColorEntry( const TTQString& pKey, const TTQColor& rColor )
+void Config::writeColorEntry( const TQString& pKey, const TQColor& rColor )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rColor );
@@ -462,7 +462,7 @@ void Config::writeColorEntry( const TTQString& pKey, const TTQColor& rColor )
#endif
}
-void Config::writeDateTimeEntry( const TTQString& pKey, const TTQDateTime& rDateTime )
+void Config::writeDateTimeEntry( const TQString& pKey, const TQDateTime& rDateTime )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rDateTime );
@@ -471,7 +471,7 @@ void Config::writeDateTimeEntry( const TTQString& pKey, const TTQDateTime& rDate
#endif
}
-void Config::writeRectEntry( const TTQString& pKey, const TTQRect& rValue )
+void Config::writeRectEntry( const TQString& pKey, const TQRect& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -480,7 +480,7 @@ void Config::writeRectEntry( const TTQString& pKey, const TTQRect& rValue )
#endif
}
-void Config::writePointEntry( const TTQString& pKey, const TTQPoint& rValue )
+void Config::writePointEntry( const TQString& pKey, const TQPoint& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -489,7 +489,7 @@ void Config::writePointEntry( const TTQString& pKey, const TTQPoint& rValue )
#endif
}
-void Config::writeSizeEntry( const TTQString& pKey, const TTQSize& rValue )
+void Config::writeSizeEntry( const TQString& pKey, const TQSize& rValue )
{
#ifndef QT_ONLY
m_config->writeEntry(pKey, rValue );
@@ -497,7 +497,7 @@ void Config::writeSizeEntry( const TTQString& pKey, const TTQSize& rValue )
writePropertyEntry(pKey,rValue);
#endif
}
-void Config::writePathEntry( const TTQString& pKey, const TTQString & path )
+void Config::writePathEntry( const TQString& pKey, const TQString & path )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,path);
@@ -505,7 +505,7 @@ void Config::writePathEntry( const TTQString& pKey, const TTQString & path )
writeEntry(pKey,path);
#endif
}
-void Config::writePathListEntry( const TTQString& pKey, const TTQStringList &rValue )
+void Config::writePathListEntry( const TQString& pKey, const TQStringList &rValue )
{
#ifndef QT_ONLY
m_config->writePathEntry(pKey,rValue);
@@ -513,7 +513,7 @@ void Config::writePathListEntry( const TTQString& pKey, const TTQStringList &rVa
writeListEntry(pKey,rValue);
#endif
}
-void Config::deleteEntry( const TTQString& pKey, bool bNLS , bool bGlobal )
+void Config::deleteEntry( const TQString& pKey, bool bNLS , bool bGlobal )
{
#ifndef QT_ONLY
m_config->deleteEntry(pKey,bNLS,bGlobal);
@@ -523,7 +523,7 @@ void Config::deleteEntry( const TTQString& pKey, bool bNLS , bool bGlobal )
m_config->removeEntry(pKey);
#endif
}
-bool Config::deleteGroup( const TTQString& group, bool bDeep , bool bGlobal )
+bool Config::deleteGroup( const TQString& group, bool bDeep , bool bGlobal )
{
#ifndef QT_ONLY
return m_config->deleteGroup(group,bDeep,bGlobal);
diff --git a/kjsembed/bindings/kconfig_imp.h b/kjsembed/bindings/kconfig_imp.h
index 0e063cb0..5eb99973 100644
--- a/kjsembed/bindings/kconfig_imp.h
+++ b/kjsembed/bindings/kconfig_imp.h
@@ -36,7 +36,7 @@
#ifndef QT_ONLY
class KConfig;
#else
-class TTQSettings;
+class TQSettings;
#endif
namespace KJSEmbed {
@@ -51,9 +51,9 @@ class Config : public BindingObject
Q_PROPERTY( bool readDefaults READ readDefaults WRITE setReadDefaults )
public:
- Config( TTQObject *parent=0, const char *name=0);
+ Config( TQObject *parent=0, const char *name=0);
/*
- Config( TTQObject *parent, const char *name, const TTQString& confName );
+ Config( TQObject *parent, const char *name, const TQString& confName );
*/
virtual ~Config();
@@ -70,62 +70,62 @@ public slots:
// Group
void setDesktopGroup();
- void setGroup(const TTQString&);
- TTQString group();
- TTQStringList groupList();
- TTQString locale();
+ void setGroup(const TQString&);
+ TQString group();
+ TQStringList groupList();
+ TQString locale();
void rollback( bool bDeep );
void sync();
- bool hasKey( const TTQString& key ) const;
- bool entryIsImmutable(const TTQString &key) const;
- void revertToDefault(const TTQString &key);
- bool hasDefault(const TTQString &key) const;
+ bool hasKey( const TQString& key ) const;
+ bool entryIsImmutable(const TQString &key) const;
+ void revertToDefault(const TQString &key);
+ bool hasDefault(const TQString &key) const;
void setFileWriteMode(int mode);
- TTQString readEntry(const TTQString& pKey, const TTQString& aDefault ) const;
- TTQVariant readPropertyEntry( const TTQString& pKey, const TTQVariant &var) const;
- TTQStringList readListEntry( const TTQString& pKey ) const;
- TTQString readPathEntry( const TTQString& pKey, const TTQString & aDefault) const;
- TTQStringList readPathListEntry( const TTQString& pKey ) const;
- int readNumEntry( const TTQString& pKey, int nDefault ) const;
- uint readUnsignedNumEntry( const TTQString& pKey, uint nDefault ) const;
- long readLongNumEntry( const TTQString& pKey, long nDefault ) const;
- double readDoubleNumEntry( const TTQString& pKey, double nDefault ) const;
- TTQFont readFontEntry( const TTQString& pKey, const TTQFont* pDefault) const;
- bool readBoolEntry( const TTQString& pKey, const bool bDefault ) const;
- TTQRect readRectEntry( const TTQString& pKey, const TTQRect* pDefault) const;
- TTQPoint readPointEntry( const TTQString& pKey, const TTQPoint* pDefault) const;
- TTQSize readSizeEntry( const TTQString& pKey, const TTQSize* pDefault) const;
- TTQColor readColorEntry( const TTQString& pKey, const TTQColor* pDefault) const;
- TTQDateTime readDateTimeEntry( const TTQString& pKey, const TTQDateTime* pDefault) const;
- TTQString readEntryUntranslated( const TTQString& pKey, const TTQString& aDefault ) const;
-
- void writeEntry( const TTQString& pKey, const TTQString& pValue );
- void writePropertyEntry( const TTQString& pKey, const TTQVariant& pValue );
- void writeListEntry( const TTQString& pKey, const TTQStringList &rValue );
- void writeNumEntry( const TTQString& pKey, int nValue );
- void writeUnsignedNumEntry( const TTQString& pKey, uint nValue );
- void writeLongNumEntry( const TTQString& pKey, unsigned long nValue );
- void writeDoubleNumEntry( const TTQString& pKey, double nValue );
- void writeBoolEntry( const TTQString& pKey, bool bValue );
- void writeFontEntry( const TTQString& pKey, const TTQFont& rFont );
- void writeColorEntry( const TTQString& pKey, const TTQColor& rColor );
- void writeDateTimeEntry( const TTQString& pKey, const TTQDateTime& rDateTime );
- void writeRectEntry( const TTQString& pKey, const TTQRect& rValue );
- void writePointEntry( const TTQString& pKey, const TTQPoint& rValue );
- void writeSizeEntry( const TTQString& pKey, const TTQSize& rValue );
- void writePathEntry( const TTQString& pKey, const TTQString & path );
- void writePathListEntry( const TTQString& pKey, const TTQStringList &rValue);
- void deleteEntry( const TTQString& pKey, bool bNLS , bool bGlobal );
- bool deleteGroup( const TTQString& group, bool bDeep , bool bGlobal );
+ TQString readEntry(const TQString& pKey, const TQString& aDefault ) const;
+ TQVariant readPropertyEntry( const TQString& pKey, const TQVariant &var) const;
+ TQStringList readListEntry( const TQString& pKey ) const;
+ TQString readPathEntry( const TQString& pKey, const TQString & aDefault) const;
+ TQStringList readPathListEntry( const TQString& pKey ) const;
+ int readNumEntry( const TQString& pKey, int nDefault ) const;
+ uint readUnsignedNumEntry( const TQString& pKey, uint nDefault ) const;
+ long readLongNumEntry( const TQString& pKey, long nDefault ) const;
+ double readDoubleNumEntry( const TQString& pKey, double nDefault ) const;
+ TQFont readFontEntry( const TQString& pKey, const TQFont* pDefault) const;
+ bool readBoolEntry( const TQString& pKey, const bool bDefault ) const;
+ TQRect readRectEntry( const TQString& pKey, const TQRect* pDefault) const;
+ TQPoint readPointEntry( const TQString& pKey, const TQPoint* pDefault) const;
+ TQSize readSizeEntry( const TQString& pKey, const TQSize* pDefault) const;
+ TQColor readColorEntry( const TQString& pKey, const TQColor* pDefault) const;
+ TQDateTime readDateTimeEntry( const TQString& pKey, const TQDateTime* pDefault) const;
+ TQString readEntryUntranslated( const TQString& pKey, const TQString& aDefault ) const;
+
+ void writeEntry( const TQString& pKey, const TQString& pValue );
+ void writePropertyEntry( const TQString& pKey, const TQVariant& pValue );
+ void writeListEntry( const TQString& pKey, const TQStringList &rValue );
+ void writeNumEntry( const TQString& pKey, int nValue );
+ void writeUnsignedNumEntry( const TQString& pKey, uint nValue );
+ void writeLongNumEntry( const TQString& pKey, unsigned long nValue );
+ void writeDoubleNumEntry( const TQString& pKey, double nValue );
+ void writeBoolEntry( const TQString& pKey, bool bValue );
+ void writeFontEntry( const TQString& pKey, const TQFont& rFont );
+ void writeColorEntry( const TQString& pKey, const TQColor& rColor );
+ void writeDateTimeEntry( const TQString& pKey, const TQDateTime& rDateTime );
+ void writeRectEntry( const TQString& pKey, const TQRect& rValue );
+ void writePointEntry( const TQString& pKey, const TQPoint& rValue );
+ void writeSizeEntry( const TQString& pKey, const TQSize& rValue );
+ void writePathEntry( const TQString& pKey, const TQString & path );
+ void writePathListEntry( const TQString& pKey, const TQStringList &rValue);
+ void deleteEntry( const TQString& pKey, bool bNLS , bool bGlobal );
+ bool deleteGroup( const TQString& group, bool bDeep , bool bGlobal );
private:
#ifndef QT_ONLY
KConfig *m_config;
#else
- TTQSettings *m_config;
- TTQString m_name;
+ TQSettings *m_config;
+ TQString m_name;
bool m_forceGlobal;
#endif
};
diff --git a/kjsembed/bindings/movie_imp.cpp b/kjsembed/bindings/movie_imp.cpp
index d5d7a3cd..7f786c52 100644
--- a/kjsembed/bindings/movie_imp.cpp
+++ b/kjsembed/bindings/movie_imp.cpp
@@ -27,21 +27,21 @@
namespace KJSEmbed {
namespace Bindings {
-Movie::Movie( TTQObject *parent, const char *name ) : BindingObject(parent, name)
+Movie::Movie( TQObject *parent, const char *name ) : BindingObject(parent, name)
{
- movie = TTQMovie();
+ movie = TQMovie();
}
Movie::~Movie()
{
}
-TTQColor Movie::backgroundColor() const
+TQColor Movie::backgroundColor() const
{
if( movie.isNull() )
- return TTQColor();
+ return TQColor();
return movie.backgroundColor();
}
-void Movie::setBackgroundColor( const TTQColor &c )
+void Movie::setBackgroundColor( const TQColor &c )
{
if( movie.isNull() )
return;
@@ -59,30 +59,30 @@ void Movie::setSpeed( int percent )
return;
movie.setSpeed(percent);
}
-bool Movie::load( const TTQString &filename, int bufsize)
+bool Movie::load( const TQString &filename, int bufsize)
{
- movie = TTQMovie( filename, bufsize);
+ movie = TQMovie( filename, bufsize);
if ( movie.isNull() )
return false;
else
return true;
}
-TTQRect Movie::getValidRect()
+TQRect Movie::getValidRect()
{
if( movie.isNull() )
- return TTQRect();
+ return TQRect();
return movie.getValidRect();
}
-TTQPixmap Movie::framePixmap()
+TQPixmap Movie::framePixmap()
{
if( movie.isNull() )
- return TTQPixmap();
+ return TQPixmap();
return movie.framePixmap();
}
-TTQImage Movie::frameImage()
+TQImage Movie::frameImage()
{
if( movie.isNull() )
- return TTQImage();
+ return TQImage();
return movie.frameImage();
}
bool Movie::isNull()
diff --git a/kjsembed/bindings/movie_imp.h b/kjsembed/bindings/movie_imp.h
index 96feffca..74508e99 100644
--- a/kjsembed/bindings/movie_imp.h
+++ b/kjsembed/bindings/movie_imp.h
@@ -30,7 +30,7 @@ namespace KJSEmbed {
namespace Bindings {
/**
- * TTQObject Binding for TTQMovie.
+ * TQObject Binding for TQMovie.
*
* @author Ian Reinhart Geiser, geiseri@kde.org
* @version $Id$
@@ -39,22 +39,22 @@ class Movie : public BindingObject
{
Q_OBJECT
- Q_PROPERTY( TTQColor setBackgroundColor READ backgroundColor )
+ Q_PROPERTY( TQColor setBackgroundColor READ backgroundColor )
Q_PROPERTY( int setSpeed READ speed )
public:
- Movie( TTQObject *parent=0, const char *name=0 );
+ Movie( TQObject *parent=0, const char *name=0 );
virtual ~Movie();
- TTQColor backgroundColor() const;
- void setBackgroundColor( const TTQColor &c );
+ TQColor backgroundColor() const;
+ void setBackgroundColor( const TQColor &c );
int speed() const;
void setSpeed ( int percent );
public slots:
- bool load( const TTQString &filename, int bufsize = 1024);
- TTQRect getValidRect();
- TTQPixmap framePixmap();
- TTQImage frameImage();
+ bool load( const TQString &filename, int bufsize = 1024);
+ TQRect getValidRect();
+ TQPixmap framePixmap();
+ TQImage frameImage();
bool isNull();
int frameNumber();
int steps();
@@ -68,7 +68,7 @@ public slots:
void restart();
private:
- TTQMovie movie;
+ TQMovie movie;
};
} // namespace
diff --git a/kjsembed/bindings/netaccess_imp.cpp b/kjsembed/bindings/netaccess_imp.cpp
index d9864710..c7462e28 100644
--- a/kjsembed/bindings/netaccess_imp.cpp
+++ b/kjsembed/bindings/netaccess_imp.cpp
@@ -32,7 +32,7 @@
namespace KJSEmbed {
namespace Bindings {
-NetAccess::NetAccess( TTQObject *parent, const char *name )
+NetAccess::NetAccess( TQObject *parent, const char *name )
: BindingObject( parent, name )
{
}
@@ -41,9 +41,9 @@ NetAccess::~NetAccess()
{
}
-bool NetAccess::download( const KURL& src, const TTQString& loc )
+bool NetAccess::download( const KURL& src, const TQString& loc )
{
- TTQString mloc = loc;
+ TQString mloc = loc;
#if KDE_IS_VERSION(3,1,90)
return KIO::NetAccess::download( src, mloc, 0 );
#else
@@ -51,19 +51,19 @@ bool NetAccess::download( const KURL& src, const TTQString& loc )
#endif
}
-TTQString NetAccess::createTempFile( const TTQString& prefix, const TTQString& ext, uint mode )
+TQString NetAccess::createTempFile( const TQString& prefix, const TQString& ext, uint mode )
{
KTempFile tmpFile = KTempFile(prefix, ext, mode);
tmpFile.setAutoDelete(false);
return tmpFile.name();
}
-void NetAccess::removeTempFile( const TTQString& name )
+void NetAccess::removeTempFile( const TQString& name )
{
KIO::NetAccess::removeTempFile( name );
}
-bool NetAccess::upload( const TTQString& src, const KURL& dest )
+bool NetAccess::upload( const TQString& src, const KURL& dest )
{
#if KDE_IS_VERSION(3,1,90)
return KIO::NetAccess::upload( src, dest, 0 );
@@ -124,17 +124,17 @@ int NetAccess::propertiesDialog( const KURL &url )
return dlg.exec();
}
-TTQString NetAccess::fish_execute( const KURL& url, const TTQString& command )
+TQString NetAccess::fish_execute( const KURL& url, const TQString& command )
{
#if KDE_IS_VERSION(3,1,90)
return KIO::NetAccess::fish_execute( url, command, 0 );
#else
kdWarning() << "NetAccess::fish_execute(url,command) is not supported on 3.1" << endl;
- return TTQString::null;
+ return TQString::null;
#endif
}
-TTQString NetAccess::mimetype( const KURL& url )
+TQString NetAccess::mimetype( const KURL& url )
{
kdDebug()<<"mimetype CALLED "<<endl;
@@ -145,7 +145,7 @@ TTQString NetAccess::mimetype( const KURL& url )
#endif
}
-TTQString NetAccess::lastErrorString()
+TQString NetAccess::lastErrorString()
{
return KIO::NetAccess::lastErrorString();
}
diff --git a/kjsembed/bindings/netaccess_imp.h b/kjsembed/bindings/netaccess_imp.h
index e2b696ca..8a788af4 100644
--- a/kjsembed/bindings/netaccess_imp.h
+++ b/kjsembed/bindings/netaccess_imp.h
@@ -37,13 +37,13 @@ class NetAccess : public BindingObject
{
Q_OBJECT
public:
- NetAccess( TTQObject *parent, const char *name=0 );
+ NetAccess( TQObject *parent, const char *name=0 );
virtual ~NetAccess();
public slots:
- bool download( const KURL& src, const TTQString & loc );
- TTQString createTempFile(const TTQString& prefix, const TTQString& ext, uint mode );
- void removeTempFile( const TTQString& name );
- bool upload( const TTQString& src, const KURL& dest );
+ bool download( const KURL& src, const TQString & loc );
+ TQString createTempFile(const TQString& prefix, const TQString& ext, uint mode );
+ void removeTempFile( const TQString& name );
+ bool upload( const TQString& src, const KURL& dest );
bool copy( const KURL& src, const KURL& target );
bool dircopy( const KURL& src, const KURL& target );
bool move( const KURL& src, const KURL& target );
@@ -51,9 +51,9 @@ public slots:
bool del( const KURL& url );
int propertiesDialog( const KURL &url );
- TTQString fish_execute( const KURL& url, const TTQString& command );
- TTQString mimetype( const KURL& url );
- TTQString lastErrorString();
+ TQString fish_execute( const KURL& url, const TQString& command );
+ TQString mimetype( const KURL& url );
+ TQString lastErrorString();
};
} // namespace Bindings
diff --git a/kjsembed/bindings/painter_imp.cpp b/kjsembed/bindings/painter_imp.cpp
index 184529df..9a8d36a9 100644
--- a/kjsembed/bindings/painter_imp.cpp
+++ b/kjsembed/bindings/painter_imp.cpp
@@ -38,15 +38,15 @@ namespace Bindings {
{
PainterRef * p = new PainterRef();
/*
- TTQWidget *w = extractTQWidget(exec, args, 0);
- TTQPixmap pix = extractTQPixmap(exec, args, 0);
+ TQWidget *w = extractTQWidget(exec, args, 0);
+ TQPixmap pix = extractTQPixmap(exec, args, 0);
if( w )
{
p->setDevice(w);
p->setCanDelete(false);
}
else if( !pix.isNull() )
- p->setDevice( new TTQPixmap(pix) );
+ p->setDevice( new TQPixmap(pix) );
*/
JSOpaqueProxy *prx = new JSOpaqueProxy( p, "Painter" );
prx->setOwner( JSProxy::JavaScript );
@@ -63,7 +63,7 @@ namespace Bindings {
PainterRef::PainterRef()
{
m_device = 0L;
- m_painter = new TTQPainter;
+ m_painter = new TQPainter;
m_canDelete = true;
}
PainterRef::~PainterRef()
@@ -74,17 +74,17 @@ PainterRef::~PainterRef()
delete m_painter;
}
-TTQPainter *PainterRef::painter()
+TQPainter *PainterRef::painter()
{
return m_painter;
}
-TTQPaintDevice *PainterRef::device()
+TQPaintDevice *PainterRef::device()
{
return m_device;
}
-void PainterRef::setDevice(TTQPaintDevice *d)
+void PainterRef::setDevice(TQPaintDevice *d)
{
if( m_device && m_canDelete)
{
@@ -162,17 +162,17 @@ KJS::Value Painter::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Li
}
else
{
- TTQString msg = i18n( "Paintdevice was not a valid widget." );
+ TQString msg = i18n( "Paintdevice was not a valid widget." );
throwError(exec,msg);
retValue = KJS::Boolean(false);
}
}
else if ( vp )
{
- TTQPixmap *p = new TTQPixmap(vp->toVariant().toPixmap());
+ TQPixmap *p = new TQPixmap(vp->toVariant().toPixmap());
if( p->isNull() )
{
- TTQString msg = i18n( "Cannto paint to a null pixmap." ).arg( op->typeName() );
+ TQString msg = i18n( "Cannto paint to a null pixmap." ).arg( op->typeName() );
throwError(exec,msg);
retValue = KJS::Boolean(false);
}
@@ -183,22 +183,22 @@ KJS::Value Painter::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Li
retValue = KJS::Boolean( begin() );
}
}
- else if ( op && op->typeName() == "TTQPaintDevice" )
+ else if ( op && op->typeName() == "TQPaintDevice" )
{
- pr->setDevice( op->toNative<TTQPaintDevice>() );
+ pr->setDevice( op->toNative<TQPaintDevice>() );
pr->setCanDelete(false);
retValue = KJS::Boolean( begin() );
}
else
{
- TTQString msg = i18n( "Paintdevice of type '%1' is not supported." ).arg( op->typeName() );
+ TQString msg = i18n( "Paintdevice of type '%1' is not supported." ).arg( op->typeName() );
throwError(exec,msg);
retValue = KJS::Boolean(false);
}
}
else
{
- TTQString msg = i18n( "Incorrect number of arguements '%1'." ).arg( args.size() );
+ TQString msg = i18n( "Incorrect number of arguements '%1'." ).arg( args.size() );
throwError(exec,msg);
retValue = KJS::Boolean(false);
}
@@ -216,7 +216,7 @@ KJS::Value Painter::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Li
break;
case MethodsetPen:
{
- TTQPen pn = extractTQPen(exec, args, 0);
+ TQPen pn = extractTQPen(exec, args, 0);
setPen(pn);
break;
}
@@ -367,7 +367,7 @@ bool Painter::begin()
{
return pr->painter()->begin(pr->device());
}
-bool Painter::begin(TTQPaintDevice *dev)
+bool Painter::begin(TQPaintDevice *dev)
{
return pr->painter()->begin(dev);
}
@@ -377,29 +377,29 @@ bool Painter::end()
return pr->painter()->end();
}
-TTQPixmap Painter::pixmap() const
+TQPixmap Painter::pixmap() const
{
- TTQPixmap *pix = dynamic_cast<TTQPixmap *>(pr->device());
+ TQPixmap *pix = dynamic_cast<TQPixmap *>(pr->device());
if( pix )
{
return *pix;
}
- return TTQPixmap();
+ return TQPixmap();
}
-void Painter::setPen( const TTQPen& pn )
+void Painter::setPen( const TQPen& pn )
{
pr->painter()->setPen(pn);
}
-TTQPen Painter::pen() const
+TQPen Painter::pen() const
{
return pr->painter()->pen();
}
-TTQRect Painter::textBox(const TTQString &text)
+TQRect Painter::textBox(const TQString &text)
{
- TTQFontMetrics fnt = pr->painter()->fontMetrics();
+ TQFontMetrics fnt = pr->painter()->fontMetrics();
return fnt.boundingRect(text);
}
@@ -438,7 +438,7 @@ void Painter::drawEllipse( int x, int y, int w, int h )
pr->painter()->drawEllipse( x, y, w, h );
}
-void Painter::drawText( int x, int y, const TTQString &txt )
+void Painter::drawText( int x, int y, const TQString &txt )
{
pr->painter()->drawText( x, y, txt );
}
@@ -451,15 +451,15 @@ void Painter::drawPie ( int x, int y, int w, int h, int a, int alen )
{
pr->painter()->drawPie( x, y, w, h, a, alen);
}
-void Painter::drawPixmap ( int x, int y, const TTQPixmap & pixmap, int sx, int sy, int sw, int sh )
+void Painter::drawPixmap ( int x, int y, const TQPixmap & pixmap, int sx, int sy, int sw, int sh )
{
pr->painter()->drawPixmap( x, y, pixmap, sx, sy, sw, sh );
}
-void Painter::drawImage ( int x, int y, const TTQImage &image, int sx , int sy, int sw , int sh, int conversionFlags)
+void Painter::drawImage ( int x, int y, const TQImage &image, int sx , int sy, int sw , int sh, int conversionFlags)
{
pr->painter()->drawImage( x, y, image, sx, sy, sw, sh, conversionFlags );
}
-void Painter::drawTiledPixmap ( int x, int y, int w, int h, const TTQPixmap & pixmap, int sx, int sy )
+void Painter::drawTiledPixmap ( int x, int y, int w, int h, const TQPixmap & pixmap, int sx, int sy )
{
pr->painter()->drawTiledPixmap( x, y, w, h, pixmap, sx, sy );
}
@@ -481,22 +481,22 @@ void Painter::translate ( double dx, double dy )
pr->painter()->translate( dx, dy );
}
-void KJSEmbed::Bindings::Painter::setFont( const TTQFont & font )
+void KJSEmbed::Bindings::Painter::setFont( const TQFont & font )
{
pr->painter()->setFont(font);
}
-TTQFont KJSEmbed::Bindings::Painter::font( ) const
+TQFont KJSEmbed::Bindings::Painter::font( ) const
{
return pr->painter()->font();
}
-TTQColor KJSEmbed::Bindings::Painter::backgroundColor( ) const
+TQColor KJSEmbed::Bindings::Painter::backgroundColor( ) const
{
return pr->painter()->backgroundColor();
}
-void KJSEmbed::Bindings::Painter::setBackgroundColor( const TTQColor & color )
+void KJSEmbed::Bindings::Painter::setBackgroundColor( const TQColor & color )
{
pr->painter()->setBackgroundColor(color);
}
@@ -505,12 +505,12 @@ void KJSEmbed::Bindings::Painter::setBackgroundColor( const TTQColor & color )
} // namespace KJSEmbed
-void KJSEmbed::Bindings::Painter::setBrush( const TTQColor & brush )
+void KJSEmbed::Bindings::Painter::setBrush( const TQColor & brush )
{
pr->painter()->setBrush(brush);
}
-TTQColor KJSEmbed::Bindings::Painter::brush( ) const
+TQColor KJSEmbed::Bindings::Painter::brush( ) const
{
return pr->painter()->brush().color();
}
diff --git a/kjsembed/bindings/painter_imp.h b/kjsembed/bindings/painter_imp.h
index 0f99a777..f831b7fd 100644
--- a/kjsembed/bindings/painter_imp.h
+++ b/kjsembed/bindings/painter_imp.h
@@ -27,7 +27,7 @@
#include <tqpen.h>
#include <tqpainter.h>
-class TTQPixmap;
+class TQPixmap;
namespace KJSEmbed {
namespace Bindings {
@@ -46,22 +46,22 @@ class PainterRef
PainterRef();
~PainterRef();
- TTQPainter *painter();
+ TQPainter *painter();
- TTQPaintDevice *device();
- void setDevice(TTQPaintDevice *d);
+ TQPaintDevice *device();
+ void setDevice(TQPaintDevice *d);
void setCanDelete(bool can ) {m_canDelete = can;}
bool canDelete() const { return m_canDelete;}
private:
- TTQPainter *m_painter;
- TTQPaintDevice *m_device;
+ TQPainter *m_painter;
+ TQPaintDevice *m_device;
bool m_canDelete;
};
/**
- * JSProxyImp binding for painting on a TTQPixmap.
+ * JSProxyImp binding for painting on a TQPixmap.
*
* @author Richard Moore, rich@kde.org
*/
@@ -84,12 +84,12 @@ public:
private:
bool begin();
- bool begin(TTQPaintDevice *dev);
+ bool begin(TQPaintDevice *dev);
bool end();
- TTQPixmap pixmap() const;
- void setPen( const TTQPen& pn);
- TTQPen pen() const;
- TTQRect textBox(const TTQString &text);
+ TQPixmap pixmap() const;
+ void setPen( const TQPen& pn);
+ TQPen pen() const;
+ TQRect textBox(const TQString &text);
void moveTo( int x, int y );
void lineTo( int x, int y );
void drawPoint( int x, int y );
@@ -97,22 +97,22 @@ private:
void drawRect( int x, int y, int w, int h );
void drawRoundRect( int x, int y, int w, int h, int, int);
void drawEllipse( int x, int y, int w, int h );
- void drawText( int x, int y, const TTQString &txt );
+ void drawText( int x, int y, const TQString &txt );
void drawArc( int x, int y, int w, int h, int a, int alen );
void drawPie( int x, int y, int w, int h, int a, int alen );
- void drawPixmap ( int x, int y, const TTQPixmap &pixmap, int sx, int sy, int sw, int sh );
- void drawImage ( int x, int y, const TTQImage &image, int sx, int sy, int sw, int sh, int conversionFlags );
- void drawTiledPixmap ( int x, int y, int w, int h, const TTQPixmap &pixmap, int sx, int sy);
+ void drawPixmap ( int x, int y, const TQPixmap &pixmap, int sx, int sy, int sw, int sh );
+ void drawImage ( int x, int y, const TQImage &image, int sx, int sy, int sw, int sh, int conversionFlags );
+ void drawTiledPixmap ( int x, int y, int w, int h, const TQPixmap &pixmap, int sx, int sy);
void scale ( double sx, double sy );
void shear ( double sh, double sv );
void rotate ( double a );
void translate ( double dx, double dy );
- void setFont( const TTQFont &font);
- TTQFont font() const;
- void setBrush( const TTQColor &brush );
- TTQColor brush() const;
- TTQColor backgroundColor() const;
- void setBackgroundColor(const TTQColor &color);
+ void setFont( const TQFont &font);
+ TQFont font() const;
+ void setBrush( const TQColor &brush );
+ TQColor brush() const;
+ TQColor backgroundColor() const;
+ void setBackgroundColor(const TQColor &color);
private:
int mid;
diff --git a/kjsembed/bindings/pen_imp.cpp b/kjsembed/bindings/pen_imp.cpp
index 8f9396bc..63344a52 100644
--- a/kjsembed/bindings/pen_imp.cpp
+++ b/kjsembed/bindings/pen_imp.cpp
@@ -40,7 +40,7 @@ Pen::~Pen()
}
void Pen::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQPen") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQPen") ) return;
JSProxy::MethodTable methods[] = {
{ Methodwidth, "width"},
@@ -80,9 +80,9 @@ void Pen::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
KJS::Value Pen::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQPen") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQPen") ) return KJS::Value();
JSValueProxy *op = JSProxy::toValueProxy( self.imp() );
- TTQPen pen = op->toVariant().toPen();
+ TQPen pen = op->toVariant().toPen();
KJS::Value retValue = KJS::Value();
switch ( mid ) {
@@ -104,7 +104,7 @@ KJS::Value Pen::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &
}
case MethodsetColor:
{
- TTQColor color = extractTQColor(exec, args, 0);
+ TQColor color = extractTQColor(exec, args, 0);
pen.setColor(color);
break;
}
diff --git a/kjsembed/bindings/pixmap_imp.cpp b/kjsembed/bindings/pixmap_imp.cpp
index 50396d3a..5fead7ce 100644
--- a/kjsembed/bindings/pixmap_imp.cpp
+++ b/kjsembed/bindings/pixmap_imp.cpp
@@ -43,7 +43,7 @@ Pixmap::~Pixmap()
void Pixmap::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType( object, JSProxy::ValueProxy, "TTQPixmap") )
+ if( !JSProxy::checkType( object, JSProxy::ValueProxy, "TQPixmap") )
return;
JSProxy::MethodTable methods[] = {
@@ -68,7 +68,7 @@ void Pixmap::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
KJS::Value Pixmap::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType( self, JSProxy::ValueProxy, "TTQPixmap") )
+ if( !JSProxy::checkType( self, JSProxy::ValueProxy, "TQPixmap") )
return KJS::Value();
JSValueProxy *op = JSProxy::toValueProxy( self.imp() );
@@ -144,35 +144,35 @@ void Pixmap::resize( int w, int h )
pix.resize( w, h );
}
-void Pixmap::resize( const TTQSize &size )
+void Pixmap::resize( const TQSize &size )
{
pix.resize( size );
}
-void Pixmap::fill( const TTQColor &c )
+void Pixmap::fill( const TQColor &c )
{
pix.fill( c );
}
void Pixmap::grabWindow(int winID, int x, int y, int w, int h)
{
- pix = TTQPixmap::grabWindow((WId)winID, x, y, w, h);
+ pix = TQPixmap::grabWindow((WId)winID, x, y, w, h);
}
-TTQPixmap Pixmap::mask()
+TQPixmap Pixmap::mask()
{
return *(pix.mask());
}
-void Pixmap::setMask(const TTQPixmap& mask)
+void Pixmap::setMask(const TQPixmap& mask)
{
- TTQBitmap bm;
+ TQBitmap bm;
bm = mask;
pix.setMask(bm);
}
-TTQPixmap Pixmap::createHeuristicMask ( bool clipTight )
+TQPixmap Pixmap::createHeuristicMask ( bool clipTight )
{
- return (TTQPixmap)pix.createHeuristicMask(clipTight);
+ return (TQPixmap)pix.createHeuristicMask(clipTight);
}
} // namespace KJSEmbed::Bindings
diff --git a/kjsembed/bindings/pixmap_imp.h b/kjsembed/bindings/pixmap_imp.h
index caffdd8f..08baa96c 100644
--- a/kjsembed/bindings/pixmap_imp.h
+++ b/kjsembed/bindings/pixmap_imp.h
@@ -30,7 +30,7 @@ namespace KJSEmbed {
namespace Bindings {
/**
- * TTQObject Binding for TTQPixmap.
+ * TQObject Binding for TQPixmap.
*
* @author Richard Moore, rich@kde.org
* @version $Id$
@@ -60,25 +60,25 @@ private:
int width() const { return pix.width(); }
int height() const { return pix.height(); }
- TTQSize size() const { return pix.size(); }
- TTQRect rect() const { return pix.rect(); }
+ TQSize size() const { return pix.size(); }
+ TQRect rect() const { return pix.rect(); }
int depth() const { return pix.depth(); }
void resize( int w, int h );
- void resize( const TTQSize &size );
- void fill( const TTQColor &color );
+ void resize( const TQSize &size );
+ void fill( const TQColor &color );
- TTQPixmap mask();
- void setMask(const TTQPixmap& mask);
- TTQPixmap createHeuristicMask ( bool clipTight );
+ TQPixmap mask();
+ void setMask(const TQPixmap& mask);
+ TQPixmap createHeuristicMask ( bool clipTight );
// Image Capture
void grabWindow(int winID, int x =0, int y = 0, int w = -1, int h = -1);
private:
int mid;
- TTQPixmap pix;
+ TQPixmap pix;
};
} // namespace
diff --git a/kjsembed/bindings/point_imp.cpp b/kjsembed/bindings/point_imp.cpp
index cc9d06af..fff93aad 100644
--- a/kjsembed/bindings/point_imp.cpp
+++ b/kjsembed/bindings/point_imp.cpp
@@ -38,7 +38,7 @@ namespace Bindings {
}
void Point::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQPoint") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQPoint") ) return;
JSProxy::MethodTable methods[] = {
{ Methodx, "x"},
@@ -53,10 +53,10 @@ namespace Bindings {
}
KJS::Value Point::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQPoint") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQPoint") ) return KJS::Value();
JSValueProxy *vp = JSProxy::toValueProxy( self.imp() );
KJS::Value retValue = KJS::Value();
- TTQPoint val = vp->toVariant().toPoint();
+ TQPoint val = vp->toVariant().toPoint();
switch ( mid ) {
case Methodx:
@@ -75,7 +75,7 @@ namespace Bindings {
retValue = KJS::Number(val.manhattanLength());
break;
default:
- TTQString msg = i18n( "Point has no method %1" ).arg(mid);
+ TQString msg = i18n( "Point has no method %1" ).arg(mid);
return throwError(exec, msg);
break;
}
diff --git a/kjsembed/bindings/rect_imp.cpp b/kjsembed/bindings/rect_imp.cpp
index a36b6759..2614197b 100644
--- a/kjsembed/bindings/rect_imp.cpp
+++ b/kjsembed/bindings/rect_imp.cpp
@@ -38,7 +38,7 @@ namespace Bindings {
}
void Rect::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQRect") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQRect") ) return;
JSProxy::MethodTable methods[] = {
{ Methodx, "x" },
@@ -58,12 +58,12 @@ namespace Bindings {
}
KJS::Value Rect::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQRect") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQRect") ) return KJS::Value();
KJS::Value retValue = KJS::Value();
JSValueProxy *vp = JSProxy::toValueProxy( self.imp() );
- TTQRect val = vp->toVariant().toRect();
+ TQRect val = vp->toVariant().toRect();
switch ( mid ) {
case Methodx:
@@ -94,7 +94,7 @@ namespace Bindings {
retValue = convertToValue( exec, val.contains( extractTQRect(exec, args, 0), extractBool(exec, args, 1)) );
break;
default:
- TTQString msg = i18n( "Rect has no method %1" ).arg(mid);
+ TQString msg = i18n( "Rect has no method %1" ).arg(mid);
return throwError(exec, msg);
break;
}
diff --git a/kjsembed/bindings/size_imp.cpp b/kjsembed/bindings/size_imp.cpp
index f2123eb7..1e41e60a 100644
--- a/kjsembed/bindings/size_imp.cpp
+++ b/kjsembed/bindings/size_imp.cpp
@@ -38,7 +38,7 @@ Size::~Size()
}
void Size::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
- if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TTQSize") ) return;
+ if( !JSProxy::checkType(object, JSProxy::ValueProxy, "TQSize") ) return;
JSProxy::MethodTable methods[] = {
{ Methodwidth, "width"},
@@ -58,9 +58,9 @@ void Size::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
//
JSProxy::EnumTable enums[] = {
- { "ScaleFree", (int)TTQSize::ScaleFree },
- { "ScaleMin", (int)TTQSize::ScaleMin },
- { "ScaleMax", (int)TTQSize::ScaleMax },
+ { "ScaleFree", (int)TQSize::ScaleFree },
+ { "ScaleMin", (int)TQSize::ScaleMin },
+ { "ScaleMax", (int)TQSize::ScaleMax },
{ 0, 0 }
};
@@ -68,10 +68,10 @@ void Size::addBindings( KJS::ExecState *exec, KJS::Object &object ) {
}
KJS::Value Size::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TTQSize") ) return KJS::Value();
+ if( !JSProxy::checkType(self, JSProxy::ValueProxy, "TQSize") ) return KJS::Value();
KJS::Value retValue = KJS::Value();
JSValueProxy *vp = JSProxy::toValueProxy( self.imp() );
- TTQSize val = vp->toVariant().toSize();
+ TQSize val = vp->toVariant().toSize();
switch ( mid ) {
case Methodwidth:
@@ -89,14 +89,14 @@ KJS::Value Size::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List
case Methodscale:
{
if( args.size() == 2 ) {
- TTQSize sz = extractTQSize(exec, args, 0);
+ TQSize sz = extractTQSize(exec, args, 0);
int mode = extractInt(exec, args, 1);
- val.scale(sz, (TTQSize::ScaleMode)mode);
+ val.scale(sz, (TQSize::ScaleMode)mode);
} else {
int x = extractInt(exec, args, 0);
int y = extractInt(exec, args, 1);
int mode = extractInt(exec, args, 2);
- val.scale(x,y, (TTQSize::ScaleMode)mode);
+ val.scale(x,y, (TQSize::ScaleMode)mode);
}
break;
}
@@ -105,18 +105,18 @@ KJS::Value Size::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List
break;
case MethodexpandedTo:
{
- TTQSize sz = extractTQSize(exec, args, 0);
+ TQSize sz = extractTQSize(exec, args, 0);
retValue = convertToValue( exec, val.expandedTo(sz) );
break;
}
case MethodboundedTo:
{
- TTQSize sz = extractTQSize(exec, args, 0);
+ TQSize sz = extractTQSize(exec, args, 0);
retValue = convertToValue( exec, val.boundedTo(sz) );
break;
}
default:
- TTQString msg = i18n( "Size has no method %1" ).arg(mid);
+ TQString msg = i18n( "Size has no method %1" ).arg(mid);
return throwError(exec, msg);
break;
}
diff --git a/kjsembed/bindings/sql_imp.cpp b/kjsembed/bindings/sql_imp.cpp
index 3d7e9578..5fa9782f 100644
--- a/kjsembed/bindings/sql_imp.cpp
+++ b/kjsembed/bindings/sql_imp.cpp
@@ -30,44 +30,44 @@
namespace KJSEmbed {
namespace Bindings {
-SqlDatabase::SqlDatabase( TTQObject *parent, const char *name): BindingObject(parent, name)
+SqlDatabase::SqlDatabase( TQObject *parent, const char *name): BindingObject(parent, name)
{
connectionName = "defaultConnection";
setJSClassName( "SqlDatabase" );
}
SqlDatabase::~SqlDatabase()
{
- TTQSqlDatabase::removeDatabase(connectionName);
+ TQSqlDatabase::removeDatabase(connectionName);
}
-bool SqlDatabase::addDatabase ( const TTQString &type, const TTQString &conn )
+bool SqlDatabase::addDatabase ( const TQString &type, const TQString &conn )
{
connectionName = conn;
- TTQSqlDatabase *db = TTQSqlDatabase::addDatabase(type, connectionName);
+ TQSqlDatabase *db = TQSqlDatabase::addDatabase(type, connectionName);
if ( !db )
return false;
return true;
}
-TTQStringList SqlDatabase::drivers ()
+TQStringList SqlDatabase::drivers ()
{
- return TTQSqlDatabase::drivers();
+ return TQSqlDatabase::drivers();
}
bool SqlDatabase::open ( )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->open();
return false;
}
-bool SqlDatabase::open ( const TTQString &user, const TTQString &password )
+bool SqlDatabase::open ( const TQString &user, const TQString &password )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->open(user, password);
return false;
}
void SqlDatabase::close ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
{
db->close();
@@ -75,28 +75,28 @@ void SqlDatabase::close ()
}
bool SqlDatabase::isOpen ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->isOpen();
return false;
}
bool SqlDatabase::isOpenError ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->isOpenError();
return true;
}
-TTQStringList SqlDatabase::tables ()
+TQStringList SqlDatabase::tables ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->tables();
- return TTQStringList();
+ return TQStringList();
}
-SqlQuery *SqlDatabase::exec (const TTQString &query )
+SqlQuery *SqlDatabase::exec (const TQString &query )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
{
kdDebug() <<" exec query " << query << endl;
@@ -108,9 +108,9 @@ SqlQuery *SqlDatabase::exec (const TTQString &query )
}
return 0L;
}
-TTQString SqlDatabase::lastError () const
+TQString SqlDatabase::lastError () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
{
return db->lastError().text();
@@ -119,105 +119,105 @@ TTQString SqlDatabase::lastError () const
}
bool SqlDatabase::transaction ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->transaction();
return false;
}
bool SqlDatabase::commit ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->commit();
return false;
}
bool SqlDatabase::rollback ()
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->rollback();
return false;
}
-void SqlDatabase::setDatabaseName (const TTQString &name )
+void SqlDatabase::setDatabaseName (const TQString &name )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setDatabaseName(name);
}
-void SqlDatabase::setUserName (const TTQString &name )
+void SqlDatabase::setUserName (const TQString &name )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setUserName(name);
}
-void SqlDatabase::setPassword (const TTQString &password )
+void SqlDatabase::setPassword (const TQString &password )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setPassword(password);
}
-void SqlDatabase::setHostName (const TTQString &host )
+void SqlDatabase::setHostName (const TQString &host )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setHostName(host);
}
void SqlDatabase::setPort ( int p )
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
db->setPort(p);
}
-TTQString SqlDatabase::databaseName () const
+TQString SqlDatabase::databaseName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->databaseName();
return "";
}
-TTQString SqlDatabase::userName () const
+TQString SqlDatabase::userName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->userName();
return "";
}
-TTQString SqlDatabase::password () const
+TQString SqlDatabase::password () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->password();
return "";
}
-TTQString SqlDatabase::hostName () const
+TQString SqlDatabase::hostName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->hostName();
return "";
}
-TTQString SqlDatabase::driverName () const
+TQString SqlDatabase::driverName () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->driverName();
return "";
}
int SqlDatabase::port () const
{
- TTQSqlDatabase *db = TTQSqlDatabase::database(connectionName,false);
+ TQSqlDatabase *db = TQSqlDatabase::database(connectionName,false);
if ( db )
return db->port();
return 0;
}
-SqlQuery::SqlQuery( TTQObject *parent, const char *name ): BindingObject(parent, name)
+SqlQuery::SqlQuery( TQObject *parent, const char *name ): BindingObject(parent, name)
{
kdDebug() << "New null SQL Query" << endl;
- m_query = TTQSqlQuery();
+ m_query = TQSqlQuery();
setJSClassName( "SqlQuery" );
}
-SqlQuery::SqlQuery( TTQObject *parent, const char *name, const TTQSqlQuery &q ): BindingObject(parent, name)
+SqlQuery::SqlQuery( TQObject *parent, const char *name, const TQSqlQuery &q ): BindingObject(parent, name)
{
kdDebug() << "New SQL Query with argument" << endl;
m_query = q;
@@ -252,7 +252,7 @@ int SqlQuery::at () const
{
return m_query.at();
}
-TTQString SqlQuery::lastQuery () const
+TQString SqlQuery::lastQuery () const
{
kdDebug() << "Last query error: " << m_query.lastQuery() << endl;
return m_query.lastQuery();
@@ -261,7 +261,7 @@ int SqlQuery::numRowsAffected () const
{
return m_query.numRowsAffected();
}
-TTQString SqlQuery::lastError () const
+TQString SqlQuery::lastError () const
{
return m_query.lastError().text();
}
@@ -273,11 +273,11 @@ int SqlQuery::size () const
{
return m_query.size();
}
-bool SqlQuery::exec ( const TTQString & query )
+bool SqlQuery::exec ( const TQString & query )
{
return m_query.exec( query );
}
-TTQVariant SqlQuery::value ( int i )
+TQVariant SqlQuery::value ( int i )
{
return m_query.value(i);
}
diff --git a/kjsembed/bindings/sql_imp.h b/kjsembed/bindings/sql_imp.h
index c99558f8..950ef156 100644
--- a/kjsembed/bindings/sql_imp.h
+++ b/kjsembed/bindings/sql_imp.h
@@ -28,7 +28,7 @@ namespace KJSEmbed {
namespace Bindings {
/**
- * TTQObject Binding for TQSQLQuery.
+ * TQObject Binding for TQSQLQuery.
*
* @author Ian Reinhart Geiser, geiseri@kde.org
* @version $Id$
@@ -42,17 +42,17 @@ class SqlQuery : public BindingObject
Q_PROPERTY( bool select READ isSelect)
Q_PROPERTY( bool valid READ isValid)
Q_PROPERTY( bool active READ isActive)
- Q_PROPERTY( TTQString lastError READ lastError)
- Q_PROPERTY( TTQString lastQuery READ lastQuery)
+ Q_PROPERTY( TQString lastError READ lastError)
+ Q_PROPERTY( TQString lastQuery READ lastQuery)
public:
- SqlQuery( TTQObject *parent=0, const char *name=0 );
- SqlQuery( TTQObject *parent, const char *name, const TTQSqlQuery &q );
+ SqlQuery( TQObject *parent=0, const char *name=0 );
+ SqlQuery( TQObject *parent, const char *name, const TQSqlQuery &q );
//SqlQuery( const SqlQuery &copy);
virtual ~SqlQuery();
- TTQSqlQuery query(){ return m_query; }
- void setQuery(const TTQSqlQuery &q) {m_query = TTQSqlQuery(q); }
+ TQSqlQuery query(){ return m_query; }
+ void setQuery(const TQSqlQuery &q) {m_query = TQSqlQuery(q); }
int size () const;
bool isSelect () const;
@@ -60,16 +60,16 @@ public:
bool isActive () const;
int at () const;
int numRowsAffected () const;
- TTQString lastError () const;
- TTQString lastQuery () const;
+ TQString lastError () const;
+ TQString lastQuery () const;
public slots:
bool isNull ( int field );
- bool exec ( const TTQString & m_query );
- TTQVariant value ( int i );
+ bool exec ( const TQString & m_query );
+ TQVariant value ( int i );
bool seek ( int i, bool relative = FALSE );
bool next ();
bool prev ();
@@ -77,11 +77,11 @@ public slots:
bool last ();
private:
- TTQSqlQuery m_query;
+ TQSqlQuery m_query;
};
/**
- * TTQObject Binding for TQSQLDatabase.
+ * TQObject Binding for TQSQLDatabase.
*
* @author Ian Reinhart Geiser, geiseri@kde.org
* @version $Id$
@@ -89,49 +89,49 @@ private:
class SqlDatabase : public BindingObject
{
Q_OBJECT
- Q_PROPERTY( TTQString databaseName READ databaseName WRITE setDatabaseName)
- Q_PROPERTY( TTQString userName READ userName WRITE setUserName)
- Q_PROPERTY( TTQString password READ password WRITE setPassword)
- Q_PROPERTY( TTQString hostName READ hostName WRITE setHostName)
+ Q_PROPERTY( TQString databaseName READ databaseName WRITE setDatabaseName)
+ Q_PROPERTY( TQString userName READ userName WRITE setUserName)
+ Q_PROPERTY( TQString password READ password WRITE setPassword)
+ Q_PROPERTY( TQString hostName READ hostName WRITE setHostName)
Q_PROPERTY( int port READ port WRITE setPort)
- Q_PROPERTY( TTQString driverName READ driverName)
- Q_PROPERTY( TTQString lastError READ lastError)
+ Q_PROPERTY( TQString driverName READ driverName)
+ Q_PROPERTY( TQString lastError READ lastError)
public:
- SqlDatabase( TTQObject *parent=0, const char *name=0 );
+ SqlDatabase( TQObject *parent=0, const char *name=0 );
virtual ~SqlDatabase();
public slots:
- void setDatabaseName (const TTQString &name );
- void setUserName (const TTQString &name );
- void setPassword (const TTQString &password );
- void setHostName (const TTQString &host );
+ void setDatabaseName (const TQString &name );
+ void setUserName (const TQString &name );
+ void setPassword (const TQString &password );
+ void setHostName (const TQString &host );
void setPort ( int p );
- TTQString databaseName () const;
- TTQString userName () const;
- TTQString password () const;
- TTQString hostName () const;
+ TQString databaseName () const;
+ TQString userName () const;
+ TQString password () const;
+ TQString hostName () const;
int port () const;
- TTQString driverName () const;
+ TQString driverName () const;
- bool addDatabase ( const TTQString & type, const TTQString & connectionName = TTQSqlDatabase::defaultConnection );
- TTQStringList drivers ();
+ bool addDatabase ( const TQString & type, const TQString & connectionName = TQSqlDatabase::defaultConnection );
+ TQStringList drivers ();
bool open ();
- bool open ( const TTQString &user, const TTQString &password );
+ bool open ( const TQString &user, const TQString &password );
void close ();
bool isOpen ();
bool isOpenError ();
- TTQStringList tables ();
- SqlQuery *exec( const TTQString &query );
- TTQString lastError () const;
+ TQStringList tables ();
+ SqlQuery *exec( const TQString &query );
+ TQString lastError () const;
bool transaction ();
bool commit ();
bool rollback ();
private:
- TTQString connectionName;
- //TTQSqlDatabase *db;
+ TQString connectionName;
+ //TQSqlDatabase *db;
};