\section{KData\-Tool\-Action Class Reference}
\label{classKDataToolAction}\index{KDataToolAction@{KDataToolAction}}
This class helps applications implement support for {\bf KData\-Tool}{\rm (p.\,\pageref{classKDataTool})}.  


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

Inheritance diagram for KData\-Tool\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=67pt]{classKDataToolAction__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KData\-Tool\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=216pt]{classKDataToolAction__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf tool\-Activated} (const  {\bf KData\-Tool\-Info} \&info, const  {\bf QString} \&command)\label{classKDataToolAction_l0}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KData\-Tool\-Action} (const  {\bf QString} \&{\bf text}, const  {\bf KData\-Tool\-Info} \&info, const  {\bf QString} \&command, {\bf QObject} $\ast${\bf parent}=0, const  char $\ast${\bf name}=0)\label{classKDataToolAction_a0}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QPtr\-List}$<$ {\bf KAction} $>$ {\bf data\-Tool\-Action\-List} (const  {\bf QValue\-List}$<$ {\bf KData\-Tool\-Info} $>$ \&tools, const  {\bf QObject} $\ast$receiver, const  char $\ast$slot)
\begin{CompactList}\small\item\em Creates a list of actions from a list of information about data-tools. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Activated} ()\label{classKDataToolAction_b0}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKDataToolAction_b1}

\end{CompactItemize}


\subsection{Detailed Description}
This class helps applications implement support for {\bf KData\-Tool}{\rm (p.\,\pageref{classKDataTool})}. 

The steps to follow are simple: 1) query for the available tools using {\bf KData\-Tool\-Info::query}{\rm (p.\,\pageref{classKDataToolInfo_e0})} 2) pass the result to {\bf KData\-Tool\-Action::data\-Tool\-Action\-List}{\rm (p.\,\pageref{classKDataToolAction_e0})} (with a slot) 3) plug the resulting actions, either using {\bf KXMLGUIClient::plug\-Action\-List}, or by hand.

The slot defined for step 2 is called when the action is activated, and that's where the tool should be created and run. 



Definition at line 169 of file kdatatool.h.

\subsection{Member Function Documentation}
\index{KDataToolAction@{KData\-Tool\-Action}!dataToolActionList@{dataToolActionList}}
\index{dataToolActionList@{dataToolActionList}!KDataToolAction@{KData\-Tool\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPtr\-List}$<$ {\bf KAction} $>$ KData\-Tool\-Action::data\-Tool\-Action\-List (const {\bf QValue\-List}$<$ {\bf KData\-Tool\-Info} $>$ \& {\em tools}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot})\hspace{0.3cm}{\tt  [static]}}\label{classKDataToolAction_e0}


Creates a list of actions from a list of information about data-tools. 

The slot must have a signature corresponding to the tool\-Activated signal.

Note that it's the caller's responsibility to delete the actions when they're not needed anymore. 

Definition at line 239 of file kdatatool.cpp.

References KStd\-Accel::action(), QPtr\-List::append(), QValue\-List::begin(), QObject::connect(), QValue\-List::end(), and QValue\-List::is\-Empty().

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