]> Shamusworld >> Repos - architektonas/blobdiff - src/base/undocycle.cpp
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / undocycle.cpp
index 979911aca70227e66ff71d991a63f45e7cc290ad..b2058b8f60e2046543fc806c9d15a3b3db736898 100644 (file)
@@ -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