X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.h;h=e2934ff38463d128b4a48852a8e9d777109ff3d6;hb=b3a7a9eddd8b800f1b921332e8fdacb72e0d9b20;hp=2bb880d5ba80e4de3e985b349d61d3d5d997c61c;hpb=931727fc4cccafc84023a053a6eff174b5ea8190;p=nageru diff --git a/futatabi/mainwindow.h b/futatabi/mainwindow.h index 2bb880d..e2934ff 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; @@ -102,8 +103,7 @@ private: 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_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. @@ -138,7 +139,7 @@ private: void highlight_camera_input(int stream_idx); - template + template void replace_model(QTableView *view, Model **model, Model *new_model); void start_tally();