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

kdecore

Public Types | Static Public Member Functions | List of all members
KAccelManagerAlgorithm Class Reference

#include <kaccelmanager_private.h>

Public Types

enum  {
  DEFAULT_WEIGHT = 50, FIRST_CHARACTER_EXTRA_WEIGHT = 50, WORD_BEGINNING_EXTRA_WEIGHT = 50, DIALOG_BUTTON_EXTRA_WEIGHT = 300,
  WANTED_ACCEL_EXTRA_WEIGHT = 150, ACTION_ELEMENT_WEIGHT = 50, GROUP_BOX_WEIGHT = -2000, MENU_TITLE_WEIGHT = 250,
  STANDARD_ACCEL = 300
}
 

Static Public Member Functions

static void findAccelerators (KAccelStringList &result, TQString &used)
 

Detailed Description

This class encapsulates the algorithm finding the 'best' distribution of accelerators in a hierarchy of widgets.

Author
Matthias Hoelzer-Kluepfel mhk@k.nosp@m.de.o.nosp@m.rg

Definition at line 90 of file kaccelmanager_private.h.

Member Enumeration Documentation

anonymous enum

Constants used in the algorithm.

Enumerator
DEFAULT_WEIGHT 

Default control weight.

FIRST_CHARACTER_EXTRA_WEIGHT 

Additional weight for first character in string.

WORD_BEGINNING_EXTRA_WEIGHT 

Additional weight for the beginning of a word.

DIALOG_BUTTON_EXTRA_WEIGHT 

Additional weight for the dialog buttons (large, we basically never want these reassigned)

WANTED_ACCEL_EXTRA_WEIGHT 

Additional weight for a 'wanted' accelerator.

ACTION_ELEMENT_WEIGHT 

Default weight for an 'action' widget (ie, pushbuttons)

GROUP_BOX_WEIGHT 

Default weight for group boxes (low priority)

MENU_TITLE_WEIGHT 

Default weight for menu titles.

STANDARD_ACCEL 

Additional weight for KDE standard accelerators.

Definition at line 95 of file kaccelmanager_private.h.

Member Function Documentation

void KAccelManagerAlgorithm::findAccelerators ( KAccelStringList &  result,
TQString &  used 
)
static

Method to call to find the best distribution of accelerators.

Definition at line 682 of file kaccelmanager.cpp.


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

kdecore

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

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |