|
OpenASIP 2.2
|
#include <KeyboardShortcutDialog.hh>


Public Member Functions | |
| KeyboardShortcutDialog (wxWindow *parent, KeyboardShortcut *shortcut) | |
| virtual | ~KeyboardShortcutDialog () |
Private Types | |
| enum | { ID_SHORTCUT = 10000 } |
| enumerated IDs for dialog widgets More... | |
Private Member Functions | |
| virtual bool | TransferDataToWindow () |
| wxSizer * | createContents (wxWindow *parent, bool callFit, bool set_sizer) |
| void | onCharEvent (wxKeyEvent &event) |
Private Attributes | |
| KeyboardShortcut * | shortcut_ |
| modified shortcut | |
| wxStaticText * | shortcutField_ |
| shortcut text field widget | |
Dialog for defining keyboard shortcuts.
Definition at line 44 of file KeyboardShortcutDialog.hh.
|
private |
enumerated IDs for dialog widgets
| Enumerator | |
|---|---|
| ID_SHORTCUT | |
Definition at line 60 of file KeyboardShortcutDialog.hh.
| KeyboardShortcutDialog::KeyboardShortcutDialog | ( | wxWindow * | parent, |
| KeyboardShortcut * | shortcut | ||
| ) |
The constructor.
| parent | Parent window of the dialog. |
| shortcut | Shortcut to modify. |
Definition at line 56 of file KeyboardShortcutDialog.cc.
References assert.
|
virtual |
|
private |
Creates the dialog contents.
This function was initially generated by wxDesigner.
| parent | The dialog window. |
| call_fit | If true, fits the contents inside the dialog. |
| set_sizer | If true, sets the main sizer as dialog contents. |
Definition at line 178 of file KeyboardShortcutDialog.cc.
References ID_SHORTCUT, shortcutField_, and TRUE.
|
private |
Sets a new shortcut for the command.
| event | Keyevent of the new shortcut. |
Definition at line 126 of file KeyboardShortcutDialog.cc.
References assert, PRINT_VAR, KeyboardShortcut::setAlt(), KeyboardShortcut::setCtrl(), KeyboardShortcut::setFKey(), KeyboardShortcut::setKey(), shortcut_, and TransferDataToWindow().

|
privatevirtual |
Transfers data from dialog attributes to dialog widgets.
Definition at line 87 of file KeyboardShortcutDialog.cc.
References KeyboardShortcut::alt(), KeyboardShortcut::ctrl(), KeyboardShortcut::fKey(), KeyboardShortcut::key(), shortcut_, shortcutField_, Conversion::toString(), and WxConversion::toWxString().
Referenced by onCharEvent().

|
private |
modified shortcut
Definition at line 55 of file KeyboardShortcutDialog.hh.
Referenced by onCharEvent(), and TransferDataToWindow().
|
private |
shortcut text field widget
Definition at line 57 of file KeyboardShortcutDialog.hh.
Referenced by createContents(), and TransferDataToWindow().