• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

Static Public Member Functions | List of all members
TDEAcceleratorManager Class Reference

#include <tdeaccelmanager.h>

Static Public Member Functions

static void manage (TQWidget *widget)
 
static void manage (TQWidget *widget, bool programmers_mode)
 
static void last_manage (TQString &added, TQString &changed, TQString &removed)
 
static void setNoAccel (TQWidget *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 Hoelzer-Kluepfel mhk@k.nosp@m.de.o.nosp@m.rg
Since
3.1

Definition at line 40 of file tdeaccelmanager.h.

Member Function Documentation

◆ last_manage()

void TDEAcceleratorManager::last_manage ( TQString &  added,
TQString &  changed,
TQString &  removed 
)
static

Definition at line 464 of file tdeaccelmanager.cpp.

◆ manage() [1/2]

void TDEAcceleratorManager::manage ( TQWidget *  widget)
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
widgetThe toplevel widget you want to manage.

Definition at line 449 of file tdeaccelmanager.cpp.

◆ manage() [2/2]

void TDEAcceleratorManager::manage ( TQWidget *  widget,
bool  programmers_mode 
)
static

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

Parameters
widgetThe toplevel widget you want to manage.
programmers_modeif true, TDEAcceleratorManager adds (&) for removed accels and & before added accels

Definition at line 454 of file tdeaccelmanager.cpp.

◆ setNoAccel()

void TDEAcceleratorManager::setNoAccel ( TQWidget *  widget)
static

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

Since
3.4

Definition at line 866 of file tdeaccelmanager.cpp.


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

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.