Keyboard Accelerator Configuration

O Manual de Programação do KDevelop: O Guia do Utilizador para Desenvolvimento de Aplicações C++ para o Ambiente de Trabalho K (KDE) com o ambiente de trabalho KDevelop, Versão 2.1
Prev | Capítulo 5. Configuring Menubars and Toolbars | Next

# 5.5. Keyboard Accelerator Configuration

A very professional thing you should always add to your application are keyboard accelerators. Those are mainly used by experienced users that want to work fast with their applications and are willing to learn shortcuts. For this, the KDE libraries provide the class `KAccel`, which provides the keyboard accelerator keys and access to global configured standard keyboard accelerators.

By default, frame applications generated by KDevelop only use standard keyboard accelerators such as F1 for accessing online-help, Ctrl+N for New File etc. You should look for the keyboard accelerators already set in `KAccel` first before adding a new accelerator.

If your application contains a lot of accelerators, you should make them configurable by an Options-menu; either it could be combined with other application configuration in a `QWidget` or stand alone. The KDE library already provides a `KKeyChooser` for use in tab dialogs, whereas `KKeyDialog` provides a ready-to use key-configuration dialog.

See the following classes for more information:

`KAccel`(kdecore), `KKeyChooser`, `KKeyDialog` (kdeui)

Prev | Home | Next
Configuring Statusbars | Up | The Dialogeditor: Where your Dialogs are Build