From dc6b8e72fed2586239e3514819238c520636c9d9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:54:04 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/parts/kafka/undoredo.cpp | 46 ++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'quanta/parts/kafka/undoredo.cpp') 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 +#include //end debug only -#include +#include #include #include @@ -174,9 +174,9 @@ void undoRedo::addNewModifsSet(NodeModifsSet *modifs, int modifLocation, NodeSel kdDebug(25001)<< "undoRedo::addNewModifsSet() - NodeModifsSet type: " << modifLocation << endl; #endif - QValueList::iterator it2; + TQValueList::iterator it2; NodeModifsSet *NMSet; - QValueList loc; + TQValueList 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 it(m_undoList); + TQPtrListIterator 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 it((*documentIterator)->nodeModifList()); + TQPtrListIterator it((*documentIterator)->nodeModifList()); it.toLast(); while(*it) @@ -393,7 +393,7 @@ bool undoRedo::undo() //Update the modified flag m_doc->setModified((*documentIterator)->isModifiedBefore()); - QPtrListIterator currentIt(documentIterator); + TQPtrListIterator 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 it((*documentIterator)->nodeModifList()); + TQPtrListIterator it((*documentIterator)->nodeModifList()); it.toFirst(); while(*it) @@ -486,7 +486,7 @@ bool undoRedo::redo() bool undoRedo::undoNodeModif(NodeModif *nodeModif) { Node *node, *newNode; - QValueList ref; + TQValueList 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 loc(ref); + TQValueList 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 tmp; + TQValueList 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::iterator it; - QValueList::iterator it2; + /** TQValueList::iterator it; + TQValueList::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::iterator it; - QValueList::iterator it2; + /**TQValueList::iterator it; + TQValueList::iterator it2; bool undoQuantaView = true; if(kafkaIterator == sourceIterator) @@ -1431,7 +1431,7 @@ void undoRedo::debugOutput() kdDebug(24000)<< "Empty!" << endl; return; } - QPtrListIterator it(m_undoList); + TQPtrListIterator 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 it2((*it)->nodeModifList()); + TQPtrListIterator it2((*it)->nodeModifList()); for(it2.toFirst(); it2; ++it2) { kdDebug(24000)<< "==== NodeModif type:" << (*it2)->type() << endl; kdDebug(24000)<< "==== Location1: " << endl; - QValueList::iterator it3; + TQValueList::iterator it3; if((*it2)->location().empty()) { kdDebug(24000)<< "==== Empty location!!" << endl; @@ -1492,7 +1492,7 @@ void undoRedo::debugOutput() void undoRedo::fileSaved() { - QPtrListIterator it(m_undoList); + TQPtrListIterator it(m_undoList); bool previousWasDocIt = false; for(it.toFirst(); it ; ++it ) { @@ -1515,7 +1515,7 @@ void undoRedo::fileSaved() } } /** - QValueList::iterator it = sourceIterator; + TQValueList::iterator it = sourceIterator; (*sourceIterator).isModified = false; //seting isModified = true to all others while(it != begin()) -- cgit v1.2.1