diff options
author | Robin Gareus <robin@gareus.org> | 2018-04-30 22:24:35 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-04-30 22:24:35 +0200 |
commit | f69938a9c45e3741695bcb29b057167063a5ed71 (patch) | |
tree | 88611cf17c61ca94694474c44837ff94a48eb637 /gtk2_ardour | |
parent | 11b02e90ac9b084cd25741b7a6bdc91c59749c16 (diff) |
Add option to disable plotting collected signal in analysis.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/plugin_eq_gui.cc | 18 | ||||
-rw-r--r-- | gtk2_ardour/plugin_eq_gui.h | 1 |
2 files changed, 13 insertions, 6 deletions
diff --git a/gtk2_ardour/plugin_eq_gui.cc b/gtk2_ardour/plugin_eq_gui.cc index 31e220555a..f40b22eddb 100644 --- a/gtk2_ardour/plugin_eq_gui.cc +++ b/gtk2_ardour/plugin_eq_gui.cc @@ -121,6 +121,10 @@ PluginEqGui::PluginEqGui(boost::shared_ptr<ARDOUR::PluginInsert> pluginInsert) dBSelectBin->add( *manage(dBScaleCombo)); // Phase checkbutton + _signal_button = new Gtk::CheckButton (_("Plot live signal")); + _signal_button->set_active(true); + + // Phase checkbutton _phase_button = new Gtk::CheckButton (_("Show phase")); _phase_button->set_active(true); _phase_button->signal_toggled().connect( sigc::mem_fun(*this, &PluginEqGui::redraw_scales)); @@ -131,10 +135,11 @@ PluginEqGui::PluginEqGui(boost::shared_ptr<ARDOUR::PluginInsert> pluginInsert) _pointer_info->set_name("PluginAnalysisInfoLabel"); // populate table - attach( *manage(_analysis_area), 1, 4, 1, 2); - attach( *manage(dBSelectBin), 1, 2, 2, 3, Gtk::SHRINK, Gtk::SHRINK); - attach( *manage(_phase_button), 2, 3, 2, 3, Gtk::SHRINK, Gtk::SHRINK); - attach( *manage(_pointer_info), 3, 4, 2, 3, Gtk::FILL, Gtk::SHRINK); + attach (*manage(_analysis_area), 0, 4, 0, 1); + attach (*manage(dBSelectBin), 0, 1, 1, 2, Gtk::SHRINK, Gtk::SHRINK); + attach (*manage(_signal_button), 1, 2, 1, 2, Gtk::SHRINK, Gtk::SHRINK); + attach (*manage(_phase_button), 2, 3, 1, 2, Gtk::SHRINK, Gtk::SHRINK); + attach (*manage(_pointer_info), 3, 4, 1, 2, Gtk::FILL, Gtk::SHRINK); } PluginEqGui::~PluginEqGui() @@ -535,8 +540,9 @@ PluginEqGui::redraw_analysis_area() } plot_impulse_amplitude(_analysis_area, cr); - // TODO: make this optional - plot_signal_amplitude_difference(_analysis_area, cr); + if (_signal_button->get_active()) { + plot_signal_amplitude_difference(_analysis_area, cr); + } cairo_destroy(cr); } diff --git a/gtk2_ardour/plugin_eq_gui.h b/gtk2_ardour/plugin_eq_gui.h index ec6e7364ef..2805934175 100644 --- a/gtk2_ardour/plugin_eq_gui.h +++ b/gtk2_ardour/plugin_eq_gui.h @@ -142,6 +142,7 @@ private: Gtk::ComboBox *dBScaleCombo; Glib::RefPtr<Gtk::ListStore> dBScaleModel; + Gtk::CheckButton *_signal_button; Gtk::CheckButton *_phase_button; // signals and connections |