]> Shamusworld >> Repos - architektonas/blobdiff - src/base/undoable.cpp
Removed unnecessary RS_ prefix from classes and whatnot.
[architektonas] / src / base / undoable.cpp
index 04b8501ab408679b1fd9ebd352c6ba19ba9d97c9..aef2f026e53835b2b9a8c4e12f6f8beebff531e9 100644 (file)
@@ -21,7 +21,7 @@
 /**
  * Default constructor.
  */
-RS_Undoable::RS_Undoable()
+Undoable::Undoable()
 {
        cycle = NULL;
 }
@@ -30,7 +30,7 @@ RS_Undoable::RS_Undoable()
  * Destructor. Makes sure that this undoable is removed from
  * its undo cycle before it is deleted.
  */
-RS_Undoable::~RS_Undoable()
+Undoable::~Undoable()
 {
        if (cycle != NULL)
                cycle->removeUndoable(this);
@@ -41,7 +41,7 @@ RS_Undoable::~RS_Undoable()
  * Note that this is voluntarily. The default implementation
  * returns RS2::UndoableUnknown.
  */
-/*virtual*/ RS2::UndoableType RS_Undoable::undoRtti()
+/*virtual*/ RS2::UndoableType Undoable::undoRtti()
 {
        return RS2::UndoableUnknown;
 }
@@ -51,7 +51,7 @@ RS_Undoable::~RS_Undoable()
  * make sure the entity can remove itself from the cycle before
  * being deleted.
  */
-void RS_Undoable::setUndoCycle(RS_UndoCycle * cycle)
+void Undoable::setUndoCycle(UndoCycle * cycle)
 {
        this->cycle = cycle;
 }
@@ -60,7 +60,7 @@ void RS_Undoable::setUndoCycle(RS_UndoCycle * cycle)
  * The undoable thing gets activated if it was undone and
  * deactivated otherwise.
  */
-void RS_Undoable::changeUndoState()
+void Undoable::changeUndoState()
 {
        toggleFlag(RS2::FlagUndone);
        undoStateChanged(isUndone());
@@ -69,7 +69,7 @@ void RS_Undoable::changeUndoState()
 /**
  * Undoes or redoes an undoable.
  */
-void RS_Undoable::setUndoState(bool undone)
+void Undoable::setUndoState(bool undone)
 {
        if (undone)
                setFlag(RS2::FlagUndone);
@@ -82,7 +82,7 @@ void RS_Undoable::setUndoState(bool undone)
 /**
  * Is this entity in the Undo memory and not active?
  */
-bool RS_Undoable::isUndone() const
+bool Undoable::isUndone() const
 {
        return getFlag(RS2::FlagUndone);
 }
@@ -91,6 +91,6 @@ bool RS_Undoable::isUndone() const
  * Can be overwriten by the implementing class to be notified
  * when the undo state changes (the undoable becomes visible / invisible).
  */
-/*virtual*/ void RS_Undoable::undoStateChanged(bool /*undone*/)
+/*virtual*/ void Undoable::undoStateChanged(bool /*undone*/)
 {
 }