X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fmainwindow.h;h=d5a36245573cc58a51354ef0d6152779ec09c4e9;hb=1d202a8d120f0af9940cc55a12140672804fad69;hp=a0c090fcd86a138e8c230708061bf126d172274e;hpb=f8da8feaff269b75480625e1384951c20c3a529d;p=nageru diff --git a/nageru/mainwindow.h b/nageru/mainwindow.h index a0c090f..d5a3624 100644 --- a/nageru/mainwindow.h +++ b/nageru/mainwindow.h @@ -14,6 +14,7 @@ #include "midi_mapper.h" #include "mixer.h" +class QDial; class QEvent; class QObject; class QResizeEvent; @@ -84,9 +85,11 @@ public slots: void set_treble(unsigned bus_idx, float value) override; void set_mid(unsigned bus_idx, float value) override; void set_bass(unsigned bus_idx, float value) override; + void set_eq_absolute(unsigned bus_idx, EQBand eq_band, float value_db); void set_gain(unsigned bus_idx, float value) override; void set_compressor_threshold(unsigned bus_idx, float value) override; void set_fader(unsigned bus_idx, float value) override; + void set_fader_absolute(unsigned bus_idx, float value_db); // Used by the theme only. void toggle_mute(unsigned bus_idx) override; void toggle_locut(unsigned bus_idx) override; @@ -145,7 +148,7 @@ private: void next_page(); // Called from DiskSpaceEstimator. - void report_disk_space(off_t free_bytes, double estimated_seconds_left); + void report_disk_space(off_t free_bytes, double estimated_seconds_left, double file_length_seconds); // Called from the mixer. void audio_level_callback(float level_lufs, float peak_db, std::vector bus_levels, float global_level_lufs, float range_low_lufs, float range_high_lufs, float final_makeup_gain_db, float correlation); @@ -159,6 +162,8 @@ private: template void set_relative_value_if_exists(unsigned bus_idx, T *Ui_AudioExpandedView::*control, float value); + void set_db_value_if_exists(unsigned bus_idx, QDial *Ui_AudioExpandedView::*control, float value_db); + template void click_button_if_exists(unsigned bus_idx, T *Ui_AudioExpandedView::*control);