diff options
Diffstat (limited to 'kxsldbg/kxsldbgpart/kxsldbg_part.cpp')
-rw-r--r-- | kxsldbg/kxsldbgpart/kxsldbg_part.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kxsldbg/kxsldbgpart/kxsldbg_part.cpp b/kxsldbg/kxsldbgpart/kxsldbg_part.cpp index c9023d07..7ee2e26c 100644 --- a/kxsldbg/kxsldbgpart/kxsldbg_part.cpp +++ b/kxsldbg/kxsldbgpart/kxsldbg_part.cpp @@ -67,10 +67,10 @@ typedef KParts::GenericFactory<KXsldbgPart> KXsldbgPartFactory; K_EXPORT_COMPONENT_FACTORY( libkxsldbgpart, KXsldbgPartFactory ) -KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/, - TQObject *parent, const char *name, +KXsldbgPart::KXsldbgPart( TQWidget *tqparentWidget, const char * /*widgetName*/, + TQObject *tqparent, const char *name, const TQStringList & /*args*/ ) - : DCOPObject("KXsldbgPart"), KParts::ReadOnlyPart(parent, name) + : DCOPObject("KXsldbgPart"), KParts::ReadOnlyPart(tqparent, name) { currentLineNo = 0; currentColumnNo = 0; @@ -81,7 +81,7 @@ KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/, // we need an instance setInstance( KXsldbgPartFactory::instance() ); - TQVBox *frame = new TQVBox(parentWidget); + TQVBox *frame = new TQVBox(tqparentWidget); TQHBox *h = new TQHBox(frame); newXPath = new TQLineEdit(h); xPathBtn = new TQPushButton(i18n("Goto XPath"), h); @@ -94,7 +94,7 @@ KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/, newEvaluate = new TQLineEdit(h); evaluateBtn = new TQPushButton(i18n("Evaluate"), h); - TQSplitter *splitter = new TQSplitter(TQSplitter::Vertical, frame); + TQSplitter *splitter = new TQSplitter(Qt::Vertical, frame); mainView = new TQWidgetStack(splitter); mainView->setMinimumHeight(400); //## TODO don't use a magic number outputview = new XsldbgOutputView(splitter); @@ -116,7 +116,7 @@ KXsldbgPart::KXsldbgPart( TQWidget *parentWidget, const char * /*widgetName*/, actionCollection(), "configureCmd" ); (void) new KAction( i18n("Inspect..."), - "find", Key_I, + "tqfind", Key_I, this, TQT_SLOT(inspectorCmd_activated()), actionCollection(), "inspectCmd" ); @@ -284,7 +284,7 @@ bool KXsldbgPart::openURL(const KURL &url) { bool result = fetchURL(url); if (result){ - QXsldbgDoc *docPtr = docDictionary[url.prettyURL()]; + TQXsldbgDoc *docPtr = docDictionary[url.prettyURL()]; if (docPtr && docPtr->kateView()){ if (docPtr != currentDoc){ currentDoc = docPtr; @@ -305,9 +305,9 @@ bool KXsldbgPart::openURL(const KURL &url) bool KXsldbgPart::fetchURL(const KURL &url) { TQString docID = url.prettyURL(); - QXsldbgDoc *docPtr = docDictionary[docID]; + TQXsldbgDoc *docPtr = docDictionary[docID]; if (!docPtr){ - docPtr = new QXsldbgDoc(mainView, url); + docPtr = new TQXsldbgDoc(mainView, url); docDictionary.insert(docID, docPtr); if (docPtr->kateView()){ mainView->addWidget(docPtr->kateView()); @@ -374,14 +374,14 @@ void KXsldbgPart::lookupSystemID( TQString systemID) #if KDE_IS_VERSION(3, 1, 90) systemID = KInputDialog::getText( i18n( "Lookup SystemID" ), - i18n( "Please enter SystemID to find:" ), - TQString::null, &ok, + i18n( "Please enter SystemID to tqfind:" ), + TQString(), &ok, mainView); #else - systemID = QInputDialog::getText( + systemID = TQInputDialog::getText( i18n( "Lookup SystemID" ), - i18n( "Please enter SystemID to find:" ), - TQLineEdit::Normal, TQString::null, &ok, + i18n( "Please enter SystemID to tqfind:" ), + TQLineEdit::Normal, TQString(), &ok, mainView); #endif }else{ @@ -389,7 +389,7 @@ void KXsldbgPart::lookupSystemID( TQString systemID) } if ( ok && !systemID.isEmpty() ){ // user entered something and pressed ok - TQString msg(TQString("system %1").arg(systemID)); // noTr + TQString msg(TQString("system %1").tqarg(systemID)); // noTr debugger->fakeInput(msg, true); } @@ -406,20 +406,20 @@ void KXsldbgPart::lookupPublicID(TQString publicID) #if KDE_IS_VERSION(3, 1, 90) publicID = KInputDialog::getText( i18n( "Lookup PublicID" ), - i18n( "Please enter PublicID to find:" ), - TQString::null, &ok, mainView ); + i18n( "Please enter PublicID to tqfind:" ), + TQString(), &ok, mainView ); #else - publicID = QInputDialog::getText( + publicID = TQInputDialog::getText( i18n( "Lookup PublicID" ), - i18n( "Please enter PublicID to find:" ), - TQLineEdit::Normal, TQString::null, &ok, mainView ); + i18n( "Please enter PublicID to tqfind:" ), + TQLineEdit::Normal, TQString(), &ok, mainView ); #endif }else{ ok = true; } if ( ok && !publicID.isEmpty()){ // user entered something and pressed ok - TQString msg(TQString("public %1").arg(publicID)); // noTr + TQString msg(TQString("public %1").tqarg(publicID)); // noTr debugger->fakeInput(msg, true); } } @@ -582,8 +582,8 @@ void KXsldbgPart::refreshCmd_activated() { if ( !currentFileName.isEmpty() ){ - TQDictIterator<QXsldbgDoc> it(docDictionary); - QXsldbgDoc *docPtr; + TQDictIterator<TQXsldbgDoc> it(docDictionary); + TQXsldbgDoc *docPtr; while (it.current()){ docPtr = it.current(); docPtr->refresh(); @@ -650,8 +650,8 @@ KXsldbgPart::lineNoChanged(TQString fileName, int lineNumber, bool breakpoint) openURL(fileName); - QXsldbgDoc *docPtr; - TQDictIterator<QXsldbgDoc> it(docDictionary); + TQXsldbgDoc *docPtr; + TQDictIterator<TQXsldbgDoc> it(docDictionary); while (it.current()){ docPtr = it.current(); // cause all Execution and BreakpointReached marks to be cleared @@ -774,7 +774,7 @@ void KXsldbgPart::deleteBreakPoint(int lineNumber) void KXsldbgPart::slotSearch() { if ((newSearch != 0L) && checkDebugger() ) { - TQString msg(TQString("search \"%1\"").arg(newSearch->text())); // noTr + TQString msg(TQString("search \"%1\"").tqarg(newSearch->text())); // noTr debugger->fakeInput(msg, false); } } @@ -800,7 +800,7 @@ void KXsldbgPart::slotProcResolveItem(TQString URI) { if (!URI.isEmpty()){ TQMessageBox::information(mainView, i18n("SystemID or PublicID Resolution Result"), - i18n("SystemID or PublicID has been resolved to\n.%1").arg(URI), + i18n("SystemID or PublicID has been resolved to\n.%1").tqarg(URI), TQMessageBox::Ok); } } @@ -812,8 +812,8 @@ void KXsldbgPart::breakpointItem(TQString fileName, int lineNumber , if (fileName == 0L){ /* Go through all documents and remove all breakpoints */ - TQDictIterator<QXsldbgDoc> it(docDictionary); - QXsldbgDoc *docPtr; + TQDictIterator<TQXsldbgDoc> it(docDictionary); + TQXsldbgDoc *docPtr; while (it.current()){ docPtr = it.current(); docPtr->clearMarks(true); @@ -821,7 +821,7 @@ void KXsldbgPart::breakpointItem(TQString fileName, int lineNumber , } }else{ /* - if (!fileName.contains("://")){ + if (!fileName.tqcontains("://")){ // relative path ? must handle this special case KURL url; url.setFileName(fileName); @@ -834,7 +834,7 @@ void KXsldbgPart::breakpointItem(TQString fileName, int lineNumber , KURL temp(fileName); fileName = temp.prettyURL(); fetchURL(fileName); - QXsldbgDoc *docPtr = docDictionary[fileName] ; + TQXsldbgDoc *docPtr = docDictionary[fileName] ; if (docPtr){ docPtr->addBreakPoint(lineNumber - 1, enabled); }else { |