]> git.lyx.org Git - lyx.git/commitdiff
FuncStatus documentation from Andre and me
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 21 Apr 2005 09:27:40 +0000 (09:27 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 21 Apr 2005 09:27:40 +0000 (09:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9847 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/FuncStatus.h

index f471e172cb71105d643e175113defe5b171bd26e..9ca05a27b820a029c2e1348d517087aae0505e59 100644 (file)
@@ -1,3 +1,11 @@
+2005-04-21  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * FuncStatus.h (StatusCodes): document
+
+2005-04-21  André Pönitz  <poenitz@gmx.net>
+
+       * FuncStatus.h (enabled, onoff): document
+
 2005-04-19  Angus Leeming  <leeming@lyx.org>
 
        * BufferView_pimpl.C (cursorToggle): no longer test whether
index 3f5d7b14c1293de2ae12af30751c849c96783568..6db5832d96a0232a6be152870f43d2212863ff2e 100644 (file)
@@ -21,15 +21,19 @@ class FuncStatus
 private:
 
        enum StatusCodes {
-               ///
+               /// Command can be executed
                OK = 0,
-               ///
+               /// It is unknown wether the command can be executed or not
                UNKNOWN = 1,
-               ///
-               DISABLED = 2,  // Command cannot be executed
-               ///
+               /// Command cannot be executed
+               DISABLED = 2,
+               /// Command is on (i. e. the menu item has a checkmark
+               /// and the toolbar icon is pushed).
+               /// Not all commands use this
                ON = 4,
-               ///
+               /// Command is off (i. e. the menu item has no checkmark
+               /// and the toolbar icon is not pushed).
+               /// Not all commands use this
                OFF = 8
        };
 
@@ -51,12 +55,13 @@ public:
 
        ///
        void enabled(bool b);
-       ///
+       /// tells whether it can be invoked (otherwise it will be grayed-out).
        bool enabled() const;
 
        ///
        void setOnOff(bool b);
-       ///
+       /// tells whether the menu item should have a check mark
+       /// (or the toolbar icon should be pushed).
        bool onoff(bool b) const;
 
        ///