/**
* @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...
* 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);
}
/**
* 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);
/**
* Iteration through undoable elements in this item.
*/
-RS_Undoable * RS_UndoCycle::getFirstUndoable()
+Undoable * UndoCycle::getFirstUndoable()
{
// return undoables.first();
undoableIterator.toFront();
/**
* 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: ";
}*/
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