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.
36 ClipList::Column scrub_column;
39 void preview_clicked();
41 void live_player_clip_done();
43 enum Rounding { FIRST_AT_OR_AFTER, LAST_BEFORE };
44 void preview_single_frame(int64_t pts, unsigned stream_idx, Rounding rounding);
46 void resizeEvent(QResizeEvent *event) override;
47 bool eventFilter(QObject *watched, QEvent *event) override;
53 extern MainWindow *global_mainwindow;