\section{KAccelerator\-Manager Class Reference}
\label{classKAcceleratorManager}\index{KAcceleratorManager@{KAcceleratorManager}}
{\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} Accelerator manager.  


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

\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static void {\bf manage} ({\bf QWidget} $\ast$widget)
\item 
static void {\bf manage} ({\bf QWidget} $\ast$widget, bool programmers\_\-mode)
\item 
static void {\bf last\_\-manage} ({\bf QString} \&added, {\bf QString} \&changed, {\bf QString} \&removed)\label{classKAcceleratorManager_e2}

\item 
static void {\bf set\-No\-Accel} ({\bf QWidget} $\ast$widget)
\end{CompactItemize}


\subsection{Detailed Description}
{\bf KDE}{\rm (p.\,\pageref{namespaceKDE})} Accelerator manager. 

This class can be used to find a valid and working set of accelerators for any widget.

\begin{Desc}
\item[Author:]Matthias H\"{o}lzer-Kl\"{u}pfel $<${\tt mhk@kde.org}$>$ \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 40 of file kaccelmanager.h.

\subsection{Member Function Documentation}
\index{KAcceleratorManager@{KAccelerator\-Manager}!manage@{manage}}
\index{manage@{manage}!KAcceleratorManager@{KAccelerator\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KAccelerator\-Manager::manage ({\bf QWidget} $\ast$ {\em widget})\hspace{0.3cm}{\tt  [static]}}\label{classKAcceleratorManager_e0}


Manages the accelerators of a widget. 

Call this function on the top widget of the hierarchy you want to manage. It will fix the accelerators of the child widgets so there are never duplicate accelerators. It also tries to put accelerators on as many widgets as possible.

The algorithm used tries to take the existing accelerators into account, as well as the class of each widget. Hopefully, the result is close to what you would assign manually.

QPopup\-Menu's are managed dynamically, so when you add or remove entries, the accelerators are reassigned. If you add or remove widgets to your toplevel widget, you will have to call manage again to fix the accelerators.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em widget}]The toplevel widget you want to manage. \end{description}
\end{Desc}


Definition at line 449 of file kaccelmanager.cpp.\index{KAcceleratorManager@{KAccelerator\-Manager}!manage@{manage}}
\index{manage@{manage}!KAcceleratorManager@{KAccelerator\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KAccelerator\-Manager::manage ({\bf QWidget} $\ast$ {\em widget}, bool {\em programmers\_\-mode})\hspace{0.3cm}{\tt  [static]}}\label{classKAcceleratorManager_e1}


Does the same as the above function, but puts hints in the GUI so the programmer can enhance his program. 

TODO KDE4: merge with the above \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em widget}]The toplevel widget you want to manage. \item[{\em programmers\_\-mode}]if true, KAccelerator\-Manager adds (\&) for removed accels and \& before added accels \end{description}
\end{Desc}


Definition at line 454 of file kaccelmanager.cpp.\index{KAcceleratorManager@{KAccelerator\-Manager}!setNoAccel@{setNoAccel}}
\index{setNoAccel@{setNoAccel}!KAcceleratorManager@{KAccelerator\-Manager}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KAccelerator\-Manager::set\-No\-Accel ({\bf QWidget} $\ast$ {\em widget})\hspace{0.3cm}{\tt  [static]}}\label{classKAcceleratorManager_e3}


Use this method for a widget (and it's children) you want no accels to be set on. 

\begin{Desc}
\item[Since:]3.4 \end{Desc}


Definition at line 869 of file kaccelmanager.cpp.

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