Kate
#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) |
void | flagSavedAsModified () |
bool | isEmpty () const |
void | markRedoAsSaved (QBitArray &lines) |
void | markUndoAsSaved (QBitArray &lines) |
bool | merge (KateUndoGroup *newGroup, bool complex) |
void | redo (KTextEditor::View *view) |
const KTextEditor::Cursor & | redoCursor () const |
void | safePoint (bool safePoint=true) |
void | setRedoCursor (const KTextEditor::Cursor &cursor) |
void | setUndoCursor (const KTextEditor::Cursor &cursor) |
void | undo (KTextEditor::View *view) |
Detailed Description
Class to manage a group of undo items.
Definition at line 378 of file kateundo.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
- Parameters
-
manager KateUndoManager this undo group will belong to
Definition at line 238 of file kateundo.cpp.
KateUndoGroup::~KateUndoGroup | ( | ) |
Destructor.
Definition at line 248 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 299 of file kateundo.cpp.
void KateUndoGroup::flagSavedAsModified | ( | ) |
Change all LineSaved flags to LineModified of the line modification system.
Definition at line 345 of file kateundo.cpp.
|
inline |
is this undogroup empty?
Definition at line 421 of file kateundo.h.
void KateUndoGroup::markRedoAsSaved | ( | QBitArray & | lines | ) |
Definition at line 378 of file kateundo.cpp.
void KateUndoGroup::markUndoAsSaved | ( | QBitArray & | lines | ) |
Definition at line 370 of file kateundo.cpp.
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 315 of file kateundo.cpp.
void KateUndoGroup::redo | ( | KTextEditor::View * | view | ) |
Redo the contained undo items.
Definition at line 276 of file kateundo.cpp.
|
inline |
Definition at line 443 of file kateundo.h.
void KateUndoGroup::safePoint | ( | bool | safePoint = true | ) |
set group as as savepoint.
the next group will not merge with this one
Definition at line 340 of file kateundo.cpp.
|
inline |
Set the redo cursor to cursor
.
Definition at line 440 of file kateundo.h.
|
inline |
Set the undo cursor to cursor
.
Definition at line 434 of file kateundo.h.
void KateUndoGroup::undo | ( | KTextEditor::View * | view | ) |
Undo the contained undo items.
Definition at line 253 of file kateundo.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.