#include "LString.h"
-using std::list;
-
class kb_sequence;
/// Defines key maps and actions for key sequences
/** Bind a key-sequence to an action.
Returns 0 on success. Otherwise, position in string where
error occured. */
- int bind(char const * seq, int action);
+ int bind(string const & seq, int action);
///
void print(string & buf) const;
unsigned int mod, kb_sequence * seq) const;
/// Given an action, find all keybindings.
- string findbinding(int action) const;
+ string const findbinding(int action) const;
private:
///
struct kb_key {
/// Define a new key sequence
int defkey(kb_sequence * seq, int action, int idx = 0);
///
- static string keyname(kb_key const & k);
+ static string const keyname(kb_key const & k);
///
static
return table.empty();
}
///
- typedef list<kb_key> Table;
+ typedef std::list<kb_key> Table;
///
Table table;
};