diff options
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 3fb1d40c19..bccdce27c1 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -1351,18 +1351,27 @@ Editor::select_all_within (jack_nframes_t start, jack_nframes_t end, double top, } (*iter)->get_selectables (start, end, top, bot, touched); } + + cerr << "select all within found " << touched.size() << endl; + begin_reversible_command (_("select all within")); switch (op) { case Selection::Toggle: + cerr << "toggle\n"; selection->add (touched); break; case Selection::Set: + cerr << "set\n"; selection->set (touched); break; case Selection::Extend: + cerr << "extend\n"; /* not defined yet */ break; } + + cerr << "selection now has " << selection->points.size() << endl; + commit_reversible_command (); return !touched.empty(); } @@ -3149,6 +3158,23 @@ Editor::duplicate_selection (float times) } void +Editor::reset_point_selection () +{ + /* reset all selected points to the relevant default value */ + + cerr << "point selection has " << selection->points.size() << " entries\n"; + + for (PointSelection::iterator i = selection->points.begin(); i != selection->points.end(); ++i) { + + AutomationTimeAxisView* atv = dynamic_cast<AutomationTimeAxisView*>(&(*i).track); + + if (atv) { + atv->reset_objects (selection->points); + } + } +} + +void Editor::center_playhead () { float page = canvas_width * frames_per_unit; |