diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-09 23:04:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-05-09 23:04:18 +0000 |
commit | 25655e1a6dae74a10707ebc8faa7b2bd0ab16210 (patch) | |
tree | 29f013883fe66f05662d3863c42a4bc789abe4a4 /gtk2_ardour/editor_drag.h | |
parent | d8e41bde96cf31a80910a4e9fd0ac9f225dfce49 (diff) |
skeleton for crossfade edge dragging
git-svn-id: svn://localhost/ardour2/branches/3.0@12235 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r-- | gtk2_ardour/editor_drag.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 0d457a39d9..3c33e4de48 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -972,5 +972,27 @@ private: bool _nothing_to_drag; }; +/** Drag of one edge of an xfade + */ +class CrossfadeEdgeDrag : public Drag +{ + public: + CrossfadeEdgeDrag (Editor*, AudioRegionView*, ArdourCanvas::Item*, bool start); + ~CrossfadeEdgeDrag (); + + void start_grab (GdkEvent*, Gdk::Cursor* c = 0); + void motion (GdkEvent*, bool); + void finished (GdkEvent*, bool); + void aborted (bool); + + bool x_movement_matters () const { + return false; + } + + private: + AudioRegionView* arv; + bool start; +}; + #endif /* __gtk2_ardour_editor_drag_h_ */ |