• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KAcceleratorManager Class Reference

KDE Accelerator manager. More...

#include <kacceleratormanager.h>

List of all members.


Static Public Member Functions

static void last_manage (QString &added, QString &changed, QString &removed)
static void manage (QWidget *widget, bool programmers_mode=false)
static void setNoAccel (QWidget *widget)

Detailed Description

KDE Accelerator manager.

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

Author:
Matthias Hölzer-Klüpfel <mhk@kde.org>

Definition at line 38 of file kacceleratormanager.h.


Member Function Documentation

void KAcceleratorManager::last_manage ( QString &  added,
QString &  changed,
QString &  removed 
) [static]

For internal use only.

returns the result of the last manage operation.

Definition at line 503 of file kacceleratormanager.cpp.

void KAcceleratorManager::manage ( QWidget *  widget,
bool  programmers_mode = false 
) [static]

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.

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.

Parameters:
widget The toplevel widget you want to manage.
programmers_mode if true, KAcceleratorManager adds (&) for removed accels and & before added accels

Definition at line 494 of file kacceleratormanager.cpp.

void KAcceleratorManager::setNoAccel ( QWidget *  widget  )  [static]

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

Definition at line 900 of file kacceleratormanager.cpp.


The documentation for this class was generated from the following files:
  • kacceleratormanager.h
  • kacceleratormanager.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal