This patch is a first step in solving bug 1720 (LyX/Mac: Menus are not correctly disabled when a dialog has focus), for which I would need in getStatus to be able to determine that a FuncRequest has been generated by the menus.
Here, I add a new 'origin' enum to FuncRequest, defined as follow: /// Where the request came from enum Origin { INTERNAL, UI, // The menu or the toolbar KEYBOARD, // a keyboard binding COMMANDBUFFER }; Other values can be added, like lyxserver or MENU/TOOLBAR to split UI in two. As an application of this value, the patch removes the 'verbose' argument of LyXFunc::dispatch. Functionnality is unchanged. Comments? I am not sure I like the way origin is manipulated, but since FuncRequest does not have accessors, I decided (for now) not to add one (which would have given better code, I think). JMarc
origin.diff.gz
Description: GNU Zip compressed data