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/libxsldbg | |
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/libxsldbg')
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/breakpoint_cmds.cpp | 24 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/debugXSL.cpp | 8 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/file_cmds.cpp | 2 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp | 6 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/options.cpp | 38 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/param_cmds.cpp | 6 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/template_cmds.cpp | 8 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp | 44 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h | 12 | ||||
-rw-r--r-- | kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h | 144 |
10 files changed, 146 insertions, 146 deletions
diff --git a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint_cmds.cpp b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint_cmds.cpp index 7935ea8c..0bab6585 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/breakpoint_cmds.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/breakpoint_cmds.cpp @@ -95,7 +95,7 @@ xslDbgShellFrameBreak(xmlChar * arg, int stepup) if (!filesGetStylesheet() || !filesGetMainDoc()) { xsldbgGenericErrorFunc(i18n("Error: Debugger has no files loaded. Try reloading files.\n")); - xsldbgGenericErrorFunc(QString("Error: %1.\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1.\n").arg(i18n(errorPrompt))); return result; } @@ -104,7 +104,7 @@ xslDbgShellFrameBreak(xmlChar * arg, int stepup) xsltGenericError(xsltGenericErrorContext, "Error: NULL argument provided\n"); #endif - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } @@ -126,7 +126,7 @@ xslDbgShellFrameBreak(xmlChar * arg, int stepup) } if (!result) - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } @@ -350,7 +350,7 @@ xslDbgShellBreak(xmlChar * arg, xsltStylesheetPtr style, if (!style || !filesGetMainDoc()) { if (!optionsGetIntOption(OPTIONS_GDB)){ xsldbgGenericErrorFunc(i18n("Error: Debugger has no files loaded. Try reloading files.\n")); - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; }else{ orphanedBreakPoint = 1; @@ -373,7 +373,7 @@ xslDbgShellBreak(xmlChar * arg, xsltStylesheetPtr style, if ((xmlStrlen(opts[1]) == 0) || !sscanf((char *) opts[1], "%ld", &lineNo)) { xsldbgGenericErrorFunc(i18n("Error: Unable to parse %1 as a line number.\n").arg((char*)opts[1])); - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } else { /* try to guess whether we are looking for source or data @@ -628,7 +628,7 @@ xslDbgShellBreak(xmlChar * arg, xsltStylesheetPtr style, } else { result = 1; if (newBreakPoints){ - xsldbgGenericErrorFunc(i18n("Information: Added %n new breakpoint.", "Information: Added %n new breakpoints.", newBreakPoints) + QString("\n")); + xsldbgGenericErrorFunc(i18n("Information: Added %n new breakpoint.", "Information: Added %n new breakpoints.", newBreakPoints) + TQString("\n")); } } @@ -681,7 +681,7 @@ xslDbgShellDelete(xmlChar * arg) xsltGenericError(xsltGenericErrorContext, "Error: NULL argument provided\n"); #endif - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } @@ -749,7 +749,7 @@ xslDbgShellDelete(xmlChar * arg) } } if (!result) - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } @@ -798,7 +798,7 @@ xslDbgShellEnable(xmlChar * arg, int enableType) if (!filesGetStylesheet() || !filesGetMainDoc()) { xsldbgGenericErrorFunc(i18n("Error: Debugger has no files loaded. Try reloading files.\n")); - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } @@ -807,7 +807,7 @@ xslDbgShellEnable(xmlChar * arg, int enableType) xsltGenericError(xsltGenericErrorContext, "Error: NULL argument provided\n"); #endif - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } @@ -872,7 +872,7 @@ xslDbgShellEnable(xmlChar * arg, int enableType) } if (!result) - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); return result; } @@ -931,7 +931,7 @@ static int validateBreakPoint(breakPointPtr breakPtr, breakPointPtr copy) breakPtr->flags |= BREAKPOINT_ORPHANED; if ( breakPtr->flags & BREAKPOINT_ORPHANED){ - xsldbgGenericErrorFunc(QString("Warning: Breakpoint %1 is orphaned. Result: %2. Old flags: %3. New flags: %4.\n").arg(breakPtr->id).arg(result).arg(copy->flags).arg(breakPtr->flags)); + xsldbgGenericErrorFunc(TQString("Warning: Breakpoint %1 is orphaned. Result: %2. Old flags: %3. New flags: %4.\n").arg(breakPtr->id).arg(result).arg(copy->flags).arg(breakPtr->flags)); } if (!(breakPtr->flags & BREAKPOINT_ORPHANED) && ((copy->lineNo != breakPtr->lineNo ) || diff --git a/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.cpp b/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.cpp index 39aea804..7088cf36 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/debugXSL.cpp @@ -603,7 +603,7 @@ xslDbgCd(xsltTransformContextPtr styleCtxt, xmlShellCtxtPtr ctxt, } result = 1; } else - xsldbgGenericErrorFunc(i18n("Warning: XPath %1 is a Node Set with %n child.", "Warning: XPath %1 is a Node Set with %n children.", list->nodesetval->nodeNr).arg(xsldbgText(arg)) + QString("\n")); + xsldbgGenericErrorFunc(i18n("Warning: XPath %1 is a Node Set with %n child.", "Warning: XPath %1 is a Node Set with %n children.", list->nodesetval->nodeNr).arg(xsldbgText(arg)) + TQString("\n")); } else { xsldbgGenericErrorFunc(i18n("Warning: XPath %1 is an empty Node Set.\n").arg(xsldbgText(arg))); } @@ -1131,7 +1131,7 @@ debugXSLBreak(xmlNodePtr templ, xmlNodePtr node, xsltTemplatePtr root, } else { if ((xslDebugStatus == DEBUG_TRACE) || (xslDebugStatus == DEBUG_WALK)) { - QString message; + TQString message; if (root->match) message = i18n("\nReached template: \"%1\" mode: \"%2\"\n").arg(xsldbgText(root->match)).arg(xsldbgText(modeTemp)); else @@ -1279,7 +1279,7 @@ shellPrompt(xmlNodePtr source, xmlNodePtr doc, xmlChar * filename, * send this as the application will see the XSLDBG_MSG_LINE_CHANGED message */ if ((getThreadStatus() == XSLDBG_MSG_THREAD_NOTUSED) || (xslDebugStatus == DEBUG_TRACE)) { - QString messageTxt; + TQString messageTxt; if (!nextCommandActive && ctxt->node && ctxt->node && ctxt->node->doc && ctxt->node->doc->URL) { if (!showSource) { @@ -1612,7 +1612,7 @@ shellPrompt(xmlNodePtr source, xmlNodePtr doc, xmlChar * filename, if (printCount == 0) xsldbgGenericErrorFunc(i18n("\nNo breakpoints are set for the file.\n")); else - xsldbgGenericErrorFunc(i18n("\tTotal of %n breakpoint present.","\tTotal of %n breakpoints present.", printCount) + QString("\n")); + xsldbgGenericErrorFunc(i18n("\tTotal of %n breakpoint present.","\tTotal of %n breakpoints present.", printCount) + TQString("\n")); } cmdResult = 1; break; diff --git a/kxsldbg/kxsldbgpart/libxsldbg/file_cmds.cpp b/kxsldbg/kxsldbgpart/libxsldbg/file_cmds.cpp index 083b33b2..10abbaf7 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/file_cmds.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/file_cmds.cpp @@ -77,7 +77,7 @@ xslDbgEntities(void) if (arrayListCount(filesEntityList()) == 0) { xsldbgGenericErrorFunc(i18n("No external General Parsed entities present.\n")); } else { - xsldbgGenericErrorFunc(i18n("\tTotal of %n entity found.", "\tTotal of %n entities found.", arrayListCount(filesEntityList())) + QString("\n")); + xsldbgGenericErrorFunc(i18n("\tTotal of %n entity found.", "\tTotal of %n entities found.", arrayListCount(filesEntityList())) + TQString("\n")); } result = 1; diff --git a/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp b/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp index d3e91f92..db06ad2f 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/help_unix.cpp @@ -53,9 +53,9 @@ helpTop(const xmlChar * args) I18N_NOOP("Help not found for command") }; - QString xsldbgVerTxt(i18n("xsldbg version")); - QString helpDocVerTxt(i18n("Help document version")); - QString helpErrorTxt(i18n("Help not found for command")); + TQString xsldbgVerTxt(i18n("xsldbg version")); + TQString helpDocVerTxt(i18n("Help document version")); + TQString helpErrorTxt(i18n("Help not found for command")); char buff[500], helpParam[100]; diff --git a/kxsldbg/kxsldbgpart/libxsldbg/options.cpp b/kxsldbg/kxsldbgpart/libxsldbg/options.cpp index 9f667eb3..28b8f44c 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/options.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/options.cpp @@ -25,8 +25,8 @@ #include "utils.h" #include <kglobal.h> #include <kstandarddirs.h> -#include <qfileinfo.h> -#include <qstringlist.h> +#include <tqfileinfo.h> +#include <tqstringlist.h> /* keep track of our integer/boolean options */ @@ -90,42 +90,42 @@ const char *optionNames[] = { // find the translated help documentation directory // langLookupDir code modified from langLookup function in kdebase/khelpcenter/view.cpp -static QString langLookupDir( const QString &fname ) +static TQString langLookupDir( const TQString &fname ) { - QStringList search; + TQStringList search; // assemble the local search paths - QStringList localDoc = KGlobal::dirs()->resourceDirs("html"); + TQStringList localDoc = KGlobal::dirs()->resourceDirs("html"); // also look in each of the KDEDIR paths - QString kdeDirs = getenv("KDEDIRS"); - QStringList kdeDirsList = QStringList::split(":", kdeDirs); + TQString kdeDirs = getenv("KDEDIRS"); + TQStringList kdeDirsList = TQStringList::split(":", kdeDirs); if (!kdeDirs.isEmpty() && !kdeDirsList.isEmpty()){ - for (QStringList::iterator it = kdeDirsList.begin(); it != kdeDirsList.end(); it++) + for (TQStringList::iterator it = kdeDirsList.begin(); it != kdeDirsList.end(); it++) localDoc.append((*it) + "/share/doc/HTML/") ; } // look up the different languages for (uint id=0; id < localDoc.count(); id++) { - QStringList langs = KGlobal::locale()->languageList(); + TQStringList langs = KGlobal::locale()->languageList(); langs.append( "en" ); langs.remove( "C" ); - QStringList::ConstIterator lang; + TQStringList::ConstIterator lang; for (lang = langs.begin(); lang != langs.end(); ++lang) - search.append(QString("%1%2/%3/%4").arg(localDoc[id]).arg(*lang).arg("xsldbg").arg(fname)); + search.append(TQString("%1%2/%3/%4").arg(localDoc[id]).arg(*lang).arg("xsldbg").arg(fname)); } // try to locate the file - QStringList::Iterator it; + TQStringList::Iterator it; for (it = search.begin(); it != search.end(); ++it) { - QString baseDir = (*it).left((*it).findRev('/')) ; - QFileInfo info(baseDir + "/"+ fname); + TQString baseDir = (*it).left((*it).findRev('/')) ; + TQFileInfo info(baseDir + "/"+ fname); if (info.exists() && info.isFile() && info.isReadable()) return baseDir; } - return QString::null; + return TQString::null; } @@ -296,7 +296,7 @@ optionsSetIntOption(OptionTypeEnum optionType, int value) xsldbgGenericErrorFunc(i18n("Error: Option %1 is not a valid boolean/integer option.\n").arg(xsldbgText(optionNames[type - OPTIONS_FIRST_OPTIONID]))); }else{ #ifdef WITH_XSLDBG_DEBUG_PROCESS - xsldbgGenericErrorFunc(QString("Error: Invalid arguments for the command %1.\n").arg("setoption")); + xsldbgGenericErrorFunc(TQString("Error: Invalid arguments for the command %1.\n").arg("setoption")); #endif } result = 0; @@ -326,7 +326,7 @@ optionsGetIntOption(OptionTypeEnum optionType) xsldbgGenericErrorFunc(i18n("Error: Option %1 is not a valid boolean/integer option.\n").arg(xsldbgText(optionNames[type - OPTIONS_FIRST_OPTIONID]))); }else{ #ifdef WITH_XSLDBG_DEBUG_PROCESS - xsldbgGenericErrorFunc(QString("Error: Invalid arguments for the command %1.\n").arg("options")); + xsldbgGenericErrorFunc(TQString("Error: Invalid arguments for the command %1.\n").arg("options")); #endif } } @@ -368,7 +368,7 @@ optionsSetStringOption(OptionTypeEnum optionType, const xmlChar * value) xsldbgGenericErrorFunc(i18n("Error: Option %1 is not a valid string xsldbg option.\n").arg(xsldbgText(optionNames[type - OPTIONS_LAST_OPTIONID]))); }else{ #ifdef WITH_XSLDBG_DEBUG_PROCESS - xsldbgGenericErrorFunc(QString("Error: Invalid arguments for the command %1.\n").arg("setoption")); + xsldbgGenericErrorFunc(TQString("Error: Invalid arguments for the command %1.\n").arg("setoption")); #endif } } @@ -399,7 +399,7 @@ optionsGetStringOption(OptionTypeEnum optionType) xsldbgGenericErrorFunc(i18n("Error: Option %1 is not a valid string xsldbg option.\n").arg(xsldbgText(optionNames[type - OPTIONS_FIRST_OPTIONID]))); }else{ #ifdef WITH_XSLDBG_DEBUG_PROCESS - xsldbgGenericErrorFunc(QString("Error: Invalid arguments for the command %1.\n").arg("options")); + xsldbgGenericErrorFunc(TQString("Error: Invalid arguments for the command %1.\n").arg("options")); #endif } } diff --git a/kxsldbg/kxsldbgpart/libxsldbg/param_cmds.cpp b/kxsldbg/kxsldbgpart/libxsldbg/param_cmds.cpp index e4255797..befa330d 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/param_cmds.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/param_cmds.cpp @@ -72,7 +72,7 @@ xslDbgShellAddParam(xmlChar * arg) } } if (!result) - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); else { xsldbgGenericErrorFunc("\n"); } @@ -121,7 +121,7 @@ xslDbgShellDelParam(xmlChar * arg) } } if (!result) - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); else xsldbgGenericErrorFunc("\n"); @@ -168,7 +168,7 @@ xslDbgShellShowParam(xmlChar * arg) if (optionsPrintParamList()) result = 1; else - xsldbgGenericErrorFunc(QString("Error: %1\n").arg(i18n(errorPrompt))); + xsldbgGenericErrorFunc(TQString("Error: %1\n").arg(i18n(errorPrompt))); xsldbgGenericErrorFunc("\n"); } return result; diff --git a/kxsldbg/kxsldbgpart/libxsldbg/template_cmds.cpp b/kxsldbg/kxsldbgpart/libxsldbg/template_cmds.cpp index 10deb686..261c0ebe 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/template_cmds.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/template_cmds.cpp @@ -134,7 +134,7 @@ printTemplateHelper(xsltTemplatePtr templ, int verbose, if (verbose) xsldbgGenericErrorFunc(i18n(" template: \"%1\" mode: \"%2\" in file \"%3\" at line %4\n").arg(xsldbgText(name)).arg(xsldbgText(modeTemp)).arg(xsldbgUrl(url)).arg(xmlGetLineNo(templ->elem))); else - xsldbgGenericErrorFunc(QString("\"%s\" ").arg(xsldbgText(name))); + xsldbgGenericErrorFunc(TQString("\"%s\" ").arg(xsldbgText(name))); if (modeTemp) xmlFree(modeTemp); } @@ -225,8 +225,8 @@ xslDbgShellPrintTemplateNames(xsltTransformContextPtr styleCtxt, if (templateCount == 0) { xsldbgGenericErrorFunc(i18n("\tNo XSLT templates found.\n")); } else { - xsldbgGenericErrorFunc(i18n("\tTotal of %n XSLT template found", "\tTotal of %n XSLT templates found", templateCount) + QString("\n")); - xsldbgGenericErrorFunc(i18n("\tTotal of %n XSLT template printed", "\tTotal of %n XSLT templates printed", printedTemplateCount) + QString("\n")); + xsldbgGenericErrorFunc(i18n("\tTotal of %n XSLT template found", "\tTotal of %n XSLT templates found", templateCount) + TQString("\n")); + xsldbgGenericErrorFunc(i18n("\tTotal of %n XSLT template printed", "\tTotal of %n XSLT templates printed", printedTemplateCount) + TQString("\n")); } } @@ -322,7 +322,7 @@ xslDbgShellPrintStyleSheets(xmlChar * arg) walkIncludes((xmlHashScanner) xslDbgShellPrintStylesheetsHelper2, NULL, filesGetStylesheet()); if (printCounter != 0) - xsldbgGenericErrorFunc(i18n("\tTotal of %n XSLT stylesheet found.", "\tTotal of %n XSLT stylesheets found.", printCounter) + QString("\n")); + xsldbgGenericErrorFunc(i18n("\tTotal of %n XSLT stylesheet found.", "\tTotal of %n XSLT stylesheets found.", printCounter) + TQString("\n")); else /* strange but possible */ xsldbgGenericErrorFunc(i18n("\tNo XSLT stylesheets found.\n")); diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp index 2afdb828..52066acf 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp +++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.cpp @@ -101,7 +101,7 @@ #include <kcmdlineargs.h> #include <kglobal.h> -#include <qfile.h> +#include <tqfile.h> #ifdef WIN32 #ifdef _MSC_VER @@ -254,7 +254,7 @@ startTimer(void) * type argument */ static void -endTimer(const QString& message) +endTimer(const TQString& message) { long msec; @@ -284,7 +284,7 @@ startTimer(void) begin = clock(); } static void -endTimer(const QString& message) +endTimer(const TQString& message) { long msec; @@ -310,7 +310,7 @@ startTimer(void) */ } static void -endTimer(const QString& message) +endTimer(const TQString& message) { /* * We can not do anything because we don't have a timing function @@ -539,7 +539,7 @@ xsldbgMain(int argc, char **argv) if (args){ - QString langChoice = args->getOption("lang"); + TQString langChoice = args->getOption("lang"); if (KGlobal::locale() && !langChoice.isEmpty() && result) KGlobal::locale()->setLanguage(langChoice); } @@ -645,11 +645,11 @@ xsldbgMain(int argc, char **argv) if (args->isSet("verbose") && result) xsltSetGenericDebugFunc(stderr, NULL); - QCString outFile = args->getOption("output"); + TQCString outFile = args->getOption("output"); if (!outFile.isEmpty() && result) - result = xslDbgShellOutput((const xmlChar *)QFile::encodeName(outFile).data()); + result = xslDbgShellOutput((const xmlChar *)TQFile::encodeName(outFile).data()); - QCString maxDepth = args->getOption("maxdepth"); + TQCString maxDepth = args->getOption("maxdepth"); if (!maxDepth.isEmpty() && result){ bool OK; int value = maxDepth.toInt(&OK); @@ -666,7 +666,7 @@ xsldbgMain(int argc, char **argv) QCStringList xslParams(args->getOptionList("param")); QCStringList::iterator it; - QCString param, paramName, paramValue; + TQCString param, paramName, paramValue; int separatorIdx; bool paramOK; for ( it = xslParams.begin(); it != xslParams.end(); ++it){ @@ -692,9 +692,9 @@ xsldbgMain(int argc, char **argv) xsldbgGenericErrorFunc(i18n("Error: Argument \"%1\" to --param is not in the format <name>:<value>.\n").arg(param.data())); } - QCString cdPath = args->getOption("cd"); + TQCString cdPath = args->getOption("cd"); if (!cdPath.isEmpty() && result) - result = changeDir((const xmlChar *)QFile::encodeName(cdPath).data()); + result = changeDir((const xmlChar *)TQFile::encodeName(cdPath).data()); } @@ -997,7 +997,7 @@ xsldbgLoadXmlData(void) xslDebugStatus = DEBUG_STOP; } } else if (optionsGetIntOption(OPTIONS_TIMING)) - endTimer(QString("Parsing document %1").arg(xsldbgUrl(optionsGetStringOption(OPTIONS_DATA_FILE_NAME))).utf8().data()); + endTimer(TQString("Parsing document %1").arg(xsldbgUrl(optionsGetStringOption(OPTIONS_DATA_FILE_NAME))).utf8().data()); return doc; } @@ -1037,7 +1037,7 @@ xsldbgLoadXmlTemporary(const xmlChar * path) if (optionsGetIntOption(OPTIONS_TIMING) && (xslDebugStatus != DEBUG_QUIT)) { - endTimer(QString("Parsing document %1").arg(xsldbgUrl(path))); + endTimer(TQString("Parsing document %1").arg(xsldbgUrl(path))); } return doc; } @@ -1328,16 +1328,16 @@ xsldbgGenericErrorFunc(void *ctx, const char *msg, ...) va_end(args); } -void xsldbgGenericErrorFunc(QString const &text) +void xsldbgGenericErrorFunc(TQString const &text) { xsldbgGenericErrorFunc(0, "%s", text.utf8().data()); } -QString xsldbgUrl(const char *utf8fUrl) +TQString xsldbgUrl(const char *utf8fUrl) { - QString tempUrl(utf8fUrl); - QString fixedURI; + TQString tempUrl(utf8fUrl); + TQString fixedURI; KURL url(tempUrl); // May be provided with a URL that only has been encoded and has no protocol prefix ie a local file @@ -1349,19 +1349,19 @@ QString xsldbgUrl(const char *utf8fUrl) return fixedURI; } -QString xsldbgUrl(const xmlChar *utf8Url) +TQString xsldbgUrl(const xmlChar *utf8Url) { return xsldbgUrl((const char*)(utf8Url)); } -QString xsldbgText(const char *utf8Text) +TQString xsldbgText(const char *utf8Text) { - return QString::fromUtf8(utf8Text); + return TQString::fromUtf8(utf8Text); } -QString xsldbgText(const xmlChar *utf8Text) +TQString xsldbgText(const xmlChar *utf8Text) { - return QString::fromUtf8((const char *)utf8Text); + return TQString::fromUtf8((const char *)utf8Text); } diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h index 6972fc12..26abeb49 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h +++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbg.h @@ -80,7 +80,7 @@ #include <libexslt/exslt.h> #include <libxslt/xsltutils.h> -#include <qstring.h> +#include <tqstring.h> #include <klocale.h> #include "breakpoint.h" @@ -179,10 +179,10 @@ int xsldbgMain(int argc, char **argv); } #endif -void xsldbgGenericErrorFunc(QString const &text); -QString xsldbgUrl(const char *utf8Url); -QString xsldbgUrl(const xmlChar *utf8Url); -QString xsldbgText(const char *utf8Text); -QString xsldbgText(const xmlChar *utf8Text); +void xsldbgGenericErrorFunc(TQString const &text); +TQString xsldbgUrl(const char *utf8Url); +TQString xsldbgUrl(const xmlChar *utf8Url); +TQString xsldbgText(const char *utf8Text); +TQString xsldbgText(const xmlChar *utf8Text); #endif diff --git a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h index 85b1827f..86bd2e4f 100644 --- a/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h +++ b/kxsldbg/kxsldbgpart/libxsldbg/xsldbgevent.h @@ -25,8 +25,8 @@ #include <libxsldbg/xsldbgwin32config.h> #endif -#include <qevent.h> -#include <qptrlist.h> +#include <tqevent.h> +#include <tqptrlist.h> #include "xsldbgmsg.h" @@ -40,50 +40,50 @@ class XsldbgEventDataList : public QGList { public: XsldbgEventDataList(void) {} - XsldbgEventDataList( const XsldbgEventDataList &l ) : QGList(l) {} + XsldbgEventDataList( const XsldbgEventDataList &l ) : TQGList(l) {} ~XsldbgEventDataList(void) { clear(); } XsldbgEventDataList &operator=(const XsldbgEventDataList &l) - { return (XsldbgEventDataList&)QGList::operator=(l); } + { return (XsldbgEventDataList&)TQGList::operator=(l); } bool operator==( const XsldbgEventDataList &list ) const - { return QGList::operator==( list ); } - uint count(void) const { return QGList::count(); } - bool isEmpty(void) const { return QGList::count() == 0; } - bool insert( uint i, const XsldbgEventData *d){ return QGList::insertAt(i,(QPtrCollection::Item)d); } - void inSort( const XsldbgEventData *d ) { QGList::inSort((QPtrCollection::Item)d); } - void prepend( const XsldbgEventData *d ) { QGList::insertAt(0,(QPtrCollection::Item)d); } - void append( const XsldbgEventData *d ) { QGList::append((QPtrCollection::Item)d); } - bool remove( uint i ) { return QGList::removeAt(i); } - bool remove(void) { return QGList::remove((QPtrCollection::Item)0); } - bool remove( const XsldbgEventData *d ) { return QGList::remove((QPtrCollection::Item)d); } - bool removeRef( const XsldbgEventData *d ) { return QGList::removeRef((QPtrCollection::Item)d); } - void removeNode( QLNode *n ) { QGList::removeNode(n); } - bool removeFirst(void) { return QGList::removeFirst(); } - bool removeLast(void) { return QGList::removeLast(); } - XsldbgEventData *take( uint i ) { return (XsldbgEventData *)QGList::takeAt(i); } - XsldbgEventData *take(void) { return (XsldbgEventData *)QGList::take(); } - XsldbgEventData *takeNode( QLNode *n ) { return (XsldbgEventData *)QGList::takeNode(n); } - void clear(void) { QGList::clear(); } - void sort(void) { QGList::sort(); } - int find( const XsldbgEventData *d ) { return QGList::find((QPtrCollection::Item)d); } - int findNext( const XsldbgEventData *d ) { return QGList::find((QPtrCollection::Item)d,FALSE); } - int findRef( const XsldbgEventData *d ) { return QGList::findRef((QPtrCollection::Item)d); } - int findNextRef( const XsldbgEventData *d ){ return QGList::findRef((QPtrCollection::Item)d,FALSE);} - uint contains( const XsldbgEventData *d ) const { return QGList::contains((QPtrCollection::Item)d); } + { return TQGList::operator==( list ); } + uint count(void) const { return TQGList::count(); } + bool isEmpty(void) const { return TQGList::count() == 0; } + bool insert( uint i, const XsldbgEventData *d){ return TQGList::insertAt(i,(TQPtrCollection::Item)d); } + void inSort( const XsldbgEventData *d ) { TQGList::inSort((TQPtrCollection::Item)d); } + void prepend( const XsldbgEventData *d ) { TQGList::insertAt(0,(TQPtrCollection::Item)d); } + void append( const XsldbgEventData *d ) { TQGList::append((TQPtrCollection::Item)d); } + bool remove( uint i ) { return TQGList::removeAt(i); } + bool remove(void) { return TQGList::remove((TQPtrCollection::Item)0); } + bool remove( const XsldbgEventData *d ) { return TQGList::remove((TQPtrCollection::Item)d); } + bool removeRef( const XsldbgEventData *d ) { return TQGList::removeRef((TQPtrCollection::Item)d); } + void removeNode( TQLNode *n ) { TQGList::removeNode(n); } + bool removeFirst(void) { return TQGList::removeFirst(); } + bool removeLast(void) { return TQGList::removeLast(); } + XsldbgEventData *take( uint i ) { return (XsldbgEventData *)TQGList::takeAt(i); } + XsldbgEventData *take(void) { return (XsldbgEventData *)TQGList::take(); } + XsldbgEventData *takeNode( TQLNode *n ) { return (XsldbgEventData *)TQGList::takeNode(n); } + void clear(void) { TQGList::clear(); } + void sort(void) { TQGList::sort(); } + int find( const XsldbgEventData *d ) { return TQGList::find((TQPtrCollection::Item)d); } + int findNext( const XsldbgEventData *d ) { return TQGList::find((TQPtrCollection::Item)d,FALSE); } + int findRef( const XsldbgEventData *d ) { return TQGList::findRef((TQPtrCollection::Item)d); } + int findNextRef( const XsldbgEventData *d ){ return TQGList::findRef((TQPtrCollection::Item)d,FALSE);} + uint contains( const XsldbgEventData *d ) const { return TQGList::contains((TQPtrCollection::Item)d); } uint containsRef( const XsldbgEventData *d ) const - { return QGList::containsRef((QPtrCollection::Item)d); } - XsldbgEventData *at( uint i ) { return (XsldbgEventData *)QGList::at(i); } - int at(void) const { return QGList::at(); } - XsldbgEventData *current(void) const { return (XsldbgEventData *)QGList::get(); } - QLNode *currentNode(void) const { return QGList::currentNode(); } - XsldbgEventData *getFirst(void) const { return (XsldbgEventData *)QGList::cfirst(); } - XsldbgEventData *getLast(void) const { return (XsldbgEventData *)QGList::clast(); } - XsldbgEventData *first(void) { return (XsldbgEventData *)QGList::first(); } - XsldbgEventData *last(void) { return (XsldbgEventData *)QGList::last(); } - XsldbgEventData *next(void) { return (XsldbgEventData *)QGList::next(); } - XsldbgEventData *prev(void) { return (XsldbgEventData *)QGList::prev(); } - void toVector( QGVector *vec )const{ QGList::toVector(vec); } + { return TQGList::containsRef((TQPtrCollection::Item)d); } + XsldbgEventData *at( uint i ) { return (XsldbgEventData *)TQGList::at(i); } + int at(void) const { return TQGList::at(); } + XsldbgEventData *current(void) const { return (XsldbgEventData *)TQGList::get(); } + TQLNode *currentNode(void) const { return TQGList::currentNode(); } + XsldbgEventData *getFirst(void) const { return (XsldbgEventData *)TQGList::cfirst(); } + XsldbgEventData *getLast(void) const { return (XsldbgEventData *)TQGList::clast(); } + XsldbgEventData *first(void) { return (XsldbgEventData *)TQGList::first(); } + XsldbgEventData *last(void) { return (XsldbgEventData *)TQGList::last(); } + XsldbgEventData *next(void) { return (XsldbgEventData *)TQGList::next(); } + XsldbgEventData *prev(void) { return (XsldbgEventData *)TQGList::prev(); } + void toVector( TQGVector *vec )const{ TQGList::toVector(vec); } private: - void deleteItem( QPtrCollection::Item d ); + void deleteItem( TQPtrCollection::Item d ); }; @@ -111,18 +111,18 @@ class XsldbgEventData { * @param column 0 =< @p column < XSLDBGEVENT_COLUMNS * @param text The text value to store in column indicated */ - void setText(int column, QString text); + void setText(int column, TQString text); /** * Get the text from the column specified * - * @returns QString::null if invalid column number + * @returns TQString::null if invalid column number * * @param column 0 =< @p column < XSLDBGEVENT_COLUMNS * */ - QString getText(int column); + TQString getText(int column); /** @@ -146,10 +146,10 @@ class XsldbgEventData { private: /** Below are the messages that this class will support - Values are mapped left to right ie the first QString value maps + Values are mapped left to right ie the first TQString value maps to textValues[0], the second mapps to textValues[1] the third maps to textValues[2] etc.. */ - QString textValues[XSLDBGEVENT_COLUMNS]; + TQString textValues[XSLDBGEVENT_COLUMNS]; /** Both int and bool values are mapped to intValues in the same manner as @@ -158,65 +158,65 @@ class XsldbgEventData { /** - - - - - - The message/signal types supported - - - - - - */ // /** line number and/or file name changed */ - // void lineNoChanged(QString /* fileName */, int /* lineNumber */, bool /* breakpoint */); + // void lineNoChanged(TQString /* fileName */, int /* lineNumber */, bool /* breakpoint */); // These data items are mapped to attributes of this class with the same name // /** Show a message in debugger window */ - // void showMessage(QString /* msg*/); + // void showMessage(TQString /* msg*/); // These data item is mapped to the text attribute - // /** 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*/, + // void breakpointItem(TQString /* fileName*/, int /* lineNumber */, TQString /*templateName*/, // bool /* enabled */, int /* id */); // These data items are mapped to attributes of this class with the same name - // /** 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 */); // These data items are mapped to attributes of this class with the same name - // /** 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 */); // These data items are mapped to attributes of this class with the same name - // /** 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 */); }; @@ -230,7 +230,7 @@ class XsldbgEventData { * * @author Keith Isdale <k_isdale@tpg.com.au> */ -class XsldbgEvent : public QEvent { +class XsldbgEvent : public TQEvent { public: XsldbgEvent(XsldbgMessageEnum type, const void *data); @@ -252,7 +252,7 @@ class XsldbgEvent : public QEvent { /** The following functions are directly related to the eventual signals that will be emitted ie the signal - lineNoChanged(QString, int bool) + lineNoChanged(TQString, int bool) is mapped to handleLineNoChanged(XsldbgEventData *, void *) */ |