X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=6f2666869443a433a9ce658b1d95e607e312c1a7;hb=ffc3ecc037bf8459c4c27087f3f151fa3dad65d2;hp=edea126568e133661c1d9ca7c58096e3674ed6d1;hpb=8cbf100e6126c1550a6436970d777a652ac1182e;p=nageru diff --git a/mainwindow.h b/mainwindow.h index edea126..6f26668 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -2,6 +2,15 @@ #define MAINWINDOW_H #include +#include +#include + +namespace Ui { +class MainWindow; +} // namespace Ui + +class Mixer; +class QPushButton; class MainWindow : public QMainWindow { @@ -9,10 +18,20 @@ class MainWindow : public QMainWindow public: MainWindow(); + void resizeEvent(QResizeEvent *event) override; + void mixer_created(Mixer *mixer); public slots: - void cut(); - void channel_clicked(int id); + void transition_clicked(int transition_number); + void channel_clicked(int channel_number); + void set_transition_names(std::vector transition_names); + void relayout(); + +private: + Ui::MainWindow *ui; + QPushButton *transition_btn1, *transition_btn2, *transition_btn3; }; +extern MainWindow *global_mainwindow; + #endif