]> git.sesse.net Git - nageru/blob - mainwindow.h
Move the audio level logic into MainWindow, where it has a much better home than...
[nageru] / mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3
4 #include <QMainWindow>
5 #include <vector>
6 #include <string>
7
8 namespace Ui {
9 class MainWindow;
10 }  // namespace Ui
11
12 class Mixer;
13 class QPushButton;
14
15 class MainWindow : public QMainWindow
16 {
17         Q_OBJECT
18
19 public:
20         MainWindow();
21         void resizeEvent(QResizeEvent *event) override;
22         void mixer_created(Mixer *mixer);
23
24 public slots:
25         void transition_clicked(int transition_number);
26         void channel_clicked(int channel_number);
27         void set_transition_names(std::vector<std::string> transition_names);
28         void relayout();
29
30 private:
31         Ui::MainWindow *ui;
32         QPushButton *transition_btn1, *transition_btn2, *transition_btn3;
33 };
34
35 extern MainWindow *global_mainwindow;
36
37 #endif