X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=0d3906d091b34347b6f6bcc47164bf09e5c5ce89;hb=2f279ea7b988bdf204f6ba397b955dac28000133;hp=35e788e131e7f5d6ecb133a15fe257a8f8e34613;hpb=afe996bc7dfc8689ca356d00824fbfcd632f93a2;p=nageru diff --git a/mainwindow.h b/mainwindow.h index 35e788e..0d3906d 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -80,6 +80,28 @@ public slots: void toggle_compressor(unsigned bus_idx) override; void clear_peak(unsigned bus_idx) 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_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. + + // Raw receivers are not used. + void controller_changed(unsigned controller) override {} + void note_on(unsigned note) override {} + private: void reset_audio_mapping_ui(); void setup_audio_miniview(); @@ -107,6 +129,12 @@ 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_control_if_exists(unsigned bus_idx, T *(Ui_AudioExpandedView::*control), bool highlight); + Ui::MainWindow *ui; QLabel *disk_free_label; QPushButton *transition_btn1, *transition_btn2, *transition_btn3;