\section{KCommand Class Reference}
\label{classKCommand}\index{KCommand@{KCommand}}
The abstract base class for all Commands.  


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

Inheritance diagram for KCommand:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=68pt]{classKCommand__inherit__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf execute} ()=0
\item 
virtual void {\bf unexecute} ()=0
\item 
virtual {\bf QString} {\bf name} () const =0
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf KCommand} ()
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKCommand_b1}

\end{CompactItemize}


\subsection{Detailed Description}
The abstract base class for all Commands. 

Commands are used to store information needed for Undo/Redo functionality... 



Definition at line 37 of file kcommand.h.

\subsection{Constructor \& Destructor Documentation}
\index{KCommand@{KCommand}!KCommand@{KCommand}}
\index{KCommand@{KCommand}!KCommand@{KCommand}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KCommand::KCommand ()\hspace{0.3cm}{\tt  [inline, protected]}}\label{classKCommand_b0}


Creates a command. 



Definition at line 43 of file kcommand.h.

\subsection{Member Function Documentation}
\index{KCommand@{KCommand}!execute@{execute}}
\index{execute@{execute}!KCommand@{KCommand}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KCommand::execute ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCommand_a1}


The main method: executes this command. 

Implement here what this command is about, and remember to record any information that will be helpful for {\bf unexecute}{\rm (p.\,\pageref{classKCommand_a2})}. 

Implemented in {\bf KMacro\-Command} {\rm (p.\,\pageref{classKMacroCommand_a3})}.\index{KCommand@{KCommand}!unexecute@{unexecute}}
\index{unexecute@{unexecute}!KCommand@{KCommand}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KCommand::unexecute ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCommand_a2}


Unexecutes (undo) this command. 

Implement here the steps to take for undoing the command. If your application uses actions for everything (it should), and if you implement unexecute correctly, the application is in the same state after unexecute as it was before execute. This means, the next call to execute will do the same thing as it did the first time. 

Implemented in {\bf KMacro\-Command} {\rm (p.\,\pageref{classKMacroCommand_a4})}.\index{KCommand@{KCommand}!name@{name}}
\index{name@{name}!KCommand@{KCommand}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KCommand::name () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKCommand_a3}


\begin{Desc}
\item[Returns:]the name of this command, translated, since it will appear in the menus. \end{Desc}


Implemented in {\bf KNamed\-Command} {\rm (p.\,\pageref{classKNamedCommand_a0})}.

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