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:
Pavel Sanda 2008-03-17 14:22:30 +00:00
parent e14f384a2c
commit 824ac5f2c8
2 changed files with 5 additions and 1 deletions

View File

@ -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:

View File

@ -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"