mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
substantive change to try to provide some rationality for region gain line visibility (and automation line visibility in general
git-svn-id: svn://localhost/ardour2/branches/3.0@12478 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7198894473
commit
f1505b631d
10 changed files with 92 additions and 91 deletions
|
|
@ -4851,16 +4851,16 @@ Editor::reset_region_gain_envelopes ()
|
|||
}
|
||||
|
||||
void
|
||||
Editor::set_region_gain_visibility (RegionView* rv, bool yn)
|
||||
Editor::set_region_gain_visibility (RegionView* rv)
|
||||
{
|
||||
AudioRegionView* arv = dynamic_cast<AudioRegionView*> (rv);
|
||||
if (arv) {
|
||||
arv->set_envelope_visible (yn);
|
||||
arv->update_envelope_visible ();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Editor::set_gain_envelope_visibility (bool yn)
|
||||
Editor::set_gain_envelope_visibility ()
|
||||
{
|
||||
if (!_session) {
|
||||
return;
|
||||
|
|
@ -4869,7 +4869,7 @@ Editor::set_gain_envelope_visibility (bool yn)
|
|||
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
||||
AudioTimeAxisView* v = dynamic_cast<AudioTimeAxisView*>(*i);
|
||||
if (v) {
|
||||
v->audio_view()->foreach_regionview (sigc::bind (sigc::mem_fun (this, &Editor::set_region_gain_visibility), yn));
|
||||
v->audio_view()->foreach_regionview (sigc::mem_fun (this, &Editor::set_region_gain_visibility));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue