]> git.sesse.net Git - nageru/blobdiff - futatabi/mainwindow.h
Blink the lock light if dragging the speed slider when locked.
[nageru] / futatabi / mainwindow.h
index 469cb0ee7181af7761509ea7a602c07296c6e6a7..d88babaa689bd9ec73dfc62f3d570185950ead4a 100644 (file)
@@ -100,6 +100,10 @@ private:
        // NOTE: The undo stack always has the current state on top.
        std::deque<StateProto> undo_stack, redo_stack;
 
+       // If we need to blink the lock light, we do so for only a second.
+       // This timer signals that we should end it.
+       QTimer *lock_blink_timeout;
+
        // Before a change that should be deferred (see above), currently_deferring_model_changes
        // must be set to true, and current_change_id must be given contents describing what's
        // changed to avoid accidental grouping.
@@ -147,6 +151,8 @@ private:
        void state_changed(const StateProto &state);  // Called post-filtering.
        void save_settings();
 
+       void lock_blink_timer_expired();
+
        enum Rounding { FIRST_AT_OR_AFTER,
                        LAST_BEFORE };
        void preview_single_frame(int64_t pts, unsigned stream_idx, Rounding rounding);