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

tdecore

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

#include <tdeaccelmanager_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 (TDEAccelStringList &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 tdeaccelmanager_private.h.

Member Enumeration Documentation

◆ anonymous enum

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 tdeaccelmanager_private.h.

Member Function Documentation

◆ findAccelerators()

void TDEAccelManagerAlgorithm::findAccelerators ( TDEAccelStringList &  result,
TQString &  used 
)
static

Method to call to find the best distribution of accelerators.

Definition at line 682 of file tdeaccelmanager.cpp.


The documentation for this class was generated from the following files:
  • tdeaccelmanager_private.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.