X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fundo.h;fp=src%2Fbase%2Fundo.h;h=1d8b17974a592529ba5da3f98f9202421c7a57a2;hb=16354e0421b316a62c6b9f7b0b4f3b8cf6f06284;hp=f464d52e784674a6661069b157d991d10265195b;hpb=3239ef39dcee08fa6e8cd68cdf2727fc68cc7a8c;p=architektonas diff --git a/src/base/undo.h b/src/base/undo.h index f464d52..1d8b179 100644 --- a/src/base/undo.h +++ b/src/base/undo.h @@ -6,30 +6,30 @@ /** * Undo / redo functionality. The internal undo list consists of - * RS_UndoCycle entries. + * UndoCycle entries. * - * @see RS_UndoCycle + * @see UndoCycle * @author Andrew Mustun */ -class RS_Undo +class Undo { public: - RS_Undo(); - virtual ~RS_Undo(); + Undo(); + virtual ~Undo(); - void addUndoCycle(RS_UndoCycle * i); + void addUndoCycle(UndoCycle * i); virtual void undo(); virtual void redo(); - virtual RS_UndoCycle * getUndoCycle(); - virtual RS_UndoCycle * getRedoCycle(); + virtual UndoCycle * getUndoCycle(); + virtual UndoCycle * getRedoCycle(); virtual int countUndoCycles(); virtual int countRedoCycles(); virtual void startUndoCycle(); - virtual void addUndoable(RS_Undoable * u); + virtual void addUndoable(Undoable * u); virtual void endUndoCycle(); /** @@ -37,9 +37,9 @@ public: * the given Undoable (unrecoverable). This method is called * for Undoables that are no longer in the undo buffer. */ - virtual void removeUndoable(RS_Undoable * u) = 0; + virtual void removeUndoable(Undoable * u) = 0; - friend std::ostream & operator<<(std::ostream & os, RS_Undo & a); + friend std::ostream & operator<<(std::ostream & os, Undo & a); #ifdef RS_TEST static bool test(void); @@ -47,8 +47,8 @@ public: protected: //! List of undo list items. every item is something that can be undone. -// Q3PtrList undoList; - QList undoList; +// Q3PtrList undoList; + QList undoList; /** * Index that points to the current position in the undo list. @@ -61,16 +61,16 @@ public: /** * Current undo cycle. */ - RS_UndoCycle * currentCycle; + UndoCycle * currentCycle; }; #ifdef RS_TEST /** - * Stub for testing the RS_Undo class. + * Stub for testing the Undo class. */ -class RS_UndoStub : public RS_Undo +class UndoStub : public Undo { - virtual void removeUndoable(RS_Undoable * u) + virtual void removeUndoable(Undoable * u) { delete u; u = NULL;