.TH "KateUndoGroup" kde3 "11 Jun 2005" "Version Version 3.4.1" "kate Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KateUndoGroup \- Class to manage a group of undo items.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kateundo.h>\fP
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBUndoType\fP { \fBeditInsertText\fP, \fBeditRemoveText\fP, \fBeditWrapLine\fP, \fBeditUnWrapLine\fP, \fBeditInsertLine\fP, \fBeditRemoveLine\fP, \fBeditMarkLineAutoWrapped\fP, \fBeditInvalid\fP }"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKateUndoGroup\fP (KateDocument *doc)"
.br
.ti -1c
.RI "\fB~KateUndoGroup\fP ()"
.br
.ti -1c
.RI "void \fBundo\fP ()"
.br
.ti -1c
.RI "void \fBredo\fP ()"
.br
.ti -1c
.RI "void \fBaddItem\fP (\fBKateUndoGroup::UndoType\fP type, uint line, uint col, uint len, const \fBQString\fP &text)"
.br
.ti -1c
.RI "bool \fBmerge\fP (\fBKateUndoGroup\fP *newGroup, bool complex)"
.br
.ti -1c
.RI "void \fBsafePoint\fP (bool safePoint=true)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Class to manage a group of undo items. 
.PP
Definition at line 33 of file kateundo.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBKateUndoGroup::UndoType\fP"
.PP
Types for undo items. 
.PP
Definition at line 62 of file kateundo.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KateUndoGroup::KateUndoGroup (KateDocument * doc)"
.PP
Constructor. 
.PP
\fBParameters:\fP
.RS 4
\fIdoc\fP document to belong to 
.RE
.PP

.PP
Definition at line 276 of file kateundo.cpp.
.SS "KateUndoGroup::~\fBKateUndoGroup\fP ()"
.PP
Destructor. 
.PP
Definition at line 282 of file kateundo.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KateUndoGroup::undo ()"
.PP
Undo the contained undo items. 
.PP
Definition at line 286 of file kateundo.cpp.
.PP
References QPtrList::at(), QPtrList::count(), QPtrList::last(), and QPtrList::prev().
.SS "void KateUndoGroup::redo ()"
.PP
Redo the contained undo items. 
.PP
Definition at line 309 of file kateundo.cpp.
.PP
References QPtrList::at(), QPtrList::count(), QPtrList::first(), and QPtrList::next().
.SS "void KateUndoGroup::addItem (\fBKateUndoGroup::UndoType\fP type, uint line, uint col, uint len, const \fBQString\fP & text)"
.PP
add an item to the group 
.PP
\fBParameters:\fP
.RS 4
\fItype\fP undo item type 
.br
\fIline\fP line affected 
.br
\fIcol\fP start column 
.br
\fIlen\fP lenght of change 
.br
\fItext\fP text removed/inserted 
.RE
.PP

.PP
Definition at line 332 of file kateundo.cpp.
.PP
Referenced by merge().
.SS "bool KateUndoGroup::merge (\fBKateUndoGroup\fP * newGroup, bool complex)"
.PP
merge this group with an other 
.PP
\fBParameters:\fP
.RS 4
\fInewGroup\fP group to merge into this one 
.RE
.PP
\fBReturns:\fP
.RS 4
success 
.RE
.PP

.PP
Definition at line 347 of file kateundo.cpp.
.PP
References addItem(), safePoint(), and QPtrList::take().
.SS "void KateUndoGroup::safePoint (bool safePoint = \fCtrue\fP)"
.PP
set group as as savepoint. 
.PP
the next group will not merge with this one 
.PP
Definition at line 363 of file kateundo.cpp.
.PP
Referenced by merge().

.SH "Author"
.PP 
Generated automatically by Doxygen for kate Library from the source code.
