\section{KNamed\-Command Class Reference}
\label{classKNamedCommand}\index{KNamedCommand@{KNamedCommand}}
A command which stores its name.  


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

Inheritance diagram for KNamed\-Command:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=68pt]{classKNamedCommand__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KNamed\-Command:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=93pt]{classKNamedCommand__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf QString} {\bf name} () const 
\item 
void {\bf set\-Name} (const {\bf QString} \&name)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf KNamed\-Command} (const {\bf QString} \&name)
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKNamedCommand_b1}

\end{CompactItemize}


\subsection{Detailed Description}
A command which stores its name. 

It is more memory-efficient to use {\bf KCommand}{\rm (p.\,\pageref{classKCommand})} and to implement the {\bf name()}{\rm (p.\,\pageref{classKNamedCommand_a0})} method, but in some cases it's more simple or more flexible to store the name at creation time. 



Definition at line 78 of file kcommand.h.

\subsection{Constructor \& Destructor Documentation}
\index{KNamedCommand@{KNamed\-Command}!KNamedCommand@{KNamedCommand}}
\index{KNamedCommand@{KNamedCommand}!KNamedCommand@{KNamed\-Command}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KNamed\-Command::KNamed\-Command (const {\bf QString} \& {\em name})\hspace{0.3cm}{\tt  [inline, protected]}}\label{classKNamedCommand_b0}


Creates a command. 

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


Definition at line 86 of file kcommand.h.

\subsection{Member Function Documentation}
\index{KNamedCommand@{KNamed\-Command}!name@{name}}
\index{name@{name}!KNamedCommand@{KNamed\-Command}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KNamed\-Command::name () const\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKNamedCommand_a0}


\begin{Desc}
\item[Returns:]the name of this command \end{Desc}


Implements {\bf KCommand} {\rm (p.\,\pageref{classKCommand_a3})}.

Definition at line 92 of file kcommand.h.\index{KNamedCommand@{KNamed\-Command}!setName@{setName}}
\index{setName@{setName}!KNamedCommand@{KNamed\-Command}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KNamed\-Command::set\-Name (const {\bf QString} \& {\em name})\hspace{0.3cm}{\tt  [inline]}}\label{classKNamedCommand_a1}


Updates the name of this command. 

Rarely necessary. 

Definition at line 97 of file kcommand.h.

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