\section{KPanel\-App\-Menu Class Reference}
\label{classKPanelAppMenu}\index{KPanelAppMenu@{KPanelAppMenu}}
DCop client menu class for the Kicker panel that will insert a submenu into the {\bf KDE} menu.  


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

Inheritance diagram for KPanel\-App\-Menu:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=89pt]{classKPanelAppMenu__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KPanel\-App\-Menu:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=140pt]{classKPanelAppMenu__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf activated} (int id)
\begin{CompactList}\small\item\em Emitted when the user selects an item from the Kicker menu. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KPanel\-App\-Menu} (const  {\bf QString} \&title, {\bf QObject} $\ast${\bf parent}=0, const  char $\ast${\bf name}=0)
\begin{CompactList}\small\item\em Constructs a new menu with the given title. \item\end{CompactList}\item 
{\bf KPanel\-App\-Menu} (const  {\bf QPixmap} \&icon, const  {\bf QString} \&title, {\bf QObject} $\ast${\bf parent}, const  char $\ast${\bf name})
\begin{CompactList}\small\item\em Same as above, but with an icon for the submenu item. \item\end{CompactList}\item 
{\bf KPanel\-App\-Menu} ({\bf QObject} $\ast${\bf parent}, const  char $\ast${\bf name})
\begin{CompactList}\small\item\em Constructs a new (sub)menu with a given id. \item\end{CompactList}\item 
{\bf $\sim$KPanel\-App\-Menu} ()
\begin{CompactList}\small\item\em Make sure you actually destroy this thing or the menu will never go away until this application quits or Kicker restarts ;-). \item\end{CompactList}\item 
int {\bf insert\-Item} (const  {\bf QString} \&text, int id=-1)
\begin{CompactList}\small\item\em Inserts an item into the menu. \item\end{CompactList}\item 
int {\bf insert\-Item} (const  {\bf QPixmap} \&icon, const  {\bf QString} \&text, int id=-1)
\begin{CompactList}\small\item\em Inserts an item with a icon. \item\end{CompactList}\item 
{\bf KPanel\-App\-Menu} $\ast$ {\bf insert\-Menu} (const  {\bf QPixmap} \&icon, const  {\bf QString} \&text, int id=-1)
\begin{CompactList}\small\item\em Inserts a sub menu with a icon. \item\end{CompactList}\item 
void {\bf clear} ()
\begin{CompactList}\small\item\em Clears the menu. \item\end{CompactList}\item 
bool {\bf process} (const  {\bf QCString} \&fun, const  {\bf QByte\-Array} \&data, {\bf QCString} \&reply\-Type, {\bf QByte\-Array} \&reply)\label{classKPanelAppMenu_a8}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf init} (const  {\bf QPixmap} \&icon, const  {\bf QString} \&title)\label{classKPanelAppMenu_b0}

\end{CompactItemize}


\subsection{Detailed Description}
DCop client menu class for the Kicker panel that will insert a submenu into the {\bf KDE} menu. 

\begin{Desc}
\item[Author:]Daniel M. Duley $<${\tt mosfet@kde.org}$>$ \end{Desc}




Definition at line 37 of file kpanelappmenu.h.

\subsection{Constructor \& Destructor Documentation}
\index{KPanelAppMenu@{KPanel\-App\-Menu}!KPanelAppMenu@{KPanelAppMenu}}
\index{KPanelAppMenu@{KPanelAppMenu}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPanel\-App\-Menu::KPanel\-App\-Menu (const {\bf QString} \& {\em title}, {\bf QObject} $\ast$ {\em parent} = 0, const char $\ast$ {\em name} = 0)}\label{classKPanelAppMenu_a0}


Constructs a new menu with the given title. 



Definition at line 38 of file kpanelappmenu.cpp.

References KStd\-Accel::name().

