diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-19 20:10:35 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-05-19 20:10:35 +0000 |
commit | 9c6984dbbb5583147788876dba80e203c2d38d1a (patch) | |
tree | 4db0a08b1049f8ddd8f237c85474568e8a62e099 /gtk2_ardour/editor_ops.cc | |
parent | 50ee09e80ff91bf0146e89728578d5e31aba23b7 (diff) |
allow for mandatory control protocols, plus some ongoing work on automation control point selection (unfinished)
git-svn-id: svn://localhost/trunk/ardour2@516 d708f5d6-7413-0410-9779-e7cbd77b26cf
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; |