summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-09 01:51:34 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-09 01:51:34 +0000
commita766fe1fd9852ea6b041ba257e588fca7a032cb9 (patch)
treeaecac737ab5cf23d02d0bec378af24466cc87ff1 /gtk2_ardour/midi_region_view.h
parent0ac73d8513dff0566b290b49127776b28859e69a (diff)
Somewhat primitive implementation of allowing the edit note dialog to handle multiple notes (#4096).
git-svn-id: svn://localhost/ardour2/branches/3.0@12623 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index 0663e75a7b..07c51800d5 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -281,6 +281,11 @@ public:
void show_list_editor ();
+ typedef std::set<ArdourCanvas::CanvasNoteEvent*> Selection;
+ Selection selection () const {
+ return _selection;
+ }
+
void selection_as_notelist (Notes& selected, bool allow_all_if_none_selected = false);
void enable_display (bool);
@@ -409,8 +414,7 @@ private:
MouseState _mouse_state;
int _pressed_button;
- typedef std::set<ArdourCanvas::CanvasNoteEvent*> Selection;
- /// Currently selected CanvasNoteEvents
+ /** Currently selected CanvasNoteEvents */
Selection _selection;
bool _sort_needed;