X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.h;h=d88babaa689bd9ec73dfc62f3d570185950ead4a;hb=fcae09355c1a00a68015b3d727339aebd2e52aa4;hp=c7d0ac756f78ae4c800a4dc0598396b07f8a438c;hpb=2c9a83aeae44dae6a0bbfbae33719976e6d527af;p=nageru diff --git a/futatabi/mainwindow.h b/futatabi/mainwindow.h index c7d0ac7..d88baba 100644 --- a/futatabi/mainwindow.h +++ b/futatabi/mainwindow.h @@ -43,6 +43,7 @@ public: void preview() override; void queue() override; void play() override; + void toggle_lock() override; void jog(int delta) override; void switch_camera(unsigned camera_idx) override; void set_master_speed(float speed) override; @@ -99,6 +100,10 @@ private: // NOTE: The undo stack always has the current state on top. std::deque 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. @@ -130,6 +135,7 @@ private: void play_clicked(); void stop_clicked(); void speed_slider_changed(int percent); + void speed_lock_clicked(); void live_player_done(); void live_player_clip_progress(const std::map &progress, double time_remaining); void set_output_status(const std::string &status); @@ -145,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);