summaryrefslogtreecommitdiffstats
path: root/quanta/parts/kafka/undoredo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parts/kafka/undoredo.cpp')
-rw-r--r--quanta/parts/kafka/undoredo.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/quanta/parts/kafka/undoredo.cpp b/quanta/parts/kafka/undoredo.cpp
index 7ca12718..dfe07142 100644
--- a/quanta/parts/kafka/undoredo.cpp
+++ b/quanta/parts/kafka/undoredo.cpp
@@ -16,9 +16,9 @@
***************************************************************************/
//debug only
-#include <qdatetime.h>
+#include <tqdatetime.h>
//end debug only
-#include <qtabwidget.h>
+#include <tqtabwidget.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -174,9 +174,9 @@ void undoRedo::addNewModifsSet(NodeModifsSet *modifs, int modifLocation, NodeSel
kdDebug(25001)<< "undoRedo::addNewModifsSet() - NodeModifsSet type: " << modifLocation << endl;
#endif
- QValueList<NodeModif>::iterator it2;
+ TQValueList<NodeModif>::iterator it2;
NodeModifsSet *NMSet;
- QValueList<int> loc;
+ TQValueList<int> loc;
int curFocus, foo, foo2;
int diff, diff2;
NodeSelectionInd *nodeSelection;
@@ -233,7 +233,7 @@ void undoRedo::addNewModifsSet(NodeModifsSet *modifs, int modifLocation, NodeSel
if(modifs->nodeModifList().count() >= 1 && modifs->indentationStartOffset() == 1 &&
modifs->nodeModifList().at(0)->type() == NodeModif::NodeModified)
{
- QPtrListIterator<NodeModifsSet> it(m_undoList);
+ TQPtrListIterator<NodeModifsSet> it(m_undoList);
it = documentIterator;
if((*it) && (*it)->nodeModifList().count() >= 1 && (*it)->indentationStartOffset() == 1 &&
(*it)->nodeModifList().at(0)->type() == NodeModif::NodeModified &&
@@ -354,12 +354,12 @@ bool undoRedo::undo()
#ifdef LIGHT_DEBUG
kdDebug(25001)<< "undoRedo::undo()"<< endl;
- QTime t;
+ TQTime t;
t.start();
#endif
if(documentIterator.isEmpty() || !(*documentIterator))
return false;
- QPtrListIterator<NodeModif> it((*documentIterator)->nodeModifList());
+ TQPtrListIterator<NodeModif> it((*documentIterator)->nodeModifList());
it.toLast();
while(*it)
@@ -393,7 +393,7 @@ bool undoRedo::undo()
//Update the modified flag
m_doc->setModified((*documentIterator)->isModifiedBefore());
- QPtrListIterator<NodeModifsSet> currentIt(documentIterator);
+ TQPtrListIterator<NodeModifsSet> currentIt(documentIterator);
--documentIterator;
//TEMP: Reload the kafka editor TODO: update only the modified Nodes
@@ -420,7 +420,7 @@ bool undoRedo::redo()
bool success = true;
#ifdef LIGHT_DEBUG
- QTime t;
+ TQTime t;
t.start();
kdDebug(25001)<< "undoRedo::redo()" << endl;
#endif
@@ -432,7 +432,7 @@ bool undoRedo::redo()
else
++documentIterator;
- QPtrListIterator<NodeModif> it((*documentIterator)->nodeModifList());
+ TQPtrListIterator<NodeModif> it((*documentIterator)->nodeModifList());
it.toFirst();
while(*it)
@@ -486,7 +486,7 @@ bool undoRedo::redo()
bool undoRedo::undoNodeModif(NodeModif *nodeModif)
{
Node *node, *newNode;
- QValueList<int> ref;
+ TQValueList<int> ref;
Tag *tag;
bool b;
@@ -547,7 +547,7 @@ bool undoRedo::undoNodeModif(NodeModif *nodeModif)
// No node at this location, getting the parent Node and appending newNode after
// the last child of the parent.
ref = nodeModif->location();
- QValueList<int> loc(ref);
+ TQValueList<int> loc(ref);
loc.remove(loc.fromLast());
if(loc.empty())
{
@@ -584,7 +584,7 @@ bool undoRedo::undoNodeModif(NodeModif *nodeModif)
bool undoRedo::redoNodeModif(NodeModif *nodeModif)
{
bool success;
- QValueList<int> tmp;
+ TQValueList<int> tmp;
//To do the opposite action of undoNodeModif(), we simply have
//to change the type of nodeModif
@@ -907,7 +907,7 @@ void undoRedo::reloadKafkaEditor(bool force, NodeSelection *selection)
void undoRedo::reloadQuantaEditor(bool force, bool syncQuantaCursor, bool encodeText)
{
- QString text, allText;
+ TQString text, allText;
Node *node = baseNode, *child;
int bCol, bLine, eCol, eLine, bCol2, bLine2, bCol3, bLine3, eCol3, eLine3, i;
KafkaDocument *kafkaInterface = KafkaDocument::ref();
@@ -1096,8 +1096,8 @@ bool undoRedo::syncKafkaView()
#ifdef LIGHT_DEBUG
kdDebug(25001)<< "undoRedo::syncKafkaView()" << endl;
#endif
- /** QValueList<NodeModifsSet>::iterator it;
- QValueList<NodeModif>::iterator it2;
+ /** TQValueList<NodeModifsSet>::iterator it;
+ TQValueList<NodeModif>::iterator it2;
bool undoKafkaView = true;
if(kafkaIterator == sourceIterator)
@@ -1250,8 +1250,8 @@ bool undoRedo::syncQuantaView()
#ifdef LIGHT_DEBUG
kdDebug(25001)<< "undoRedo::syncQuantaView()" << endl;
#endif
- /**QValueList<NodeModifsSet>::iterator it;
- QValueList<NodeModif>::iterator it2;
+ /**TQValueList<NodeModifsSet>::iterator it;
+ TQValueList<NodeModif>::iterator it2;
bool undoQuantaView = true;
if(kafkaIterator == sourceIterator)
@@ -1431,7 +1431,7 @@ void undoRedo::debugOutput()
kdDebug(24000)<< "Empty!" << endl;
return;
}
- QPtrListIterator<NodeModifsSet> it(m_undoList);
+ TQPtrListIterator<NodeModifsSet> it(m_undoList);
for(it.toFirst(); it ; ++it )
{
kdDebug(24000)<< "== Node Modifications set #" << i << "(" << (*it)->isModifiedBefore() << "," <<
@@ -1445,12 +1445,12 @@ void undoRedo::debugOutput()
}
//kdDebug(24000)<< "== Cursor Pos: " << (*it).cursorY << ":" << (*it).cursorX << endl;
//kdDebug(24000)<< "== Cursor Pos2:" << (*it).cursorY2 << ":" << (*it).cursorX2 << endl;
- QPtrListIterator<NodeModif> it2((*it)->nodeModifList());
+ TQPtrListIterator<NodeModif> it2((*it)->nodeModifList());
for(it2.toFirst(); it2; ++it2)
{
kdDebug(24000)<< "==== NodeModif type:" << (*it2)->type() << endl;
kdDebug(24000)<< "==== Location1: " << endl;
- QValueList<int>::iterator it3;
+ TQValueList<int>::iterator it3;
if((*it2)->location().empty())
{
kdDebug(24000)<< "==== Empty location!!" << endl;
@@ -1492,7 +1492,7 @@ void undoRedo::debugOutput()
void undoRedo::fileSaved()
{
- QPtrListIterator<NodeModifsSet> it(m_undoList);
+ TQPtrListIterator<NodeModifsSet> it(m_undoList);
bool previousWasDocIt = false;
for(it.toFirst(); it ; ++it )
{
@@ -1515,7 +1515,7 @@ void undoRedo::fileSaved()
}
}
/**
- QValueList<NodeModifsSet>::iterator it = sourceIterator;
+ TQValueList<NodeModifsSet>::iterator it = sourceIterator;
(*sourceIterator).isModified = false;
//seting isModified = true to all others
while(it != begin())