Kate
KateUndoGroup Class Reference
Class to manage a group of undo items. More...
#include <kateundo.h>
Public Types | |
| enum | UndoType { editInsertText, editRemoveText, editWrapLine, editUnWrapLine, editInsertLine, editRemoveLine, editMarkLineAutoWrapped, editInvalid } |
Public Member Functions | |
| void | addItem (KateUndoGroup::UndoType type, uint line, uint col, uint len, const QString &text) |
| bool | isEmpty () const |
| KateUndoGroup (KateDocument *doc) | |
| 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 33 of file kateundo.h.
Member Enumeration Documentation
Types for undo items.
- Enumerator:
-
editInsertText editRemoveText editWrapLine editUnWrapLine editInsertLine editRemoveLine editMarkLineAutoWrapped editInvalid
Definition at line 62 of file kateundo.h.
Constructor & Destructor Documentation
| KateUndoGroup::KateUndoGroup | ( | KateDocument * | doc | ) |
| KateUndoGroup::~KateUndoGroup | ( | ) |
Member Function Documentation
| void KateUndoGroup::addItem | ( | KateUndoGroup::UndoType | type, | |
| uint | line, | |||
| uint | col, | |||
| uint | len, | |||
| const QString & | text | |||
| ) |
add an item to the group
- Parameters:
-
type undo item type line line affected col start column len lenght of change text text removed/inserted
Definition at line 332 of file kateundo.cpp.
| bool KateUndoGroup::isEmpty | ( | ) | const [inline] |
| 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 347 of file kateundo.cpp.
| void KateUndoGroup::redo | ( | ) |
| void KateUndoGroup::safePoint | ( | bool | safePoint = true |
) |
set group as as savepoint.
the next group will not merge with this one
Definition at line 363 of file kateundo.cpp.
| void KateUndoGroup::undo | ( | ) |
The documentation for this class was generated from the following files:
KDE 3.5 API Reference