]> git.lyx.org Git - lyx.git/blobdiff - src/FuncStatus.h
tostr -> convert and some bformat work
[lyx.git] / src / FuncStatus.h
index 8375c3401e99c5b89670ceeb98754d37987f1530..3f5d7b14c1293de2ae12af30751c849c96783568 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef FUNC_STATUS_H
 #define FUNC_STATUS_H
 
+#include <string>
+
 /// 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