use running_from_source_tree()
[ardour.git] / gtk2_ardour / editor_drag.h
index caee8ad6ba829e89de7fb368d778a42048f6dc28..196bd3712379b65d8eb07758d22a01fbfd691ba1 100644 (file)
@@ -37,6 +37,7 @@
 
 namespace ARDOUR {
        class Location;
+       class TempoSection;
 }
 
 namespace ArdourCanvas {
@@ -708,6 +709,8 @@ private:
        ARDOUR::MeterSection* _real_section;
 
        bool _copy;
+       Editing::SnapType _old_snap_type;
+       Editing::SnapMode _old_snap_mode;
        XMLNode* before_state;
 };
 
@@ -741,6 +744,32 @@ private:
        XMLNode* before_state;
 };
 
+/** BBT Ruler drag */
+class BBTRulerDrag : public Drag
+{
+public:
+       BBTRulerDrag (Editor *, ArdourCanvas::Item *);
+
+       void start_grab (GdkEvent *, Gdk::Cursor* c = 0);
+       void motion (GdkEvent *, bool);
+       void finished (GdkEvent *, bool);
+       void aborted (bool);
+
+       bool allow_vertical_autoscroll () const {
+               return false;
+       }
+
+       bool y_movement_matters () const {
+               return false;
+       }
+
+       void setup_pointer_frame_offset ();
+
+private:
+       double _pulse;
+       ARDOUR::TempoSection* _tempo;
+       XMLNode* before_state;
+};
 
 /** Drag of the playhead cursor */
 class CursorDrag : public Drag