summaryrefslogtreecommitdiffstats
path: root/kjsembed/builtins
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/builtins
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/builtins')
-rw-r--r--kjsembed/builtins/qdir_imp.cpp266
-rw-r--r--kjsembed/builtins/qdir_imp.h14
-rw-r--r--kjsembed/builtins/qfile_imp.cpp126
-rw-r--r--kjsembed/builtins/qfile_imp.h18
-rw-r--r--kjsembed/builtins/resources.cpp52
-rw-r--r--kjsembed/builtins/resources.h4
-rw-r--r--kjsembed/builtins/saxhandler.cpp28
-rw-r--r--kjsembed/builtins/saxhandler.h12
-rw-r--r--kjsembed/builtins/stdaction_imp.cpp6
-rw-r--r--kjsembed/builtins/stddialog_imp.cpp18
-rw-r--r--kjsembed/builtins/textstream_imp.cpp14
-rw-r--r--kjsembed/builtins/textstream_imp.h6
12 files changed, 282 insertions, 282 deletions
diff --git a/kjsembed/builtins/qdir_imp.cpp b/kjsembed/builtins/qdir_imp.cpp
index 55895a59..4a1d6bde 100644
--- a/kjsembed/builtins/qdir_imp.cpp
+++ b/kjsembed/builtins/qdir_imp.cpp
@@ -22,14 +22,14 @@
*/
namespace KJSEmbed {
namespace Bindings {
- KJS::Object QDirLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
+ KJS::Object TQDirLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
{
JSOpaqueProxy * prx;
if ( args.size() == 0 ) {
- prx = new JSOpaqueProxy( new TQDir( TQDir::current() ), "TQDir" );
+ prx = new JSOpaqueProxy( new TTQDir( TTQDir::current() ), "TTQDir" );
} else {
- TQString arg0 = ( args.size() >= 1 ) ? args[ 0 ].toString( exec ).qstring() : TQString::null;
- prx = new JSOpaqueProxy( new TQDir( arg0 ), "TQDir" );
+ TTQString arg0 = ( args.size() >= 1 ) ? args[ 0 ].toString( exec ).qstring() : TTQString::null;
+ prx = new JSOpaqueProxy( new TTQDir( arg0 ), "TTQDir" );
}
prx->setOwner( JSProxy::JavaScript );
KJS::Object proxyObj( prx );
@@ -37,23 +37,23 @@ namespace Bindings {
return proxyObj;
}
- void QDirLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const
+ void TQDirLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const
{
- QDirImp::addBindings( exec, proxy );
+ TQDirImp::addBindings( exec, proxy );
}
}
-QDirImp::QDirImp( KJS::ExecState *exec, int id )
+TTQDirImp::TQDirImp( KJS::ExecState *exec, int id )
: JSProxyImp(exec), mid(id)
{
}
-QDirImp::~QDirImp()
+TTQDirImp::~TQDirImp()
{
}
-void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
+void TQDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
{
JSProxy::MethodTable methods[] = {
@@ -160,7 +160,7 @@ void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
int idx = 0;
do {
- QDirImp *meth = new QDirImp( exec, methods[idx].id );
+ TQDirImp *meth = new TQDirImp( exec, methods[idx].id );
object.put( exec , methods[idx].name, KJS::Object(meth) );
++idx;
} while( methods[idx].id );
@@ -177,31 +177,31 @@ void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
EnumValue enums[] = {
// enum FilterSpec
- { "Dirs", TQDir::Dirs },
- { "Files", TQDir::Files },
- { "Drives", TQDir::Drives },
- { "NoSymLinks", TQDir::NoSymLinks },
- { "All", TQDir::All },
- { "TypeMask", TQDir::TypeMask },
- { "Readable", TQDir::Readable },
- { "Writable", TQDir::Writable },
- { "Executable", TQDir::Executable },
- { "RWEMask", TQDir::RWEMask },
- { "Modified", TQDir::Modified },
- { "Hidden", TQDir::Hidden },
- { "System", TQDir::System },
- { "AccessMask", TQDir::AccessMask },
- { "DefaultFilter", TQDir::DefaultFilter },
+ { "Dirs", TTQDir::Dirs },
+ { "Files", TTQDir::Files },
+ { "Drives", TTQDir::Drives },
+ { "NoSymLinks", TTQDir::NoSymLinks },
+ { "All", TTQDir::All },
+ { "TypeMask", TTQDir::TypeMask },
+ { "Readable", TTQDir::Readable },
+ { "Writable", TTQDir::Writable },
+ { "Executable", TTQDir::Executable },
+ { "RWEMask", TTQDir::RWEMask },
+ { "Modified", TTQDir::Modified },
+ { "Hidden", TTQDir::Hidden },
+ { "System", TTQDir::System },
+ { "AccessMask", TTQDir::AccessMask },
+ { "DefaultFilter", TTQDir::DefaultFilter },
// enum SortSpec
- { "Name", TQDir::Name },
- { "Time", TQDir::Time },
- { "Size", TQDir::Size },
- { "Unsorted", TQDir::Unsorted },
- { "SortByMask", TQDir::SortByMask },
- { "DirsFirst", TQDir::DirsFirst },
- { "Reversed", TQDir::Reversed },
- { "IgnoreCase", TQDir::IgnoreCase },
- { "DefaultSort", TQDir::DefaultSort },
+ { "Name", TTQDir::Name },
+ { "Time", TTQDir::Time },
+ { "Size", TTQDir::Size },
+ { "Unsorted", TTQDir::Unsorted },
+ { "SortByMask", TTQDir::SortByMask },
+ { "DirsFirst", TTQDir::DirsFirst },
+ { "Reversed", TTQDir::Reversed },
+ { "IgnoreCase", TTQDir::IgnoreCase },
+ { "DefaultSort", TTQDir::DefaultSort },
{ 0, 0 }
};
@@ -214,20 +214,20 @@ void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
-KJS::Value QDirImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args )
+KJS::Value TQDirImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args )
{
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
if ( !op ) {
- kdWarning() << "QDirImp::call() failed, not a JSOpaqueProxy" << endl;
+ kdWarning() << "TQDirImp::call() failed, not a JSOpaqueProxy" << endl;
return KJS::Value();
}
- if ( op->typeName() != "TQDir" ) {
- kdWarning() << "QDirImp::call() failed, type is " << op->typeName() << endl;
+ if ( op->typeName() != "TTQDir" ) {
+ kdWarning() << "TQDirImp::call() failed, type is " << op->typeName() << endl;
return KJS::Value();
}
- instance = op->toNative<TQDir>();
+ instance = op->toNative<TTQDir>();
switch( mid ) {
@@ -431,15 +431,15 @@ KJS::Value QDirImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Li
break;
}
- TQString msg = i18n( "QDirImp has no method with id '%1'." ).arg( mid );
+ TTQString msg = i18n( "TQDirImp has no method with id '%1'." ).arg( mid );
return throwError(exec, msg,KJS::ReferenceError);
}
-KJS::Value QDirImp::setPath_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::setPath_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
instance->setPath(
arg0 );
@@ -447,50 +447,50 @@ KJS::Value QDirImp::setPath_7( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QDirImp::path_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::path_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->path( );
return KJS::String( ret );
}
-KJS::Value QDirImp::absPath_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::absPath_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->absPath( );
return KJS::String( ret );
}
-KJS::Value QDirImp::canonicalPath_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::canonicalPath_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->canonicalPath( );
return KJS::String( ret );
}
-KJS::Value QDirImp::dirName_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::dirName_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->dirName( );
return KJS::String( ret );
}
-KJS::Value QDirImp::filePath_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::filePath_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
- TQString ret;
+ TTQString ret;
ret = instance->filePath(
arg0,
arg1 );
@@ -498,14 +498,14 @@ KJS::Value QDirImp::filePath_12( KJS::ExecState *exec, KJS::Object &obj, const K
}
-KJS::Value QDirImp::absFilePath_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::absFilePath_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
- TQString ret;
+ TTQString ret;
ret = instance->absFilePath(
arg0,
arg1 );
@@ -513,10 +513,10 @@ KJS::Value QDirImp::absFilePath_13( KJS::ExecState *exec, KJS::Object &obj, cons
}
-KJS::Value QDirImp::cd_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::cd_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
@@ -528,7 +528,7 @@ KJS::Value QDirImp::cd_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::Li
}
-KJS::Value QDirImp::cdUp_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::cdUp_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -537,19 +537,19 @@ KJS::Value QDirImp::cdUp_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::
}
-KJS::Value QDirImp::nameFilter_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::nameFilter_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->nameFilter( );
return KJS::String( ret );
}
-KJS::Value QDirImp::setNameFilter_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::setNameFilter_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
instance->setNameFilter(
arg0 );
@@ -557,7 +557,7 @@ KJS::Value QDirImp::setNameFilter_17( KJS::ExecState *exec, KJS::Object &obj, co
}
-KJS::Value QDirImp::filter_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::filter_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->filter( );
@@ -565,7 +565,7 @@ KJS::Value QDirImp::filter_18( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QDirImp::setFilter_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::setFilter_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -576,7 +576,7 @@ KJS::Value QDirImp::setFilter_19( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::sorting_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::sorting_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->sorting( );
@@ -584,7 +584,7 @@ KJS::Value QDirImp::sorting_20( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QDirImp::setSorting_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::setSorting_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -595,7 +595,7 @@ KJS::Value QDirImp::setSorting_21( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::matchAllDirs_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::matchAllDirs_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -604,7 +604,7 @@ KJS::Value QDirImp::matchAllDirs_22( KJS::ExecState *exec, KJS::Object &obj, con
}
-KJS::Value QDirImp::setMatchAllDirs_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::setMatchAllDirs_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false;
@@ -615,7 +615,7 @@ KJS::Value QDirImp::setMatchAllDirs_23( KJS::ExecState *exec, KJS::Object &obj,
}
-KJS::Value QDirImp::count_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::count_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
uint ret;
@@ -624,7 +624,7 @@ KJS::Value QDirImp::count_24( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QDirImp::encodedEntryList_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::encodedEntryList_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -634,14 +634,14 @@ KJS::Value QDirImp::encodedEntryList_26( KJS::ExecState *exec, KJS::Object &obj,
instance->encodedEntryList(
arg0,
arg1 );
- return KJS::Value(); // Returns 'QStrList'
+ return KJS::Value(); // Returns 'TQStrList'
}
-KJS::Value QDirImp::encodedEntryList_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::encodedEntryList_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1;
@@ -651,18 +651,18 @@ KJS::Value QDirImp::encodedEntryList_27( KJS::ExecState *exec, KJS::Object &obj,
arg0,
arg1,
arg2 );
- return KJS::Value(); // Returns 'QStrList'
+ return KJS::Value(); // Returns 'TQStrList'
}
-KJS::Value QDirImp::entryList_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::entryList_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1;
- TQStringList ret;
+ TTQStringList ret;
ret = instance->entryList(
arg0,
arg1 );
@@ -671,16 +671,16 @@ KJS::Value QDirImp::entryList_28( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::entryList_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::entryList_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1;
int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1;
- TQStringList ret;
+ TTQStringList ret;
ret = instance->entryList(
arg0,
arg1,
@@ -690,7 +690,7 @@ KJS::Value QDirImp::entryList_29( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::entryInfoList_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::entryInfoList_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -700,14 +700,14 @@ KJS::Value QDirImp::entryInfoList_30( KJS::ExecState *exec, KJS::Object &obj, co
instance->entryInfoList(
arg0,
arg1 );
- return KJS::Value(); // Returns 'const QFileInfoList *'
+ return KJS::Value(); // Returns 'const TQFileInfoList *'
}
-KJS::Value QDirImp::entryInfoList_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::entryInfoList_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1;
@@ -717,14 +717,14 @@ KJS::Value QDirImp::entryInfoList_31( KJS::ExecState *exec, KJS::Object &obj, co
arg0,
arg1,
arg2 );
- return KJS::Value(); // Returns 'const QFileInfoList *'
+ return KJS::Value(); // Returns 'const TQFileInfoList *'
}
-KJS::Value QDirImp::mkdir_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::mkdir_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
@@ -736,10 +736,10 @@ KJS::Value QDirImp::mkdir_32( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QDirImp::rmdir_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::rmdir_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
@@ -751,7 +751,7 @@ KJS::Value QDirImp::rmdir_33( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QDirImp::isReadable_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::isReadable_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -760,7 +760,7 @@ KJS::Value QDirImp::isReadable_34( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::exists_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::exists_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -769,7 +769,7 @@ KJS::Value QDirImp::exists_35( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QDirImp::isRoot_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::isRoot_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -778,7 +778,7 @@ KJS::Value QDirImp::isRoot_36( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QDirImp::isRelative_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::isRelative_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -787,7 +787,7 @@ KJS::Value QDirImp::isRelative_37( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::convertToAbs_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::convertToAbs_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->convertToAbs( );
@@ -795,10 +795,10 @@ KJS::Value QDirImp::convertToAbs_38( KJS::ExecState *exec, KJS::Object &obj, con
}
-KJS::Value QDirImp::remove_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::remove_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
@@ -810,12 +810,12 @@ KJS::Value QDirImp::remove_41( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QDirImp::rename_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::rename_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
- TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null;
+ TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null;
bool arg2 = (args.size() >= 3) ? args[2].toBoolean(exec) : false;
@@ -828,10 +828,10 @@ KJS::Value QDirImp::rename_42( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QDirImp::exists_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::exists_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
@@ -843,7 +843,7 @@ KJS::Value QDirImp::exists_43( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QDirImp::refresh_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::refresh_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->refresh( );
@@ -851,27 +851,27 @@ KJS::Value QDirImp::refresh_44( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QDirImp::convertSeparators_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::convertSeparators_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
- TQString ret;
+ TTQString ret;
ret = instance->convertSeparators(
arg0 );
return KJS::String( ret );
}
-KJS::Value QDirImp::drives_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::drives_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->drives( );
- return KJS::Value(); // Returns 'const QFileInfoList *'
+ return KJS::Value(); // Returns 'const TQFileInfoList *'
}
-KJS::Value QDirImp::separator_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::separator_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->separator( );
@@ -879,10 +879,10 @@ KJS::Value QDirImp::separator_47( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::setCurrent_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::setCurrent_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->setCurrent(
@@ -891,66 +891,66 @@ KJS::Value QDirImp::setCurrent_48( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QDirImp::current_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::current_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->current( );
- return KJS::Value(); // Returns 'QDir'
+ return KJS::Value(); // Returns 'TQDir'
}
-KJS::Value QDirImp::home_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::home_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->home( );
- return KJS::Value(); // Returns 'QDir'
+ return KJS::Value(); // Returns 'TQDir'
}
-KJS::Value QDirImp::root_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::root_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->root( );
- return KJS::Value(); // Returns 'QDir'
+ return KJS::Value(); // Returns 'TQDir'
}
-KJS::Value QDirImp::currentDirPath_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::currentDirPath_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->currentDirPath( );
return KJS::String( ret );
}
-KJS::Value QDirImp::homeDirPath_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::homeDirPath_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->homeDirPath( );
return KJS::String( ret );
}
-KJS::Value QDirImp::rootDirPath_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::rootDirPath_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->rootDirPath( );
return KJS::String( ret );
}
-KJS::Value QDirImp::match_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::match_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQStringList arg0;
+ TTQStringList arg0;
if ( args.size() >= 1 ) {
// TODO: populate the list
}
- TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null;
+ TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->match(
@@ -960,12 +960,12 @@ KJS::Value QDirImp::match_55( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QDirImp::match_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::match_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
- TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null;
+ TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->match(
@@ -975,22 +975,22 @@ KJS::Value QDirImp::match_56( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QDirImp::cleanDirPath_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::cleanDirPath_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
- TQString ret;
+ TTQString ret;
ret = instance->cleanDirPath(
arg0 );
return KJS::String( ret );
}
-KJS::Value QDirImp::isRelativePath_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQDirImp::isRelativePath_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->isRelativePath(
diff --git a/kjsembed/builtins/qdir_imp.h b/kjsembed/builtins/qdir_imp.h
index 9bd6d770..ed89ad7c 100644
--- a/kjsembed/builtins/qdir_imp.h
+++ b/kjsembed/builtins/qdir_imp.h
@@ -10,14 +10,14 @@
#include <kjsembed/jsobjectproxy_imp.h>
#include <kjsembed/jsbindingbase.h>
-class TQDir;
+class TTQDir;
/**
* Namespace containing the KJSEmbed library.
*/
namespace KJSEmbed {
namespace Bindings {
- class QDirLoader : public JSBindingBase
+ class TQDirLoader : public JSBindingBase
{
public:
KJS::Object createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const;
@@ -25,11 +25,11 @@ namespace Bindings {
};
}
/**
- * Wrapper class for TQDir methods.
+ * Wrapper class for TTQDir methods.
*
* @author Richard Moore, rich@kde.org
*/
-class QDirImp : public JSProxyImp
+class TQDirImp : public JSProxyImp
{
public:
/** Enumerates the methods supported by this class. */
@@ -87,8 +87,8 @@ public:
Method_Last = -1
};
- QDirImp( KJS::ExecState *exec, int id );
- ~QDirImp();
+ TQDirImp( KJS::ExecState *exec, int id );
+ ~TQDirImp();
static void addBindings( KJS::ExecState *exec, KJS::Object &object );
@@ -157,7 +157,7 @@ public:
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
private:
- TQDir *instance; // Temp
+ TTQDir *instance; // Temp
int mid;
};
diff --git a/kjsembed/builtins/qfile_imp.cpp b/kjsembed/builtins/qfile_imp.cpp
index abc38d09..85d2fc6b 100644
--- a/kjsembed/builtins/qfile_imp.cpp
+++ b/kjsembed/builtins/qfile_imp.cpp
@@ -25,16 +25,16 @@
*/
namespace KJSEmbed {
-QFileImp::QFileImp( KJS::ExecState *exec, int mid, bool constructor )
+TTQFileImp::TQFileImp( KJS::ExecState *exec, int mid, bool constructor )
: JSProxyImp(exec), id(mid), cons(constructor)
{
}
-QFileImp::~QFileImp()
+TTQFileImp::~TQFileImp()
{
}
-void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
+void TQFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
{
JSProxy::MethodTable methods[] = {
@@ -71,11 +71,11 @@ void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
};
int idx = 0;
- TQCString lastName;
+ TTQCString lastName;
do {
if ( lastName != methods[idx].name ) {
- QFileImp *meth = new QFileImp( exec, methods[idx].id );
+ TQFileImp *meth = new TQFileImp( exec, methods[idx].id );
object.put( exec , methods[idx].name, KJS::Object(meth) );
lastName = methods[idx].name;
}
@@ -85,64 +85,64 @@ void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
-TQFile *QFileImp::toQFile( KJS::Object &self )
+TTQFile *TQFileImp::toTQFile( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
- TQObject *obj = ob->object();
+ TTQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<TQFile *>( obj );
+ return dynamic_cast<TTQFile *>( obj );
}
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
if ( !op )
return 0;
- if ( op->typeName() != "TQFile" )
+ if ( op->typeName() != "TTQFile" )
return 0;
- return op->toNative<TQFile>();
+ return op->toNative<TTQFile>();
}
-KJS::Object QFileImp::construct( KJS::ExecState *exec, const KJS::List &args )
+KJS::Object TQFileImp::construct( KJS::ExecState *exec, const KJS::List &args )
{
switch( id ) {
case Constructor_QFile_1:
- return QFile_1( exec, args );
+ return TQFile_1( exec, args );
break;
case Constructor_QFile_2:
- return QFile_2( exec, args );
+ return TQFile_2( exec, args );
break;
default:
break;
}
- TQString msg = i18n("QFileCons has no constructor with id '%1'.").arg(id);
+ TTQString msg = i18n("TQFileCons has no constructor with id '%1'.").arg(id);
return throwError(exec, msg,KJS::ReferenceError);
}
-KJS::Object QFileImp::QFile_1( KJS::ExecState *exec, const KJS::List &args )
+KJS::Object TQFileImp::TQFile_1( KJS::ExecState *exec, const KJS::List &args )
{
return KJS::Object();
}
-KJS::Object QFileImp::QFile_2( KJS::ExecState *exec, const KJS::List &args )
+KJS::Object TQFileImp::TQFile_2( KJS::ExecState *exec, const KJS::List &args )
{
// TODO
- TQWidget *arg0 = 0L;
+ TTQWidget *arg0 = 0L;
return KJS::Object();
}
-KJS::Value QFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args )
+KJS::Value TQFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args )
{
- instance = QFileImp::toQFile( self );
+ instance = TQFileImp::toTQFile( self );
switch( id ) {
@@ -266,24 +266,24 @@ KJS::Value QFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
break;
}
- TQString msg = i18n( "QFileImp has no method with id '%1'." ).arg( id );
+ TTQString msg = i18n( "TQFileImp has no method with id '%1'." ).arg( id );
return throwError(exec, msg, KJS::ReferenceError );
}
-KJS::Value QFileImp::name_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::name_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->name( );
return KJS::String( ret );
}
-KJS::Value QFileImp::setName_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::setName_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
instance->setName(
arg0 );
@@ -291,7 +291,7 @@ KJS::Value QFileImp::setName_5( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QFileImp::exists_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::exists_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -300,7 +300,7 @@ KJS::Value QFileImp::exists_6( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::remove_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::remove_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -309,7 +309,7 @@ KJS::Value QFileImp::remove_7( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::open_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::open_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -321,7 +321,7 @@ KJS::Value QFileImp::open_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::
}
-KJS::Value QFileImp::open_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::open_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -339,7 +339,7 @@ KJS::Value QFileImp::open_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::
}
-KJS::Value QFileImp::open_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::open_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -354,7 +354,7 @@ KJS::Value QFileImp::open_10( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QFileImp::close_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::close_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->close( );
@@ -362,7 +362,7 @@ KJS::Value QFileImp::close_11( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::flush_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::flush_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->flush( );
@@ -370,7 +370,7 @@ KJS::Value QFileImp::flush_12( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::size_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::size_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->size( );
@@ -378,7 +378,7 @@ KJS::Value QFileImp::size_13( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QFileImp::at_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::at_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->at( );
@@ -386,10 +386,10 @@ KJS::Value QFileImp::at_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::L
}
-KJS::Value QFileImp::at_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::at_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQFile::Offset arg0 = 0; // TODO (hack for qfile)
+ TTQFile::Offset arg0 = 0; // TODO (hack for qfile)
bool ret;
ret = instance->at(
@@ -398,7 +398,7 @@ KJS::Value QFileImp::at_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::L
}
-KJS::Value QFileImp::atEnd_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::atEnd_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -407,7 +407,7 @@ KJS::Value QFileImp::atEnd_16( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::readBlock_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::readBlock_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
// Unsupported parameter char *
@@ -427,7 +427,7 @@ KJS::Value QFileImp::readBlock_17( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QFileImp::writeBlock_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::writeBlock_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
const char *arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
@@ -444,10 +444,10 @@ KJS::Value QFileImp::writeBlock_18( KJS::ExecState *exec, KJS::Object &obj, cons
}
-KJS::Value QFileImp::writeBlock_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::writeBlock_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQByteArray arg0; // TODO (hack for qfile)
+ TTQByteArray arg0; // TODO (hack for qfile)
instance->writeBlock(
arg0 );
@@ -455,7 +455,7 @@ KJS::Value QFileImp::writeBlock_19( KJS::ExecState *exec, KJS::Object &obj, cons
}
-KJS::Value QFileImp::readLine_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::readLine_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
// Unsupported parameter char *
@@ -475,10 +475,10 @@ KJS::Value QFileImp::readLine_20( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QFileImp::readLine_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::readLine_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
// Unsupported parameter Q_ULONG
return KJS::Value();
@@ -492,7 +492,7 @@ KJS::Value QFileImp::readLine_21( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QFileImp::getch_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::getch_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int ret;
@@ -501,7 +501,7 @@ KJS::Value QFileImp::getch_22( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::putch_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::putch_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -513,7 +513,7 @@ KJS::Value QFileImp::putch_23( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::ungetch_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::ungetch_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -525,7 +525,7 @@ KJS::Value QFileImp::ungetch_24( KJS::ExecState *exec, KJS::Object &obj, const K
}
-KJS::Value QFileImp::handle_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::handle_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int ret;
@@ -534,42 +534,42 @@ KJS::Value QFileImp::handle_25( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QFileImp::errorString_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::errorString_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->errorString( );
return KJS::String( ret );
}
-KJS::Value QFileImp::encodeName_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::encodeName_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
instance->encodeName(
arg0 );
- return KJS::Value(); // Returns 'QCString'
+ return KJS::Value(); // Returns 'TQCString'
}
-KJS::Value QFileImp::decodeName_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::decodeName_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- const TQCString arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
+ const TTQCString arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
- TQString ret;
+ TTQString ret;
ret = instance->decodeName(
arg0 );
return KJS::String( ret );
}
-KJS::Value QFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQFile::EncoderFn arg0 = 0; // TODO (hack for qfile)
+ TTQFile::EncoderFn arg0 = 0; // TODO (hack for qfile)
instance->setEncodingFunction(
arg0 );
@@ -577,10 +577,10 @@ KJS::Value QFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &
}
-KJS::Value QFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQFile::DecoderFn arg0 = 0; // TODO (hack for qfile)
+ TTQFile::DecoderFn arg0 = 0; // TODO (hack for qfile)
instance->setDecodingFunction(
arg0 );
@@ -588,10 +588,10 @@ KJS::Value QFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &
}
-KJS::Value QFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->exists(
@@ -600,10 +600,10 @@ KJS::Value QFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QFileImp::remove_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::remove_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->remove(
diff --git a/kjsembed/builtins/qfile_imp.h b/kjsembed/builtins/qfile_imp.h
index bf4df5ea..6db9b2df 100644
--- a/kjsembed/builtins/qfile_imp.h
+++ b/kjsembed/builtins/qfile_imp.h
@@ -9,7 +9,7 @@
#include <kjsembed/jsobjectproxy_imp.h>
-class TQFile;
+class TTQFile;
/**
* Namespace containing the KJSEmbed library.
@@ -17,11 +17,11 @@ class TQFile;
namespace KJSEmbed {
/**
- * Wrapper class for TQFile methods.
+ * Wrapper class for TTQFile methods.
*
* @author Richard Moore, rich@kde.org
*/
-class QFileImp : public JSProxyImp
+class TQFileImp : public JSProxyImp
{
public:
/** Enumerates the constructors supported by this class. */
@@ -67,19 +67,19 @@ public:
Method_Last = -1
};
- QFileImp( KJS::ExecState *exec, int id, bool constructor=false );
- ~QFileImp();
+ TQFileImp( KJS::ExecState *exec, int id, bool constructor=false );
+ ~TQFileImp();
static void addBindings( KJS::ExecState *exec, KJS::Object &object );
- static TQFile *toQFile( KJS::Object &object );
+ static TTQFile *toTQFile( KJS::Object &object );
//
// Constructors implemented by this class.
//
- KJS::Object QFile_1( KJS::ExecState *exec, const KJS::List &args );
- KJS::Object QFile_2( KJS::ExecState *exec, const KJS::List &args );
+ KJS::Object TQFile_1( KJS::ExecState *exec, const KJS::List &args );
+ KJS::Object TQFile_2( KJS::ExecState *exec, const KJS::List &args );
//
// Methods implemented by this class.
@@ -132,7 +132,7 @@ public:
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
private:
- TQFile *instance; // Temp
+ TTQFile *instance; // Temp
int id;
bool cons;
};
diff --git a/kjsembed/builtins/resources.cpp b/kjsembed/builtins/resources.cpp
index 84128f69..40ffdcd2 100644
--- a/kjsembed/builtins/resources.cpp
+++ b/kjsembed/builtins/resources.cpp
@@ -70,75 +70,75 @@ void StdDirsImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
KJS::Value StdDirsImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, const KJS::List &args )
{
-// TQString arg0 = extractQString(exec, args, 0);
-// TQString arg1 = extractQString(exec, args, 1);
+// TTQString arg0 = extractTQString(exec, args, 0);
+// TTQString arg1 = extractTQString(exec, args, 1);
switch( id ) {
case StdDirsImp::findResource:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
- TQString path = KGlobal::dirs ()->findResource(arg0.latin1(), arg1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
+ TTQString path = KGlobal::dirs ()->findResource(arg0.latin1(), arg1);
return KJS::String( path );
}
case StdDirsImp::addResourceType:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
bool isOk = KGlobal::dirs ()->addResourceType(arg0.latin1(), arg1);
return KJS::Boolean( isOk );
}
case StdDirsImp::kde_default:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString path = KGlobal::dirs ()->kde_default(arg0.latin1());
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString path = KGlobal::dirs ()->kde_default(arg0.latin1());
return KJS::String( path );
}
case StdDirsImp::addResourceDir:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
bool isOk = KGlobal::dirs ()->addResourceDir(arg0.latin1(), arg1);
return KJS::Boolean( isOk );
}
case StdDirsImp::findResourceDir:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
- TQString path = KGlobal::dirs ()->findResourceDir(arg0.latin1(), arg1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
+ TTQString path = KGlobal::dirs ()->findResourceDir(arg0.latin1(), arg1);
return KJS::String( path );
}
case StdDirsImp::saveLocation:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
bool arg2 = (args.size() > 2) ? args[2].toBoolean(exec) : true;
- TQString path = KGlobal::dirs ()->saveLocation(arg0.latin1(), arg1, arg2);
+ TTQString path = KGlobal::dirs ()->saveLocation(arg0.latin1(), arg1, arg2);
return KJS::String( path );
}
case StdDirsImp::makeDir:
{
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
int arg1 = (args.size() > 1) ? args[1].toInteger(exec) : 0755;
bool isOk = KStandardDirs::makeDir(arg0, arg1);
return KJS::Boolean( isOk );
}
case StdDirsImp::exists:
{
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
bool isOk = KStandardDirs::exists(arg0);
return KJS::Boolean( isOk );
}
case StdDirsImp::realPath:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString path = KStandardDirs::realPath(arg0);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString path = KStandardDirs::realPath(arg0);
return KJS::String( path );
}
case StdDirsImp::currentDirPath:
- return KJS::String(TQDir::currentDirPath());
+ return KJS::String(TTQDir::currentDirPath());
case StdDirsImp::homeDirPath:
- return KJS::String(TQDir::homeDirPath());
+ return KJS::String(TTQDir::homeDirPath());
case StdDirsImp::applicationDirPath:
return KJS::String(qApp->applicationDirPath());
default:
@@ -178,14 +178,14 @@ void StdIconsImp::addBindings( JSFactory *fact, KJS::ExecState *exec, KJS::Obje
}
-KJS::Value StdIconsImp::wrapPixmap(KJS::ExecState *exec, const TQPixmap &icon)
+KJS::Value StdIconsImp::wrapPixmap(KJS::ExecState *exec, const TTQPixmap &icon)
{
return convertToValue(exec, icon);
}
KJS::Value StdIconsImp::call( KJS::ExecState *exec, KJS::Object &/*obj*/, const KJS::List &args )
{
- TQString arg0 = extractQString(exec, args, 0); // Name
+ TTQString arg0 = extractTQString(exec, args, 0); // Name
int arg1 = extractInt(exec, args, 1); // Size 0, 16, 24, 32, 48, 64, 128
int arg2 = extractInt(exec, args, 2);
// State 0 DefaultState, 1 ActiveState, 2 DisabledState, 3 LastState
@@ -212,7 +212,7 @@ KJS::Value StdIconsImp::call( KJS::ExecState *exec, KJS::Object &/*obj*/, const
}
case StdIconsImp::MimeSourceIcon:
{
- return wrapPixmap( exec, TQPixmap::fromMimeSource(arg0));
+ return wrapPixmap( exec, TTQPixmap::fromMimeSource(arg0));
}
default:
kdWarning() << "StdDirsImp has no method " << id << endl;
diff --git a/kjsembed/builtins/resources.h b/kjsembed/builtins/resources.h
index cfd589ce..45d7dad7 100644
--- a/kjsembed/builtins/resources.h
+++ b/kjsembed/builtins/resources.h
@@ -87,8 +87,8 @@ public:
virtual KJS::Value call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args );
private:
- /** wrap a TQPixmap **/
- KJS::Value wrapPixmap(KJS::ExecState *exec,const TQPixmap &icon);
+ /** wrap a TTQPixmap **/
+ KJS::Value wrapPixmap(KJS::ExecState *exec,const TTQPixmap &icon);
uint id;
JSFactory *jsfact;
};
diff --git a/kjsembed/builtins/saxhandler.cpp b/kjsembed/builtins/saxhandler.cpp
index ff0334bf..50507ff9 100644
--- a/kjsembed/builtins/saxhandler.cpp
+++ b/kjsembed/builtins/saxhandler.cpp
@@ -23,7 +23,7 @@ namespace KJSEmbed {
namespace BuiltIns {
SaxHandler::SaxHandler( KJS::ExecState *execstate )
- : TQXmlDefaultHandler(), exec(execstate), error( ErrorNone )
+ : TTQXmlDefaultHandler(), exec(execstate), error( ErrorNone )
{
}
@@ -45,7 +45,7 @@ bool SaxHandler::startDocument()
KJS::Identifier funName("startDocument");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::startDocument();
+ return TTQXmlDefaultHandler::startDocument();
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -66,7 +66,7 @@ bool SaxHandler::endDocument()
KJS::Identifier funName("endDocument");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::endDocument();
+ return TTQXmlDefaultHandler::endDocument();
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -78,8 +78,8 @@ bool SaxHandler::endDocument()
return ret.toBoolean( exec );
}
-bool SaxHandler::startElement( const TQString &ns, const TQString &ln, const TQString &qn,
- const TQXmlAttributes &attrs )
+bool SaxHandler::startElement( const TTQString &ns, const TTQString &ln, const TTQString &qn,
+ const TTQXmlAttributes &attrs )
{
if ( !jshandler.isValid() ) {
error = ErrorNoHandler;
@@ -88,7 +88,7 @@ bool SaxHandler::startElement( const TQString &ns, const TQString &ln, const TQS
KJS::Identifier funName("startElement");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::startElement( ns, ln, qn, attrs );
+ return TTQXmlDefaultHandler::startElement( ns, ln, qn, attrs );
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -106,7 +106,7 @@ bool SaxHandler::startElement( const TQString &ns, const TQString &ln, const TQS
return ret.toBoolean( exec );
}
-bool SaxHandler::endElement( const TQString &ns, const TQString &ln, const TQString &qn )
+bool SaxHandler::endElement( const TTQString &ns, const TTQString &ln, const TTQString &qn )
{
if ( !jshandler.isValid() ) {
error = ErrorNoHandler;
@@ -115,7 +115,7 @@ bool SaxHandler::endElement( const TQString &ns, const TQString &ln, const TQStr
KJS::Identifier funName("endElement");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::endElement( ns, ln, qn );
+ return TTQXmlDefaultHandler::endElement( ns, ln, qn );
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -132,7 +132,7 @@ bool SaxHandler::endElement( const TQString &ns, const TQString &ln, const TQStr
return ret.toBoolean( exec );
}
-bool SaxHandler::characters( const TQString &chars )
+bool SaxHandler::characters( const TTQString &chars )
{
if ( !jshandler.isValid() ) {
error = ErrorNoHandler;
@@ -141,7 +141,7 @@ bool SaxHandler::characters( const TQString &chars )
KJS::Identifier funName("characters");
if ( !jshandler.hasProperty(exec, funName) )
- return TQXmlDefaultHandler::characters( chars );
+ return TTQXmlDefaultHandler::characters( chars );
KJS::Object fun = jshandler.get(exec, funName).toObject( exec );
if ( !fun.implementsCall() ) {
@@ -156,15 +156,15 @@ bool SaxHandler::characters( const TQString &chars )
return ret.toBoolean( exec );
}
-TQString SaxHandler::errorString()
+TTQString SaxHandler::errorString()
{
switch( error ) {
case ErrorNoHandler:
- return TQString("No handler specified");
+ return TTQString("No handler specified");
break;
case ErrorNotCallable:
- return TQString("One of the callbacks of the handler is not callable");
+ return TTQString("One of the callbacks of the handler is not callable");
break;
case ErrorNone:
// This only means that no error occured in the JS dispatch, there
@@ -175,7 +175,7 @@ TQString SaxHandler::errorString()
break;
}
- return TQXmlDefaultHandler::errorString();
+ return TTQXmlDefaultHandler::errorString();
}
} // namespace KJSEmbed::BuiltIns
diff --git a/kjsembed/builtins/saxhandler.h b/kjsembed/builtins/saxhandler.h
index fbf3e512..4a1b1954 100644
--- a/kjsembed/builtins/saxhandler.h
+++ b/kjsembed/builtins/saxhandler.h
@@ -33,7 +33,7 @@ namespace BuiltIns {
*
* @author Richard Moore, rich@kde.org
*/
-class SaxHandler : public QXmlDefaultHandler
+class SaxHandler : public TQXmlDefaultHandler
{
public:
/** Defines the errors that are specific to the KJS SAX support. */
@@ -57,12 +57,12 @@ public:
virtual bool startDocument();
virtual bool endDocument();
- virtual bool startElement( const TQString &ns, const TQString &ln, const TQString &qn,
- const TQXmlAttributes &attrs );
- virtual bool endElement( const TQString &ns, const TQString &ln, const TQString &qn );
- virtual bool characters( const TQString &chars );
+ virtual bool startElement( const TTQString &ns, const TTQString &ln, const TTQString &qn,
+ const TTQXmlAttributes &attrs );
+ virtual bool endElement( const TTQString &ns, const TTQString &ln, const TTQString &qn );
+ virtual bool characters( const TTQString &chars );
- virtual TQString errorString();
+ virtual TTQString errorString();
private:
KJS::ExecState *exec;
diff --git a/kjsembed/builtins/stdaction_imp.cpp b/kjsembed/builtins/stdaction_imp.cpp
index cad81bfe..d81ead33 100644
--- a/kjsembed/builtins/stdaction_imp.cpp
+++ b/kjsembed/builtins/stdaction_imp.cpp
@@ -75,12 +75,12 @@ KJS::Value StdActionImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, cons
return KJS::Null();
// recv, slot, parent, name?
- TQObject *recv = extractQObject( exec, args, 0);
+ TTQObject *recv = extractTQObject( exec, args, 0);
- TQString sl = extractQString( exec, args, 1 );
+ TTQString sl = extractTQString( exec, args, 1 );
const char *slc = sl.isNull() ? "" : sl.ascii();
- TQObject *parentobj = extractQObject( exec, args, 2 );
+ TTQObject *parentobj = extractTQObject( exec, args, 2 );
KActionCollection *parent = parentobj ? dynamic_cast<KActionCollection *>( parentobj ) : 0;
KStdAction::StdAction actid = static_cast<KStdAction::StdAction>(id);
diff --git a/kjsembed/builtins/stddialog_imp.cpp b/kjsembed/builtins/stddialog_imp.cpp
index 48bb468d..122cd300 100644
--- a/kjsembed/builtins/stddialog_imp.cpp
+++ b/kjsembed/builtins/stddialog_imp.cpp
@@ -26,7 +26,7 @@
#else
#include <tqfiledialog.h>
-#define KFileDialog QFileDialog
+#define KFileDialog TQFileDialog
#endif // QT_ONLY
@@ -76,32 +76,32 @@ void StdDialogImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
KJS::Value StdDialogImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, const KJS::List &args )
{
- TQString arg0 = (args.size() > 0) ? args[0].toString(exec).qstring() : TQString::null;
- TQString arg1 = (args.size() > 1) ? args[1].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() > 0) ? args[0].toString(exec).qstring() : TTQString::null;
+ TTQString arg1 = (args.size() > 1) ? args[1].toString(exec).qstring() : TTQString::null;
switch( id ) {
case MethodGetOpenFileName:
{
- TQString s = KFileDialog::getOpenFileName( arg0, arg1 );
+ TTQString s = KFileDialog::getOpenFileName( arg0, arg1 );
return KJS::String( s );
}
case MethodGetSaveFileName:
{
- TQString s = KFileDialog::getSaveFileName( arg0, arg1 );
+ TTQString s = KFileDialog::getSaveFileName( arg0, arg1 );
return KJS::String( s );
}
case MethodGetExistingDirectory:
{
- TQString s = KFileDialog::getExistingDirectory( arg0 );
+ TTQString s = KFileDialog::getExistingDirectory( arg0 );
return KJS::String( s );
}
#ifndef QT_ONLY
case MethodGetColor:
{
- TQColor col;
+ TTQColor col;
int res = KColorDialog::getColor( col );
- if ( res == TQDialog::Accepted )
- return convertToValue( exec, TQVariant(col) );
+ if ( res == TTQDialog::Accepted )
+ return convertToValue( exec, TTQVariant(col) );
}
case MethodGetOpenURL:
{
diff --git a/kjsembed/builtins/textstream_imp.cpp b/kjsembed/builtins/textstream_imp.cpp
index 4ab3aeb1..de155cfa 100644
--- a/kjsembed/builtins/textstream_imp.cpp
+++ b/kjsembed/builtins/textstream_imp.cpp
@@ -28,7 +28,7 @@
namespace KJSEmbed {
namespace BuiltIns {
-TextStreamImp::TextStreamImp( KJS::ExecState *exec, int mid, TQTextStream *textstream )
+TextStreamImp::TextStreamImp( KJS::ExecState *exec, int mid, TTQTextStream *textstream )
: JSProxyImp(exec), id(mid), ts(textstream)
{
}
@@ -47,7 +47,7 @@ void TextStreamImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
return;
}
- TQTextStream *ts = op->toTextStream();
+ TTQTextStream *ts = op->toTextStream();
if ( !ts ) {
kdWarning() << "TextStreamImp::addBindings() failed, type is " << op->typeName() << endl;
return;
@@ -73,12 +73,12 @@ void TextStreamImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
KJS::Value TextStreamImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, const KJS::List &args )
{
- TQString not_readable = i18n( "Attempt to read from a write-only text stream." );
- TQString not_writable = i18n( "Attempt to write to a read-only text stream." );
+ TTQString not_readable = i18n( "Attempt to read from a write-only text stream." );
+ TTQString not_writable = i18n( "Attempt to write to a read-only text stream." );
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
- TQIODevice *dev = ts->device();
+ TTQIODevice *dev = ts->device();
KJS::Object err;
switch ( id ) {
@@ -102,7 +102,7 @@ KJS::Value TextStreamImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, con
break;
case MethodReadLine:
if ( dev->isReadable() ) {
- TQString line = ts->readLine();
+ TTQString line = ts->readLine();
if ( line.isNull() )
return KJS::Null();
else
diff --git a/kjsembed/builtins/textstream_imp.h b/kjsembed/builtins/textstream_imp.h
index c08470fc..7a2bf824 100644
--- a/kjsembed/builtins/textstream_imp.h
+++ b/kjsembed/builtins/textstream_imp.h
@@ -27,7 +27,7 @@
#include <kjsembed/jsobjectproxy_imp.h>
-class TQTextStream;
+class TTQTextStream;
namespace KJSEmbed {
namespace BuiltIns {
@@ -51,7 +51,7 @@ public:
MethodFlush
};
- TextStreamImp( KJS::ExecState *exec, int id, TQTextStream *ts );
+ TextStreamImp( KJS::ExecState *exec, int id, TTQTextStream *ts );
~TextStreamImp();
static void addBindings( KJS::ExecState *exec, KJS::Object &object );
@@ -64,7 +64,7 @@ public:
private:
int id;
- TQTextStream *ts;
+ TTQTextStream *ts;
class TextStreamImpPrivate *d;
};