mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Add checkbox to fullscreen menu entry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23793 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e14f384a2c
commit
824ac5f2c8
@ -446,6 +446,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
// FIXME: these cases should be hidden in GuiView::getStatus().
|
||||
case LFUN_DIALOG_TOGGLE:
|
||||
case LFUN_DIALOG_SHOW:
|
||||
case LFUN_UI_TOGGLE:
|
||||
case LFUN_DIALOG_UPDATE:
|
||||
// FIXME: add special handling for about and prefs dialogs here
|
||||
// which do not depend on GuiView.
|
||||
@ -609,7 +610,6 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
|
||||
case LFUN_DIALOG_HIDE:
|
||||
case LFUN_DIALOG_DISCONNECT_INSET:
|
||||
case LFUN_BUFFER_CHILD_OPEN:
|
||||
case LFUN_UI_TOGGLE:
|
||||
case LFUN_CURSOR_FOLLOWS_SCROLLBAR_TOGGLE:
|
||||
case LFUN_KEYMAP_OFF:
|
||||
case LFUN_KEYMAP_PRIMARY:
|
||||
|
@ -1007,6 +1007,10 @@ FuncStatus GuiView::getStatus(FuncRequest const & cmd)
|
||||
flag.setOnOff(d.toolbars_->visible(cmd.getArg(0)));
|
||||
break;
|
||||
|
||||
case LFUN_UI_TOGGLE:
|
||||
flag.setOnOff(isFullScreen());
|
||||
break;
|
||||
|
||||
case LFUN_DIALOG_TOGGLE:
|
||||
flag.setOnOff(isDialogVisible(cmd.getArg(0)));
|
||||
// fall through to set "enable"
|
||||
|
Loading…
Reference in New Issue
Block a user