]> git.lyx.org Git - lyx.git/blobdiff - src/dispatchresult.h
add comment
[lyx.git] / src / dispatchresult.h
index d96fb92651024d49213df418a9bab764b5c0a9fb..7b53ec1c85d3ba2d28a1174b6ca4761892c39cd5 100644 (file)
 #ifndef DISPATCH_RESULT_H
 #define DISPATCH_RESULT_H
 
+#include "UpdateFlags.h"
+
 namespace lyx {
 
 /// Maybe this can go entirely
 class DispatchResult {
 public:
        ///
-       DispatchResult() : dispatched_(false), update_(false) {}
+       DispatchResult() : dispatched_(false), update_(Update::None) {}
        ///
-       DispatchResult(bool disp, bool upd) : dispatched_(disp), update_(upd) {}
+       DispatchResult(bool disp, Update::flags f) : dispatched_(disp), update_(f) {}
        //
        bool dispatched() const { return dispatched_; }
        ///
        void dispatched(bool disp) { dispatched_ = disp; }
        ///
-       bool update() const { return update_; }
+       Update::flags update() const { return update_; }
        ///
-       void update(bool up) { update_ = up; }
+       void update(Update::flags f) { update_ = f; }
 private:
        /// was the event fully dispatched?
        bool dispatched_;
        /// do we need to redraw the screen afterwards?
-       bool update_;
+       Update::flags update_;
 };