X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFuncStatus.h;h=02949ed0bfd0f4839288ec32e370702adffc2d03;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=6db5832d96a0232a6be152870f43d2212863ff2e;hpb=950ea3384cf2da77cefb3712f9a108e70bf0f80b;p=lyx.git diff --git a/src/FuncStatus.h b/src/FuncStatus.h index 6db5832d96..02949ed0bf 100644 --- a/src/FuncStatus.h +++ b/src/FuncStatus.h @@ -12,7 +12,10 @@ #ifndef FUNC_STATUS_H #define FUNC_STATUS_H -#include +#include "support/docstring.h" + + +namespace lyx { /// The status of a function. @@ -23,7 +26,9 @@ private: enum StatusCodes { /// Command can be executed OK = 0, - /// It is unknown wether the command can be executed or not + /// This command does not exist, possibly because it is not + /// compiled in (e.g. LFUN_THESAURUS) or the user mistyped + /// it in the minibuffer. UNKNOWN commands have no menu entry. UNKNOWN = 1, /// Command cannot be executed DISABLED = 2, @@ -39,7 +44,7 @@ private: unsigned int v_; - std::string message_; + docstring message_; public: /// @@ -65,9 +70,12 @@ public: bool onoff(bool b) const; /// - void message(std::string const & m); + void message(docstring const & m); /// - std::string const & message() const; + docstring const & message() const; }; + +} // namespace lyx + #endif