\section{KList\-Action Class Reference}
\label{classKListAction}\index{KListAction@{KListAction}}
{\tt \#include $<$kactionclasses.h$>$}

Inheritance diagram for KList\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=69pt]{classKListAction__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KList\-Action:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=99pt]{classKListAction__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf set\-Current\-Item} (int index)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KList\-Action} (const {\bf QString} \&text, const {\bf KShortcut} \&cut={\bf KShortcut}(), {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
{\bf KList\-Action} (const {\bf QString} \&text, const {\bf KShortcut} \&cut, const {\bf QObject} $\ast$receiver, const char $\ast$slot, {\bf QObject} $\ast${\bf parent}, const char $\ast${\bf name}=0)
\item 
{\bf KList\-Action} (const {\bf QString} \&text, const {\bf QIcon\-Set} \&pix, const {\bf KShortcut} \&cut={\bf KShortcut}(), {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
{\bf KList\-Action} (const {\bf QString} \&text, const {\bf QString} \&pix, const {\bf KShortcut} \&cut={\bf KShortcut}(), {\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
{\bf KList\-Action} (const {\bf QString} \&text, const {\bf QIcon\-Set} \&pix, const {\bf KShortcut} \&cut, const {\bf QObject} $\ast$receiver, const char $\ast$slot, {\bf QObject} $\ast${\bf parent}, const char $\ast${\bf name}=0)
\item 
{\bf KList\-Action} (const {\bf QString} \&text, const {\bf QString} \&pix, const {\bf KShortcut} \&cut, const {\bf QObject} $\ast$receiver, const char $\ast$slot, {\bf QObject} $\ast${\bf parent}, const char $\ast${\bf name}=0)
\item 
{\bf KList\-Action} ({\bf QObject} $\ast${\bf parent}=0, const char $\ast${\bf name}=0)
\item 
virtual {\bf $\sim$KList\-Action} ()
\item 
virtual {\bf QString} {\bf current\-Text} () const 
\item 
virtual int {\bf current\-Item} () const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKListAction_b0}

\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[{\bf Deprecated}]Use {\bf KSelect\-Action}{\rm (p.\,\pageref{classKSelectAction})} instead. \end{Desc}




Definition at line 571 of file kactionclasses.h.

\subsection{Constructor \& Destructor Documentation}
\index{KListAction@{KList\-Action}!KListAction@{KListAction}}
\index{KListAction@{KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::KList\-Action (const {\bf QString} \& {\em text}, const {\bf KShortcut} \& {\em cut} = {\tt {\bf KShortcut}()}, {\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKListAction_a0}


Constructs a list action with text and potential keyboard accelerator but nothing else. 

Use this only if you really know what you are doing.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 828 of file kactionclasses.cpp.\index{KListAction@{KList\-Action}!KListAction@{KListAction}}
\index{KListAction@{KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::KList\-Action (const {\bf QString} \& {\em text}, const {\bf KShortcut} \& {\em cut}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKListAction_a1}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em receiver}]The SLOT's parent. \item[{\em slot}]The SLOT to invoke to execute this action. \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 835 of file kactionclasses.cpp.

References KAction::activated(), and QObject::connect().\index{KListAction@{KList\-Action}!KListAction@{KListAction}}
\index{KListAction@{KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::KList\-Action (const {\bf QString} \& {\em text}, const {\bf QIcon\-Set} \& {\em pix}, const {\bf KShortcut} \& {\em cut} = {\tt {\bf KShortcut}()}, {\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKListAction_a2}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The icons that go with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 845 of file kactionclasses.cpp.\index{KListAction@{KList\-Action}!KListAction@{KListAction}}
\index{KListAction@{KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::KList\-Action (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em pix}, const {\bf KShortcut} \& {\em cut} = {\tt {\bf KShortcut}()}, {\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKListAction_a3}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The dynamically loaded icon that goes with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 853 of file kactionclasses.cpp.\index{KListAction@{KList\-Action}!KListAction@{KListAction}}
\index{KListAction@{KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::KList\-Action (const {\bf QString} \& {\em text}, const {\bf QIcon\-Set} \& {\em pix}, const {\bf KShortcut} \& {\em cut}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKListAction_a4}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The icons that go with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em receiver}]The SLOT's parent. \item[{\em slot}]The SLOT to invoke to execute this action. \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 861 of file kactionclasses.cpp.

References KAction::activated(), and QObject::connect().\index{KListAction@{KList\-Action}!KListAction@{KListAction}}
\index{KListAction@{KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::KList\-Action (const {\bf QString} \& {\em text}, const {\bf QString} \& {\em pix}, const {\bf KShortcut} \& {\em cut}, const {\bf QObject} $\ast$ {\em receiver}, const char $\ast$ {\em slot}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name} = {\tt 0})}\label{classKListAction_a5}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em text}]The text that will be displayed. \item[{\em pix}]The dynamically loaded icon that goes with this action. \item[{\em cut}]The corresponding keyboard accelerator (shortcut). \item[{\em receiver}]The SLOT's parent. \item[{\em slot}]The SLOT to invoke to execute this action. \item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 872 of file kactionclasses.cpp.

References KAction::activated(), and QObject::connect().\index{KListAction@{KList\-Action}!KListAction@{KListAction}}
\index{KListAction@{KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::KList\-Action ({\bf QObject} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKListAction_a6}


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]This action's parent. \item[{\em name}]An internal name for this action. \end{description}
\end{Desc}


Definition at line 883 of file kactionclasses.cpp.\index{KListAction@{KList\-Action}!~KListAction@{$\sim$KListAction}}
\index{~KListAction@{$\sim$KListAction}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KList\-Action::$\sim${\bf KList\-Action} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKListAction_a7}


Destructor. 



Definition at line 889 of file kactionclasses.cpp.

\subsection{Member Function Documentation}
\index{KListAction@{KList\-Action}!currentText@{currentText}}
\index{currentText@{currentText}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KList\-Action::current\-Text () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKListAction_a8}


Returns the text of the currently selected item. 



Reimplemented from {\bf KSelect\-Action} {\rm (p.\,\pageref{classKSelectAction_a12})}.

Definition at line 904 of file kactionclasses.cpp.

References current\-Item(), and KSelect\-Action::items().\index{KListAction@{KList\-Action}!currentItem@{currentItem}}
\index{currentItem@{currentItem}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KList\-Action::current\-Item () const\hspace{0.3cm}{\tt  [virtual]}}\label{classKListAction_a9}


Returns the index of the current item. 

\begin{Desc}
\item[See also:]{\bf set\-Current\-Item}{\rm (p.\,\pageref{classKListAction_i0})} \end{Desc}


Reimplemented from {\bf KSelect\-Action} {\rm (p.\,\pageref{classKSelectAction_a13})}.

Definition at line 912 of file kactionclasses.cpp.

Referenced by current\-Text().\index{KListAction@{KList\-Action}!setCurrentItem@{setCurrentItem}}
\index{setCurrentItem@{setCurrentItem}!KListAction@{KList\-Action}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KList\-Action::set\-Current\-Item (int {\em index})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKListAction_i0}


Sets the currently checked item. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em index}]Index of the item (remember the first item is zero). \end{description}
\end{Desc}


Reimplemented from {\bf KSelect\-Action} {\rm (p.\,\pageref{classKSelectAction_i0})}.

Definition at line 894 of file kactionclasses.cpp.

References KSelect\-Action::set\-Current\-Item().

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