22 class MainWindow : public QMainWindow
28 void resizeEvent(QResizeEvent *event) override;
29 void mixer_created(Mixer *mixer);
31 // Used to release FBOs on the global ResourcePool. Call after the
32 // mixer has been shut down but not destroyed yet.
33 void mixer_shutting_down();
37 void x264_bitrate_triggered();
38 void exit_triggered();
39 void about_triggered();
40 void transition_clicked(int transition_number);
41 void channel_clicked(int channel_number);
42 void wb_button_clicked(int channel_number);
43 void set_transition_names(std::vector<std::string> transition_names);
44 void update_channel_name(Mixer::Output output, const std::string &name);
45 void update_channel_color(Mixer::Output output, const std::string &color);
46 void gain_staging_knob_changed(int value);
47 void final_makeup_gain_knob_changed(int value);
48 void cutoff_knob_changed(int value);
49 void limiter_threshold_knob_changed(int value);
50 void compressor_threshold_knob_changed(int value);
51 void reset_meters_button_clicked();
55 bool eventFilter(QObject *watched, QEvent *event) override;
56 void set_white_balance(int channel_number, int x, int y);
58 // Called from the mixer.
59 void audio_level_callback(float level_lufs, float peak_db, float global_level_lufs, float range_low_lufs, float range_high_lufs, float gain_staging_db, float final_makeup_gain_db, float correlation);
60 std::chrono::steady_clock::time_point last_audio_level_callback;
63 QPushButton *transition_btn1, *transition_btn2, *transition_btn3;
64 std::vector<Ui::Display *> previews;
65 int current_wb_pick_display = -1;
68 extern MainWindow *global_mainwindow;