#include <kkeydialog.h>
Inherits TQWidget.
|
enum | ActionType { Application
, ApplicationGlobal
, Standard
, Global
} |
|
|
| KKeyChooser (TQWidget *parent, ActionType type=Application, bool bAllowLetterShortcuts=true) |
|
| KKeyChooser (TDEActionCollection *coll, TQWidget *parent, bool bAllowLetterShortcuts=true) |
|
| KKeyChooser (TDEAccel *actions, TQWidget *parent, bool bAllowLetterShortcuts=true) |
|
| KKeyChooser (TDEGlobalAccel *actions, TQWidget *parent) |
|
| KKeyChooser (TDEShortcutList *, TQWidget *parent, ActionType type=Application, bool bAllowLetterShortcuts=true) |
|
bool | insert (TDEActionCollection *) |
|
bool | insert (TDEActionCollection *, const TQString &title) |
|
void | syncToConfig (const TQString &sConfigGroup, TDEConfigBase *pConfig, bool bClearUnset) |
|
void | commitChanges () |
|
void | save () |
|
| KKeyChooser (TDEAccel *actions, TQWidget *parent, bool bCheckAgainstStdKeys, bool bAllowLetterShortcuts, bool bAllowWinKey=false) |
|
| KKeyChooser (TDEGlobalAccel *actions, TQWidget *parent, bool bCheckAgainstStdKeys, bool bAllowLetterShortcuts, bool bAllowWinKey=false) |
|
|
enum | { NoKey = 1
, DefaultKey
, CustomKey
} |
|
Widget for configuration of TDEAccel and TDEGlobalAccel.
Configure dictionaries of key/action associations for TDEAccel and TDEGlobalAccel.
The class takes care of all aspects of configuration, including handling key conflicts internally. Connect to the allDefault() slot if you want to set all configurable shortcuts to their default values.
- See also
- KKeyDialog
- Author
- Nicolas Hadacek hadac.nosp@m.ek@v.nosp@m.ia.ec.nosp@m.p.fr
Definition at line 58 of file kkeydialog.h.
◆ anonymous enum
◆ ActionType
enum KKeyChooser::ActionType |
◆ KKeyChooser() [1/7]
KKeyChooser::KKeyChooser |
( |
TQWidget * |
parent, |
|
|
ActionType |
type = Application , |
|
|
bool |
bAllowLetterShortcuts = true |
|
) |
| |
Constructor.
- Parameters
-
parent | the parent widget for this widget |
type | the ActionType for this KKeyChooser |
bAllowLetterShortcuts | Set to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. |
Definition at line 154 of file kkeydialog.cpp.
◆ KKeyChooser() [2/7]
KKeyChooser::KKeyChooser |
( |
TDEActionCollection * |
coll, |
|
|
TQWidget * |
parent, |
|
|
bool |
bAllowLetterShortcuts = true |
|
) |
| |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
- Parameters
-
parent | parent widget |
coll | the TDEActionCollection to configure |
bAllowLetterShortcuts | Set to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. |
Definition at line 160 of file kkeydialog.cpp.
◆ KKeyChooser() [3/7]
KKeyChooser::KKeyChooser |
( |
TDEAccel * |
actions, |
|
|
TQWidget * |
parent, |
|
|
bool |
bAllowLetterShortcuts = true |
|
) |
| |
◆ KKeyChooser() [4/7]
KKeyChooser::KKeyChooser |
( |
TDEGlobalAccel * |
actions, |
|
|
TQWidget * |
parent |
|
) |
| |
◆ KKeyChooser() [5/7]
KKeyChooser::KKeyChooser |
( |
TDEShortcutList * |
pList, |
|
|
TQWidget * |
parent, |
|
|
ActionType |
type = Application , |
|
|
bool |
bAllowLetterShortcuts = true |
|
) |
| |
◆ ~KKeyChooser()
KKeyChooser::~KKeyChooser |
( |
| ) |
|
|
virtual |
◆ KKeyChooser() [6/7]
KKeyChooser::KKeyChooser |
( |
TDEAccel * |
actions, |
|
|
TQWidget * |
parent, |
|
|
bool |
bCheckAgainstStdKeys, |
|
|
bool |
bAllowLetterShortcuts, |
|
|
bool |
bAllowWinKey = false |
|
) |
| |
◆ KKeyChooser() [7/7]
KKeyChooser::KKeyChooser |
( |
TDEGlobalAccel * |
actions, |
|
|
TQWidget * |
parent, |
|
|
bool |
bCheckAgainstStdKeys, |
|
|
bool |
bAllowLetterShortcuts, |
|
|
bool |
bAllowWinKey = false |
|
) |
| |
◆ _warning()
void KKeyChooser::_warning |
( |
const KKeySequence & |
seq, |
|
|
TQString |
sAction, |
|
|
TQString |
sTitle |
|
) |
| |
|
protected |
◆ allDefault
void KKeyChooser::allDefault |
( |
| ) |
|
|
slot |
Set all keys to their default values (bindings).
Definition at line 615 of file kkeydialog.cpp.
◆ buildListView()
void KKeyChooser::buildListView |
( |
uint |
iList, |
|
|
const TQString & |
title = TQString::null |
|
) |
| |
|
protected |
◆ capturedShortcut
void KKeyChooser::capturedShortcut |
( |
const TDEShortcut & |
cut | ) |
|
|
protectedslot |
◆ checkGlobalShortcutsConflict()
bool KKeyChooser::checkGlobalShortcutsConflict |
( |
const TDEShortcut & |
cut, |
|
|
bool |
warnUser, |
|
|
TQWidget * |
parent |
|
) |
| |
|
static |
Checks whether the given shortcut conflicts with global keyboard shortcuts.
If yes, and the warnUser argument is true, warns the user and gives them a chance to reassign the shortcut from the global shortcut.
- Returns
- true if there was conflict (and the user didn't reassign the shortcut)
- Parameters
-
cut | the shortcut that will be checked for conflicts |
warnUser | if true, the user will be warned about a conflict and given a chance to reassign the shortcut |
parent | parent widget for the warning dialog |
- Since
- 3.2
Definition at line 849 of file kkeydialog.cpp.
◆ checkStandardShortcutsConflict()
bool KKeyChooser::checkStandardShortcutsConflict |
( |
const TDEShortcut & |
cut, |
|
|
bool |
warnUser, |
|
|
TQWidget * |
parent |
|
) |
| |
|
static |
Checks whether the given shortcut conflicts with standard keyboard shortcuts.
If yes, and the warnUser argument is true, warns the user and gives them a chance to reassign the shortcut from the standard shortcut.
- Returns
- true if there was conflict (and the user didn't reassign the shortcut)
- Parameters
-
cut | the shortcut that will be checked for conflicts |
warnUser | if true, the user will be warned about a conflict and given a chance to reassign the shortcut |
parent | parent widget for the warning dialog |
- Since
- 3.2
Definition at line 831 of file kkeydialog.cpp.
◆ commitChanges()
void KKeyChooser::commitChanges |
( |
| ) |
|
This function writes any shortcut changes back to the original action set(s).
Definition at line 273 of file kkeydialog.cpp.
◆ fontChange()
void KKeyChooser::fontChange |
( |
const TQFont & |
_font | ) |
|
|
protected |
◆ initGUI()
void KKeyChooser::initGUI |
( |
ActionType |
type, |
|
|
bool |
bAllowLetterShortcuts |
|
) |
| |
|
protected |
◆ insert() [1/5]
bool KKeyChooser::insert |
( |
TDEAccel * |
pAccel | ) |
|
|
protected |
◆ insert() [2/5]
Insert an action collection, i.e.
add all its actions to the ones already associated with the KKeyChooser object.
Definition at line 233 of file kkeydialog.cpp.
◆ insert() [3/5]
Insert an action collection, i.e.
add all its actions to the ones already associated with the KKeyChooser object.
- Parameters
-
title | subtree title of this collection of shortcut. |
- Since
- 3.1
Definition at line 238 of file kkeydialog.cpp.
◆ insert() [4/5]
◆ insert() [5/5]
◆ isKeyPresent()
bool KKeyChooser::isKeyPresent |
( |
const TDEShortcut & |
cut, |
|
|
bool |
warnuser = true |
|
) |
| |
|
protected |
◆ isKeyPresentLocally()
bool KKeyChooser::isKeyPresentLocally |
( |
const TDEShortcut & |
cut, |
|
|
KKeyChooserItem * |
ignoreItem, |
|
|
const TQString & |
warnText |
|
) |
| |
|
protected |
◆ keyChange
void KKeyChooser::keyChange |
( |
| ) |
|
|
signal |
Emitted when an action's shortcut has been changed.
◆ listSync
void KKeyChooser::listSync |
( |
| ) |
|
|
slot |
Rebuild list entries based on underlying map.
Use this if you changed the underlying map.
Definition at line 662 of file kkeydialog.cpp.
◆ readGlobalKeys()
void KKeyChooser::readGlobalKeys |
( |
| ) |
|
|
protected |
◆ save()
void KKeyChooser::save |
( |
| ) |
|
This commits and then saves the actions to disk.
Any TDEActionCollection objects with the xmlFile() value set will be written to an XML file. All other will be written to the application's rc file.
Definition at line 285 of file kkeydialog.cpp.
◆ setPreferFourModifierKeys
void KKeyChooser::setPreferFourModifierKeys |
( |
bool |
preferFourModifierKeys | ) |
|
|
slot |
Specifies whether to use the 3 or 4 modifier key scheme.
This determines which default is used when the 'Default' button is clicked.
Definition at line 647 of file kkeydialog.cpp.
◆ setShortcut()
void KKeyChooser::setShortcut |
( |
const TDEShortcut & |
cut | ) |
|
|
protected |
◆ slotCustomKey
void KKeyChooser::slotCustomKey |
( |
| ) |
|
|
protectedslot |
◆ slotDefaultKey
void KKeyChooser::slotDefaultKey |
( |
| ) |
|
|
protectedslot |
◆ slotListItemDoubleClicked
void KKeyChooser::slotListItemDoubleClicked |
( |
TQListViewItem * |
ipoQListViewItem, |
|
|
const TQPoint & |
ipoQPoint, |
|
|
int |
c |
|
) |
| |
|
protectedslot |
◆ slotListItemSelected
void KKeyChooser::slotListItemSelected |
( |
TQListViewItem * |
item | ) |
|
|
protectedslot |
◆ slotNoKey
void KKeyChooser::slotNoKey |
( |
| ) |
|
|
protectedslot |
◆ slotSettingsChanged
void KKeyChooser::slotSettingsChanged |
( |
int |
category | ) |
|
|
protectedslot |
◆ syncToConfig()
void KKeyChooser::syncToConfig |
( |
const TQString & |
sConfigGroup, |
|
|
TDEConfigBase * |
pConfig, |
|
|
bool |
bClearUnset |
|
) |
| |
◆ updateButtons()
void KKeyChooser::updateButtons |
( |
| ) |
|
|
protected |
◆ virtual_hook()
void KKeyChooser::virtual_hook |
( |
int |
id, |
|
|
void * |
data |
|
) |
| |
|
protectedvirtual |
◆ KKeyDialog
◆ m_bAllowLetterShortcuts
bool KKeyChooser::m_bAllowLetterShortcuts |
|
protected |
◆ m_bAllowWinKey
bool KKeyChooser::m_bAllowWinKey |
|
protected |
◆ m_bPreferFourModifierKeys
bool KKeyChooser::m_bPreferFourModifierKeys |
|
protected |
◆ m_prbCustom
TQRadioButton* KKeyChooser::m_prbCustom |
|
protected |
◆ m_prbDef
TQRadioButton* KKeyChooser::m_prbDef |
|
protected |
◆ m_prbNone
TQRadioButton* KKeyChooser::m_prbNone |
|
protected |
◆ m_type
ActionType KKeyChooser::m_type |
|
protected |
The documentation for this class was generated from the following files: