summaryrefslogtreecommitdiffstats
path: root/kate/kjswrapper
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/kjswrapper
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/kjswrapper')
-rw-r--r--kate/kjswrapper/bindings.cpp60
-rw-r--r--kate/kjswrapper/bindings.h8
-rw-r--r--kate/kjswrapper/plugin_katekjswrapper.cpp54
-rw-r--r--kate/kjswrapper/plugin_katekjswrapper.h34
4 files changed, 78 insertions, 78 deletions
diff --git a/kate/kjswrapper/bindings.cpp b/kate/kjswrapper/bindings.cpp
index fcb8d38..1bb56eb 100644
--- a/kate/kjswrapper/bindings.cpp
+++ b/kate/kjswrapper/bindings.cpp
@@ -1,7 +1,7 @@
#include "bindings.h"
#include "bindings.moc"
#include "plugin_katekjswrapper.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kdebug.h>
#include <kate/documentmanager.h>
#include <kate/document.h>
@@ -17,7 +17,7 @@
using namespace Kate::JS;
-Bindings::Bindings(QObject *parent): KJSEmbed::Bindings::JSBindingPlugin(parent,"KateAppBindings",QStringList()) {
+Bindings::Bindings(TQObject *parent): KJSEmbed::Bindings::JSBindingPlugin(parent,"KateAppBindings",TQStringList()) {
}
Bindings::~Bindings() {
@@ -86,30 +86,30 @@ DocumentManager::~DocumentManager() {
}
KJS::Value DocumentManager::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- QObject *o=m_proxy->object();
+ TQObject *o=m_proxy->object();
Kate::DocumentManager *dm=dynamic_cast<Kate::DocumentManager*>(o);
if (!dm) {
kdWarning()<<"Object died"<<endl;
- QString msg = i18n("Call of DocumentManager member on destroyed object");
+ TQString msg = i18n("Call of DocumentManager member on destroyed object");
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
}
- QString mdesc;
+ TQString mdesc;
switch (m_id) {
case Document: {
mdesc="document(int)";
if (args.size()!=1) break;
uint index=args[0].toUInt32(exec);
if (exec->hadException()) break;
- QObject *doc=dynamic_cast<QObject*>(dm->document(index));
+ TQObject *doc=dynamic_cast<TQObject*>(dm->document(index));
if (!doc) return KJS::Null();
return m_dict->jsObject(exec,doc,m_proxy); }
break;
case ActiveDocument: {
mdesc="activeDocument()";
if (args.size()!=0) break;
- QObject *doc=dynamic_cast<QObject*>(dm->activeDocument());
+ TQObject *doc=dynamic_cast<TQObject*>(dm->activeDocument());
if (!doc) return KJS::Null();
return m_dict->jsObject(exec,doc,m_proxy); }
break;
@@ -118,21 +118,21 @@ KJS::Value DocumentManager::call( KJS::ExecState *exec, KJS::Object &self, const
if (args.size()!=1) break;
uint id=args[0].toUInt32(exec);
if (exec->hadException()) break;
- QObject *doc=dynamic_cast<QObject*>(dm->documentWithID(id));
+ TQObject *doc=dynamic_cast<TQObject*>(dm->documentWithID(id));
if (!doc) return KJS::Null();
return m_dict->jsObject(exec,doc,m_proxy); }
break;
case FindDocument: {
mdesc="documentForURL(KURL)";
if (args.size()!=1) break;
- KURL url = QString( args[0].toString(exec).qstring() );
+ KURL url = TQString( args[0].toString(exec).qstring() );
if (exec->hadException()) break;
return KJS::Number(dm->findDocument(url)); }
break;
case IsOpen: {
mdesc="isOpen(KURL)";
if (args.size()!=0) break;
- KURL url = QString( args[0].toString(exec).qstring() );
+ KURL url = TQString( args[0].toString(exec).qstring() );
if (exec->hadException()) break;
return KJS::Boolean(dm->isOpen(url));}
@@ -141,14 +141,14 @@ KJS::Value DocumentManager::call( KJS::ExecState *exec, KJS::Object &self, const
mdesc="openURL(KURL[,String encoding])";
uint docID;
if (args.size()==1) {
- KURL url = QString( args[0].toString(exec).qstring() );
+ KURL url = TQString( args[0].toString(exec).qstring() );
if (exec->hadException()) break;
- (void)dm->openURL(url,QString::null,&docID);
+ (void)dm->openURL(url,TQString::null,&docID);
return KJS::Number(docID);
} else if (args.size()==2) {
- KURL url = QString( args[0].toString(exec).qstring() );
+ KURL url = TQString( args[0].toString(exec).qstring() );
if (exec->hadException()) break;
- QString encoding=QString( args[1].toString(exec).qstring() );
+ TQString encoding=TQString( args[1].toString(exec).qstring() );
(void)dm->openURL(url,encoding,&docID);
return KJS::Number(docID);
}
@@ -164,7 +164,7 @@ KJS::Value DocumentManager::call( KJS::ExecState *exec, KJS::Object &self, const
if (args.size()!=1) break;
KJSEmbed::JSObjectProxy *proxy = KJSEmbed::JSProxy::toObjectProxy( args[0].imp() );
if (!proxy) break;
- QObject *tmp=proxy->object();
+ TQObject *tmp=proxy->object();
Kate::Document *tmpdoc=dynamic_cast<Kate::Document*>(tmp);
if (!tmpdoc) break;
return KJS::Boolean(dm->closeDocument(tmpdoc)); }
@@ -178,7 +178,7 @@ KJS::Value DocumentManager::call( KJS::ExecState *exec, KJS::Object &self, const
kdDebug()<<"calling illegal method of DocumentManager"<<endl;
return KJS::Null();
}
- QString msg = i18n("Method %1 called with wrong signature").arg(mdesc);
+ TQString msg = i18n("Method %1 called with wrong signature").arg(mdesc);
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
@@ -194,7 +194,7 @@ Kate::JS::Management::Management(KJS::ExecState *exec, int id, PluginKateKJSWrap
KJS::Value Kate::JS::Management::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
if (m_id==AddConfigPage) {
if (args.size()!=1) {
- QString msg = i18n("One parameter expected");
+ TQString msg = i18n("One parameter expected");
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
@@ -204,7 +204,7 @@ KJS::Value Kate::JS::Management::call( KJS::ExecState *exec, KJS::Object &self,
#warning implement me
} else if (m_id==SetConfigPages) {
if (args.size()>1) {
- QString msg=i18n("One or no parameter expected");
+ TQString msg=i18n("One or no parameter expected");
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
@@ -212,7 +212,7 @@ KJS::Value Kate::JS::Management::call( KJS::ExecState *exec, KJS::Object &self,
m_wrapper->m_configPageFactories=(args.size()>0)?args[0]:KJS::Value();
} else if (m_id==SetWindowConfiguration) {
if (args.size()>3) {
- QString msg = i18n("A maximum of three parameters expected");
+ TQString msg = i18n("A maximum of three parameters expected");
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
@@ -273,16 +273,16 @@ Kate::JS::Application::~Application() {
}
KJS::Value Kate::JS::Application::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- QObject *o=m_proxy->object();
+ TQObject *o=m_proxy->object();
Kate::Application *ka=dynamic_cast<Kate::Application*>(o);
if (!ka) {
kdWarning()<<"Object died"<<endl;
- QString msg = i18n("Call of KATE member on destroyed object");
+ TQString msg = i18n("Call of KATE member on destroyed object");
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
}
- QString mdesc;
+ TQString mdesc;
switch (m_id) {
case WindowCount: {
mdesc="windowCount()";
@@ -310,7 +310,7 @@ KJS::Value Kate::JS::Application::call( KJS::ExecState *exec, KJS::Object &self,
}
- QString msg = i18n("Method %1 called with wrong signature").arg(mdesc);
+ TQString msg = i18n("Method %1 called with wrong signature").arg(mdesc);
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
@@ -373,7 +373,7 @@ KJS::Value Kate::JS::General::fieldz(KJS::ExecState *exec, KJS::Object &obj, con
}
-Kate::JS::RefCountedObjectDict::RefCountedObjectDict(int size): QObject(), QPtrDict<ObjectEntry>(size) {
+Kate::JS::RefCountedObjectDict::RefCountedObjectDict(int size): TQObject(), TQPtrDict<ObjectEntry>(size) {
m_usageCount=0;
setAutoDelete(true);
}
@@ -389,12 +389,12 @@ void Kate::JS::RefCountedObjectDict::decRef() {
}
-KJS::Object Kate::JS::RefCountedObjectDict::jsObject(KJS::ExecState *exec, QObject *obj, KJSEmbed::JSObjectProxy *proxy) {
+KJS::Object Kate::JS::RefCountedObjectDict::jsObject(KJS::ExecState *exec, TQObject *obj, KJSEmbed::JSObjectProxy *proxy) {
ObjectEntry *oe=find(obj);
if (oe==0) {
oe=new ObjectEntry;
oe->obj=proxy->part()->factory()->createProxy(exec,obj,proxy);
- connect(obj,SIGNAL(destroyed()),this,SLOT(removeSender()));
+ connect(obj,TQT_SIGNAL(destroyed()),this,TQT_SLOT(removeSender()));
insert(obj,oe);
return oe->obj;
} else return oe->obj;
@@ -438,16 +438,16 @@ Kate::JS::MainWindow::~MainWindow() {
}
KJS::Value Kate::JS::MainWindow::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) {
- QObject *o=m_proxy->object();
+ TQObject *o=m_proxy->object();
Kate::MainWindow *mw=dynamic_cast<Kate::MainWindow*>(o);
if (!mw) {
kdWarning()<<"Object died"<<endl;
- QString msg = i18n("Call of MainWindow member on destroyed object");
+ TQString msg = i18n("Call of MainWindow member on destroyed object");
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
}
- QString mdesc;
+ TQString mdesc;
switch (m_id) {
case ActionCollection: {
mdesc="actionCollection()";
@@ -458,7 +458,7 @@ KJS::Value Kate::JS::MainWindow::call( KJS::ExecState *exec, KJS::Object &self,
default:
return KJS::Undefined();
}
- QString msg = i18n("Method %1 called with wrong signature").arg(mdesc);
+ TQString msg = i18n("Method %1 called with wrong signature").arg(mdesc);
KJS::Object err = KJS::Error::create( exec, KJS::GeneralError, msg.utf8() );
exec->setException( err );
return KJS::Undefined();
diff --git a/kate/kjswrapper/bindings.h b/kate/kjswrapper/bindings.h
index 2e98ee8..f33418f 100644
--- a/kate/kjswrapper/bindings.h
+++ b/kate/kjswrapper/bindings.h
@@ -5,7 +5,7 @@
#include <kjsembed/jsproxy_imp.h>
#include <kjsembed/jsobjectproxy.h>
#include <kjsembed/jsfactory.h>
-#include <qptrdict.h>
+#include <tqptrdict.h>
class PluginKateKJSWrapper;
@@ -17,13 +17,13 @@ namespace Kate {
KJS::Object obj;
};
- class RefCountedObjectDict: public QObject, public QPtrDict<ObjectEntry> {
+ class RefCountedObjectDict: public TQObject, public TQPtrDict<ObjectEntry> {
Q_OBJECT
public:
RefCountedObjectDict(int size);
void incRef();
void decRef();
- KJS::Object jsObject(KJS::ExecState *exec, QObject *obj, KJSEmbed::JSObjectProxy *proxy);
+ KJS::Object jsObject(KJS::ExecState *exec, TQObject *obj, KJSEmbed::JSObjectProxy *proxy);
public slots:
void removeSender();
private:
@@ -33,7 +33,7 @@ namespace Kate {
class Bindings: public KJSEmbed::Bindings::JSBindingPlugin {
public:
- Bindings(QObject *parent);
+ Bindings(TQObject *parent);
virtual ~Bindings();
KJS::Object createBinding(KJSEmbed::KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const;
void addBindings(KJS::ExecState *exec, KJS::Object &target) const;
diff --git a/kate/kjswrapper/plugin_katekjswrapper.cpp b/kate/kjswrapper/plugin_katekjswrapper.cpp
index c3e54b7..8fc4ae5 100644
--- a/kate/kjswrapper/plugin_katekjswrapper.cpp
+++ b/kate/kjswrapper/plugin_katekjswrapper.cpp
@@ -29,12 +29,12 @@
#include <kjs/object.h>
#include <kgenericfactory.h>
#include <kdebug.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kstandarddirs.h>
#include <kate/mainwindow.h>
#include <kate/toolviewmanager.h>
#include <kdockwidget.h>
-#include <qvbox.h>
+#include <tqvbox.h>
//END includes
K_EXPORT_COMPONENT_FACTORY( katekjswrapperplugin, KGenericFactory<PluginKateKJSWrapper>( "katekjswrapper" ) )
@@ -44,7 +44,7 @@ PluginKateKJSWrapperView::~PluginKateKJSWrapperView() {
void PluginKateKJSWrapperView::removeFromWindow() {
kdDebug()<<"PluginKateKJSWrapperView::removeFromWindow"<<endl;
- for (QValueList<QGuardedPtr<KMDI::ToolViewAccessor> >::iterator it=toolviews.begin();it!=toolviews.end();it=toolviews.begin()) {
+ for (TQValueList<TQGuardedPtr<KMDI::ToolViewAccessor> >::iterator it=toolviews.begin();it!=toolviews.end();it=toolviews.begin()) {
kdDebug()<<"removeFromWindow: removing a toolview"<<endl;
KMDI::ToolViewAccessor* tva=(*it);
toolviews.remove(it);
@@ -53,7 +53,7 @@ void PluginKateKJSWrapperView::removeFromWindow() {
win->guiFactory()->removeClient (this);
}
-PluginKateKJSWrapper::PluginKateKJSWrapper( QObject* parent, const char* name, const QStringList& list)
+PluginKateKJSWrapper::PluginKateKJSWrapper( TQObject* parent, const char* name, const TQStringList& list)
: Kate::Plugin ( (Kate::Application *)parent, name ) {
m_views.setAutoDelete(true);
m_scriptname=list[0];
@@ -86,7 +86,7 @@ PluginKateKJSWrapper::PluginKateKJSWrapper( QObject* parent, const char* name, c
w->show();
//w->show();*/
kdDebug()<<"m_scriptname="<<m_scriptname<<endl;
- m_part->runFile(locate("appdata",QString("plugins/%1/%2.js").arg(m_scriptname).arg(m_scriptname)));
+ m_part->runFile(locate("appdata",TQString("plugins/%1/%2.js").arg(m_scriptname).arg(m_scriptname)));
//"/home/jowenn/development/kde/cvs/kdeaddons/kate/kjswrapper/samples/test1.js");
}
@@ -104,7 +104,7 @@ uint PluginKateKJSWrapper::configPages () const {
if (! (m_configPageFactories.isNull() || (m_configPageFactories.type()==KJS::NullType))) {
KJS::Object constrs=m_configPageFactories.toObject(exec);
if (!exec->hadException()) {
- if (QString(constrs.classInfo()->className)=="Array") {
+ if (TQString(constrs.classInfo()->className)=="Array") {
kdDebug()<<"config page constructor array detected"<<endl;
uint size=constrs.get(exec,KJS::Identifier("length")).toInteger(exec);
if (exec->hadException()) {
@@ -125,7 +125,7 @@ static KJS::Object getObj(KJS::Interpreter *js, KJS::Value mightBeArray, int id)
KJS::Object constrs=mightBeArray.toObject(exec);
KJS::Value constr;
if (!exec->hadException()) {
- if (QString(constrs.classInfo()->className)=="Array") {
+ if (TQString(constrs.classInfo()->className)=="Array") {
kdDebug()<<"config page constructor array detected"<<endl;
constr=constrs.get(exec,id);
} else constr=mightBeArray;
@@ -134,14 +134,14 @@ static KJS::Object getObj(KJS::Interpreter *js, KJS::Value mightBeArray, int id)
return constr.toObject(js->globalExec());
}
-QString PluginKateKJSWrapper::configPageName(uint id) const {
+TQString PluginKateKJSWrapper::configPageName(uint id) const {
if (id>=configPages()) return "";
KJS::Interpreter *js = m_part->interpreter();
KJS::Object constr=getObj(js,m_configPageFactories,id);
KJS::Value o=constr.get(js->globalExec(),KJS::Identifier("name"));
- QString retVal( o.toString(js->globalExec()).qstring() );
+ TQString retVal( o.toString(js->globalExec()).qstring() );
kdDebug()<<"=============================================================================================="<<endl;
kdDebug()<<"PluginKateKJSWrapper::configPageName: "<<retVal<<endl;
@@ -150,14 +150,14 @@ QString PluginKateKJSWrapper::configPageName(uint id) const {
return retVal;
}
-QString PluginKateKJSWrapper::configPageFullName(uint id) const {
+TQString PluginKateKJSWrapper::configPageFullName(uint id) const {
if (id>=configPages()) return "";
KJS::Interpreter *js = m_part->interpreter();
KJS::Object constr=getObj(js,m_configPageFactories,id);
KJS::Value o=constr.get(js->globalExec(),KJS::Identifier("fullName"));
- QString retVal( o.toString(js->globalExec()).qstring() );
+ TQString retVal( o.toString(js->globalExec()).qstring() );
kdDebug()<<"=============================================================================================="<<endl;
kdDebug()<<"PluginKateKJSWrapper::configPageFullName: "<<retVal<<endl;
@@ -166,14 +166,14 @@ QString PluginKateKJSWrapper::configPageFullName(uint id) const {
return retVal;
}
-QPixmap PluginKateKJSWrapper::configPagePixmap (uint /*number = 0*/,
+TQPixmap PluginKateKJSWrapper::configPagePixmap (uint /*number = 0*/,
int /*size = KIcon::SizeSmall*/) const {
return 0;
}
Kate::PluginConfigPage* PluginKateKJSWrapper::configPage (uint id,
- QWidget *w, const char */*name*/) {
+ TQWidget *w, const char */*name*/) {
kdDebug()<<"PluginKateKJSWrapper::configPage"<<endl;
if (id>=configPages()) return 0;
@@ -197,8 +197,8 @@ Kate::PluginConfigPage* PluginKateKJSWrapper::configPage (uint id,
/*
KateKJSWrapperConfigPage* p = new KateKJSWrapperConfigPage(this, w);
//init
- connect( p, SIGNAL(configPageApplyRequest(KateKJSWrapperConfigPage*)),
- this, SLOT(applyConfig(KateKJSWrapperConfigPage*)) );
+ connect( p, TQT_SIGNAL(configPageApplyRequest(KateKJSWrapperConfigPage*)),
+ this, TQT_SLOT(applyConfig(KateKJSWrapperConfigPage*)) );
return (Kate::PluginConfigPage*);*/
}
@@ -223,13 +223,13 @@ static KMDI::ToolViewAccessor *createToolView(KJSEmbed::JSFactory *factory,KJS::
exec->clearException();
}
}
- QString viewName;
+ TQString viewName;
KJS::Value viewNameV=viewConstructor.get(exec,KJS::Identifier("name"));
if (exec->hadException()) {
viewName="kjs_unknown";
exec->clearException();
} else {
- viewName=QString( viewNameV.toString(exec).qstring() );
+ viewName=TQString( viewNameV.toString(exec).qstring() );
if (exec->hadException()) {
viewName="kjs_unknown";
exec->clearException();
@@ -247,7 +247,7 @@ static KMDI::ToolViewAccessor *createToolView(KJSEmbed::JSFactory *factory,KJS::
return 0;
}
KMDI::ToolViewAccessor *tva=winN->toolViewManager()->addToolView((KDockWidget::DockPosition)dockPos,tv,
- tv->icon()?(*(tv->icon())):QPixmap(),tv->caption());
+ tv->icon()?(*(tv->icon())):TQPixmap(),tv->caption());
kdDebug()<<"****************************************************************************************"<<endl;
kdDebug()<<"PluginKateKJSWrapper: Toolview has been added"<<endl;
kdDebug()<<"****************************************************************************************"<<endl;
@@ -260,7 +260,7 @@ PluginKateKJSWrapperView *PluginKateKJSWrapper::getViewObject(Kate::MainWindow *
if (!view) {
view=new PluginKateKJSWrapperView();
view->win=win;
- connect(win,SIGNAL(destroyed()),this,SLOT(slotWindowDestroyed()));
+ connect(win,TQT_SIGNAL(destroyed()),this,TQT_SLOT(slotWindowDestroyed()));
m_views.insert(win,view);
KJS::Interpreter *js = m_part->interpreter();
KJS::ExecState *exec = js->globalExec();
@@ -302,7 +302,7 @@ void PluginKateKJSWrapper::addView(Kate::MainWindow *win)
if (! (m_toolViewConstructors.isNull() || (m_toolViewConstructors.type()==KJS::NullType))) {
KJS::Object constrs=m_toolViewConstructors.toObject(exec);
if (!exec->hadException()) {
- if (QString(constrs.classInfo()->className)=="Array") {
+ if (TQString(constrs.classInfo()->className)=="Array") {
kdDebug()<<"Toolview constructor array detected"<<endl;
int size=constrs.get(exec,KJS::Identifier("length")).toInteger(exec);
if (exec->hadException()) {
@@ -317,7 +317,7 @@ void PluginKateKJSWrapper::addView(Kate::MainWindow *win)
} else {
KMDI::ToolViewAccessor *w=createToolView(m_part->factory(),js,win,view->winObj,constrO);
if (w) {
- view->toolviews.append(QGuardedPtr<KMDI::ToolViewAccessor>(w));
+ view->toolviews.append(TQGuardedPtr<KMDI::ToolViewAccessor>(w));
}
exec->clearException();
}
@@ -330,7 +330,7 @@ void PluginKateKJSWrapper::addView(Kate::MainWindow *win)
} else {
KMDI::ToolViewAccessor *w=createToolView(m_part->factory(),js,win,view->winObj,constrs);
if (w) {
- view->toolviews.append(QGuardedPtr<KMDI::ToolViewAccessor>(w));
+ view->toolviews.append(TQGuardedPtr<KMDI::ToolViewAccessor>(w));
}
exec->clearException();
}
@@ -343,7 +343,7 @@ void PluginKateKJSWrapper::addView(Kate::MainWindow *win)
if (exec->hadException()) kdDebug()<<"void PluginKateKJSWrapper::addView(Kate::MainWindow *win): exec had an exception - 2"<<endl;
view->setInstance (new KInstance("kate"));
- view->setXMLFile(QString("plugins/%1/%2.rc").arg(m_scriptname).arg(m_scriptname));
+ view->setXMLFile(TQString("plugins/%1/%2.rc").arg(m_scriptname).arg(m_scriptname));
win->guiFactory()->addClient (view);
}
@@ -371,10 +371,10 @@ void PluginKateKJSWrapper::applyConfig( KateKJSWrapperConfigPage *p )
}
KateKJSWrapperConfigPage::KateKJSWrapperConfigPage(KJS::Object pageConstructor,PluginKateKJSWrapper* parent,
- QWidget *parentWidget)
+ TQWidget *parentWidget)
: Kate::PluginConfigPage( parentWidget ),m_plugin(parent)
{
- QVBoxLayout *l=new QVBoxLayout(this);
+ TQVBoxLayout *l=new TQVBoxLayout(this);
l->setAutoAdd(true);
l->activate();
KJS::Interpreter *js = parent->m_part->interpreter();
@@ -386,7 +386,7 @@ KateKJSWrapperConfigPage::KateKJSWrapperConfigPage(KJS::Object pageConstructor,P
}
-static void callJS(KJSEmbed::KJSEmbedPart *p,KJS::Object o,const QString& funcName){
+static void callJS(KJSEmbed::KJSEmbedPart *p,KJS::Object o,const TQString& funcName){
KJS::Interpreter *js = p->interpreter();
KJS::ExecState *exec = js->globalExec();
KJS::List param;
@@ -426,7 +426,7 @@ void KateKJSWrapperConfigPage::defaults()
}
-Kate::JS::ToolView::ToolView(KJS::Object constr, KJS::ExecState *exec, KJSEmbed::JSFactory *factory, KJS::List parameters, const char *name):QVBox(0,name) {
+Kate::JS::ToolView::ToolView(KJS::Object constr, KJS::ExecState *exec, KJSEmbed::JSFactory *factory, KJS::List parameters, const char *name):TQVBox(0,name) {
parameters.append(factory->createProxy(exec,this));
handler=constr.construct(exec,parameters);
diff --git a/kate/kjswrapper/plugin_katekjswrapper.h b/kate/kjswrapper/plugin_katekjswrapper.h
index f04043e..9256b4c 100644
--- a/kate/kjswrapper/plugin_katekjswrapper.h
+++ b/kate/kjswrapper/plugin_katekjswrapper.h
@@ -34,15 +34,15 @@
#include <klibloader.h>
#include <klocale.h>
#include <kurlrequester.h>
-#include <qcheckbox.h>
-#include <qvaluelist.h>
+#include <tqcheckbox.h>
+#include <tqvaluelist.h>
#include <kjs/value.h>
#include <kjs/object.h>
-#include <qvbox.h>
-#include <qptrdict.h>
+#include <tqvbox.h>
+#include <tqptrdict.h>
#include <kxmlguiclient.h>
-#include <qvaluelist.h>
-#include <qguardedptr.h>
+#include <tqvaluelist.h>
+#include <tqguardedptr.h>
namespace Kate {
class PluginConfigPage;
@@ -75,7 +75,7 @@ class PluginKateKJSWrapper : public Kate::Plugin,
Q_OBJECT
public:
- PluginKateKJSWrapper( QObject* parent = 0, const char* name = 0, const QStringList& = QStringList() );
+ PluginKateKJSWrapper( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateKJSWrapper();
void addView (Kate::MainWindow *win);
@@ -84,12 +84,12 @@ class PluginKateKJSWrapper : public Kate::Plugin,
Kate::View *kv;
- QPtrDict<class PluginKateKJSWrapperView> m_views;
+ TQPtrDict<class PluginKateKJSWrapperView> m_views;
uint configPages () const;
- Kate::PluginConfigPage *configPage (uint , QWidget *w, const char *name=0);
- QString configPageName(uint) const;
- QString configPageFullName(uint) const;
- QPixmap configPagePixmap (uint /*number = 0*/,
+ Kate::PluginConfigPage *configPage (uint , TQWidget *w, const char *name=0);
+ TQString configPageName(uint) const;
+ TQString configPageFullName(uint) const;
+ TQPixmap configPagePixmap (uint /*number = 0*/,
int /*size = KIcon::SizeSmall*/) const;
PluginKateKJSWrapperView *getViewObject(Kate::MainWindow *win);
@@ -104,12 +104,12 @@ class PluginKateKJSWrapper : public Kate::Plugin,
friend class KateKJSWrapperConfigPage;
KJSEmbed::KJSEmbedPart *m_part;
Kate::JS::Bindings *m_kateAppBindings;
- //QValueList<KJS::Value> m_configPageFactories;
+ //TQValueList<KJS::Value> m_configPageFactories;
KJS::Value m_configPageFactories;
KJS::Value m_toolViewConstructors;
KJS::Value m_newWindowHandler;
KJS::Value m_removeWindowHandler;
- QString m_scriptname;
+ TQString m_scriptname;
};
@@ -120,7 +120,7 @@ class KateKJSWrapperConfigPage : public Kate::PluginConfigPage
friend class PluginKateKJSWrapper;
public:
- KateKJSWrapperConfigPage(KJS::Object pageConstructor,PluginKateKJSWrapper* parent = 0L, QWidget *parentWidget = 0L);
+ KateKJSWrapperConfigPage(KJS::Object pageConstructor,PluginKateKJSWrapper* parent = 0L, TQWidget *parentWidget = 0L);
~KateKJSWrapperConfigPage() {};
/** Reimplemented from Kate::PluginConfigPage
@@ -157,14 +157,14 @@ class PluginKateKJSWrapperView : public KXMLGUIClient
Kate::MainWindow *win;
KJS::Object winObj;
KJS::Object actionCollectionObj;
- QValueList<QGuardedPtr<KMDI::ToolViewAccessor> > toolviews;
+ TQValueList<TQGuardedPtr<KMDI::ToolViewAccessor> > toolviews;
};
namespace Kate {
namespace JS {
- class ToolView: public QVBox {
+ class ToolView: public TQVBox {
Q_OBJECT
public:
ToolView(KJS::Object constr, KJS::ExecState *exec, KJSEmbed::JSFactory *factory, KJS::List parameters, const char * name);