]> git.sesse.net Git - pkanalytics/blobdiff - mainwindow.h
Implement filter-by-player-on-field.
[pkanalytics] / mainwindow.h
index 079a3713b3e8bb873713a4bb55a55aea96d48c63..2d702c75a4d8544b2d861ec25368e71547d6b607 100644 (file)
@@ -18,10 +18,16 @@ public:
 private:
        void position_changed(uint64_t pos);
        void seek(int64_t delta_ms);
-       void insert_event(int button_id);
+       void insert_player_event(int button_id);
+       void insert_noplayer_event(const std::string &type);
        void set_current_event_type(const std::string &type);
        void delete_current_event();
-       void update_status();
+       void make_substitution();
+
+       void update_ui_from_time(uint64_t t);
+       void update_status(uint64_t t);
+       void update_player_buttons(uint64_t t);
+       void update_action_buttons(uint64_t t);
 
        Ui::MainWindow *ui;
        EventsModel *events;
@@ -29,5 +35,5 @@ private:
        bool seeking = false;
        bool playing = true;
        std::optional<uint64_t> buffered_seek;
-       QMediaPlayer *player;
+       QMediaPlayer *video;
 };