• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

Public Member Functions | List of all members
KateUndoGroup Class Reference

#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

KateUndoGroup::KateUndoGroup ( KateUndoManager *  manager,
const KTextEditor::Cursor &  cursorPosition,
const KTextEditor::Range &  selectionRange 
)
explicit

Constructor.

Parameters
managerKateUndoManager 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)

add an undo item

Parameters
uitem to add

Definition at line 305 of file kateundo.cpp.

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.

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

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

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

Set the redo cursor to cursor.

Definition at line 440 of file kateundo.h.

void KateUndoGroup::setUndoCursor ( const KTextEditor::Cursor &  cursor)
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:
  • kateundo.h
  • kateundo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:57:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal