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/xsldbgconfigimpl.cpp | |
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/xsldbgconfigimpl.cpp')
-rw-r--r-- | kxsldbg/kxsldbgpart/xsldbgconfigimpl.cpp | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/kxsldbg/kxsldbgpart/xsldbgconfigimpl.cpp b/kxsldbg/kxsldbgpart/xsldbgconfigimpl.cpp index dd62b1ec..19c6bb66 100644 --- a/kxsldbg/kxsldbgpart/xsldbgconfigimpl.cpp +++ b/kxsldbg/kxsldbgpart/xsldbgconfigimpl.cpp @@ -18,17 +18,17 @@ #include <klocale.h> #include <kfiledialog.h> -#include <qdialog.h> -#include <qlineedit.h> -#include <qcheckbox.h> -#include <qmessagebox.h> +#include <tqdialog.h> +#include <tqlineedit.h> +#include <tqcheckbox.h> +#include <tqmessagebox.h> #include "xsldbgconfigimpl.h" #include "xsldbgdebugger.h" #include <kdebug.h> -LibxsltParam::LibxsltParam(const QString &name, const QString &value) - : QObject(0L, 0L) +LibxsltParam::LibxsltParam(const TQString &name, const TQString &value) + : TQObject(0L, 0L) { _name = name; _value = value; @@ -40,24 +40,24 @@ LibxsltParam::~LibxsltParam() } -QString LibxsltParam::getName() const +TQString LibxsltParam::getName() const { return _name; } -void LibxsltParam::setName(const QString &name) +void LibxsltParam::setName(const TQString &name) { _name = name; } -QString LibxsltParam::getValue() const +TQString LibxsltParam::getValue() const { return _value; } -void LibxsltParam::setValue(const QString & value) +void LibxsltParam::setValue(const TQString & value) { _value = value; } @@ -74,14 +74,14 @@ bool LibxsltParam::isValid() const XsldbgConfigImpl::XsldbgConfigImpl(XsldbgDebugger *debugger, - QWidget *parent /*=0*/, const char *name /*=0*/) + TQWidget *parent /*=0*/, const char *name /*=0*/) : XsldbgConfig(parent, name) { this->debugger = debugger; - connect(debugger, SIGNAL(parameterItem(QString /* name*/, QString /* value */)), - this, SLOT(slotProcParameterItem(QString /* name*/, QString /* value */))); - connect(debugger, SIGNAL(fileDetailsChanged()), - this, SLOT(slotReloadFileNames())); + connect(debugger, TQT_SIGNAL(parameterItem(TQString /* name*/, TQString /* value */)), + this, TQT_SLOT(slotProcParameterItem(TQString /* name*/, TQString /* value */))); + connect(debugger, TQT_SIGNAL(fileDetailsChanged()), + this, TQT_SLOT(slotReloadFileNames())); paramIndex= 0; catalogs = false; debug = false; @@ -96,30 +96,30 @@ XsldbgConfigImpl::~XsldbgConfigImpl() } -QString XsldbgConfigImpl::getSourceFile() +TQString XsldbgConfigImpl::getSourceFile() { if (xslSourceEdit != 0L) return xslSourceEdit->text(); else - return QString(); + return TQString(); } -QString XsldbgConfigImpl::getDataFile() +TQString XsldbgConfigImpl::getDataFile() { if (xmlDataEdit != 0L) return xmlDataEdit->text(); else - return QString(); + return TQString(); } -QString XsldbgConfigImpl::getOutputFile() +TQString XsldbgConfigImpl::getOutputFile() { if (outputFileEdit != 0L) return outputFileEdit->text(); else - return QString(); + return TQString(); } @@ -128,7 +128,7 @@ LibxsltParam *XsldbgConfigImpl::getParam(int paramNumber) return paramList.at(paramNumber); } -LibxsltParam *XsldbgConfigImpl::getParam(QString name) +LibxsltParam *XsldbgConfigImpl::getParam(TQString name) { LibxsltParam *param = 0L; for (param = paramList.first(); param != 0L; param = paramList.next()) @@ -147,7 +147,7 @@ int XsldbgConfigImpl::getParamCount() } -void XsldbgConfigImpl::addParam(QString name, QString value) +void XsldbgConfigImpl::addParam(TQString name, TQString value) { LibxsltParam *param; if ((name.length() == 0) || (value.length() == 0)) @@ -165,7 +165,7 @@ void XsldbgConfigImpl::addParam(QString name, QString value) } -void XsldbgConfigImpl::deleteParam(QString name) +void XsldbgConfigImpl::deleteParam(TQString name) { bool isOk = false; LibxsltParam *param; @@ -177,13 +177,13 @@ void XsldbgConfigImpl::deleteParam(QString name) isOk = paramList.remove(param); if (isOk == false) - kdDebug() << QString(" Param %1 dosn't exist").arg(name) << endl; + kdDebug() << TQString(" Param %1 dosn't exist").arg(name) << endl; else kdDebug() << "Deleted param " << name << endl; } -bool XsldbgConfigImpl::isValid(QString &errorMsg) +bool XsldbgConfigImpl::isValid(TQString &errorMsg) { bool isOK = true; errorMsg = ""; @@ -205,7 +205,7 @@ bool XsldbgConfigImpl::isValid(QString &errorMsg) // make it a warning when parameters are invalid LibxsltParam *param; - QString emptyParams = ""; + TQString emptyParams = ""; for (param = paramList.first(); param != 0L; param = paramList.next()) { if (!param->isValid()){ @@ -228,7 +228,7 @@ bool XsldbgConfigImpl::isValid(QString &errorMsg) /*we previously said that isValid() == true so we must commit our changes */ void XsldbgConfigImpl::update() { - QString msg; + TQString msg; if (debugger == 0L) return; @@ -325,7 +325,7 @@ void XsldbgConfigImpl::refresh() } -void XsldbgConfigImpl::slotSourceFile(QString xslFile) +void XsldbgConfigImpl::slotSourceFile(TQString xslFile) { if (debugger->start() == false) return ; /* User has killed xsldbg and we can't restart it */ @@ -333,12 +333,12 @@ void XsldbgConfigImpl::slotSourceFile(QString xslFile) if (debugger->sourceFileName() == xslFile) return; - QString msg("source "); + TQString msg("source "); msg.append(XsldbgDebugger::fixLocalPaths(xslFile)); debugger->fakeInput(msg, true); } -void XsldbgConfigImpl::slotDataFile(QString xmlFile) +void XsldbgConfigImpl::slotDataFile(TQString xmlFile) { if (debugger->start() == false) return ; /* User has killed xsldbg and we can't restart it */ @@ -346,12 +346,12 @@ void XsldbgConfigImpl::slotDataFile(QString xmlFile) if (debugger->dataFileName() == xmlFile) return; - QString msg("data "); + TQString msg("data "); msg.append(XsldbgDebugger::fixLocalPaths(xmlFile)); debugger->fakeInput(msg, true); } -void XsldbgConfigImpl::slotOutputFile(QString outputFile) +void XsldbgConfigImpl::slotOutputFile(TQString outputFile) { if (debugger->start() == false) return ; /* User has killed xsldbg and we can't restart it */ @@ -359,16 +359,16 @@ void XsldbgConfigImpl::slotOutputFile(QString outputFile) if (debugger->outputFileName() == outputFile) return; - QString msg("output "); + TQString msg("output "); msg.append(XsldbgDebugger::fixLocalPaths(outputFile)); debugger->fakeInput(msg, true); } void XsldbgConfigImpl::slotChooseSourceFile() { - KURL url = KFileDialog::getOpenURL(QString::null, "*.xsl; *.XSL; *.Xsl ; *.xslt; *.XSLT; *.Xslt \n *.*", this, + KURL url = KFileDialog::getOpenURL(TQString::null, "*.xsl; *.XSL; *.Xsl ; *.xslt; *.XSLT; *.Xslt \n *.*", this, i18n("Choose XSL Source to Debug")); - QString fileName = url.prettyURL(); + TQString fileName = url.prettyURL(); if ((!fileName.isNull()) && (fileName.length() > 0)){ xslSourceEdit->setText(XsldbgDebugger::fixLocalPaths(fileName)); @@ -378,9 +378,9 @@ void XsldbgConfigImpl::slotChooseSourceFile() void XsldbgConfigImpl::slotChooseDataFile() { - KURL url = KFileDialog::getOpenURL(QString::null, "*.xml; *.XML; *.Xml \n*.docbook \n *.html;*.HTML; *.htm ; *HTM \n *.*", this, + KURL url = KFileDialog::getOpenURL(TQString::null, "*.xml; *.XML; *.Xml \n*.docbook \n *.html;*.HTML; *.htm ; *HTM \n *.*", this, i18n("Choose XML Data to Debug")); - QString fileName = url.prettyURL(); + TQString fileName = url.prettyURL(); if ((!fileName.isNull()) && (fileName.length() > 0)) xmlDataEdit->setText(XsldbgDebugger::fixLocalPaths(fileName)); @@ -389,9 +389,9 @@ void XsldbgConfigImpl::slotChooseDataFile() void XsldbgConfigImpl::slotChooseOutputFile() { - KURL url = KFileDialog::getSaveURL(QString::null, "*.xml; *.XML; *.Xml \n*.docbook \n *.txt; *.TXT \n *.htm;*.HTM;*.htm;*.HTML \n*.*", this, + KURL url = KFileDialog::getSaveURL(TQString::null, "*.xml; *.XML; *.Xml \n*.docbook \n *.txt; *.TXT \n *.htm;*.HTM;*.htm;*.HTML \n*.*", this, i18n("Choose Output File for XSL Transformation")); - QString fileName; + TQString fileName; if (url.isLocalFile()){ fileName = url.prettyURL(); @@ -456,7 +456,7 @@ void XsldbgConfigImpl::slotPrevParam() repaintParam(); } -void XsldbgConfigImpl::slotProcParameterItem(QString name, QString value) +void XsldbgConfigImpl::slotProcParameterItem(TQString name, TQString value) { if (name.isNull()){ paramList.clear(); @@ -478,15 +478,15 @@ void XsldbgConfigImpl::slotApply() { // Validate the users choices before applying it - QString msg; + TQString msg; if (isValid(msg)){ if (!msg.isEmpty()) - QMessageBox::information(this, i18n("Suspect Configuration"), - msg, QMessageBox::Ok); + TQMessageBox::information(this, i18n("Suspect Configuration"), + msg, TQMessageBox::Ok); update(); }else{ - QMessageBox::information(this, i18n("Incomplete or Invalid Configuration"), - msg, QMessageBox::Ok); + TQMessageBox::information(this, i18n("Incomplete or Invalid Configuration"), + msg, TQMessageBox::Ok); } } |