X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=futatabi%2Fmainwindow.h;h=d7e037c37ee7205a6c177d22509ce25f85fa990b;hb=f22a41cb05c5cc1bbe8ce391fa918707138afad3;hp=5d7104ab3210745770fc603d9db7eea1ea3680f5;hpb=c1f1bd35d8c8e2cb9ff97c3535bb2dd04d55a51d;p=nageru diff --git a/futatabi/mainwindow.h b/futatabi/mainwindow.h index 5d7104a..d7e037c 100644 --- a/futatabi/mainwindow.h +++ b/futatabi/mainwindow.h @@ -5,15 +5,15 @@ #include "db.h" #include "state.pb.h" -#include -#include -#include #include #include #include +#include +#include +#include #include -#include #include +#include #include namespace Ui { @@ -52,7 +52,8 @@ private: int64_t scrub_pts_origin; // Which element (e.g. pts_in on clip 4) we are scrubbing. - enum ScrubType { SCRUBBING_CLIP_LIST, SCRUBBING_PLAYLIST } scrub_type; + enum ScrubType { SCRUBBING_CLIP_LIST, + SCRUBBING_PLAYLIST } scrub_type; int scrub_row; int scrub_column; @@ -101,9 +102,8 @@ private: void preview_angle_clicked(unsigned stream_idx); void play_clicked(); void stop_clicked(); - void live_player_clip_done(); - std::pair live_player_get_next_clip(); - void live_player_clip_progress(const std::map &progress); + void live_player_done(); + void live_player_clip_progress(const std::map &progress, double time_remaining); void set_output_status(const std::string &status); void playlist_duplicate(); void playlist_remove(); @@ -114,7 +114,8 @@ private: void state_changed(const StateProto &state); // Called post-filtering. void save_settings(); - enum Rounding { FIRST_AT_OR_AFTER, LAST_BEFORE }; + enum Rounding { FIRST_AT_OR_AFTER, + LAST_BEFORE }; void preview_single_frame(int64_t pts, unsigned stream_idx, Rounding rounding); // Also covers when the playlist itself changes. @@ -134,10 +135,12 @@ private: void undo_triggered(); void redo_triggered(); void quality_toggled(int quality, bool checked); + void padding_toggled(double seconds, bool checked); void highlight_camera_input(int stream_idx); + void enable_or_disable_preview_button(); - template + template void replace_model(QTableView *view, Model **model, Model *new_model); void start_tally();