diff options
Diffstat (limited to 'kommander/widget/functionlib.cpp')
-rw-r--r-- | kommander/widget/functionlib.cpp | 248 |
1 files changed, 124 insertions, 124 deletions
diff --git a/kommander/widget/functionlib.cpp b/kommander/widget/functionlib.cpp index d763ff96..416207b7 100644 --- a/kommander/widget/functionlib.cpp +++ b/kommander/widget/functionlib.cpp @@ -26,10 +26,10 @@ #include <iostream> #include <stdlib.h> -#include <qfile.h> -#include <qtextstream.h> -#include <qstringlist.h> -#include <qmetaobject.h> +#include <tqfile.h> +#include <tqtextstream.h> +#include <tqstringlist.h> +#include <tqmetaobject.h> #include <kdebug.h> #include <kmessagebox.h> @@ -57,7 +57,7 @@ static ParseNode f_stringContains(Parser*, const ParameterList& params) static ParseNode f_stringCompare(Parser*, const ParameterList& params) { - int result = QString::compare(params[0].toString(),params[1].toString()); + int result = TQString::compare(params[0].toString(),params[1].toString()); if (result < 0) { result = -1; @@ -163,7 +163,7 @@ static ParseNode f_return(Parser* p, const ParameterList& params) static ParseNode f_stringRound(Parser*, const ParameterList& params) { - QString s; + TQString s; s.sprintf("%."+params[1].toString()+"f", params[0].toDouble()); return s; } @@ -191,22 +191,22 @@ static ParseNode f_echo(Parser*, const ParameterList& params) /******************* File function ********************************/ static ParseNode f_fileRead(Parser*, const ParameterList& params) { - QFile file(params[0].toString()); + TQFile file(params[0].toString()); if (!file.exists() || !file.open(IO_ReadOnly)) return ParseNode(""); - QTextStream text(&file); + TQTextStream text(&file); return text.read(); } static ParseNode f_fileWrite(Parser*, const ParameterList& params) { - QString fname = params[0].toString(); + TQString fname = params[0].toString(); if (fname.isEmpty()) return 0; - QFile file(fname); + TQFile file(fname); if (!file.open(IO_WriteOnly)) return 0; - QTextStream text(&file); + TQTextStream text(&file); for (uint i=1; i<params.count(); i++) text << params[i].toString(); return 1; @@ -214,13 +214,13 @@ static ParseNode f_fileWrite(Parser*, const ParameterList& params) static ParseNode f_fileAppend(Parser*, const ParameterList& params) { - QString fname = params[0].toString(); + TQString fname = params[0].toString(); if (fname.isEmpty()) return 0; - QFile file(fname); + TQFile file(fname); if (!file.open(IO_WriteOnly | IO_Append)) return 0; - QTextStream text(&file); + TQTextStream text(&file); for (uint i=1; i<params.count(); i++) text << params[i].toString(); return 1; @@ -228,7 +228,7 @@ static ParseNode f_fileAppend(Parser*, const ParameterList& params) static ParseNode f_fileExists(Parser*, const ParameterList& params) { - QFile file(params[0].toString()); + TQFile file(params[0].toString()); if (!file.exists()) return 0; else @@ -238,20 +238,20 @@ static ParseNode f_fileExists(Parser*, const ParameterList& params) static ParseNode f_executeSlot(Parser* parser, const ParameterList& params) { ParameterList::ConstIterator it = params.begin(); - QString slotName = (*it).toString()+"("; + TQString slotName = (*it).toString()+"("; ++it; - QString widgetName = (*it).toString(); + TQString widgetName = (*it).toString(); KommanderWidget* widget = parser->currentWidget(); if (!widget) return ParseNode::error("unknown widget"); widget = widget->widgetByName(widgetName); if (!widget) return ParseNode::error("unknown widget"); - QObject *object = widget->object(); + TQObject *object = widget->object(); if (!object) return ParseNode::error("unknown widget"); - QStrList slotSignatures = object->metaObject()->slotNames(true); - QStringList slotNames = QStringList::fromStrList(slotSignatures); + TQStrList slotSignatures = object->metaObject()->slotNames(true); + TQStringList slotNames = TQStringList::fromStrList(slotSignatures); int slotNum = -1; uint i = 0; while (i < slotNames.count()) @@ -265,7 +265,7 @@ static ParseNode f_executeSlot(Parser* parser, const ParameterList& params) } if (slotNum == -1) return ParseNode::error("unknown function"); - QStringList args; + TQStringList args; ++it; // skip widget while (it != params.end()) { @@ -283,17 +283,17 @@ static ParseNode f_executeSlot(Parser* parser, const ParameterList& params) /******************* DCOP function ********************************/ static ParseNode f_dcopid(Parser*, const ParameterList& ) { - return QString(kapp->dcopClient()->appId()); + return TQString(kapp->dcopClient()->appId()); } static ParseNode f_pid(Parser*, const ParameterList& ) { - return QString::number(getpid()); + return TQString::number(getpid()); } static ParseNode f_parentPid(Parser*p, const ParameterList& ) { - return p->variable("_PARENTPID").toString().isEmpty() ? QString::number(getppid()) : p->variable("_PARENTPID"); + return p->variable("_PARENTPID").toString().isEmpty() ? TQString::number(getppid()) : p->variable("_PARENTPID"); } static ParseNode f_internalDcop(Parser* parser, const ParameterList& params) @@ -312,7 +312,7 @@ static ParseNode f_internalDcop(Parser* parser, const ParameterList& params) widget = widget->widgetByName(params[1].toString()); if (!widget) return ParseNode::error("unknown widget"); - QStringList args; + TQStringList args; ParameterList::ConstIterator it = params.begin(); ++it; // skip function ++it; // skip widget @@ -327,12 +327,12 @@ static ParseNode f_internalDcop(Parser* parser, const ParameterList& params) static ParseNode f_dcop(Parser*, const ParameterList& params) { - QCString appId = params[0].toString().latin1(); - QCString object = params[1].toString().latin1(); - QString function = params[2].toString().section('(', 0, 0); - QStringList items = QStringList::split(",", params[2].toString().section('(', 1, 1).section(')', 0, 0)); - QByteArray byteData; - QDataStream byteDataStream(byteData, IO_WriteOnly); + TQCString appId = params[0].toString().latin1(); + TQCString object = params[1].toString().latin1(); + TQString function = params[2].toString().section('(', 0, 0); + TQStringList items = TQStringList::split(",", params[2].toString().section('(', 1, 1).section(')', 0, 0)); + TQByteArray byteData; + TQDataStream byteDataStream(byteData, IO_WriteOnly); if (items.count() != params.count() - 3) { @@ -340,7 +340,7 @@ static ParseNode f_dcop(Parser*, const ParameterList& params) return ParseNode(); } int i = 3; - for (QStringList::Iterator it = items.begin(); it != items.end(); ++it) + for (TQStringList::Iterator it = items.begin(); it != items.end(); ++it) { *it = (*it).stripWhiteSpace(); if (*it == "int") @@ -353,16 +353,16 @@ static ParseNode f_dcop(Parser*, const ParameterList& params) byteDataStream << params[i++].toDouble(); else if (*it == "bool") byteDataStream << (bool)params[i++].toInt(); - else if (*it == "QStringList") + else if (*it == "TQStringList") if (params[i].toString().find('\n') != -1) - byteDataStream << QStringList::split("\n", params[i++].toString(), true); + byteDataStream << TQStringList::split("\n", params[i++].toString(), true); else - byteDataStream << QStringList::split("\\n", params[i++].toString(), true); + byteDataStream << TQStringList::split("\\n", params[i++].toString(), true); else byteDataStream << params[i++].toString(); } - function.append(QString("(%1)").arg(items.join(","))); - QCString replyType, byteReply; + function.append(TQString("(%1)").arg(items.join(","))); + TQCString replyType, byteReply; DCOPClient* cl = KApplication::dcopClient(); if (!cl || !cl->call(appId, object, function.latin1(), byteData, replyType, byteReply)) @@ -370,10 +370,10 @@ static ParseNode f_dcop(Parser*, const ParameterList& params) qDebug("DCOP failure"); return ParseNode(); } - QDataStream byteReplyStream(byteReply, IO_ReadOnly); - if (replyType == "QString") + TQDataStream byteReplyStream(byteReply, IO_ReadOnly); + if (replyType == "TQString") { - QString text; + TQString text; byteReplyStream >> text; return text; } @@ -389,15 +389,15 @@ static ParseNode f_dcop(Parser*, const ParameterList& params) byteReplyStream >> b; return b; } - else if (replyType == "QStringList") + else if (replyType == "TQStringList") { - QStringList text; + TQStringList text; byteReplyStream >> text; return text.join("\n"); } else if(replyType != "void") { - qDebug("%s", QString("DCOP return type %1 is not yet implemented.").arg(replyType.data()).latin1()); + qDebug("%s", TQString("DCOP return type %1 is not yet implemented.").arg(replyType.data()).latin1()); } return ParseNode(); @@ -405,14 +405,14 @@ static ParseNode f_dcop(Parser*, const ParameterList& params) static ParseNode f_createWidget(Parser* p, const ParameterList& params) { - QString widgetName = params[0].toString(); - QString widgetType = params[1].toString(); - QString parentName = params[2].toString(); + TQString widgetName = params[0].toString(); + TQString widgetType = params[1].toString(); + TQString parentName = params[2].toString(); KommanderWidget *widget = p->currentWidget()->widgetByName(parentName); if (!widget) return ParseNode::error("unknown widget"); - QWidget *parent = dynamic_cast<QWidget*>(widget->object()); - QWidget *w = KommanderFactory::createWidget(widgetType, parent, widgetName.latin1()); + TQWidget *parent = dynamic_cast<TQWidget*>(widget->object()); + TQWidget *w = KommanderFactory::createWidget(widgetType, parent, widgetName.latin1()); if (w) w->adjustSize(); return ParseNode(); @@ -420,7 +420,7 @@ static ParseNode f_createWidget(Parser* p, const ParameterList& params) static ParseNode f_widgetExists(Parser* p, const ParameterList& params) { - QString widgetName = params[0].toString(); + TQString widgetName = params[0].toString(); KommanderWidget *widget = p->currentWidget()->widgetByName(widgetName); return (widget ? true : false); } @@ -428,33 +428,33 @@ static ParseNode f_widgetExists(Parser* p, const ParameterList& params) static ParseNode f_connect(Parser* p, const ParameterList& params) { - QString sender = params[0].toString(); - QString signal = QString::number(QSIGNAL_CODE) + params[1].toString(); - QString receiver = params[2].toString(); - QString slot = QString::number(QSLOT_CODE) + params[3].toString(); + TQString sender = params[0].toString(); + TQString signal = TQString::number(QSIGNAL_CODE) + params[1].toString(); + TQString receiver = params[2].toString(); + TQString slot = TQString::number(QSLOT_CODE) + params[3].toString(); KommanderWidget *senderW = p->currentWidget()->widgetByName(sender); if (!senderW) return ParseNode::error("unknown widget"); KommanderWidget *receiverW = p->currentWidget()->widgetByName(receiver); if (!receiverW) return ParseNode::error("unknown widget"); - dynamic_cast<QObject*>(senderW)->connect(dynamic_cast<QObject*>(senderW), signal.ascii(), dynamic_cast<QObject*>(receiverW), slot.ascii()); + dynamic_cast<TQObject*>(senderW)->connect(dynamic_cast<TQObject*>(senderW), signal.ascii(), dynamic_cast<TQObject*>(receiverW), slot.ascii()); return ParseNode(); } static ParseNode f_disconnect(Parser* p, const ParameterList& params) { - QString sender = params[0].toString(); - QString signal = QString::number(QSIGNAL_CODE) + params[1].toString(); - QString receiver = params[2].toString(); - QString slot = QString::number(QSLOT_CODE) + params[3].toString(); + TQString sender = params[0].toString(); + TQString signal = TQString::number(QSIGNAL_CODE) + params[1].toString(); + TQString receiver = params[2].toString(); + TQString slot = TQString::number(QSLOT_CODE) + params[3].toString(); KommanderWidget *senderW = p->currentWidget()->widgetByName(sender); if (!senderW) return ParseNode::error("unknown widget"); KommanderWidget *receiverW = p->currentWidget()->widgetByName(receiver); if (!receiverW) return ParseNode::error("unknown widget"); - dynamic_cast<QObject*>(senderW)->disconnect(dynamic_cast<QObject*>(senderW), signal.ascii(), dynamic_cast<QObject*>(receiverW), slot.ascii()); + dynamic_cast<TQObject*>(senderW)->disconnect(dynamic_cast<TQObject*>(senderW), signal.ascii(), dynamic_cast<TQObject*>(receiverW), slot.ascii()); return ParseNode(); } @@ -462,7 +462,7 @@ static ParseNode f_disconnect(Parser* p, const ParameterList& params) static ParseNode f_exec(Parser* P, const ParameterList& params) { MyProcess proc(P->currentWidget()); - QString text; + TQString text; // qDebug("Trying %s", params[0].toString().latin1()); if (params.count() > 1) text = proc.run(params[0].toString().local8Bit(), params[1].toString()); @@ -475,7 +475,7 @@ static ParseNode f_execBackground(Parser* P, const ParameterList& params) { MyProcess proc(P->currentWidget()); proc.setBlocking(false); - QString text; + TQString text; qDebug("Trying %s", params[0].toString().latin1()); if (params.count() > 1) text = proc.run(params[0].toString().local8Bit(), params[1].toString()); @@ -486,23 +486,23 @@ static ParseNode f_execBackground(Parser* P, const ParameterList& params) static ParseNode f_dialog(Parser* P, const ParameterList& params) { - QString a_dialog = params[0].toString().local8Bit(); - QString a_params = params[1].toString().local8Bit(); + TQString a_dialog = params[0].toString().local8Bit(); + TQString a_params = params[1].toString().local8Bit(); - QString pFileName = P->currentWidget()->global("_KDDIR") + QString("/") + a_dialog; - QFileInfo pDialogFile(pFileName); + TQString pFileName = P->currentWidget()->global("_KDDIR") + TQString("/") + a_dialog; + TQFileInfo pDialogFile(pFileName); if (!pDialogFile.exists()) { pFileName = a_dialog; pDialogFile.setFile(pFileName); if (!pDialogFile.exists()) - return QString(); + return TQString(); } - QString cmd = QString("kmdr-executor %1 %2 _PARENTPID=%3 _PARENTDCOPID=kmdr-executor-%4") + TQString cmd = TQString("kmdr-executor %1 %2 _PARENTPID=%3 _PARENTDCOPID=kmdr-executor-%4") .arg(pFileName).arg(a_params).arg(getpid()).arg(getpid()); MyProcess proc(P->currentWidget()); - QString text; + TQString text; text = proc.run(cmd); return text; @@ -515,7 +515,7 @@ static ParseNode f_i18n(Parser*, const ParameterList& params) static ParseNode f_env(Parser*, const ParameterList& params) { - return QString(getenv(params[0].toString().latin1())); + return TQString(getenv(params[0].toString().latin1())); } /******************* Array functions ********************************/ @@ -537,16 +537,16 @@ static ParseNode f_arrayKeys(Parser* P, const ParameterList& params) { if (!P->isArray(params[0].toString())) return ParseNode(); - return QStringList(P->array(params[0].toString()).keys()).join("\n"); + return TQStringList(P->array(params[0].toString()).keys()).join("\n"); } static ParseNode f_arrayValues(Parser* P, const ParameterList& params) { if (!P->isArray(params[0].toString())) return ParseNode(); - QValueList<ParseNode> values = P->array(params[0].toString()).values(); - QString array; - for (QValueList<ParseNode>::ConstIterator it = values.begin(); it != values.end(); ++it ) + TQValueList<ParseNode> values = P->array(params[0].toString()).values(); + TQString array; + for (TQValueList<ParseNode>::ConstIterator it = values.begin(); it != values.end(); ++it ) array += (*it).toString() + '\n'; return array; } @@ -560,18 +560,18 @@ static ParseNode f_arrayRemove(Parser* P, const ParameterList& params) static ParseNode f_arrayToString(Parser* P, const ParameterList& params) { - QString name = params[0].toString(); + TQString name = params[0].toString(); if (!P->isArray(name)) return ParseNode(); - QString array; - QStringList keys = P->array(name).keys(); - QValueList<ParseNode> values = P->array(name).values(); + TQString array; + TQStringList keys = P->array(name).keys(); + TQValueList<ParseNode> values = P->array(name).values(); - QStringList::Iterator it = keys.begin(); - QValueList<ParseNode>::Iterator itval = values.begin(); + TQStringList::Iterator it = keys.begin(); + TQValueList<ParseNode>::Iterator itval = values.begin(); while (*it) { - array += QString("%1\t%2\n").arg(*it).arg((*itval).toString()); + array += TQString("%1\t%2\n").arg(*it).arg((*itval).toString()); ++it; ++itval; } @@ -580,11 +580,11 @@ static ParseNode f_arrayToString(Parser* P, const ParameterList& params) static ParseNode f_arrayFromString(Parser* P, const ParameterList& params) { - QString name = params[0].toString(); - QStringList lines = QStringList::split("\n", params[1].toString()); - for (QStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) + TQString name = params[0].toString(); + TQStringList lines = TQStringList::split("\n", params[1].toString()); + for (TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) { - QString key = (*it).section('\t', 0, 0).stripWhiteSpace(); + TQString key = (*it).section('\t', 0, 0).stripWhiteSpace(); if (!key.isEmpty()) P->setArray(name, key, (*it).section('\t', 1)); } @@ -594,16 +594,16 @@ static ParseNode f_arrayFromString(Parser* P, const ParameterList& params) static ParseNode f_arrayIndexedFromString(Parser* P, const ParameterList& params) { - QString name = params[0].toString(); - QStringList lines; + TQString name = params[0].toString(); + TQStringList lines; if (params.count() == 2) - lines = QStringList::split('\t', params[1].toString(), true); + lines = TQStringList::split('\t', params[1].toString(), true); else - lines = QStringList::split(params[2].toString(), params[1].toString(), true); + lines = TQStringList::split(params[2].toString(), params[1].toString(), true); int i = 0; - for (QStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) + for (TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it ) { - P->setArray(name, QString::number(i), (*it)); + P->setArray(name, TQString::number(i), (*it)); i++; } return ParseNode(); @@ -611,28 +611,28 @@ static ParseNode f_arrayIndexedFromString(Parser* P, const ParameterList& params static ParseNode f_arrayIndexedToString(Parser* P, const ParameterList& params) { - QString name = params[0].toString(); + TQString name = params[0].toString(); if (!P->isArray(name)) return ParseNode(); - QString separator = "\t"; + TQString separator = "\t"; if (params.count() == 2) separator = params[1].toString(); - QString array; + TQString array; int count = P->array(name).keys().count(); - QValueList<ParseNode> values = P->array(name).values(); + TQValueList<ParseNode> values = P->array(name).values(); for (int i = 0; i < count; i++) { if (i != 0) array.append(separator); - array.append(P->arrayValue(name, QString::number(i)).toString()); + array.append(P->arrayValue(name, TQString::number(i)).toString()); } return array; } static ParseNode f_arrayIndexedRemoveElements(Parser* P, const ParameterList& params) { - QString name = params[0].toString(); + TQString name = params[0].toString(); if (!P->isArray(name)) return ParseNode(); int key = params[1].toInt(); @@ -641,29 +641,29 @@ static ParseNode f_arrayIndexedRemoveElements(Parser* P, const ParameterList& pa num = params[2].toInt() - 1; if (num < 0) num = 0; - QString array; - QStringList keys = P->array(name).keys(); + TQString array; + TQStringList keys = P->array(name).keys(); int count = keys.count(); if (key + num > count - 1 || key < 0) return ParseNode(); //out of index range for (int i = 0; i < count; i++) { - if (keys.contains(QString::number(i)) != 1) + if (keys.contains(TQString::number(i)) != 1) return ParseNode(); //array is not indexed } for (int i = key; i <= key + num; i++) { - P->unsetArray(name, QString::number(i)); + P->unsetArray(name, TQString::number(i)); } int j = key; for (int i = key + num + 1; i < count; i++) { - P->setArray(name, QString::number(j), P->arrayValue(name, QString::number(i))); + P->setArray(name, TQString::number(j), P->arrayValue(name, TQString::number(i))); j++; } for (int i = 1; i <= num + 1; i++) { - P->unsetArray(name, QString::number(count - i)); + P->unsetArray(name, TQString::number(count - i)); } return ParseNode(); } @@ -671,27 +671,27 @@ static ParseNode f_arrayIndexedRemoveElements(Parser* P, const ParameterList& pa static ParseNode f_arrayIndexedInsertElements(Parser* P, const ParameterList& params) { - QString name = params[0].toString(); + TQString name = params[0].toString(); if (!P->isArray(name)) return ParseNode(); int key = params[1].toInt(); - QStringList keys = P->array(name).keys(); + TQStringList keys = P->array(name).keys(); int count = keys.count(); if (key > count || key < 0) return ParseNode(); //out of index range - QString separator = "\t"; + TQString separator = "\t"; if (params.count() == 4) separator = params[3].toString(); - QStringList elements = QStringList::split(separator, params[2].toString(), true); + TQStringList elements = TQStringList::split(separator, params[2].toString(), true); int num = elements.count(); for (int i = count - 1; i >= key; i--) { - P->setArray(name, QString::number(i + num), P->arrayValue(name, QString::number(i))); + P->setArray(name, TQString::number(i + num), P->arrayValue(name, TQString::number(i))); } int i = key; - for (QStringList::Iterator it = elements.begin(); it != elements.end(); ++it ) + for (TQStringList::Iterator it = elements.begin(); it != elements.end(); ++it ) { - P->setArray(name, QString::number(i), (*it)); + P->setArray(name, TQString::number(i), (*it)); i++; } return ParseNode(); @@ -700,7 +700,7 @@ static ParseNode f_arrayIndexedInsertElements(Parser* P, const ParameterList& pa /********** input functions *********************/ static ParseNode f_inputColor(Parser*, const ParameterList& params) { - QColor color; + TQColor color; if (params.count()) color.setNamedColor(params[0].toString()); KColorDialog::getColor(color); @@ -709,7 +709,7 @@ static ParseNode f_inputColor(Parser*, const ParameterList& params) static ParseNode f_inputText(Parser*, const ParameterList& params) { - QString value; + TQString value; if (params.count() > 2) value = params[2].toString(); return KInputDialog::getText(params[0].toString(), params[1].toString(), value); @@ -717,11 +717,11 @@ static ParseNode f_inputText(Parser*, const ParameterList& params) static ParseNode f_inputPassword(Parser*, const ParameterList& params) { - QCString value; + TQCString value; if (params.count() > 1) value = params[1].toString().local8Bit(); KPasswordDialog::getPassword(value, params[0].toString()); - return QString::fromLocal8Bit(value); + return TQString::fromLocal8Bit(value); } static ParseNode f_inputValue(Parser*, const ParameterList& params) @@ -741,7 +741,7 @@ static ParseNode f_inputValueDouble(Parser*, const ParameterList& params) static ParseNode f_inputOpenFile(Parser*, const ParameterList& params) { - QString startdir, filter, caption; + TQString startdir, filter, caption; if (params.count() > 0) startdir = params[0].toString(); if (params.count() > 1) @@ -753,7 +753,7 @@ static ParseNode f_inputOpenFile(Parser*, const ParameterList& params) static ParseNode f_inputOpenFiles(Parser*, const ParameterList& params) { - QString startdir, filter, caption; + TQString startdir, filter, caption; if (params.count() > 0) startdir = params[0].toString(); if (params.count() > 1) @@ -765,7 +765,7 @@ static ParseNode f_inputOpenFiles(Parser*, const ParameterList& params) static ParseNode f_inputSaveFile(Parser*, const ParameterList& params) { - QString startdir, filter, caption; + TQString startdir, filter, caption; if (params.count() > 0) startdir = params[0].toString(); if (params.count() > 1) @@ -777,7 +777,7 @@ static ParseNode f_inputSaveFile(Parser*, const ParameterList& params) static ParseNode f_inputDirectory(Parser*, const ParameterList& params) { - QString startdir, caption; + TQString startdir, caption; if (params.count() > 0) startdir = params[0].toString(); if (params.count() > 1) @@ -787,7 +787,7 @@ static ParseNode f_inputDirectory(Parser*, const ParameterList& params) static ParseNode f_message_info(Parser*, const ParameterList& params) { - QString text, caption; + TQString text, caption; if (params.count() > 0) text = params[0].toString(); if (params.count() > 1) @@ -798,7 +798,7 @@ static ParseNode f_message_info(Parser*, const ParameterList& params) static ParseNode f_message_error(Parser*, const ParameterList& params) { - QString text, caption; + TQString text, caption; if (params.count() > 0) text = params[0].toString(); if (params.count() > 1) @@ -810,7 +810,7 @@ static ParseNode f_message_error(Parser*, const ParameterList& params) static ParseNode f_message_warning(Parser*, const ParameterList& params) { int result; - QString text, caption, button1, button2, button3; + TQString text, caption, button1, button2, button3; if (params.count() > 0) text = params[0].toString(); if (params.count() > 1) @@ -843,7 +843,7 @@ static ParseNode f_message_warning(Parser*, const ParameterList& params) static ParseNode f_message_question(Parser*, const ParameterList& params) { int result; - QString text, caption, button1, button2, button3; + TQString text, caption, button1, button2, button3; if (params.count() > 0) text = params[0].toString(); if (params.count() > 1) @@ -875,12 +875,12 @@ static ParseNode f_message_question(Parser*, const ParameterList& params) static ParseNode f_read_setting(Parser* parser, const ParameterList& params) { - QString def; + TQString def; if (params.count() > 1) def = params[1].toString(); if (parser->currentWidget()) { - QString fname = parser->currentWidget()->fileName(); + TQString fname = parser->currentWidget()->fileName(); if (fname.isEmpty()) return ParseNode(); KConfig cfg("kommanderrc", true); @@ -894,7 +894,7 @@ static ParseNode f_write_setting(Parser* parser, const ParameterList& params) { if (parser->currentWidget()) { - QString fname = parser->currentWidget()->fileName(); + TQString fname = parser->currentWidget()->fileName(); if (fname.isEmpty()) return ParseNode(); KConfig cfg("kommanderrc", false); |