Add option to disable plotting collected signal in analysis.

This commit is contained in:
Robin Gareus 2018-04-30 22:24:35 +02:00
parent 11b02e90ac
commit f69938a9c4
2 changed files with 13 additions and 6 deletions

View File

@ -120,6 +120,10 @@ PluginEqGui::PluginEqGui(boost::shared_ptr<ARDOUR::PluginInsert> pluginInsert)
dBSelectBin->add( *manage(dBComboLabel));
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);
@ -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);
}

View File

@ -142,6 +142,7 @@ private:
Gtk::ComboBox *dBScaleCombo;
Glib::RefPtr<Gtk::ListStore> dBScaleModel;
Gtk::CheckButton *_signal_button;
Gtk::CheckButton *_phase_button;
// signals and connections