// Some constants
int const MENU_LABEL_SIZE = FL_NORMAL_SIZE;
-int const MENU_LABEL_STYLE = FL_BOLD_STYLE;
+int const MENU_LABEL_STYLE = FL_NORMAL_STYLE;
int const mheight = 30;
int const mbheight= 22;
// where to place the menubar?
if (i->kind() == MenuItem::Separator)
*last = "%l";
else if (!i->optional() ||
- !(view->getLyXFunc()->getStatus(i->action())
- & func_status::Disabled))
+ !(view->getLyXFunc()->getStatus(i->action()).disabled()))
last = it;
it = extra_labels.begin();
switch (item.kind()) {
case MenuItem::Command: {
- func_status::value_type flag =
+ FuncStatus flag =
view->getLyXFunc()->getStatus(item.action());
// handle optional entries.
if (item.optional()
- && (flag & func_status::Disabled)) {
+ && (flag.disabled())) {
lyxerr[Debug::GUI]
<< "Skipping optional item "
<< item.label() << endl;
// Modify the entry using the function status
string pupmode;
- if (flag & (func_status::Disabled
- | func_status::Unknown))
+ if (flag.disabled() || flag.unknown())
pupmode += "%i";
- if (flag & func_status::ToggleOn)
+ if (flag.onoff(true))
pupmode += "%B";
- if (flag & func_status::ToggleOff)
+ if (flag.onoff(false))
pupmode += "%b";
label += pupmode;
// If the action value is too low, then it is not a
// valid action, but something else.
if (choice >= action_offset + 1) {
- view->getLyXFunc()->dispatch(choice - action_offset);
+ view->getLyXFunc()->verboseDispatch(choice - action_offset, true);
} else {
lyxerr[Debug::GUI]
<< "MenuCallback: ignoring bogus action "