+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
2005-04-19 Angus Leeming <leeming@lyx.org>
* BufferView_pimpl.C (cursorToggle): no longer test whether
private:
enum StatusCodes {
private:
enum StatusCodes {
+ /// Command can be executed
+ /// It is unknown wether the command can be executed or not
- ///
- 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
+ /// Command is off (i. e. the menu item has no checkmark
+ /// and the toolbar icon is not pushed).
+ /// Not all commands use this
///
void enabled(bool b);
///
void enabled(bool b);
+ /// tells whether it can be invoked (otherwise it will be grayed-out).
bool enabled() const;
///
void setOnOff(bool b);
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;
///
bool onoff(bool b) const;
///