X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fundoable.cpp;h=aef2f026e53835b2b9a8c4e12f6f8beebff531e9;hb=2ee84c5948ede7fc2f7b4435c5edef42a030ac05;hp=04b8501ab408679b1fd9ebd352c6ba19ba9d97c9;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/undoable.cpp b/src/base/undoable.cpp index 04b8501..aef2f02 100644 --- a/src/base/undoable.cpp +++ b/src/base/undoable.cpp @@ -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*/) { }