#include <scim_hotkey.h>
Public Member Functions | |
| IMEngineHotkeyMatcher () | |
| ~IMEngineHotkeyMatcher () | |
| void | load_hotkeys (const ConfigPointer &config) |
| Load all Hotkeys for IMEngines from Config. | |
| void | save_hotkeys (const ConfigPointer &config) const |
| Save all Hotkeys for IMEngines to Config. | |
| void | add_hotkey (const KeyEvent &key, const String &uuid) |
| Add a Hotkey for an IMEngine into this IMEngineHotkeyMatcher. | |
| void | add_hotkeys (const KeyEventList &keys, const String &uuid) |
| Add a set of Hotkeys for an IMEngine into this IMEngineHotkeyMatcher. | |
| size_t | find_hotkeys (const String &uuid, KeyEventList &keys) const |
| Find all Hotkeys binded to a specific IMEngine UUID. | |
| size_t | get_all_hotkeys (KeyEventList &keys, std::vector< String > &uuids) const |
| Get all hotkeys in this IMEngineHotkeyMatcher. | |
| void | reset (void) |
| Reset the IMEngineHotkeyMatcher. | |
| void | clear (void) |
| Clear all Hotkeys and reset the IMEngineHotkeyMatcher. | |
| 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. | |
| String | get_match_result (void) const |
| Get the match result. | |
|
|
|
|
|
|
|
|
Load all Hotkeys for IMEngines from Config.
|
|
|
Save all Hotkeys for IMEngines to Config.
|
|
||||||||||||
|
Add a Hotkey for an IMEngine into this IMEngineHotkeyMatcher.
|
|
||||||||||||
|
Add a set of Hotkeys for an IMEngine into this IMEngineHotkeyMatcher.
|
|
||||||||||||
|
Find all Hotkeys binded to a specific IMEngine UUID.
|
|
||||||||||||
|
Get all hotkeys in this IMEngineHotkeyMatcher.
|
|
|
Reset the IMEngineHotkeyMatcher. 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 IMEngineHotkeyMatcher.
|
|
|
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.
|
1.4.6