summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-20 12:01:13 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-20 12:01:13 +0000
commit812e95da016e334b8856b24aba14db809da3f774 (patch)
treed23003eb133c335bcb7e4de78adc82be58050e54 /gtk2_ardour/editor_drag.h
parent70597dbc0e6fe7222d51c9d40f59510171c8e2f0 (diff)
Allow drag when creating a MIDI region. Fixes #3363.
git-svn-id: svn://localhost/ardour2/branches/3.0@7657 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r--gtk2_ardour/editor_drag.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h
index fc04f83b3d..d710e3a639 100644
--- a/gtk2_ardour/editor_drag.h
+++ b/gtk2_ardour/editor_drag.h
@@ -44,6 +44,7 @@ namespace Gnome {
class Editor;
class EditorCursor;
class TimeAxisView;
+class MidiTimeAxisView;
class Drag;
/** Class to manage current drags */
@@ -180,7 +181,7 @@ protected:
return _grab_y;
}
- double grab_frame () const {
+ ARDOUR::framepos_t grab_frame () const {
return _grab_frame;
}
@@ -348,14 +349,13 @@ class RegionCreateDrag : public Drag
public:
RegionCreateDrag (Editor *, ArdourCanvas::Item *, TimeAxisView *);
- void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
void motion (GdkEvent *, bool);
void finished (GdkEvent *, bool);
void aborted ();
private:
- TimeAxisView* _view;
- TimeAxisView* _dest_trackview;
+ MidiTimeAxisView* _view;
+ boost::shared_ptr<ARDOUR::Region> _region;
};
/** Drags to resize MIDI notes */