summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-19 23:56:30 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-19 23:56:30 +0000
commit70597dbc0e6fe7222d51c9d40f59510171c8e2f0 (patch)
tree89170454640135d2ee08ad3ce23744d02a253c72 /gtk2_ardour/editor_drag.h
parentf4290fc09c9ba03dd2c3d4f8fc6754bab29fa724 (diff)
Fix drag from region list onto track.
git-svn-id: svn://localhost/ardour2/branches/3.0@7656 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r--gtk2_ardour/editor_drag.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h
index b194366380..fc04f83b3d 100644
--- a/gtk2_ardour/editor_drag.h
+++ b/gtk2_ardour/editor_drag.h
@@ -255,6 +255,11 @@ public:
virtual void finished (GdkEvent *, bool) = 0;
virtual void aborted ();
+ /** @return true if the regions being `moved' came from somewhere on the canvas;
+ * false if they came from outside (e.g. from the region list).
+ */
+ virtual bool regions_came_from_canvas () const = 0;
+
protected:
struct TimeAxisViewSummary {
TimeAxisViewSummary () : height_list(512) {}
@@ -300,6 +305,10 @@ public:
void finished (GdkEvent *, bool);
void aborted ();
+ bool regions_came_from_canvas () const {
+ return true;
+ }
+
std::pair<nframes64_t, int> move_threshold () const {
return std::make_pair (4, 4);
}
@@ -316,6 +325,10 @@ public:
void finished (GdkEvent *, bool);
void aborted ();
+
+ bool regions_came_from_canvas () const {
+ return false;
+ }
};
/** Region drag in splice mode */