summaryrefslogtreecommitdiffstats
path: root/kxsldbg/kxsldbgpart/libqtnotfier/xsldbgevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kxsldbg/kxsldbgpart/libqtnotfier/xsldbgevent.cpp')
-rw-r--r--kxsldbg/kxsldbgpart/libqtnotfier/xsldbgevent.cpp56
1 files changed, 28 insertions, 28 deletions
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;
}