]> git.sesse.net Git - nageru/blobdiff - futatabi/mainwindow.h
Add cue point padding, where a clip is elongated (in both directions) by some given...
[nageru] / futatabi / mainwindow.h
index 97f0f296aef8638372635b13b14d0be019e2a923..2bb880d5ba80e4de3e985b349d61d3d5d997c61c 100644 (file)
@@ -10,6 +10,7 @@
 #include <mutex>
 #include <QLabel>
 #include <QMainWindow>
+#include <QNetworkAccessManager>
 #include <stdbool.h>
 #include <sys/types.h>
 #include <string>
@@ -43,6 +44,7 @@ private:
        QLabel *disk_free_label;
        std::unique_ptr<Player> preview_player, live_player;
        DB db;
+       unsigned num_cameras;
 
        // State when doing a scrub operation on a timestamp with the mouse.
        bool scrubbing = false;
@@ -87,6 +89,11 @@ private:
        };
        std::vector<FrameAndDisplay> 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();
@@ -127,12 +134,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 <class Model>
        void replace_model(QTableView *view, Model **model, Model *new_model);
 
+       void start_tally();
+       void tally_received();
+
 private slots:
        void relayout();
 };