X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=client%2Fmainwindow.h;h=968ef4daabbc41d0a1cebe9018fb516c741c5c37;hb=HEAD;hp=8a517901b669e3499120943d0fbeab9a47b8272d;hpb=f7bfc5011e5c9122235b14fc4133591ffe671173;p=ultimatescore diff --git a/client/mainwindow.h b/client/mainwindow.h index 8a51790..e215da5 100644 --- a/client/mainwindow.h +++ b/client/mainwindow.h @@ -3,7 +3,10 @@ #include -#include "acmp_client.h" +#include +#include + +#include "ws_server.h" #include "event_device.h" namespace Ui { @@ -21,17 +24,24 @@ public: ~MainWindow(); private: - void casparcg_reconnect_clicked(); + void ws_disconnect_clicked(); void set_initials_clicked(); + void set_match_2_initials_clicked(); + void set_match_3_initials_clicked(); void set_color_clicked(); void set_score_clicked(); void set_all_scorebug_clicked(); void add_goal(QSpinBox *box, int delta); void set_clock_clicked(); + void set_clock_limit_clicked(); void start_and_show_clock_clicked(); void stop_clock_clicked(); void show_clock_clicked(); void hide_clock_clicked(); + void show_match_2_clicked(); + void hide_match_2_clicked(); + void show_match_3_clicked(); + void hide_match_3_clicked(); void set_comment_clicked(); void set_and_show_comment_clicked(); void hide_comment_clicked(); @@ -40,10 +50,23 @@ private: void hide_lower_third_clicked(); void quick_lower_third_activate(); void autocomment_update(); + void show_scorebug_clicked(); + void show_group_clicked(const std::string &group_name); + void show_roster_clicked(const std::string &team_code); + void show_schedule_clicked(); + void show_carousel_clicked(); + void show_roster_carousel_clicked(); + void show_nothing_clicked(); + void udp_thread_func(int port); + void bt6000_message_received(const std::string &msg, int port); Ui::MainWindow *ui; - ACMPClient *acmp; + WSServer *ws; EventDevice *event_device; + + std::thread udp_thread; + std::thread udp_thread2; + std::thread udp_thread3; }; #endif // MAINWINDOW_H