scim 1.4.18
|
This class hold all FrontEnd specific Hotkeys, such as trigger keys, on/off keys, etc. More...
#include <scim_hotkey.h>
This class hold all FrontEnd specific Hotkeys, such as trigger keys, on/off keys, etc.
scim::FrontEndHotkeyMatcher::FrontEndHotkeyMatcher | ( | ) |
scim::FrontEndHotkeyMatcher::~FrontEndHotkeyMatcher | ( | ) |
void scim::FrontEndHotkeyMatcher::load_hotkeys | ( | const ConfigPointer & | config | ) |
Load all FrontEnd specific Hotkeys from Config.
config | The Config object in which the Hotkeys are stored. |
void scim::FrontEndHotkeyMatcher::save_hotkeys | ( | const ConfigPointer & | config | ) | const |
Save all FrontEnd specific Hotkeys to Config.
config | Store all Hotkeys to this Config object. |
void scim::FrontEndHotkeyMatcher::add_hotkey | ( | const KeyEvent & | key, |
FrontEndHotkeyAction | action ) |
Add a Hotkey for an FrontEnd into this FrontEndHotkeyMatcher.
key | The Hotkey. |
action | The action to do when the hotkey is matched. |
void scim::FrontEndHotkeyMatcher::add_hotkeys | ( | const KeyEventList & | keys, |
FrontEndHotkeyAction | action ) |
Add a set of Hotkeys for an FrontEnd into this FrontEndHotkeyMatcher.
keys | The Hotkeys. |
action | The action to do when the hotkey is matched. |
size_t scim::FrontEndHotkeyMatcher::find_hotkeys | ( | FrontEndHotkeyAction | action, |
KeyEventList & | keys ) const |
Find all Hotkeys binded to a specific action.
action | The action to be found. |
keys | A KeyEventList object to hold all KeyEvents binded to the action. |
size_t scim::FrontEndHotkeyMatcher::get_all_hotkeys | ( | KeyEventList & | keys, |
std::vector< FrontEndHotkeyAction > & | actions ) const |
Get all hotkeys in this FrontEndHotkeyMatcher.
keys | A list of all Hotkeys. |
actions | A list of all corresponding actions |
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.
FrontEndHotkeyAction scim::FrontEndHotkeyMatcher::get_match_result | ( | void | ) | const |
Get the match result.