KateUndoGroup

Search for usage in LXR

KateUndoGroup Class Reference

#include <kateundo.h>

Public Member Functions

 KateUndoGroup (const KateUndoGroup &)=delete
 
 KateUndoGroup (KateUndoManager *manager, const KTextEditor::Cursor cursorPosition, KTextEditor::Range selection, const QVector< KTextEditor::ViewPrivate::PlainSecondaryCursor > &)
 
 ~KateUndoGroup ()
 
void addItem (KateUndo *u)
 
void editEnd (const KTextEditor::Cursor cursorPosition, KTextEditor::Range selectionRange, const QVector< 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
 
void redo (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 (KTextEditor::ViewPrivate *view)
 

Detailed Description

Class to manage a group of undo items.

Definition at line 415 of file kateundo.h.

Constructor & Destructor Documentation

◆ KateUndoGroup()

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

Constructor.

Parameters
managerKateUndoManager this undo group will belong to

Definition at line 218 of file kateundo.cpp.

◆ ~KateUndoGroup()

KateUndoGroup::~KateUndoGroup ( )

Destructor.

Definition at line 231 of file kateundo.cpp.

Member Function Documentation

◆ addItem()

void KateUndoGroup::addItem ( KateUndo u)

add an undo item

Parameters
uitem to add

Definition at line 303 of file kateundo.cpp.

◆ flagSavedAsModified()

void KateUndoGroup::flagSavedAsModified ( )

Change all LineSaved flags to LineModified of the line modification system.

Definition at line 355 of file kateundo.cpp.

◆ isEmpty()

bool KateUndoGroup::isEmpty ( ) const
inline

is this undogroup empty?

Definition at line 466 of file kateundo.h.

◆ 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 321 of file kateundo.cpp.

◆ redo()

void KateUndoGroup::redo ( KTextEditor::ViewPrivate *  view)

Redo the contained undo items.

Definition at line 265 of file kateundo.cpp.

◆ safePoint()

void KateUndoGroup::safePoint ( bool  safePoint = true)

set group as as savepoint.

the next group will not merge with this one

Definition at line 350 of file kateundo.cpp.

◆ setRedoCursor()

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

Set the redo cursor to cursor.

Definition at line 490 of file kateundo.h.

◆ setUndoCursor()

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

Set the undo cursor to cursor.

Definition at line 482 of file kateundo.h.

◆ undo()

void KateUndoGroup::undo ( KTextEditor::ViewPrivate *  view)

Undo the contained undo items.

Definition at line 236 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-2022 The KDE developers.
Generated on Sun Jun 26 2022 03:49:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.