]> git.sesse.net Git - nageru/blobdiff - mainwindow.h
Update the VU/LRA meters from the GUI thread; fixes an issue where they lock up.
[nageru] / mainwindow.h
index fd6064067e1f5e1180ed87ef3123ca11ec02a82d..6f2666869443a433a9ce658b1d95e607e312c1a7 100644 (file)
@@ -2,13 +2,36 @@
 #define MAINWINDOW_H
 
 #include <QMainWindow>
+#include <vector>
+#include <string>
+
+namespace Ui {
+class MainWindow;
+}  // namespace Ui
+
+class Mixer;
+class QPushButton;
 
 class MainWindow : public QMainWindow
 {
-    Q_OBJECT
+       Q_OBJECT
 
 public:
-    MainWindow();
+       MainWindow();
+       void resizeEvent(QResizeEvent *event) override;
+       void mixer_created(Mixer *mixer);
+
+public slots:
+       void transition_clicked(int transition_number);
+       void channel_clicked(int channel_number);
+       void set_transition_names(std::vector<std::string> transition_names);
+       void relayout();
+
+private:
+       Ui::MainWindow *ui;
+       QPushButton *transition_btn1, *transition_btn2, *transition_btn3;
 };
 
+extern MainWindow *global_mainwindow;
+
 #endif