KateUndoGroup

Search for usage in LXR

KateUndoGroup Class Reference

#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)
 
KateUndoGroupoperator= (const KateUndoGroup &)=delete
 
KateUndoGroupoperator= (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()

KateUndoGroup::KateUndoGroup ( const KTextEditor::Cursor cursorPosition,
KTextEditor::Range selection,
const QList< KTextEditor::ViewPrivate::PlainSecondaryCursor > & secondary )
explicit

Constructor.

Parameters
managerKateUndoManager this undo group will belong to

Definition at line 22 of file kateundo.cpp.

Member Function Documentation

◆ addItem()

void KateUndoGroup::addItem ( UndoItem u)

add an undo item

Parameters
uitem to add

Definition at line 214 of file kateundo.cpp.

◆ 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()

bool KateUndoGroup::isEmpty ( ) const
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
newGroupgroup to merge into this one
complexset 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()

KTextEditor::Cursor KateUndoGroup::redoCursor ( ) const
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()

void KateUndoGroup::setRedoCursor ( const KTextEditor::Cursor cursor)
inline

Set the redo cursor to cursor.

Definition at line 139 of file kateundo.h.

◆ setUndoCursor()

void KateUndoGroup::setUndoCursor ( const KTextEditor::Cursor cursor)
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:
This file is part of the KDE documentation.
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.