X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=83ed90957118262b443acb0eabbfb318926acb3b;hb=67da94217a271b0b76d42c75d1a78ee5ba942825;hp=2d702c75a4d8544b2d861ec25368e71547d6b607;hpb=415442b56355392b207551b2cc84e663d8d7f914;p=pkanalytics diff --git a/mainwindow.h b/mainwindow.h index 2d702c7..83ed909 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -7,13 +7,15 @@ class EventsModel; class PlayersModel; +class FormationsModel; class MainWindow : public QMainWindow { Q_OBJECT public: - MainWindow(EventsModel *events, PlayersModel *players); + MainWindow(EventsModel *events, PlayersModel *players, + FormationsModel *offensive_formations, FormationsModel *defensive_formations); private: void position_changed(uint64_t pos); @@ -23,6 +25,7 @@ private: void set_current_event_type(const std::string &type); void delete_current_event(); void make_substitution(); + void formation_double_clicked(bool offense, unsigned row); void update_ui_from_time(uint64_t t); void update_status(uint64_t t); @@ -32,6 +35,8 @@ private: Ui::MainWindow *ui; EventsModel *events; PlayersModel *players; + FormationsModel *offensive_formations; + FormationsModel *defensive_formations; bool seeking = false; bool playing = true; std::optional buffered_seek;