X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fdispatchresult.h;h=7b53ec1c85d3ba2d28a1174b6ca4761892c39cd5;hb=c68f3da771a54ef78bd309b8f1a81c374d2fea4c;hp=d96fb92651024d49213df418a9bab764b5c0a9fb;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/dispatchresult.h b/src/dispatchresult.h index d96fb92651..7b53ec1c85 100644 --- a/src/dispatchresult.h +++ b/src/dispatchresult.h @@ -13,28 +13,30 @@ #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_; };