Referenced by insert\-Menu().\index{KPanelAppMenu@{KPanel\-App\-Menu}!KPanelAppMenu@{KPanelAppMenu}}
\index{KPanelAppMenu@{KPanelAppMenu}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPanel\-App\-Menu::KPanel\-App\-Menu (const {\bf QPixmap} \& {\em icon}, const {\bf QString} \& {\em title}, {\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name})}\label{classKPanelAppMenu_a1}


Same as above, but with an icon for the submenu item. 



Definition at line 45 of file kpanelappmenu.cpp.

References KStd\-Accel::name().\index{KPanelAppMenu@{KPanel\-App\-Menu}!KPanelAppMenu@{KPanelAppMenu}}
\index{KPanelAppMenu@{KPanelAppMenu}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPanel\-App\-Menu::KPanel\-App\-Menu ({\bf QObject} $\ast$ {\em parent}, const char $\ast$ {\em name})}\label{classKPanelAppMenu_a2}


Constructs a new (sub)menu with a given id. 



Definition at line 54 of file kpanelappmenu.cpp.

References QObject::name(), and KStd\-Accel::name().\index{KPanelAppMenu@{KPanel\-App\-Menu}!~KPanelAppMenu@{$\sim$KPanelAppMenu}}
\index{~KPanelAppMenu@{$\sim$KPanelAppMenu}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KPanel\-App\-Menu::$\sim${\bf KPanel\-App\-Menu} ()}\label{classKPanelAppMenu_a3}


Make sure you actually destroy this thing or the menu will never go away until this application quits or Kicker restarts ;-). 



Definition at line 87 of file kpanelappmenu.cpp.

References DCOPClient::send().

\subsection{Member Function Documentation}
\index{KPanelAppMenu@{KPanel\-App\-Menu}!insertItem@{insertItem}}
\index{insertItem@{insertItem}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPanel\-App\-Menu::insert\-Item (const {\bf QString} \& {\em text}, int {\em id} = -1)}\label{classKPanelAppMenu_a4}


Inserts an item into the menu. 



Definition at line 134 of file kpanelappmenu.cpp.

References DCOPClient::send().\index{KPanelAppMenu@{KPanel\-App\-Menu}!insertItem@{insertItem}}
\index{insertItem@{insertItem}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KPanel\-App\-Menu::insert\-Item (const {\bf QPixmap} \& {\em icon}, const {\bf QString} \& {\em text}, int {\em id} = -1)}\label{classKPanelAppMenu_a5}


Inserts an item with a icon. 

The icon name must be a full path. 

Definition at line 96 of file kpanelappmenu.cpp.

References DCOPClient::send().\index{KPanelAppMenu@{KPanel\-App\-Menu}!insertMenu@{insertMenu}}
\index{insertMenu@{insertMenu}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KPanel\-App\-Menu} $\ast$ KPanel\-App\-Menu::insert\-Menu (const {\bf QPixmap} \& {\em icon}, const {\bf QString} \& {\em text}, int {\em id} = -1)}\label{classKPanelAppMenu_a6}


Inserts a sub menu with a icon. 

The icon name must be a full path. 

Definition at line 109 of file kpanelappmenu.cpp.

References DCOPClient::app\-Id(), DCOPClient::call(), KPanel\-App\-Menu(), and DCOPClient::send().\index{KPanelAppMenu@{KPanel\-App\-Menu}!clear@{clear}}
\index{clear@{clear}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPanel\-App\-Menu::clear ()}\label{classKPanelAppMenu_a7}


Clears the menu. 



Definition at line 147 of file kpanelappmenu.cpp.

References DCOPClient::send().\index{KPanelAppMenu@{KPanel\-App\-Menu}!activated@{activated}}
\index{activated@{activated}!KPanelAppMenu@{KPanel\-App\-Menu}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KPanel\-App\-Menu::activated (int {\em id})\hspace{0.3cm}{\tt  [signal]}}\label{classKPanelAppMenu_l0}


Emitted when the user selects an item from the Kicker menu. 



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