summaryrefslogtreecommitdiffstats
path: root/quanta/utility/tagaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:54:04 +0000
commitdc6b8e72fed2586239e3514819238c520636c9d9 (patch)
tree88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/utility/tagaction.cpp
parent6927d4436e54551917f600b706a8d6109e49de1c (diff)
downloadtdewebdev-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 'quanta/utility/tagaction.cpp')
-rw-r--r--quanta/utility/tagaction.cpp232
1 files changed, 116 insertions, 116 deletions
diff --git a/quanta/utility/tagaction.cpp b/quanta/utility/tagaction.cpp
index 98bcf87c..28d37450 100644
--- a/quanta/utility/tagaction.cpp
+++ b/quanta/utility/tagaction.cpp
@@ -21,10 +21,10 @@
//qt includes
-#include <qdir.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qtimer.h>
+#include <tqdir.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqtimer.h>
//kde includes
#include <kapplication.h>
@@ -72,8 +72,8 @@ int MyProcess::commSetupDoneC()
return KProcess::commSetupDoneC();
}
-TagAction::TagAction( QDomElement *element, KMainWindow *parentMainWindow, bool toggle)
- : KToggleAction(element->attribute("text").isEmpty() ? QString("") : i18n(element->attribute("text").utf8()),
+TagAction::TagAction( TQDomElement *element, KMainWindow *parentMainWindow, bool toggle)
+ : KToggleAction(element->attribute("text").isEmpty() ? TQString("") : i18n(element->attribute("text").utf8()),
KShortcut(element->attribute("shortcut")), 0, 0, parentMainWindow->actionCollection(), element->attribute("name")),
//disable toggle now m_toggle(toggle)
m_toggle(false)
@@ -84,31 +84,31 @@ TagAction::TagAction( QDomElement *element, KMainWindow *parentMainWindow, bool
m_useInputFile = false;
m_useOutputFile = false;
tag = element->cloneNode().toElement();
- QString s = tag.attribute("icon");
- if (!QFileInfo(s).exists())
+ TQString s = tag.attribute("icon");
+ if (!TQFileInfo(s).exists())
{
- s = QFileInfo(s).fileName();
+ s = TQFileInfo(s).fileName();
}
setIcon(s);
m_file = 0L;
loopStarted = false;
#if KDE_VERSION >= KDE_MAKE_VERSION(3,4,0)
- connect(this, SIGNAL(activated(KAction::ActivationReason, Qt::ButtonState)),
- SLOT(slotActionActivated(KAction::ActivationReason, Qt::ButtonState)));
+ connect(this, TQT_SIGNAL(activated(KAction::ActivationReason, Qt::ButtonState)),
+ TQT_SLOT(slotActionActivated(KAction::ActivationReason, Qt::ButtonState)));
#else
- connect(this, SIGNAL(activated()), SLOT(slotActionActivated()));
+ connect(this, TQT_SIGNAL(activated()), TQT_SLOT(slotActionActivated()));
#endif
- connect(this, SIGNAL(showMessage(const QString&, bool)), m_parentMainWindow, SIGNAL(showMessage(const QString&, bool)));
- connect(this, SIGNAL(clearMessages()), m_parentMainWindow, SIGNAL(clearMessages()));
- connect(this, SIGNAL(showMessagesView()), m_parentMainWindow, SLOT(slotShowMessagesView()));
- connect(this, SIGNAL(createNewFile()), m_parentMainWindow, SLOT(slotFileNew()));
+ connect(this, TQT_SIGNAL(showMessage(const TQString&, bool)), m_parentMainWindow, TQT_SIGNAL(showMessage(const TQString&, bool)));
+ connect(this, TQT_SIGNAL(clearMessages()), m_parentMainWindow, TQT_SIGNAL(clearMessages()));
+ connect(this, TQT_SIGNAL(showMessagesView()), m_parentMainWindow, TQT_SLOT(slotShowMessagesView()));
+ connect(this, TQT_SIGNAL(createNewFile()), m_parentMainWindow, TQT_SLOT(slotFileNew()));
}
TagAction::~TagAction()
{
}
-QString TagAction::type()
+TQString TagAction::type()
{
return tag.attribute("type","");
}
@@ -125,22 +125,22 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
w->viewCursorIf->cursorPositionReal(&line, &col);
NodeModifsSet* modifs = new NodeModifsSet();
- QString space;
+ TQString space;
space.fill( ' ', col);
- QString type = tag.attribute("type","");
+ TQString type = tag.attribute("type","");
if ( type == "tag" && view->hadLastFocus() == QuantaView::VPLFocus && toggable())
{
KafkaWidget* kafka_widget = KafkaDocument::ref()->getKafkaWidget();
- QString tag_name = XMLTagName();
+ TQString tag_name = XMLTagName();
NodeSelectionInd selection;
selection.fillWithVPLCursorSelection();
Node* start_node = 0, *end_node = 0, *current_node = 0;
int start_offset = 0, end_offset = 0, current_offset = 0;
- QString scope;
+ TQString scope;
if(kafka_widget->hasSelection())
{
// get selection
@@ -217,8 +217,8 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
}
else if(inside_tag == 1)
{
- QString attribute_name(tag.attribute("attribute_name", QString()));
- QString attribute_value(tag.attribute("attribute_value", QString()));
+ TQString attribute_name(tag.attribute("attribute_name", TQString()));
+ TQString attribute_value(tag.attribute("attribute_value", TQString()));
// special case
if(!attribute_name.isEmpty() && !attribute_value.isEmpty())
@@ -235,7 +235,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
if(aux1 == tag_parent && aux2 == tag_parent->getClosingNode())
{
if(tag_parent->tag->attributeValue(attribute_name, true) == attribute_value)
- kafkaCommon::editNodeAttribute(tag_parent, attribute_name, QString(), modifs);
+ kafkaCommon::editNodeAttribute(tag_parent, attribute_name, TQString(), modifs);
else
kafkaCommon::editNodeAttribute(tag_parent, attribute_name, attribute_value, modifs);
}
@@ -255,10 +255,10 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
}
if ( type == "tag" ) {
- QDomElement otag = (tag.namedItem("tag")).toElement();
- QDomElement xtag = (tag.namedItem("xtag")).toElement();
+ TQDomElement otag = (tag.namedItem("tag")).toElement();
+ TQDomElement xtag = (tag.namedItem("xtag")).toElement();
- QString attr = otag.text();
+ TQString attr = otag.text();
if ( attr[0] == '<' )
attr.remove(0,1);
if ( attr.right(1) == ">" )
@@ -266,7 +266,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
attr = attr.stripWhiteSpace();
int i = 0;
while ( !attr[i].isSpace() && !attr[i].isNull() ) i++;
- QString name = attr.left(i);
+ TQString name = attr.left(i);
attr = attr.remove(0,i).stripWhiteSpace();
if (otag.attribute("useDialog","false") == "true" && QuantaCommon::isKnownTag(w->defaultDTD()->name, name))
@@ -275,7 +275,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
}
else
{
- QString s1 = QuantaCommon::tagCase(name);
+ TQString s1 = QuantaCommon::tagCase(name);
if (otag.text().left(1) == "<") s1 = "<"+s1;
if (!attr.isEmpty())
s1 += " "+QuantaCommon::attrCase(attr);
@@ -292,7 +292,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
s1.append(">");
}
- QString s2;
+ TQString s2;
if ( xtag.attribute("use","false") == "true" )
{
if (qConfig.closeTags)
@@ -324,12 +324,12 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
proc = new MyProcess();
proc->setWorkingDirectory(quantaApp->projectBaseURL().path());
- QDomElement script = tag.namedItem("script").toElement();
- QString command = script.text();
+ TQDomElement script = tag.namedItem("script").toElement();
+ TQString command = script.text();
if ( !w->isUntitled() ) {
- QString fname = w->url().url();
+ TQString fname = w->url().url();
if ( w->url().protocol() == "file")
fname = w->url().path();
command.replace("%f", fname );
@@ -338,13 +338,13 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
pid_t pid = ::getpid();
if (kapp->inherits("KUniqueApplication"))
{
- command.replace("%pid", QString("unique %1").arg(pid));
+ command.replace("%pid", TQString("unique %1").arg(pid));
} else
{
- command.replace("%pid", QString("%1").arg(pid));
+ command.replace("%pid", TQString("%1").arg(pid));
}
- QString buffer;
- QString inputType = script.attribute("input","none");
+ TQString buffer;
+ TQString inputType = script.attribute("input","none");
if ( inputType == "current" ) {
buffer = w->editIf->text();
@@ -355,7 +355,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
command.replace("%input", buffer);
command = command.stripWhiteSpace();
int pos = command.find(' ');
- QString args;
+ TQString args;
if (pos != -1)
{
args = command.mid(pos+1);
@@ -364,7 +364,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
if (command.startsWith("~"))
{
command = command.mid(1);
- command.prepend(QDir::homeDirPath());
+ command.prepend(TQDir::homeDirPath());
}
*proc << command.stripWhiteSpace();
@@ -375,7 +375,7 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
while (pos != -1 )
{
pos = args.find("%scriptdir");
- QString scriptname;
+ TQString scriptname;
if (pos != -1)
{
int begin = args.findRev('"', pos);
@@ -410,13 +410,13 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
int pos = args.find("%projectbase");
if (pos != -1)
{
- QString s;
+ TQString s;
if (Project::ref()->hasProject())
s = Project::ref()->projectBaseURL().url();
args.replace("%projectbase", s);
}
- QStringList argsList1 = QStringList::split(' ', args);
- QStringList argsList;
+ TQStringList argsList1 = TQStringList::split(' ', args);
+ TQStringList argsList;
for (uint i = 0; i < argsList1.count(); i++)
{
if (argsList1[i] == "%userarguments")
@@ -434,12 +434,12 @@ bool TagAction::slotActionActivated(KAction::ActivationReason reason, Qt::Button
firstOutput = true;
firstError = true;
- connect( proc, SIGNAL(receivedStdout( KProcess*,char*,int)), this,
- SLOT( slotGetScriptOutput(KProcess*,char*,int)));
- connect( proc, SIGNAL(receivedStderr( KProcess*,char*,int)), this,
- SLOT( slotGetScriptError(KProcess*,char*,int)));
- connect( proc, SIGNAL(processExited( KProcess*)), this,
- SLOT( slotProcessExited(KProcess*)));
+ connect( proc, TQT_SIGNAL(receivedStdout( KProcess*,char*,int)), this,
+ TQT_SLOT( slotGetScriptOutput(KProcess*,char*,int)));
+ connect( proc, TQT_SIGNAL(receivedStderr( KProcess*,char*,int)), this,
+ TQT_SLOT( slotGetScriptError(KProcess*,char*,int)));
+ connect( proc, TQT_SIGNAL(processExited( KProcess*)), this,
+ TQT_SLOT( slotProcessExited(KProcess*)));
@@ -498,21 +498,21 @@ bool TagAction::slotActionActivated()
if ( !view || !view->document())
return false;
- QString space="";
- QString output;
+ TQString space="";
+ TQString output;
unsigned int line, col;
Document *w = view->document();
w->viewCursorIf->cursorPositionReal(&line, &col);
space.fill( ' ', col);
- QString type = tag.attribute("type","");
+ TQString type = tag.attribute("type","");
if ( type == "tag" ) {
- QDomElement otag = (tag.namedItem("tag")).toElement();
- QDomElement xtag = (tag.namedItem("xtag")).toElement();
+ TQDomElement otag = (tag.namedItem("tag")).toElement();
+ TQDomElement xtag = (tag.namedItem("xtag")).toElement();
- QString attr = otag.text();
+ TQString attr = otag.text();
if ( attr[0] == '<' )
attr.remove(0,1);
if ( attr.right(1) == ">" )
@@ -520,7 +520,7 @@ bool TagAction::slotActionActivated()
attr = attr.stripWhiteSpace();
int i = 0;
while ( !attr[i].isSpace() && !attr[i].isNull() ) i++;
- QString name = attr.left(i);
+ TQString name = attr.left(i);
attr = attr.remove(0,i).stripWhiteSpace();
if (otag.attribute("useDialog","false") == "true" && QuantaCommon::isKnownTag(w->defaultDTD()->name, name))
@@ -529,7 +529,7 @@ bool TagAction::slotActionActivated()
}
else
{
- QString s1 = QuantaCommon::tagCase(name);
+ TQString s1 = QuantaCommon::tagCase(name);
if (otag.text().left(1) == "<") s1 = "<"+s1;
if (!attr.isEmpty())
s1 += " "+QuantaCommon::attrCase(attr);
@@ -546,7 +546,7 @@ bool TagAction::slotActionActivated()
s1.append(">");
}
- QString s2;
+ TQString s2;
if ( xtag.attribute("use","false") == "true" )
{
if (qConfig.closeTags)
@@ -578,12 +578,12 @@ bool TagAction::slotActionActivated()
proc = new MyProcess();
proc->setWorkingDirectory(quantaApp->projectBaseURL().path());
- QDomElement script = tag.namedItem("script").toElement();
- QString command = script.text();
+ TQDomElement script = tag.namedItem("script").toElement();
+ TQString command = script.text();
if ( !w->isUntitled() ) {
- QString fname = w->url().url();
+ TQString fname = w->url().url();
if ( w->url().protocol() == "file")
fname = w->url().path();
command.replace("%f", fname );
@@ -592,13 +592,13 @@ bool TagAction::slotActionActivated()
pid_t pid = ::getpid();
if (kapp->inherits("KUniqueApplication"))
{
- command.replace("%pid", QString("unique %1").arg(pid));
+ command.replace("%pid", TQString("unique %1").arg(pid));
} else
{
- command.replace("%pid", QString("%1").arg(pid));
+ command.replace("%pid", TQString("%1").arg(pid));
}
- QString buffer;
- QString inputType = script.attribute("input","none");
+ TQString buffer;
+ TQString inputType = script.attribute("input","none");
if ( inputType == "current" ) {
buffer = w->editIf->text();
@@ -609,7 +609,7 @@ bool TagAction::slotActionActivated()
command.replace("%input", buffer);
command = command.stripWhiteSpace();
int pos = command.find(' ');
- QString args;
+ TQString args;
if (pos != -1)
{
args = command.mid(pos+1);
@@ -618,7 +618,7 @@ bool TagAction::slotActionActivated()
if (command.startsWith("~"))
{
command = command.mid(1);
- command.prepend(QDir::homeDirPath());
+ command.prepend(TQDir::homeDirPath());
}
*proc << command.stripWhiteSpace();
@@ -629,7 +629,7 @@ bool TagAction::slotActionActivated()
while (pos != -1 )
{
pos = args.find("%scriptdir");
- QString scriptname;
+ TQString scriptname;
if (pos != -1)
{
int begin = args.findRev('"', pos);
@@ -664,13 +664,13 @@ bool TagAction::slotActionActivated()
int pos = args.find("%projectbase");
if (pos != -1)
{
- QString s;
+ TQString s;
if (Project::ref()->hasProject())
s = Project::ref()->projectBaseURL().url();
args.replace("%projectbase", s);
}
- QStringList argsList1 = QStringList::split(' ', args);
- QStringList argsList;
+ TQStringList argsList1 = TQStringList::split(' ', args);
+ TQStringList argsList;
for (uint i = 0; i < argsList1.count(); i++)
{
if (argsList1[i] == "%userarguments")
@@ -688,12 +688,12 @@ bool TagAction::slotActionActivated()
firstOutput = true;
firstError = true;
- connect( proc, SIGNAL(receivedStdout( KProcess*,char*,int)), this,
- SLOT( slotGetScriptOutput(KProcess*,char*,int)));
- connect( proc, SIGNAL(receivedStderr( KProcess*,char*,int)), this,
- SLOT( slotGetScriptError(KProcess*,char*,int)));
- connect( proc, SIGNAL(processExited( KProcess*)), this,
- SLOT( slotProcessExited(KProcess*)));
+ connect( proc, TQT_SIGNAL(receivedStdout( KProcess*,char*,int)), this,
+ TQT_SLOT( slotGetScriptOutput(KProcess*,char*,int)));
+ connect( proc, TQT_SIGNAL(receivedStderr( KProcess*,char*,int)), this,
+ TQT_SLOT( slotGetScriptError(KProcess*,char*,int)));
+ connect( proc, TQT_SIGNAL(processExited( KProcess*)), this,
+ TQT_SLOT( slotProcessExited(KProcess*)));
@@ -742,8 +742,8 @@ bool TagAction::slotActionActivated()
void TagAction::slotGetScriptOutput( KProcess *, char *buffer, int buflen )
{
- QCString tmp( buffer, buflen + 1 );
- QString text( QString::fromLocal8Bit(tmp) );
+ TQCString tmp( buffer, buflen + 1 );
+ TQString text( TQString::fromLocal8Bit(tmp) );
// kdDebug(24000) << "Script output received: |" << text << "|" << endl;
Document *w = ViewManager::ref()->activeDocument();
if (!w)
@@ -804,8 +804,8 @@ void TagAction::slotGetScriptOutput( KProcess *, char *buffer, int buflen )
void TagAction::slotGetScriptError( KProcess *, char *buffer, int buflen )
{
Document *w = ViewManager::ref()->activeDocument();
- QCString tmp( buffer, buflen + 1 );
- QString text( QString::fromLocal8Bit(tmp) );
+ TQCString tmp( buffer, buflen + 1 );
+ TQString text( TQString::fromLocal8Bit(tmp) );
if ( scriptErrorDest == "merge" )
{
@@ -861,19 +861,19 @@ void TagAction::scriptDone()
proc = 0;
}
-void TagAction::setOutputFile(QFile* file)
+void TagAction::setOutputFile(TQFile* file)
{
m_file = file;
}
-void TagAction::setInputFileName(const QString& fileName)
+void TagAction::setInputFileName(const TQString& fileName)
{
m_inputFileName = fileName;
}
-QString TagAction::actionText()
+TQString TagAction::actionText()
{
- QString t = tag.attribute("text");
+ TQString t = tag.attribute("text");
int pos = t.find('&');
if (pos < (int)t.length()-1 && t[pos+1] != '&')
return t.remove(pos, 1);
@@ -881,15 +881,15 @@ QString TagAction::actionText()
return t;
}
-QString TagAction::XMLTagName() const
+TQString TagAction::XMLTagName() const
{
if(tag.attribute("type","").lower() != "tag")
- return QString();
+ return TQString();
- QDomElement otag = (tag.namedItem("tag")).toElement();
- QDomElement xtag = (tag.namedItem("xtag")).toElement();
+ TQDomElement otag = (tag.namedItem("tag")).toElement();
+ TQDomElement xtag = (tag.namedItem("xtag")).toElement();
- QString attr = otag.text();
+ TQString attr = otag.text();
if ( attr[0] == '<' )
attr.remove(0,1);
if ( attr.right(1) == ">" )
@@ -898,19 +898,19 @@ QString TagAction::XMLTagName() const
int i = 0;
while ( !attr[i].isSpace() && !attr[i].isNull() )
++i;
- QString name = attr.left(i);
+ TQString name = attr.left(i);
return name;
}
-QString TagAction::openXMLTagString() const
+TQString TagAction::openXMLTagString() const
{
- QString name = XMLTagName();
+ TQString name = XMLTagName();
- QDomElement otag = (tag.namedItem("tag")).toElement();
- QDomElement xtag = (tag.namedItem("xtag")).toElement();
+ TQDomElement otag = (tag.namedItem("tag")).toElement();
+ TQDomElement xtag = (tag.namedItem("xtag")).toElement();
- QString attr = otag.text();
+ TQString attr = otag.text();
if ( attr[0] == '<' )
attr.remove(0,1);
if ( attr.right(1) == ">" )
@@ -918,7 +918,7 @@ QString TagAction::openXMLTagString() const
attr = attr.stripWhiteSpace();
attr.remove(0, name.length());
- QString s1 = QuantaCommon::tagCase(name);
+ TQString s1 = QuantaCommon::tagCase(name);
if (otag.text().left(1) == "<") s1 = "<"+s1;
if (!attr.isEmpty())
s1 += " "+QuantaCommon::attrCase(attr);
@@ -939,10 +939,10 @@ QString TagAction::openXMLTagString() const
return s1;
}
-QString TagAction::closeXMLTagString() const
+TQString TagAction::closeXMLTagString() const
{
- QString s2;
- QDomElement xtag = (tag.namedItem("xtag")).toElement();
+ TQString s2;
+ TQDomElement xtag = (tag.namedItem("xtag")).toElement();
if ( xtag.attribute("use","false") == "true" )
{
if (qConfig.closeTags)
@@ -974,7 +974,7 @@ void TagAction::slotProcessExited(KProcess *process)
delete process;
}
-void TagAction::addArguments(const QStringList &arguments)
+void TagAction::addArguments(const TQStringList &arguments)
{
m_argsList = arguments;
}
@@ -990,8 +990,8 @@ void TagAction::execute(bool blocking)
if (slotActionActivated())
{
//To avoid lock-ups, start a timer.
- timer = new QTimer(this);
- connect(timer, SIGNAL(timeout()), SLOT(slotTimeout()));
+ timer = new TQTimer(this);
+ connect(timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout()));
timer->start(180*1000, true);
QExtFileInfo internalFileInfo;
loopStarted = true;
@@ -1038,10 +1038,10 @@ void TagAction::applyTagInSelection(Node* start_node, int start_offset, Node* en
Q_ASSERT(view->hadLastFocus() == QuantaView::VPLFocus);
Q_ASSERT(toggable());
- QString tag_name = XMLTagName();
+ TQString tag_name = XMLTagName();
Q_ASSERT(kafkaCommon::isInsideTag(start_node, end_node, tag_name) == -1);
- QString open_tag = openXMLTagString();
+ TQString open_tag = openXMLTagString();
//We build the node from the tag name
Node* node = kafkaCommon::createNode("", "", Tag::XmlTag, w);
@@ -1066,7 +1066,7 @@ void TagAction::applyTagInSelection(Node* start_node, int start_offset, Node* en
if (!nodeQTag) return;
bool specialTagInsertion = false;
- QPtrList<QTag> qTagList = nodeQTag->parents();
+ TQPtrList<QTag> qTagList = nodeQTag->parents();
QTag* qTag = 0;
for (qTag = qTagList.first(); qTag; qTag = qTagList.next())
{
@@ -1128,7 +1128,7 @@ void TagAction::applyTagInMixedSelection(Node* start_node, int start_offset, Nod
{
Q_ASSERT(start_node != end_node);
- QString const tag_name = XMLTagName();
+ TQString const tag_name = XMLTagName();
// FIXME o pai pode ser do endNode. nao sei se esta merda eh precisa
/* Node* tag_parent = kafkaCommon::hasParent(start_node, tag_name);
@@ -1142,8 +1142,8 @@ void TagAction::applyTagInMixedSelection(Node* start_node, int start_offset, Nod
end_node = kafkaCommon::getCorrectEndNode(end_node, end_offset);
// look for commonParent
- QValueList<int> commonParentStartChildLocation;
- QValueList<int> commonParentEndChildLocation;
+ TQValueList<int> commonParentStartChildLocation;
+ TQValueList<int> commonParentEndChildLocation;
Node* commonParent = kafkaCommon::DTDGetCommonParent(start_node, end_node, commonParentStartChildLocation, commonParentEndChildLocation, 0);
if(!commonParent) return;
@@ -1159,7 +1159,7 @@ void TagAction::applyTagInMixedSelection(Node* start_node, int start_offset, Nod
// kafkaCommon::coutTree(baseNode, 3);
//We build the node from the tag name
- QString const open_tag_string = openXMLTagString();
+ TQString const open_tag_string = openXMLTagString();
Node* new_node = kafkaCommon::createNode("", "", Tag::XmlTag, w);
new_node->tag->parse(open_tag_string, w);
new_node->tag->name = QuantaCommon::tagCase(new_node->tag->name);
@@ -1211,15 +1211,15 @@ void TagAction::deapplyTagInSelection(Node* start_node, int start_offset, Node*
// QuantaView *view = ViewManager::ref()->activeView();
// Document* w = view->document();
- QString const tag_name = XMLTagName();
+ TQString const tag_name = XMLTagName();
// Set start and end nodes to the correct node
start_node = kafkaCommon::getCorrectStartNode(start_node, start_offset);
end_node = kafkaCommon::getCorrectEndNode(end_node, end_offset);
// look for commonParent
- QValueList<int> commonParentStartChildLocation;
- QValueList<int> commonParentEndChildLocation;
+ TQValueList<int> commonParentStartChildLocation;
+ TQValueList<int> commonParentEndChildLocation;
Node* commonParent = kafkaCommon::DTDGetCommonParent(start_node, end_node, commonParentStartChildLocation, commonParentEndChildLocation, 0);
if(!commonParent) return;
@@ -1235,12 +1235,12 @@ void TagAction::deapplyTagInSelection(Node* start_node, int start_offset, Node*
Node* tag_parent = kafkaCommon::hasParent(start_node, end_node, tag_name);
Q_ASSERT(tag_parent);
- QString attribute_name(tag.attribute("attribute_name", QString()));
- QString attribute_value(tag.attribute("attribute_value", QString()));
+ TQString attribute_name(tag.attribute("attribute_name", TQString()));
+ TQString attribute_value(tag.attribute("attribute_value", TQString()));
if(!attribute_name.isEmpty() && !attribute_value.isEmpty())
{
- kafkaCommon::editNodeAttribute(tag_parent, attribute_name, QString(), modifs);
+ kafkaCommon::editNodeAttribute(tag_parent, attribute_name, TQString(), modifs);
}
else