#include <scim_hotkey.h>
Public Member Functions | |
FrontEndHotkeyMatcher () | |
~FrontEndHotkeyMatcher () | |
void | load_hotkeys (const ConfigPointer &config) |
Load all FrontEnd specific Hotkeys from Config. | |
void | save_hotkeys (const ConfigPointer &config) const |
Save all FrontEnd specific Hotkeys to Config. | |
void | add_hotkey (const KeyEvent &key, FrontEndHotkeyAction action) |
Add a Hotkey for an FrontEnd into this FrontEndHotkeyMatcher. | |
void | add_hotkeys (const KeyEventList &keys, FrontEndHotkeyAction action) |
Add a set of Hotkeys for an FrontEnd into this FrontEndHotkeyMatcher. | |
size_t | find_hotkeys (FrontEndHotkeyAction action, KeyEventList &keys) const |
Find all Hotkeys binded to a specific action. | |
size_t | get_all_hotkeys (KeyEventList &keys, std::vector< FrontEndHotkeyAction > &actions) const |
Get all hotkeys in this FrontEndHotkeyMatcher. | |
void | reset (void) |
Reset the FrontEndHotkeyMatcher. | |
void | clear (void) |
Clear all Hotkeys and reset the FrontEndHotkeyMatcher. | |
void | push_key_event (const KeyEvent &key) |
Push a KeyEvent into the queue. | |
bool | is_matched (void) const |
Check if the last KeyEvent pushed by push_key_event () matched with any Hotkey. | |
FrontEndHotkeyAction | get_match_result (void) const |
Get the match result. |
|
|
|
|
|
Load all FrontEnd specific Hotkeys from Config.
|
|
Save all FrontEnd specific Hotkeys to Config.
|
|
Add a Hotkey for an FrontEnd into this FrontEndHotkeyMatcher.
|
|
Add a set of Hotkeys for an FrontEnd into this FrontEndHotkeyMatcher.
|
|
Find all Hotkeys binded to a specific action.
|
|
Get all hotkeys in this FrontEndHotkeyMatcher.
|
|
Reset the FrontEndHotkeyMatcher. The KeyEvent queue will be cleared, all state will be reset. The Hotkeys which were already added will not be touched. |
|
Clear all Hotkeys and reset the FrontEndHotkeyMatcher.
|
|
Push a KeyEvent into the queue. This KeyEvent will be matched against the available Hotkeys immediately.
|
|
Check if the last KeyEvent pushed by push_key_event () matched with any Hotkey.
|
|
Get the match result.
|