diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /kxsldbg/kxsldbgpart/libqtnotfier | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kxsldbg/kxsldbgpart/libqtnotfier')
4 files changed, 88 insertions, 88 deletions
diff --git a/kxsldbg/kxsldbgpart/libqtnotfier/qtnotifier2.cpp b/kxsldbg/kxsldbgpart/libqtnotfier/qtnotifier2.cpp index 6d4b7fcb..0db9d1f0 100644 --- a/kxsldbg/kxsldbgpart/libqtnotfier/qtnotifier2.cpp +++ b/kxsldbg/kxsldbgpart/libqtnotfier/qtnotifier2.cpp @@ -15,7 +15,7 @@ * * ***************************************************************************/ -#include <qapplication.h> +#include <tqapplication.h> #include "../libxsldbg/xsldbgevent.h" #include "../libxsldbg/qtnotifier2.h" @@ -41,7 +41,7 @@ int qtNotifyXsldbgApp(XsldbgMessageEnum type, const void *data) if (e != 0L) { /* The application will now have this event in its event queue that all that is needed from here*/ - QApplication::postEvent(_debugger, e); + TQApplication::postEvent(_debugger, e); } } diff --git a/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.cpp b/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.cpp index 930be808..518aca00 100644 --- a/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.cpp +++ b/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.cpp @@ -18,15 +18,15 @@ * * ***************************************************************************/ -#include <qapplication.h> -#include <qglobal.h> -#include <qstringlist.h> +#include <tqapplication.h> +#include <tqglobal.h> +#include <tqstringlist.h> #include <kurl.h> #include "xsldbgdebuggerbase.h" XsldbgDebuggerBase::XsldbgDebuggerBase() - : QObject(0L, "XsldbgDebuggerBase") + : TQObject(0L, "XsldbgDebuggerBase") { initialized = false; updateTimerID = -1; @@ -40,31 +40,31 @@ XsldbgDebuggerBase::~XsldbgDebuggerBase() -QString XsldbgDebuggerBase::fromUTF8(const char *text) +TQString XsldbgDebuggerBase::fromUTF8(const char *text) { - QString result; + TQString result; if (text != 0L) result = (const char*)text; return result; } -QString XsldbgDebuggerBase::fromUTF8(const xmlChar *text) +TQString XsldbgDebuggerBase::fromUTF8(const xmlChar *text) { - QString result; + TQString result; if (text != 0L) - result = QString::fromUtf8((const char*)text); + result = TQString::fromUtf8((const char*)text); return result; } -QString XsldbgDebuggerBase::fromUTF8FileName(const char *text) +TQString XsldbgDebuggerBase::fromUTF8FileName(const char *text) { - QString result; + TQString result; if (text != 0L){ KURL url(((const char*)text)); if (url.isLocalFile()) - result = QString("file:") + url.path(); + result = TQString("file:") + url.path(); else result = url.prettyURL(); } @@ -72,13 +72,13 @@ QString XsldbgDebuggerBase::fromUTF8FileName(const char *text) } -QString XsldbgDebuggerBase::fromUTF8FileName(const xmlChar *text) +TQString XsldbgDebuggerBase::fromUTF8FileName(const xmlChar *text) { - QString result; + TQString result; if (text != 0L){ - KURL url(QString::fromUtf8((const char*)text)); + KURL url(TQString::fromUtf8((const char*)text)); if (url.isLocalFile()) - result = QString("file:") + url.path(); + result = TQString("file:") + url.path(); else result = url.prettyURL(); } @@ -86,7 +86,7 @@ QString XsldbgDebuggerBase::fromUTF8FileName(const xmlChar *text) } -void XsldbgDebuggerBase::queueMessage(const QString &text) +void XsldbgDebuggerBase::queueMessage(const TQString &text) { updateText += text; } diff --git a/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.h b/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.h index ff830495..fddc6034 100644 --- a/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.h +++ b/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgdebuggerbase.h @@ -30,8 +30,8 @@ # endif #endif -#include <qobject.h> -#include <qstringlist.h> +#include <tqobject.h> +#include <tqstringlist.h> #include <libxml/tree.h> class XsldbgEvent; @@ -59,85 +59,85 @@ class XsldbgDebuggerBase : public QObject int getUpdateTimerID(void) {return updateTimerID ;}; - /** Convert from libxslt UTF8 to a QString */ - static QString fromUTF8(const char *text); - static QString fromUTF8FileName(const char *text); + /** Convert from libxslt UTF8 to a TQString */ + static TQString fromUTF8(const char *text); + static TQString fromUTF8FileName(const char *text); - /** Convert from libxslt UTF8 to a QString */ - static QString fromUTF8(const xmlChar *text); - static QString fromUTF8FileName(const xmlChar *text); + /** Convert from libxslt UTF8 to a TQString */ + static TQString fromUTF8(const xmlChar *text); + static TQString fromUTF8FileName(const xmlChar *text); /* list of command yet to be processed */ - QStringList commandQueue(void) {return _commandQueue ;}; + TQStringList commandQueue(void) {return _commandQueue ;}; - void queueMessage(const QString &text); + void queueMessage(const TQString &text); protected: - QString updateText; + TQString updateText; private: bool initialized; int updateTimerID; - QStringList _commandQueue; + TQStringList _commandQueue; signals: // Signals /** line number and/or file name changed */ - void lineNoChanged(QString /* fileName */, int /* lineNumber */, bool /* breakpoint */); + void lineNoChanged(TQString /* fileName */, int /* lineNumber */, bool /* breakpoint */); /** Show a message in debugger window */ - void showMessage(QString /* msg*/); + void showMessage(TQString /* msg*/); - /** Add breakpoint to view, First parameter is QString::null + /** Add breakpoint to view, First parameter is TQString::null to indicate start of breakpoint list notfication */ - void breakpointItem(QString /* fileName*/, int /* lineNumber */, - QString /*templateName*/, QString /* modeName */, + void breakpointItem(TQString /* fileName*/, int /* lineNumber */, + TQString /*templateName*/, TQString /* modeName */, bool /* enabled */, int /* id */); - /** Add global variable to view, First parameter is QString::null + /** Add global variable to view, First parameter is TQString::null to indicate start of global variable list notfication */ - void globalVariableItem(QString /* name */, QString /* fileName */, int /* lineNumber */); + void globalVariableItem(TQString /* name */, TQString /* fileName */, int /* lineNumber */); - /** Add local variable to view, First parameter is QString::null + /** Add local variable to view, First parameter is TQString::null to indicate start of local variable list notfication */ - void localVariableItem(QString /*name */, QString /* templateContext*/, - QString /* fileName */, int /*lineNumber */); + void localVariableItem(TQString /*name */, TQString /* templateContext*/, + TQString /* fileName */, int /*lineNumber */); - /** Add a variable to view, First parameter is QString::null + /** Add a variable to view, First parameter is TQString::null to indicate start of local variable list notfication */ - void variableItem(QString /*name */, QString /* templateContext*/, - QString /* fileName */, int /*lineNumber */, - QString /* select XPath */, int /* is it a local variable */); + void variableItem(TQString /*name */, TQString /* templateContext*/, + TQString /* fileName */, int /*lineNumber */, + TQString /* select XPath */, int /* is it a local variable */); - /** Add template to view, First parameter is QString::null + /** Add template to view, First parameter is TQString::null to indicate start of template list notfication */ - void templateItem(QString /* name*/, QString /*mode*/, QString /* fileName */, int /* lineNumber */); + void templateItem(TQString /* name*/, TQString /*mode*/, TQString /* fileName */, int /* lineNumber */); - /** Add source to view, First parameter is QString::null + /** Add source to view, First parameter is TQString::null to indicate start of source list notfication */ - void sourceItem(QString /* fileName */, QString /* parentFileName */, int /*lineNumber */); + void sourceItem(TQString /* fileName */, TQString /* parentFileName */, int /*lineNumber */); - /** Add parameter to view, First parameter is QString::null + /** Add parameter to view, First parameter is TQString::null to indicate start of parameter list notfication */ - void parameterItem(QString /* name*/, QString /* value */); + void parameterItem(TQString /* name*/, TQString /* value */); - /** Add callStack to view, First parameter is QString::null + /** Add callStack to view, First parameter is TQString::null to indicate start of callstack list notfication */ - void callStackItem(QString /* tempalteName*/, QString /* fileName */, int /* lineNumber */); + void callStackItem(TQString /* tempalteName*/, TQString /* fileName */, int /* lineNumber */); - /** Add entity to view, First parameter is QString::null + /** Add entity to view, First parameter is TQString::null to indicate start of entity list notfication */ - void entityItem(QString /*SystemID*/, QString /*PublicID*/); + void entityItem(TQString /*SystemID*/, TQString /*PublicID*/); /* Show the URI for SystemID or PublicID requested */ - void resolveItem(QString /*URI*/); + void resolveItem(TQString /*URI*/); - /* Display a integer option value First parameter is QString::null + /* Display a integer option value First parameter is TQString::null to indicate start of option list notification */ - void intOptionItem(QString /* name*/, int /* value */); + void intOptionItem(TQString /* name*/, int /* value */); - /* Display a string option value. First parameter is QString::null + /* Display a string option value. First parameter is TQString::null to indicate start of option list notification */ - void stringOptionItem(QString /* name*/, QString /* value */); + void stringOptionItem(TQString /* name*/, TQString /* value */); /* Cause the names for source, data and output files to be reload from xsldbg */ void fileDetailsChanged(); diff --git a/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgevent.cpp b/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgevent.cpp index a424eaba..35878929 100644 --- a/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgevent.cpp +++ b/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgevent.cpp @@ -17,11 +17,11 @@ * * ***************************************************************************/ -#include <qapplication.h> -#include <qtimer.h> -#include <qfile.h> +#include <tqapplication.h> +#include <tqtimer.h> +#include <tqfile.h> #include <kurl.h> -#include <qtextstream.h> +#include <tqtextstream.h> #include <libxslt/xsltInternals.h> @@ -34,14 +34,14 @@ #include "../libxsldbg/options.h" #include "../libxsldbg/files.h" -QString updateText; +TQString updateText; XsldbgEventData::XsldbgEventData() { int column; for (column = 0; column < XSLDBGEVENT_COLUMNS; column++){ - textValues[column] = QString::null; + textValues[column] = TQString::null; } for (column = 0; column < XSLDBGEVENT_COLUMNS; column++){ @@ -54,19 +54,19 @@ XsldbgEventData::~XsldbgEventData() { } -void XsldbgEventData::setText(int column, QString text) +void XsldbgEventData::setText(int column, TQString text) { if ((column >= 0) && (column < XSLDBGEVENT_COLUMNS)) textValues[column] = text; } -QString XsldbgEventData::getText(int column) +TQString XsldbgEventData::getText(int column) { if ((column >= 0) && (column < XSLDBGEVENT_COLUMNS)) return textValues[column]; else - return QString::null; + return TQString::null; } @@ -87,7 +87,7 @@ int XsldbgEventData::getInt(int column) XsldbgEvent::XsldbgEvent(XsldbgMessageEnum type, const void *data) - : QEvent(QEvent::User) + : TQEvent(TQEvent::User) { XsldbgEventData *eventData; this->data = data; @@ -205,14 +205,14 @@ XsldbgEventData *XsldbgEvent::createEventData(XsldbgMessageEnum type, const void break; } - QString fileName = url.path(); - QString outputText; + TQString fileName = url.path(); + TQString outputText; if (!fileName.isNull()){ - QFile file (fileName); + TQFile file (fileName); if (file.open(IO_ReadOnly)){ - QTextStream textFile(&file); - QString textIn = ""; - textFile.setEncoding(QTextStream::UnicodeUTF8); + TQTextStream textFile(&file); + TQString textIn = ""; + textFile.setEncoding(TQTextStream::UnicodeUTF8); while (1){ textIn = textFile.readLine(); if (textIn.isNull()) @@ -327,8 +327,8 @@ void XsldbgEvent::emitMessage(XsldbgEventData *eventData) case XSLDBG_MSG_AWAITING_INPUT: /* 5: Waiting for user input */ if ((getInputReady() == 0) && (debugger->commandQueue().count() > 0)){ qDebug("Command queue not empty"); - QTimerEvent *e = new QTimerEvent(debugger->getUpdateTimerID()); - QApplication::postEvent(debugger, e); + TQTimerEvent *e = new TQTimerEvent(debugger->getUpdateTimerID()); + TQApplication::postEvent(debugger, e); } if (!updateText.isEmpty()){ debugger->queueMessage(updateText); @@ -512,7 +512,7 @@ void XsldbgEvent::handleGlobalVariableItem(XsldbgEventData *eventData, const vo /* add our specific data to eventData*/ if (msgData != 0L){ xsltStackElemPtr item = (xsltStackElemPtr)msgData; - QString name, fileName, selectXPath; + TQString name, fileName, selectXPath; int lineNumber = -1; /* variable name*/ @@ -557,7 +557,7 @@ void XsldbgEvent::handleLocalVariableItem(XsldbgEventData *eventData, const voi /* add our specific data to eventData*/ if (msgData != 0L){ xsltStackElemPtr item = (xsltStackElemPtr)msgData; - QString name, templateContext, fileName, selectXPath; + TQString name, templateContext, fileName, selectXPath; int lineNumber = -1; xmlNodePtr varXmlNode; @@ -620,7 +620,7 @@ if (eventData != 0L){ /* add our specific data to eventData*/ if(msgData != 0L){ xsltTemplatePtr item = (xsltTemplatePtr)msgData; - QString name, mode, fileName; + TQString name, mode, fileName; int lineNumber = -1; if (item->nameURI) @@ -661,7 +661,7 @@ void XsldbgEvent::handleIncludedSourceItem(XsldbgEventData *eventData, const vo /* add our specific data to eventData*/ if (msgData != 0L){ xmlNodePtr item = (xmlNodePtr)msgData; - QString name, fileName; + TQString name, fileName; int lineNumber = -1; if (item->doc) @@ -691,7 +691,7 @@ void XsldbgEvent::handleSourceItem(XsldbgEventData *eventData, const void *msgD /* add our specific data to eventData*/ if (msgData != 0L){ xsltStylesheetPtr item = (xsltStylesheetPtr)msgData; - QString name, fileName; + TQString name, fileName; int lineNumber = -1; if (item->doc) @@ -722,7 +722,7 @@ void XsldbgEvent::handleParameterItem(XsldbgEventData *eventData, const void *m /* add our specific data to eventData*/ if (msgData != 0L){ parameterItemPtr paramItem = (parameterItemPtr)msgData; - QString name, value; + TQString name, value; name = XsldbgDebuggerBase::fromUTF8(paramItem->name); value = XsldbgDebuggerBase::fromUTF8(paramItem->value); @@ -746,7 +746,7 @@ void XsldbgEvent::handleCallStackItem(XsldbgEventData *eventData, const void *m /* add our specific data to eventData*/ if (msgData != 0L){ callPointPtr item = (callPointPtr)msgData; - QString templateName, fileName; + TQString templateName, fileName; int lineNumber = -1; /* template name */ @@ -776,7 +776,7 @@ void XsldbgEvent::handleEntityItem(XsldbgEventData *eventData, const void *msgD if (beenCreated == false){ /* add our specific data to eventData*/ if (msgData != 0L){ - QString SystemID, PublicID; + TQString SystemID, PublicID; entityInfoPtr info = (entityInfoPtr)msgData; SystemID = XsldbgDebuggerBase::fromUTF8FileName(info->SystemID); @@ -800,7 +800,7 @@ void XsldbgEvent::handleResolveItem(XsldbgEventData *eventData, const void *msg if (beenCreated == false){ /* add our specific data to eventData*/ if (msgData != 0L){ - QString URI = XsldbgDebuggerBase::fromUTF8FileName((const xmlChar*)msgData); + TQString URI = XsldbgDebuggerBase::fromUTF8FileName((const xmlChar*)msgData); eventData->setText(0, URI); } @@ -851,7 +851,7 @@ void XsldbgEvent::handleStringOptionItem(XsldbgEventData *eventData, const void -void XsldbgEventDataList::deleteItem( QPtrCollection::Item d ) +void XsldbgEventDataList::deleteItem( TQPtrCollection::Item d ) { if ( del_item ) delete (XsldbgEventData *)d; } |