X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=16a4baad8a98d82924448efaec077d7f0915f05c;hb=1c8ac07da43957762ba1565dfab56bc8be34aad8;hp=a396a92f272941a9a5921671162237d9b04a68db;hpb=b9583e6a9c726eeee96eb574a81b77f521f9c004;p=nageru diff --git a/mainwindow.h b/mainwindow.h index a396a92..16a4baa 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,29 +1,33 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H -#include -#include - -#include -#include - #include "clip_list.h" #include "db.h" #include "state.pb.h" +#include +#include +#include +#include +#include +#include +#include + namespace Ui { class MainWindow; } // namespace Ui class Player; -class MainWindow : public QMainWindow -{ +class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(); + // HTTP callback. TODO: Does perhaps not belong to MainWindow? + std::pair get_queue_status() const; + //private: Ui::MainWindow *ui; @@ -62,6 +66,9 @@ private: bool currently_deferring_model_changes = false; std::string current_change_id; + mutable std::mutex queue_status_mu; + std::string queue_status; // Under queue_status_mu. + void cue_in_clicked(); void cue_out_clicked(); void queue_clicked(); @@ -71,6 +78,7 @@ private: void live_player_clip_done(); Clip live_player_get_next_clip(); void live_player_clip_progress(double played_this_clip, double total_length); + void set_output_status(const std::string &status); void playlist_duplicate(); void playlist_remove(); void playlist_move(int delta); @@ -85,12 +93,16 @@ private: // Also covers when the playlist itself changes. void playlist_selection_changed(); + void clip_list_selection_changed(const QModelIndex ¤t, const QModelIndex &previous); + void resizeEvent(QResizeEvent *event) override; bool eventFilter(QObject *watched, QEvent *event) override; void report_disk_space(off_t free_bytes, double estimated_seconds_left); void exit_triggered(); + void highlight_camera_input(int stream_idx); + private slots: void relayout(); }; @@ -98,4 +110,3 @@ private slots: extern MainWindow *global_mainwindow; #endif -