KateUndoGroup
#include <kateundo.h>
Public Member Functions | |
KateUndoGroup (const KateUndoGroup &)=delete | |
KateUndoGroup (const KTextEditor::Cursor cursorPosition, KTextEditor::Range selection, const QList< KTextEditor::ViewPrivate::PlainSecondaryCursor > &) | |
KateUndoGroup (KateUndoGroup &&o)=default | |
void | addItem (UndoItem u) |
void | editEnd (const KTextEditor::Cursor cursorPosition, KTextEditor::Range selectionRange, const QList< KTextEditor::ViewPrivate::PlainSecondaryCursor > &secondaryCursors) |
void | flagSavedAsModified () |
bool | isEmpty () const |
void | markRedoAsSaved (QBitArray &lines) |
void | markUndoAsSaved (QBitArray &lines) |
bool | merge (KateUndoGroup *newGroup, bool complex) |
KateUndoGroup & | operator= (const KateUndoGroup &)=delete |
KateUndoGroup & | operator= (KateUndoGroup &&o)=default |
void | redo (KateUndoManager *manager, KTextEditor::ViewPrivate *view) |
KTextEditor::Cursor | redoCursor () const |
void | safePoint (bool safePoint=true) |
void | setRedoCursor (const KTextEditor::Cursor cursor) |
void | setUndoCursor (const KTextEditor::Cursor cursor) |
void | undo (KateUndoManager *manager, KTextEditor::ViewPrivate *view) |
Detailed Description
Class to manage a group of undo items.
Definition at line 67 of file kateundo.h.
Constructor & Destructor Documentation
◆ KateUndoGroup()
|
explicit |
Constructor.
- Parameters
-
manager KateUndoManager this undo group will belong to
Definition at line 22 of file kateundo.cpp.
Member Function Documentation
◆ addItem()
void KateUndoGroup::addItem | ( | UndoItem | u | ) |
◆ editEnd()
void KateUndoGroup::editEnd | ( | const KTextEditor::Cursor | cursorPosition, |
KTextEditor::Range | selectionRange, | ||
const QList< KTextEditor::ViewPrivate::PlainSecondaryCursor > & | secondaryCursors ) |
Definition at line 176 of file kateundo.cpp.
◆ flagSavedAsModified()
void KateUndoGroup::flagSavedAsModified | ( | ) |
Change all LineSaved flags to LineModified of the line modification system.
Definition at line 258 of file kateundo.cpp.
◆ isEmpty()
|
inline |
is this undogroup empty?
Definition at line 115 of file kateundo.h.
◆ markRedoAsSaved()
void KateUndoGroup::markRedoAsSaved | ( | QBitArray & | lines | ) |
Definition at line 390 of file kateundo.cpp.
◆ markUndoAsSaved()
void KateUndoGroup::markUndoAsSaved | ( | QBitArray & | lines | ) |
Definition at line 335 of file kateundo.cpp.
◆ merge()
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 225 of file kateundo.cpp.
◆ redo()
void KateUndoGroup::redo | ( | KateUndoManager * | manager, |
KTextEditor::ViewPrivate * | view ) |
Redo the contained undo items.
Definition at line 105 of file kateundo.cpp.
◆ redoCursor()
|
inline |
Definition at line 144 of file kateundo.h.
◆ safePoint()
void KateUndoGroup::safePoint | ( | bool | safePoint = true | ) |
set group as as savepoint.
the next group will not merge with this one
Definition at line 253 of file kateundo.cpp.
◆ setRedoCursor()
|
inline |
Set the redo cursor to cursor
.
Definition at line 139 of file kateundo.h.
◆ setUndoCursor()
|
inline |
Set the undo cursor to cursor
.
Definition at line 131 of file kateundo.h.
◆ undo()
void KateUndoGroup::undo | ( | KateUndoManager * | manager, |
KTextEditor::ViewPrivate * | view ) |
Undo the contained undo items.
Definition at line 33 of file kateundo.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.