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

Kate

Public Member Functions

KateUndoGroup Class Reference

Class to manage a group of undo items. More...

#include <kateundo.h>

List of all members.

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)
bool isEmpty () const
bool merge (KateUndoGroup *newGroup, bool complex)
void redo (KTextEditor::View *view)
void safePoint (bool safePoint=true)
void undo (KTextEditor::View *view)

Detailed Description

Class to manage a group of undo items.

Definition at line 359 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 187 of file kateundo.cpp.

KateUndoGroup::~KateUndoGroup ( )

Destructor.

Definition at line 197 of file kateundo.cpp.


Member Function Documentation

void KateUndoGroup::addItem ( KateUndo *  u)

add an undo item

Parameters:
uitem to add

Definition at line 254 of file kateundo.cpp.

void KateUndoGroup::editEnd ( const KTextEditor::Cursor &  cursorPosition,
const KTextEditor::Range  selectionRange 
)

Definition at line 248 of file kateundo.cpp.

bool KateUndoGroup::isEmpty ( ) const [inline]

is this undogroup empty?

Definition at line 402 of file kateundo.h.

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

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

Redo the contained undo items.

Definition at line 225 of file kateundo.cpp.

void KateUndoGroup::safePoint ( bool  safePoint = true)

set group as as savepoint.

the next group will not merge with this one

Definition at line 289 of file kateundo.cpp.

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

Undo the contained undo items.

Definition at line 202 of file kateundo.cpp.


The documentation for this class was generated from the following files:
  • kateundo.h
  • kateundo.cpp

Kate

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal