KateUndoGroup Class Reference
Class to manage a group of undo items. More...
#include <kateundo.h>
Public Member Functions | |
| KateUndoGroup (KateUndoManager *manager, const KTextEditor::Cursor &cursorPosition, const KTextEditor::Range &selectionRange) | |
| ~KateUndoGroup () | |
| void | addItem (KateUndo *u) |
| void | editEnd (const KTextEditor::Cursor &cursorPosition, const KTextEditor::Range selectionRange) |
| bool | isEmpty () const |
| bool | merge (KateUndoGroup *newGroup, bool complex) |
| void | redo (KTextEditor::View *view) |
| void | safePoint (bool safePoint=true) |
| void | undo (KTextEditor::View *view) |
Detailed Description
Class to manage a group of undo items.
Definition at line 359 of file kateundo.h.
Constructor & Destructor Documentation
| KateUndoGroup::KateUndoGroup | ( | KateUndoManager * | manager, |
| const KTextEditor::Cursor & | cursorPosition, | ||
| const KTextEditor::Range & | selectionRange | ||
| ) | [explicit] |
Constructor.
- Parameters:
-
manager KateUndoManager this undo group will belong to
Definition at line 187 of file kateundo.cpp.
| KateUndoGroup::~KateUndoGroup | ( | ) |
Destructor.
Definition at line 197 of file kateundo.cpp.
Member Function Documentation
| void KateUndoGroup::addItem | ( | KateUndo * | u | ) |
| void KateUndoGroup::editEnd | ( | const KTextEditor::Cursor & | cursorPosition, |
| const KTextEditor::Range | selectionRange | ||
| ) |
Definition at line 248 of file kateundo.cpp.
| bool KateUndoGroup::isEmpty | ( | ) | const [inline] |
is this undogroup empty?
Definition at line 402 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 264 of file kateundo.cpp.
| void KateUndoGroup::redo | ( | KTextEditor::View * | view | ) |
Redo the contained undo items.
Definition at line 225 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 289 of file kateundo.cpp.
| void KateUndoGroup::undo | ( | KTextEditor::View * | view | ) |
Undo the contained undo items.
Definition at line 202 of file kateundo.cpp.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference