X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fundocycle.cpp;h=b2058b8f60e2046543fc806c9d15a3b3db736898;hb=5adb444f3e523d3fd028617ced72d1ea6661db21;hp=979911aca70227e66ff71d991a63f45e7cc290ad;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/undocycle.cpp b/src/base/undocycle.cpp index 979911a..b2058b8 100644 --- a/src/base/undocycle.cpp +++ b/src/base/undocycle.cpp @@ -22,7 +22,7 @@ /** * @param type Type of undo item. */ -RS_UndoCycle::RS_UndoCycle(/*RS2::UndoType type*/): undoableIterator(undoables) +UndoCycle::UndoCycle(/*RS2::UndoType type*/): undoableIterator(undoables) { //this->type = type; // Good, we don't have to worry about this... @@ -33,7 +33,7 @@ RS_UndoCycle::RS_UndoCycle(/*RS2::UndoType type*/): undoableIterator(undoables) * Adds an Undoable to this Undo Cycle. Every Cycle can contain one or * more Undoables. */ -void RS_UndoCycle::addUndoable(RS_Undoable * u) +void UndoCycle::addUndoable(Undoable * u) { undoables.append(u); } @@ -41,7 +41,7 @@ void RS_UndoCycle::addUndoable(RS_Undoable * u) /** * Removes an undoable from the list. */ -void RS_UndoCycle::removeUndoable(RS_Undoable * u) +void UndoCycle::removeUndoable(Undoable * u) { // undoables.remove(u); int i = undoables.indexOf(u); @@ -51,7 +51,7 @@ void RS_UndoCycle::removeUndoable(RS_Undoable * u) /** * Iteration through undoable elements in this item. */ -RS_Undoable * RS_UndoCycle::getFirstUndoable() +Undoable * UndoCycle::getFirstUndoable() { // return undoables.first(); undoableIterator.toFront(); @@ -61,13 +61,13 @@ RS_Undoable * RS_UndoCycle::getFirstUndoable() /** * Iteration through undoable elements in this item. */ -RS_Undoable * RS_UndoCycle::getNextUndoable() +Undoable * UndoCycle::getNextUndoable() { // return undoables.next(); return undoableIterator.next(); } -/*friend*/ std::ostream & operator<<(std::ostream & os, RS_UndoCycle & i) +/*friend*/ std::ostream & operator<<(std::ostream & os, UndoCycle & i) { os << " Undo item: " << "\n"; //os << " Type: "; @@ -81,11 +81,11 @@ RS_Undoable * RS_UndoCycle::getNextUndoable() }*/ os << " Undoable ids: "; - for(RS_Undoable * u=i.getFirstUndoable(); u!=NULL; u=i.getNextUndoable()) + for(Undoable * u=i.getFirstUndoable(); u!=NULL; u=i.getNextUndoable()) { if (u->undoRtti() == RS2::UndoableEntity) { - RS_Entity * e = (RS_Entity *)u; + Entity * e = (Entity *)u; os << e->getId() << (u->isUndone() ? "*" : "") << " "; } else