]> git.lyx.org Git - lyx.git/blobdiff - src/FuncStatus.h
Transform the name of the temp dir on Windows with GetLongPathName.
[lyx.git] / src / FuncStatus.h
index 80613c26478479fb97e232b07ea26a6ffe0a0011..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,10 +35,12 @@ private:
 
        unsigned int v_;
 
+       std::string message_;
+
 public:
        ///
        FuncStatus();
-       //
+       ///
        void clear();
        ///
        void operator|=(FuncStatus const & f);
@@ -46,14 +50,19 @@ public:
        bool unknown() const;
 
        ///
-       void disabled(bool b);
+       void enabled(bool b);
        ///
-       bool disabled() const;
+       bool enabled() const;
 
        ///
        void setOnOff(bool b);
        ///
        bool onoff(bool b) const;
+
+       ///
+       void message(std::string const & m);
+       ///
+       std::string const & message() const;
 };
 
 #endif