diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-03-14 20:06:42 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-03-14 20:06:42 +0000 |
commit | fb6565456e2070f088b2387923d78934ac8ab957 (patch) | |
tree | 679975e17bd5697cc09081e191bab3a9924f7c07 /gtk2_ardour/rhythm_ferret.cc | |
parent | b0ccb3d4d418f912ec0a54f50fa6846d599e5a0a (diff) |
make feature lines (rhythm ferret etc) scale with zoom; hide them whenever RF hides
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3143 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/rhythm_ferret.cc')
-rw-r--r-- | gtk2_ardour/rhythm_ferret.cc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gtk2_ardour/rhythm_ferret.cc b/gtk2_ardour/rhythm_ferret.cc index 83852b33b3..63440e7ab1 100644 --- a/gtk2_ardour/rhythm_ferret.cc +++ b/gtk2_ardour/rhythm_ferret.cc @@ -191,7 +191,7 @@ RhythmFerret::run_analysis () } for (RegionSelection::iterator i = regions.begin(); i != regions.end(); ++i) { - (*i)->get_time_axis_view().show_temporary_lines (current_results); + (*i)->get_time_axis_view().show_feature_lines (current_results); } } @@ -269,7 +269,7 @@ RhythmFerret::do_split_action () tmp = i; ++tmp; - (*i)->get_time_axis_view().hide_temporary_lines (); + (*i)->get_time_axis_view().hide_feature_lines (); editor.split_region_at_points ((*i)->region(), current_results, false); @@ -286,3 +286,16 @@ RhythmFerret::set_session (Session* s) ArdourDialog::set_session (s); current_results.clear (); } + +static void hide_time_axis_features (TimeAxisView& tav) +{ + tav.hide_feature_lines (); +} + +void +RhythmFerret::on_hide () +{ + editor.foreach_time_axis_view (sigc::ptr_fun (hide_time_axis_features)); + ArdourDialog::on_hide (); +} + |