+/** Drag to move MIDI patch changes */
+class PatchChangeDrag : public Drag
+{
+public:
+ PatchChangeDrag (Editor *, ArdourCanvas::CanvasPatchChange *, MidiRegionView *);
+
+ void motion (GdkEvent *, bool);
+ void finished (GdkEvent *, bool);
+ void aborted (bool);
+
+ bool y_movement_matters () const {
+ return false;
+ }
+
+ void setup_pointer_frame_offset ();
+
+private:
+ MidiRegionView* _region_view;
+ ArdourCanvas::CanvasPatchChange* _patch_change;
+ double _cumulative_dx;
+};
+