On Thu, Apr 21, 2005 at 09:56:07AM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
> 
> Georg> FuncStatus.h lacks documentation: I don't understand the
> Georg> difference between FuncStatus::setOnOff() and
> Georg> FuncStatus::enabled(). That boils down to the enum values OFF
> Georg> vs DISABLED and ON vs OK. Can somebody please enlighten me?
> 
> setOnOff tells whether the menu item should have a check mark (or the
> toolbar icon should be pushed).
> 
> emabled() tells whether it can be invoked (otherwise it will be
> grayed-out).

So you mean something like the attached is in order?

Andre'
--- /tmp/1      2005-04-21 10:45:18.000000000 +0200
+++ FuncStatus.h        2005-04-21 21:14:54.000000000 +0200
@@ -51,12 +51,13 @@
 
        ///
        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;
 
        ///

Reply via email to