Kate
KateUndoGroup Class Reference
Class to manage a group of undo items. More...
#include <kateundo.h>
Public Member Functions | |
void | addItem (KateUndo *u) |
void | editEnd () |
bool | isEmpty () const |
KateUndoGroup (KateDocument *document) | |
bool | merge (KateUndoGroup *newGroup, bool complex) |
void | redo () |
void | safePoint (bool safePoint=true) |
void | undo () |
~KateUndoGroup () |
Detailed Description
Class to manage a group of undo items.
Definition at line 355 of file kateundo.h.
Constructor & Destructor Documentation
KateUndoGroup::KateUndoGroup | ( | KateDocument * | document | ) | [explicit] |
Constructor.
- Parameters:
-
document document this group will belong to
Definition at line 185 of file kateundo.cpp.
KateUndoGroup::~KateUndoGroup | ( | ) |
Destructor.
Definition at line 200 of file kateundo.cpp.
Member Function Documentation
void KateUndoGroup::addItem | ( | KateUndo * | u | ) |
void KateUndoGroup::editEnd | ( | ) |
Definition at line 251 of file kateundo.cpp.
bool KateUndoGroup::isEmpty | ( | ) | const [inline] |
is this undogroup empty?
Definition at line 398 of file kateundo.h.
bool KateUndoGroup::merge | ( | KateUndoGroup * | newGroup, | |
bool | complex | |||
) |
merge this group with an other
- Parameters:
-
newGroup group to merge into this one complex set if a complex undo
- Returns:
- success
Definition at line 270 of file kateundo.cpp.
void KateUndoGroup::redo | ( | ) |
Redo the contained undo items.
Definition at line 228 of file kateundo.cpp.
void KateUndoGroup::safePoint | ( | bool | safePoint = true |
) |
set group as as savepoint.
the next group will not merge with this one
Definition at line 295 of file kateundo.cpp.
void KateUndoGroup::undo | ( | ) |
Undo the contained undo items.
Definition at line 205 of file kateundo.cpp.
The documentation for this class was generated from the following files: