- ///
- 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;
+ /// add the given action
+ void newFunc(FuncCode, std::string const & name, unsigned int attrib, FuncType type);
+
+ /**
+ * This maps LyX function names to function codes, e.g.:
+ * lyx_func_map["ert-insert"] == LFUN_ERT_INSERT
+ */
+ FuncMap lyx_func_map;
+
+ /**
+ * This maps function codes to objects holding info about the corresponding
+ * action. E.g., if
+ * FuncInfo const & ert = lyx_info_map[LFUN_ERT_INSERT];
+ * then:
+ * ert.name == "ert-insert"'
+ * ert.attrib == Noop
+ * ert.type == Edit
+ */
+ InfoMap lyx_info_map;