• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

Public Types | Public Member Functions | List of all members
KateUndoGroup Class Reference

#include <kateundo.h>

Public Types

enum  UndoType {
  editInsertText , editRemoveText , editWrapLine , editUnWrapLine ,
  editInsertLine , editRemoveLine , editMarkLineAutoWrapped , editInvalid
}
 

Public Member Functions

 KateUndoGroup (KateDocument *doc)
 
 ~KateUndoGroup ()
 
void undo ()
 
void redo ()
 
void addItem (KateUndoGroup::UndoType type, uint line, uint col, uint len, const TQString &text)
 
bool merge (KateUndoGroup *newGroup, bool complex)
 
void safePoint (bool safePoint=true)
 
bool isEmpty () const
 

Detailed Description

Class to manage a group of undo items.

Definition at line 33 of file kateundo.h.

Member Enumeration Documentation

◆ UndoType

enum KateUndoGroup::UndoType

Types for undo items.

Definition at line 62 of file kateundo.h.

Constructor & Destructor Documentation

◆ KateUndoGroup()

KateUndoGroup::KateUndoGroup ( KateDocument *  doc)

Constructor.

Parameters
docdocument to belong to

Definition at line 276 of file kateundo.cpp.

◆ ~KateUndoGroup()

KateUndoGroup::~KateUndoGroup ( )

Destructor.

Definition at line 282 of file kateundo.cpp.

Member Function Documentation

◆ addItem()

void KateUndoGroup::addItem ( KateUndoGroup::UndoType  type,
uint  line,
uint  col,
uint  len,
const TQString &  text 
)

add an item to the group

Parameters
typeundo item type
lineline affected
colstart column
lenlength of change
texttext removed/inserted

Definition at line 332 of file kateundo.cpp.

◆ isEmpty()

bool KateUndoGroup::isEmpty ( ) const
inline

is this undogroup empty?

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

◆ redo()

void KateUndoGroup::redo ( )

Redo the contained undo items.

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

◆ undo()

void KateUndoGroup::undo ( )

Undo the contained undo items.

Definition at line 286 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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.