]> git.sesse.net Git - nageru/blob - mainwindow.h
Move some lambdas in MainWindow out into real functions.
[nageru] / mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3
4 #include <QMainWindow>
5 #include <string>
6 #include <vector>
7
8 class GLWidget;
9 class QResizeEvent;
10
11 namespace Ui {
12 class Display;
13 class MainWindow;
14 }  // namespace Ui
15
16 class Mixer;
17 class QPushButton;
18
19 class MainWindow : public QMainWindow
20 {
21         Q_OBJECT
22
23 public:
24         MainWindow();
25         void resizeEvent(QResizeEvent *event) override;
26         void mixer_created(Mixer *mixer);
27
28 public slots:
29         void transition_clicked(int transition_number);
30         void channel_clicked(int channel_number);
31         void wb_button_clicked(int channel_number);
32         void set_transition_names(std::vector<std::string> transition_names);
33         void cutoff_knob_changed(int value);
34         void relayout();
35
36 private:
37         bool eventFilter(QObject *watched, QEvent *event) override;
38         void set_white_balance(int channel_number, int x, int y);
39
40         // Called from the mixer.
41         void audio_level_callback(float level_lufs, float peak_db, float global_level_lufs, float range_low_lufs, float range_high_lufs, float auto_gain_staging_db);
42
43         Ui::MainWindow *ui;
44         QPushButton *transition_btn1, *transition_btn2, *transition_btn3;
45         std::vector<Ui::Display *> previews;
46         int current_wb_pick_display = -1;
47 };
48
49 extern MainWindow *global_mainwindow;
50
51 #endif