X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=b5e43fd2e74f039a6e47b372e1ae149df93c064e;hb=0556d8cb8416bdc7b432a432c3d58239a94358d2;hp=f1f2bd29bbcf6163cc7b51a1fcfcf7036b48d24a;hpb=c93433b2669d3447f8c2e1dfcae0d491b2d3a4dc;p=nageru diff --git a/mainwindow.h b/mainwindow.h index f1f2bd2..b5e43fd 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -1,18 +1,22 @@ #ifndef MAINWINDOW_H #define MAINWINDOW_H +#include +#include #include +#include #include #include #include -#include +#include "audio_mixer.h" #include "midi_mapper.h" #include "mixer.h" -class GLWidget; -class Ui_AudioExpandedView; +class QEvent; +class QObject; class QResizeEvent; +class Ui_AudioExpandedView; namespace Ui { class AudioExpandedView; @@ -21,7 +25,6 @@ class Display; class MainWindow; } // namespace Ui -class QDial; class QLabel; class QPushButton; @@ -42,11 +45,14 @@ public slots: void cut_triggered(); void x264_bitrate_triggered(); void exit_triggered(); + void manual_triggered(); void about_triggered(); void simple_audio_mode_triggered(); void multichannel_audio_mode_triggered(); void input_mapping_triggered(); void midi_mapping_triggered(); + void timecode_stream_triggered(); + void timecode_stdout_triggered(); void transition_clicked(int transition_number); void channel_clicked(int channel_number); void wb_button_clicked(int channel_number); @@ -60,6 +66,7 @@ public slots: void limiter_threshold_knob_changed(int value); void compressor_threshold_knob_changed(unsigned bus_index, int value); void mini_fader_changed(int bus, double db_volume); + void mute_button_toggled(int bus, bool checked); void reset_meters_button_clicked(); void relayout(); @@ -75,10 +82,34 @@ public slots: void set_compressor_threshold(unsigned bus_idx, float value) override; void set_fader(unsigned bus_idx, float value) override; + void toggle_mute(unsigned bus_idx) override; void toggle_locut(unsigned bus_idx) override; void toggle_auto_gain_staging(unsigned bus_idx) override; void toggle_compressor(unsigned bus_idx) override; void clear_peak(unsigned bus_idx) override; + void toggle_limiter() override; + void toggle_auto_makeup_gain() override; + + void clear_all_highlights() override; + + void highlight_locut(bool highlight) override; + void highlight_limiter_threshold(bool highlight) override; + void highlight_makeup_gain(bool highlight) override; + + void highlight_treble(unsigned bus_idx, bool highlight) override; + void highlight_mid(unsigned bus_idx, bool highlight) override; + void highlight_bass(unsigned bus_idx, bool highlight) override; + void highlight_gain(unsigned bus_idx, bool highlight) override; + void highlight_compressor_threshold(unsigned bus_idx, bool highlight) override; + void highlight_fader(unsigned bus_idx, bool highlight) override; + + void highlight_mute(unsigned bus_idx, bool highlight) override; + void highlight_toggle_locut(unsigned bus_idx, bool highlight) override; + void highlight_toggle_auto_gain_staging(unsigned bus_idx, bool highlight) override; + void highlight_toggle_compressor(unsigned bus_idx, bool highlight) override; + void highlight_clear_peak(unsigned bus_idx, bool highlight) override {} // We don't mark this currently. + void highlight_toggle_limiter(bool highlight) override; + void highlight_toggle_auto_makeup_gain(bool highlight) override; // Raw receivers are not used. void controller_changed(unsigned controller) override {} @@ -111,6 +142,15 @@ private: template void click_button_if_exists(unsigned bus_idx, T *Ui_AudioExpandedView::*control); + template + void highlight_control(T *control, bool highlight); + + template + void highlight_mute_control(T *control, bool highlight); + + template + void highlight_control_if_exists(unsigned bus_idx, T *(Ui_AudioExpandedView::*control), bool highlight, bool is_mute_button = false); + Ui::MainWindow *ui; QLabel *disk_free_label; QPushButton *transition_btn1, *transition_btn2, *transition_btn3;