|
rlmm::basic_key_map< Lock > Struct Template Reference |
Public Types | |
typedef keymap_list::iterator | iterator |
typedef keymap_list::const_iterator | const_iterator |
enum | type { function, macro, map } |
Public Member Functions | |
void | set_to_system () |
void | unset_from_system () |
Basic operations | |
basic_key_map () | |
basic_key_map (const std::string &name) | |
basic_key_map (bool empty) | |
basic_key_map (const basic_key_map< Lock > &km) | |
basic_key_map (void *ptr) | |
virtual | ~basic_key_map () |
virtual std::string | name () const |
Adding and removing bindings in the keymap | |
virtual bool | add (int key, command_t cmd) |
virtual bool | add (const std::string &keyseq, command_t cmd) |
template<class T> | |
bool | add (int key) |
template<class T> | |
bool | add (const std::string &keyseq) |
virtual bool | add_macro (const std::string ¯o, const std::string &replace) |
virtual bool | remove (const std::string &name) |
virtual bool | remove (int key) |
virtual bool | remove (command_t cmd) |
template<class T> | |
bool | remove () |
Information on keymap | |
virtual command_t | get (const std::string &keys, type &type) const |
virtual std::list< std::string > | keys (command_t cmd) const |
template<class T> | |
std::list< std::string > | keys () const |
void | list_bindings (bool readable=false) |
void | list_macros (bool readable=false) |
Static Public Member Functions | |
Manipluate the keymap list | |
static iterator | find_keymap (const std::string &name) |
Utility functions | |
static iterator | last () |
static std::string | executing_macro () |
static iterator | executing_keymap () |
static int | ctrl (int key) |
static int | meta (int key) |
static int | ctrl_meta (int key) |
Protected Types | |
typedef std::list< rlmm::basic_key_map< Lock > * > | keymap_list |
Protected Member Functions | |
void | do_activate () |
void | do_deactivate () |
Static Protected Member Functions | |
static void | init () |
static iterator | find_keymap (void *m) |
Protected Attributes | |
::Keymap | _keymap |
Static Protected Attributes | |
static bool | _initialized = false |
static keymap_list * | _keymaps = 0 |
Friends | |
class | one_at_a_time |
|
Constant iterator.
|
|
Iterator.
|
|
List of key maps.
|
|
Type of action.
|
|
|
|
Create a new (possibly empty) key_map.
|
|
Create a new (possibly empty) key_map.
|
|
Copy a key_map.
|
|
Set a key_map from pointer.
|
|
Destroy a key_map.
|
|
Bind a command to a key sequence in this map. The template argument should be a sub-class of rlmm::command.
|
|
Bind a command to a key in this map. The template argument should be a sub-class of rlmm::command.
|
|
Bind a command to a key sequence in this map.
|
|
Bind key to a command in this map.
|
|
Bind a macro. To invalidate a macro pass an empty string for the replacment text.
|
|
Make a C-<key> encoding.
|
|
Make a C-M-<key> encoding.
|
|
Set the current key_map.
Implements rlmm::one_at_a_time< basic_key_map, Lock >. |
|
Set the current key_map.
Implements rlmm::one_at_a_time< basic_key_map, Lock >. |
|
Return the key_map where current command is executing.
|
|
Return name of currently executing macro, if any.
|
|
Find a key_map by name.
|
|
Find a key_map.
|
|
Get command invoked by key sequence.
|
|
|
|
Get a list of keysequences that invokes a command. Template argument should be a sub-class of rlmm::command.
|
|
Get a list of keysequences that invokes a command.
|
|
Return last key_map that had a binding.
|
|
List all key-bindings in this map.
|
|
List all macrosin this map.
|
|
Make a M-<key> encoding.
|
|
Get the name of the key_map.
|
|
Unbind all keys to a command in this map. Template argument should be a sub-class of rlmm::commmand.
|
|
Unbind all keys bound to a command in this map.
|
|
Unbind a key in this map.
|
|
Unbind a named function in this map.
|
|
|
|
|
|
We befriend out base class.
|
|
|
|
Pointer to internal readline struct.
|
|
List of key_maps.
|