]> git.lyx.org Git - lyx.git/blobdiff - src/dispatchresult.h
more cursor dispatch
[lyx.git] / src / dispatchresult.h
index 1e4d801eef52fb2bdc2160c49cb64708ffb0f272..70760b33d0b1f045b7915e93d990c38323922f43 100644 (file)
@@ -25,7 +25,9 @@
                        the inset.
        FINISHED_DOWN       = FINISHED, but move the cursor DOWN from
                        the inset.
-       UNDISPATCHED        = the action was not catched, it should be
+       FINISHED_POP       = FINISHED, but move the cursor out the inset
+                       (possibly more than one level)
+       UNDISPATCHED        = the action was not caught, it should be
                        dispatched by lower level insets
 */
 enum dispatch_result_t {
@@ -49,10 +51,13 @@ public:
        DispatchResult(bool dis)
                : dispatched_(dis), update_(false), val_(NONE) {}
        DispatchResult(bool dis, bool update)
-               : dispatched_(dis), update_(true), val_(NONE) {}
+               : dispatched_(dis), update_(update), val_(NONE) {}
        DispatchResult(bool dis, dispatch_result_t val)
-               : dispatched_(dis), update_(false), val_(val) {}
+               : dispatched_(dis), update_(true), val_(val) {}
        dispatch_result_t val() const { return val_; }
+       void val(dispatch_result_t drt) {
+               val_ = drt;
+       }
        bool dispatched() const {
                return dispatched_;
        }