|
#include <rlmm/undo.hh>
List of all members.
Detailed Description
Utility class.
Make an undo block. Simple createing the object starts the group, and when the object is deleted (out of scope, or explicit delete) ends the group. The static member function Doundo() can be used to do all the undoes - it returns true as long as there's something to be undone, so it can be used in a while loop.
|
Public Types |
enum | what { remove,
insert
} |
Public Member Functions |
| undo () |
virtual | ~undo () |
virtual void | begin () |
virtual void | end () |
virtual void | add (what what, int start, int stop, const std::string &text) |
virtual void | modifying (int start, int stop) |
Static Public Member Functions |
static void | clear () |
static bool | do_undo () |
Member Enumeration Documentation
|
What kind of undo to save via the Add member function.
- Enumerator:
-
remove |
undo a delete |
insert |
undo an insert |
|
Constructor & Destructor Documentation
rlmm::undo::undo |
( |
|
) |
[inline] |
|
virtual rlmm::undo::~undo |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
void rlmm::undo::add |
( |
what |
what, |
|
|
int |
start, |
|
|
int |
stop, |
|
|
const std::string & |
text |
|
) |
[inline, virtual] |
|
|
Remember how to undo an event.
|
void rlmm::undo::begin |
( |
|
) |
[inline, virtual] |
|
void rlmm::undo::clear |
( |
|
) |
[inline, static] |
|
bool rlmm::undo::do_undo |
( |
|
) |
[inline, static] |
|
|
Do the head of an undo list, returns true if something done.
|
void rlmm::undo::end |
( |
|
) |
[inline, virtual] |
|
void rlmm::undo::modifying |
( |
int |
start, |
|
|
int |
stop |
|
) |
[inline, virtual] |
|
|
Signal that we're modifying some text between start and stop.
|
The documentation for this struct was generated from the following file:
Top of page
Last update Fri Aug 26 15:19:53 2005
Christian Holm
Created by DoxyGen 1.4.4
|