.TH "KAcceleratorManager" 3 "28 Jan 2004" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KAcceleratorManager \- \fBKDE\fP Accelerator manager.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kaccelmanager.h>\fP
.PP
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "void \fBmanage\fP (\fBQWidget\fP *widget)"
.br
.RI "\fIManages the accelerators of a widget. \fP"
.ti -1c
.RI "void \fBmanage\fP (\fBQWidget\fP *widget, bool programmers_mode)"
.br
.RI "\fIDoes the same as the above function, but puts hints in the GUI so the programmer can enhance his program. \fP"
.in -1c
.SH "Detailed Description"
.PP 
\fBKDE\fP Accelerator manager. 

This class can be used to find a valid and working set of accelerators for any widget.
.PP
\fBAuthor:\fP
.RS 4
Matthias Hölzer-Klüpfel <mhk@kde.org> 
.RE
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkaccelmanager.h\fP,v 1.4 2002/09/28 15:16:22 tjansen Exp 
.RE
.PP
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 39 of file kaccelmanager.h.
.SH "Member Function Documentation"
.PP 
.SS "void KAcceleratorManager::manage (\fBQWidget\fP * widget)\fC [static]\fP"
.PP
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.
.PP
The algorithm used tries to take the exisiting accelerators into account, as well as the class of each widget. Hopefully, the result is close to what you would assign manually.
.PP
QPopupMenu'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.
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The toplevel widget you want to manage. 
.RE
.PP
Definition at line 352 of file kaccelmanager.cpp.
.SS "void KAcceleratorManager::manage (\fBQWidget\fP * widget, bool programmers_mode)\fC [static]\fP"
.PP
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 
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The toplevel widget you want to manage. 
.br
\fIprogrammers_mode\fP if true, KAcceleratorManager adds (&) for removed accels and & before added accels 
.RE
.PP
Definition at line 357 of file kaccelmanager.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
