scim
1.4.18
|
This class hold all Hotkeys for each IMEngines. More...
#include <scim_hotkey.h>
Public Member Functions | |
IMEngineHotkeyMatcher () | |
~IMEngineHotkeyMatcher () | |
void | load_hotkeys (const ConfigPointer &config) |
Load all Hotkeys for IMEngines from Config. More... | |
void | save_hotkeys (const ConfigPointer &config) const |
Save all Hotkeys for IMEngines to Config. More... | |
void | add_hotkey (const KeyEvent &key, const String &uuid) |
Add a Hotkey for an IMEngine into this IMEngineHotkeyMatcher. More... | |
void | add_hotkeys (const KeyEventList &keys, const String &uuid) |
Add a set of Hotkeys for an IMEngine into this IMEngineHotkeyMatcher. More... | |
size_t | find_hotkeys (const String &uuid, KeyEventList &keys) const |
Find all Hotkeys binded to a specific IMEngine UUID. More... | |
size_t | get_all_hotkeys (KeyEventList &keys, std::vector< String > &uuids) const |
Get all hotkeys in this IMEngineHotkeyMatcher. More... | |
void | reset (void) |
Reset the IMEngineHotkeyMatcher. More... | |
void | clear (void) |
Clear all Hotkeys and reset the IMEngineHotkeyMatcher. More... | |
void | push_key_event (const KeyEvent &key) |
Push a KeyEvent into the queue. More... | |
bool | is_matched (void) const |
Check if the last KeyEvent pushed by push_key_event () matched with any Hotkey. More... | |
String | get_match_result (void) const |
Get the match result. More... | |
This class hold all Hotkeys for each IMEngines.
scim::IMEngineHotkeyMatcher::IMEngineHotkeyMatcher | ( | ) |
scim::IMEngineHotkeyMatcher::~IMEngineHotkeyMatcher | ( | ) |
void scim::IMEngineHotkeyMatcher::load_hotkeys | ( | const ConfigPointer & | config | ) |
Load all Hotkeys for IMEngines from Config.
config | The Config object in which the Hotkeys are stored. |
void scim::IMEngineHotkeyMatcher::save_hotkeys | ( | const ConfigPointer & | config | ) | const |
Save all Hotkeys for IMEngines to Config.
config | Store all Hotkeys to this Config object. |
Add a Hotkey for an IMEngine into this IMEngineHotkeyMatcher.
key | The Hotkey. |
uuid | The UUID of the corresponding IMEngine. |
void scim::IMEngineHotkeyMatcher::add_hotkeys | ( | const KeyEventList & | keys, |
const String & | uuid | ||
) |
Add a set of Hotkeys for an IMEngine into this IMEngineHotkeyMatcher.
keys | The Hotkeys. |
uuid | The UUID of the corresponding IMEngine. |
size_t scim::IMEngineHotkeyMatcher::find_hotkeys | ( | const String & | uuid, |
KeyEventList & | keys | ||
) | const |
Find all Hotkeys binded to a specific IMEngine UUID.
uuid | The IMEngine uuid to be found. |
keys | A KeyEventList object to hold all KeyEvents binded to the uuid. |
size_t scim::IMEngineHotkeyMatcher::get_all_hotkeys | ( | KeyEventList & | keys, |
std::vector< String > & | uuids | ||
) | const |
Get all hotkeys in this IMEngineHotkeyMatcher.
keys | A list of all Hotkeys. |
uuids | A list of all corresponding IMEngine UUIDs. |
void scim::IMEngineHotkeyMatcher::reset | ( | void | ) |
Reset the IMEngineHotkeyMatcher.
The KeyEvent queue will be cleared, all state will be reset. The Hotkeys which were already added will not be touched.
void scim::IMEngineHotkeyMatcher::clear | ( | void | ) |
Clear all Hotkeys and reset the IMEngineHotkeyMatcher.
void scim::IMEngineHotkeyMatcher::push_key_event | ( | const KeyEvent & | key | ) |
bool scim::IMEngineHotkeyMatcher::is_matched | ( | void | ) | const |
String scim::IMEngineHotkeyMatcher::get_match_result | ( | void | ) | const |
Get the match result.