16 class MainWindow : public QMainWindow
27 Player *preview_player, *live_player;
29 // State when doing a scrub operation on a timestamp with the mouse.
30 bool scrubbing = false;
31 int scrub_x_origin; // In pixels on the viewport.
32 int64_t scrub_pts_origin;
34 // Which element (e.g. pts_in on clip 4) we are scrubbing.
35 enum ScrubType { SCRUBBING_CLIP_LIST, SCRUBBING_PLAYLIST } scrub_type;
39 void cue_in_clicked();
40 void cue_out_clicked();
42 void preview_clicked();
43 void preview_angle_clicked(unsigned stream_idx);
45 void live_player_clip_done();
47 enum Rounding { FIRST_AT_OR_AFTER, LAST_BEFORE };
48 void preview_single_frame(int64_t pts, unsigned stream_idx, Rounding rounding);
50 void resizeEvent(QResizeEvent *event) override;
51 bool eventFilter(QObject *watched, QEvent *event) override;
57 extern MainWindow *global_mainwindow;