]> git.lyx.org Git - lyx.git/blobdiff - src/FuncRequest.h
Remove unused Counters::copy
[lyx.git] / src / FuncRequest.h
index 80587f9f01cd25eadc1d8ba957dc144db99a2922..19f571a091c7503dcf7d90c37a4e81e370cf8103 100644 (file)
@@ -86,7 +86,7 @@ public:
        ///
        mouse_button::state button() const { return button_; }
        ///
-       KeyModifier modifier() { return modifier_; }
+       KeyModifier modifier() const { return modifier_; }
 
        /// argument parsing, extract argument i as std::string
        std::string getArg(unsigned int i) const;
@@ -98,6 +98,11 @@ public:
        static FuncRequest const unknown;
        ///
        static FuncRequest const noaction;
+       ///
+       bool allowAsync() const { return allow_async_; }
+       ///
+       void allowAsync(bool allow_async) { allow_async_ = allow_async; }
+
 private:
        /// the action
        FuncCode action_;
@@ -116,6 +121,9 @@ private:
        mouse_button::state button_;
        ///
        KeyModifier modifier_;
+       /// Commands should be run synchronously when they
+       /// are launched via "command-sequence" or "repeat" or "buffer-forall"
+       bool allow_async_;
 };