KateUndoGroup Class Reference
#include <kateundo.h>
Detailed Description
Class to manage a group of undo items.
Definition at line 33 of file kateundo.h.
Public Types | |
enum | UndoType { editInsertText, editRemoveText, editWrapLine, editUnWrapLine, editInsertLine, editRemoveLine, editMarkLineAutoWrapped, editInvalid } |
Public Member Functions | |
KateUndoGroup (KateDocument *doc) | |
~KateUndoGroup () | |
void | undo () |
void | redo () |
void | addItem (KateUndoGroup::UndoType type, uint line, uint col, uint len, const QString &text) |
bool | merge (KateUndoGroup *newGroup, bool complex) |
void | safePoint (bool safePoint=true) |
bool | isEmpty () const |
Member Enumeration Documentation
|
Types for undo items.
Definition at line 62 of file kateundo.h. |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 276 of file kateundo.cpp. |
|
Destructor.
Definition at line 282 of file kateundo.cpp. |
Member Function Documentation
|
add an item to the group
Definition at line 332 of file kateundo.cpp. |
|
is this undogroup empty?
Definition at line 100 of file kateundo.h. |
|
merge this group with an other
Definition at line 347 of file kateundo.cpp. |
|
Redo the contained undo items.
Definition at line 309 of file kateundo.cpp. |
|
set group as as savepoint. the next group will not merge with this one Definition at line 363 of file kateundo.cpp. |
|
Undo the contained undo items.
Definition at line 286 of file kateundo.cpp. |
The documentation for this class was generated from the following files: