X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FFuncStatus.h;h=3f5d7b14c1293de2ae12af30751c849c96783568;hb=6a55be9506b112110826cf63bc21786044569f1d;hp=8375c3401e99c5b89670ceeb98754d37987f1530;hpb=0be0fcfd5907d448cd51addf83ed7032719a0692;p=lyx.git diff --git a/src/FuncStatus.h b/src/FuncStatus.h index 8375c3401e..3f5d7b14c1 100644 --- a/src/FuncStatus.h +++ b/src/FuncStatus.h @@ -12,6 +12,8 @@ #ifndef FUNC_STATUS_H #define FUNC_STATUS_H +#include + /// The status of a function. class FuncStatus @@ -33,27 +35,34 @@ private: unsigned int v_; + std::string message_; + public: /// FuncStatus(); - // - FuncStatus & clear (); /// - void operator |= (FuncStatus const & f); + void clear(); + /// + void operator|=(FuncStatus const & f); /// - FuncStatus & unknown(bool b); + void unknown(bool b); /// bool unknown() const; /// - FuncStatus & disabled (bool b); + void enabled(bool b); + /// + bool enabled() const; + + /// + void setOnOff(bool b); /// - bool disabled () const; + bool onoff(bool b) const; /// - void setOnOff (bool b); + void message(std::string const & m); /// - bool onoff (bool b) const; + std::string const & message() const; }; #endif