-
- /// Standard commands
- static kb_func_table const * lyx_func_table;
- /// Number of commands
- int funcCount;
- /// Pseudoactions
- static kb_func_table * lyx_func_args;
- /// Pseudoaction index
- static int psd_idx;
- /// Last action index found
- int last_action_idx;
+ ///
+ void init();
+ ///
+ void newFunc(kb_action, string const & name,
+ string const & helpText, unsigned int attrib);
+
+ /** This is a list of all the LyXFunc names with the
+ coresponding action number. It is usually only used by the
+ minibuffer or when assigning commands to keys during init. */
+ func_map lyx_func_map;
+
+ /** This is a mapping from action number to an object holding
+ info about this action. f.ex. helptext, command name (string),
+ command attributes (ro) */
+ info_map lyx_info_map;
+
+ /** A mapping from the automatically created pseudo action number
+ to the real action and its argument. */
+ mutable pseudo_map lyx_pseudo_map;
+
+ /** A (multi) mapping from the lyx action to all the generated
+ pseudofuncs and the arguments the action should use. */
+ mutable arg_map lyx_arg_map;