#include <iostream>
#include <QtCore>
-class RS_Undoable;
+class Undoable;
/**
* An Undo Cycle represents an action that was triggered and can
* the action. Undoables are entities in a container that can be
* created and deleted.
*
- * Undo Cycles are stored within classes derrived from RS_Undo.
+ * Undo Cycles are stored within classes derrived from Undo.
*
- * @see RS_Undoable
- * @see RS_Undo
+ * @see Undoable
+ * @see Undo
*
* @author Andrew Mustun
*/
-class RS_UndoCycle
+class UndoCycle
{
- friend class RS_Undo;
+ friend class Undo;
public:
- RS_UndoCycle(/*RS2::UndoType type*/);
- void addUndoable(RS_Undoable * u);
- void removeUndoable(RS_Undoable * u);
- RS_Undoable * getFirstUndoable();
- RS_Undoable * getNextUndoable();
- friend std::ostream & operator<<(std::ostream & os, RS_UndoCycle & i);
+ UndoCycle(/*RS2::UndoType type*/);
+ void addUndoable(Undoable * u);
+ void removeUndoable(Undoable * u);
+ Undoable * getFirstUndoable();
+ Undoable * getNextUndoable();
+ friend std::ostream & operator<<(std::ostream & os, UndoCycle & i);
private:
//! Undo type:
//RS2::UndoType type;
//! List of entity id's that were affected by this action
-// Q3PtrList<RS_Undoable> undoables;
- QList<RS_Undoable *> undoables;
- QListIterator<RS_Undoable *> undoableIterator;
+// Q3PtrList<Undoable> undoables;
+ QList<Undoable *> undoables;
+ QListIterator<Undoable *> undoableIterator;
};
#endif