\section{Kate\-Undo\-Group Class Reference}
\label{classKateUndoGroup}\index{KateUndoGroup@{KateUndoGroup}}
Class to manage a group of undo items.  


{\tt \#include $<$kateundo.h$>$}

Collaboration diagram for Kate\-Undo\-Group:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=77pt]{classKateUndoGroup__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Undo\-Type} \{ \par
{\bf edit\-Insert\-Text}, 
{\bf edit\-Remove\-Text}, 
{\bf edit\-Wrap\-Line}, 
{\bf edit\-Un\-Wrap\-Line}, 
\par
{\bf edit\-Insert\-Line}, 
{\bf edit\-Remove\-Line}, 
{\bf edit\-Mark\-Line\-Auto\-Wrapped}, 
{\bf edit\-Invalid}
 \}
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Kate\-Undo\-Group} (Kate\-Document $\ast$doc)
\item 
{\bf $\sim$Kate\-Undo\-Group} ()
\item 
void {\bf undo} ()
\item 
void {\bf redo} ()
\item 
void {\bf add\-Item} ({\bf Kate\-Undo\-Group::Undo\-Type} type, uint line, uint col, uint len, const {\bf QString} \&text)
\item 
bool {\bf merge} ({\bf Kate\-Undo\-Group} $\ast$new\-Group, bool complex)
\item 
void {\bf safe\-Point} (bool safe\-Point=true)
\end{CompactItemize}


\subsection{Detailed Description}
Class to manage a group of undo items. 



Definition at line 33 of file kateundo.h.

\subsection{Member Enumeration Documentation}
\index{KateUndoGroup@{Kate\-Undo\-Group}!UndoType@{UndoType}}
\index{UndoType@{UndoType}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Kate\-Undo\-Group::Undo\-Type}}\label{classKateUndoGroup_w8}


Types for undo items. 



Definition at line 62 of file kateundo.h.

\subsection{Constructor \& Destructor Documentation}
\index{KateUndoGroup@{Kate\-Undo\-Group}!KateUndoGroup@{KateUndoGroup}}
\index{KateUndoGroup@{KateUndoGroup}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Kate\-Undo\-Group::Kate\-Undo\-Group (Kate\-Document $\ast$ {\em doc})}\label{classKateUndoGroup_a0}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em doc}]document to belong to \end{description}
\end{Desc}


Definition at line 276 of file kateundo.cpp.\index{KateUndoGroup@{Kate\-Undo\-Group}!~KateUndoGroup@{$\sim$KateUndoGroup}}
\index{~KateUndoGroup@{$\sim$KateUndoGroup}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Kate\-Undo\-Group::$\sim${\bf Kate\-Undo\-Group} ()}\label{classKateUndoGroup_a1}


Destructor. 



Definition at line 282 of file kateundo.cpp.

\subsection{Member Function Documentation}
\index{KateUndoGroup@{Kate\-Undo\-Group}!undo@{undo}}
\index{undo@{undo}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Undo\-Group::undo ()}\label{classKateUndoGroup_a2}


Undo the contained undo items. 



Definition at line 286 of file kateundo.cpp.

References QPtr\-List::at(), QPtr\-List::count(), QPtr\-List::last(), and QPtr\-List::prev().\index{KateUndoGroup@{Kate\-Undo\-Group}!redo@{redo}}
\index{redo@{redo}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Undo\-Group::redo ()}\label{classKateUndoGroup_a3}


Redo the contained undo items. 



Definition at line 309 of file kateundo.cpp.

References QPtr\-List::at(), QPtr\-List::count(), QPtr\-List::first(), and QPtr\-List::next().\index{KateUndoGroup@{Kate\-Undo\-Group}!addItem@{addItem}}
\index{addItem@{addItem}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Undo\-Group::add\-Item ({\bf Kate\-Undo\-Group::Undo\-Type} {\em type}, uint {\em line}, uint {\em col}, uint {\em len}, const {\bf QString} \& {\em text})}\label{classKateUndoGroup_a4}


add an item to the group 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em type}]undo item type \item[{\em line}]line affected \item[{\em col}]start column \item[{\em len}]lenght of change \item[{\em text}]text removed/inserted \end{description}
\end{Desc}


Definition at line 332 of file kateundo.cpp.

Referenced by merge().\index{KateUndoGroup@{Kate\-Undo\-Group}!merge@{merge}}
\index{merge@{merge}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool Kate\-Undo\-Group::merge ({\bf Kate\-Undo\-Group} $\ast$ {\em new\-Group}, bool {\em complex})}\label{classKateUndoGroup_a5}


merge this group with an other 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em new\-Group}]group to merge into this one \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]success \end{Desc}


Definition at line 347 of file kateundo.cpp.

References add\-Item(), safe\-Point(), and QPtr\-List::take().\index{KateUndoGroup@{Kate\-Undo\-Group}!safePoint@{safePoint}}
\index{safePoint@{safePoint}!KateUndoGroup@{Kate\-Undo\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Kate\-Undo\-Group::safe\-Point (bool {\em safe\-Point} = {\tt true})}\label{classKateUndoGroup_a6}


set group as as savepoint. 

the next group will not merge with this one 

Definition at line 363 of file kateundo.cpp.

Referenced by merge().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kateundo.h\item 
kateundo.cpp\end{CompactItemize}
