namespace ARDOUR {
class Location;
+ class TempoSection;
}
namespace ArdourCanvas {
ARDOUR::MeterSection* _real_section;
bool _copy;
+ Editing::SnapType _old_snap_type;
+ Editing::SnapMode _old_snap_mode;
XMLNode* before_state;
};
}
bool y_movement_matters () const {
- return false;
+ return true;
}
void setup_pointer_frame_offset ();
ARDOUR::TempoSection* _real_section;
bool _copy;
+ bool _movable;
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