X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fmainwindow.h;h=8d286117e6a95d8f2998109ae656cd2df1d5bcca;hb=35fa8cce99a5d224609bde5bef15d13367506804;hp=97f0f296aef8638372635b13b14d0be019e2a923;hpb=85e1c098fb61869cba7edf20a6281b2f87a7b9ed;p=nageru diff --git a/futatabi/mainwindow.h b/futatabi/mainwindow.h index 97f0f29..8d28611 100644 --- a/futatabi/mainwindow.h +++ b/futatabi/mainwindow.h @@ -5,14 +5,15 @@ #include "db.h" #include "state.pb.h" +#include +#include +#include #include #include #include -#include -#include #include -#include #include +#include #include namespace Ui { @@ -43,6 +44,7 @@ private: QLabel *disk_free_label; std::unique_ptr preview_player, live_player; DB db; + unsigned num_cameras; // State when doing a scrub operation on a timestamp with the mouse. bool scrubbing = false; @@ -50,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; @@ -87,6 +90,11 @@ private: }; std::vector displays; + // Used to get tally information, if a tally URL is set. + QNetworkAccessManager http; + QNetworkReply *http_reply = nullptr; + + void change_num_cameras(); void cue_in_clicked(); void cue_out_clicked(); void queue_clicked(); @@ -94,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(); @@ -107,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. @@ -127,12 +135,16 @@ 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); - template + template void replace_model(QTableView *view, Model **model, Model *new_model); + void start_tally(); + void tally_received(); + private slots: void relayout(); };