2015-07-27 07:22:21 +00:00
|
|
|
#ifndef KEYB_H
|
|
|
|
#define KEYB_H
|
2015-04-30 19:47:32 +00:00
|
|
|
|
|
|
|
typedef enum _KeyBindingAction
|
|
|
|
{
|
|
|
|
PASTE_PRIMARY = 0,
|
|
|
|
PASTE_SECONDARY,
|
|
|
|
CLEAR_LINE,
|
|
|
|
MOVE_FRONT,
|
|
|
|
MOVE_END,
|
2015-04-30 20:46:51 +00:00
|
|
|
MOVE_WORD_BACK,
|
|
|
|
MOVE_WORD_FORWARD,
|
2015-05-02 09:53:27 +00:00
|
|
|
MOVE_CHAR_BACK,
|
|
|
|
MOVE_CHAR_FORWARD,
|
2015-04-30 19:47:32 +00:00
|
|
|
REMOVE_WORD_BACK,
|
|
|
|
REMOVE_WORD_FORWARD,
|
|
|
|
REMOVE_CHAR_FORWARD,
|
2015-04-30 20:42:04 +00:00
|
|
|
REMOVE_CHAR_BACK,
|
2015-05-01 06:16:52 +00:00
|
|
|
ACCEPT_ENTRY,
|
|
|
|
ACCEPT_CUSTOM,
|
|
|
|
ACCEPT_ENTRY_CONTINUE,
|
2015-05-02 09:53:27 +00:00
|
|
|
MODE_NEXT,
|
|
|
|
MODE_PREVIOUS,
|
|
|
|
TOGGLE_CASE_SENSITIVITY,
|
|
|
|
DELETE_ENTRY,
|
2015-05-05 17:30:43 +00:00
|
|
|
CUSTOM_1,
|
|
|
|
CUSTOM_2,
|
|
|
|
CUSTOM_3,
|
|
|
|
CUSTOM_4,
|
|
|
|
CUSTOM_5,
|
|
|
|
CUSTOM_6,
|
|
|
|
CUSTOM_7,
|
|
|
|
CUSTOM_8,
|
|
|
|
CUSTOM_9,
|
2015-06-15 06:48:13 +00:00
|
|
|
ROW_LEFT,
|
|
|
|
ROW_RIGHT,
|
|
|
|
ROW_UP,
|
|
|
|
ROW_DOWN,
|
|
|
|
ROW_TAB,
|
2015-06-15 07:01:22 +00:00
|
|
|
PAGE_PREV,
|
|
|
|
PAGE_NEXT,
|
|
|
|
ROW_FIRST,
|
|
|
|
ROW_LAST,
|
|
|
|
ROW_SELECT,
|
|
|
|
CANCEL,
|
2015-04-30 19:47:32 +00:00
|
|
|
NUM_ABE
|
|
|
|
} KeyBindingAction;
|
|
|
|
|
|
|
|
|
2015-05-02 10:21:54 +00:00
|
|
|
/**
|
|
|
|
* Parse the keybindings.
|
|
|
|
* This should be called after the setting system is initialized.
|
|
|
|
*/
|
2015-04-30 20:42:04 +00:00
|
|
|
void parse_keys_abe ( void );
|
2015-05-02 10:21:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Setup the keybindings
|
|
|
|
* This adds all the entries to the settings system.
|
|
|
|
*/
|
2015-04-30 19:47:32 +00:00
|
|
|
void setup_abe ( void );
|
|
|
|
|
2015-05-02 10:21:54 +00:00
|
|
|
/**
|
|
|
|
* Cleanup.
|
|
|
|
*/
|
2015-04-30 20:42:04 +00:00
|
|
|
void cleanup_abe ( void );
|
|
|
|
|
2015-05-02 10:21:54 +00:00
|
|
|
/**
|
|
|
|
* Check if this key has been triggered.
|
|
|
|
* @returns TRUE if key combo matches, FALSE otherwise.
|
|
|
|
*/
|
2015-04-30 19:47:32 +00:00
|
|
|
int abe_test_action ( KeyBindingAction action, unsigned int mask, KeySym key );
|
2015-07-27 07:22:21 +00:00
|
|
|
#endif // KEYB_H
|