.TH "KAcceleratorManager" kde3 "11 Jun 2005" "Version Version 3.4.1" "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 "static void \fBmanage\fP (\fBQWidget\fP *widget)"
.br
.ti -1c
.RI "static void \fBmanage\fP (\fBQWidget\fP *widget, bool programmers_mode)"
.br
.ti -1c
.RI "static void \fBlast_manage\fP (\fBQString\fP &added, \fBQString\fP &changed, \fBQString\fP &removed)"
.br
.ti -1c
.RI "static void \fBsetNoAccel\fP (\fBQWidget\fP *widget)"
.br
.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
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 40 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. 
.PP
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 existing 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

.PP
Definition at line 449 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. 
.PP
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

.PP
Definition at line 454 of file kaccelmanager.cpp.
.SS "void KAcceleratorManager::setNoAccel (\fBQWidget\fP * widget)\fC [static]\fP"
.PP
Use this method for a widget (and it's children) you want no accels to be set on. 
.PP
\fBSince:\fP
.RS 4
3.4 
.RE
.PP

.PP
Definition at line 869 of file kaccelmanager.cpp.

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