-
- /** Returns an action tag from a string. Returns kb_action.
- Include arguments in func_name ONLY if you
- want to create new pseudo actions. */
- int LookupFunc(string const & func_name) const;
-
- /** Returns an action tag which name is the most similar to a string.
- Don't include arguments, they would be ignored. */
- int getApproxFunc(string const & func) const;
-
- /** Returns an action name the most similar to a string.
- Don't include arguments, they would be ignored. */
- string const getApproxFuncName(string const & func) const;
-
- /// Returns a pseudo-action given an action and its argument.
- int getPseudoAction(kb_action action, string const & arg) const;
-
- /// Retrieves the real action and its argument.
- kb_action retrieveActionArg(int i, string & arg) const;
-
- /// Search for an existent pseudoaction, return -1 if it doesn't exist.
- int searchActionArg(kb_action action, string const & arg) const;
-
- /// Check if a value is a pseudo-action.
- bool isPseudoAction(int) const;
-
- /// Return the name associated with command
- string const getActionName(int action) const;
-
- /// Return one line help text associated with (pseudo)action
- string const helpText(int action) const;
+
+ /**
+ * Creates a FuncRequest from a string of the form:
+ * lyx-function [argument]
+ * where the argument is optional and "lyx-function" is in the form you'd
+ * enter it in the mini-buffer.
+ */
+ FuncRequest lookupFunc(std::string const & func_name) const;
+
+ /// Return the command name associated with the given action
+ /// Thus: getActionName(LFUN_ERT_INSERT) --> "ert-insert".
+ std::string const getActionName(FuncCode action) const;
+ ///
+ FuncType getActionType(FuncCode action) const;