]> git.lyx.org Git - lyx.git/commitdiff
add a checkbox to current document in document list
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 11 Feb 2002 15:51:03 +0000 (15:51 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 11 Feb 2002 15:51:03 +0000 (15:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3521 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyxfunc.C

index e497bd7b6ea51262b874af0715899c586d246b75..6307c7bdfcdf02ac6fc0d4dca18129ef0093b8d4 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-11  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
+
+       * lyxfunc.C (getStatus): handle LFUN_SWITCHBUFFER so that the
+       document menu has a nice checkbox
+
 2002-02-07  Jean-Marc Lasgouttes  <lasgouttes@freesurf.fr>
 
        * lyxlength.C (asLatexString): change PW to output as percent of
index a8f210868d72fb1919aac860d1281036dfdf1738..ca102a68405e5f87570bbde1bc6364fca184a5c0 100644 (file)
@@ -676,6 +676,12 @@ FuncStatus LyXFunc::getStatus(kb_action action,
        case LFUN_APPENDIX:
                flag.setOnOff(TEXT(false)->cursor.par()->params().startOfAppendix());
                break;
+       case LFUN_SWITCHBUFFER:
+               // toggle on the current buffer, but do not toggle off
+               // the other ones (is that a good idea?) 
+               if (argument == buf->fileName())
+                       flag.setOnOff(true);
+               break;
        default:
                break;
        }