X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFuncStatus.h;h=4a632dc870fa2345717a5deeac67d5807a4d77c1;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=b632db547185e8e3133de9229e286ba5b043c120;hpb=a6444784dca48da8b1f7723be12069b2e1dbb4c5;p=lyx.git diff --git a/src/FuncStatus.h b/src/FuncStatus.h index b632db5471..4a632dc870 100644 --- a/src/FuncStatus.h +++ b/src/FuncStatus.h @@ -14,6 +14,9 @@ #include "support/docstring.h" + +namespace lyx { + /// The status of a function. class FuncStatus @@ -41,7 +44,7 @@ private: unsigned int v_; - lyx::docstring message_; + docstring message_; public: /// @@ -49,14 +52,12 @@ public: /// void clear(); /// - void operator|=(FuncStatus const & f); - /// - void unknown(bool b); + void setUnknown(bool b); /// bool unknown() const; /// - void enabled(bool b); + void setEnabled(bool b); /// tells whether it can be invoked (otherwise it will be grayed-out). bool enabled() const; @@ -64,12 +65,15 @@ public: 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; /// - void message(lyx::docstring const & m); + void message(docstring const & m); /// - lyx::docstring const & message() const; + docstring const & message() const; }; + +} // namespace lyx + #endif