double get_samples_per_unit();
+ virtual void drag_start() { _dragging = true; }
+ virtual void drag_end() { _dragging = false; }
+ bool dragging() const { return _dragging; }
+
virtual void raise () { return; }
virtual void raise_to_top () { return; }
virtual void lower () { return; }
static Pango::FontDescription NAME_FONT;
static void set_constant_heights ();
static const double NAME_X_OFFSET;
- static const double GRAB_HANDLE_LENGTH;
+ static const double GRAB_HANDLE_TOP;
+ static const double GRAB_HANDLE_WIDTH;
/* these are not constant, but vary with the pixel size
of the font used to display the item name.
protected:
TimeAxisViewItem(const std::string &, ArdourCanvas::Group&, TimeAxisView&, double, Gdk::Color const &,
- framepos_t, framepos_t, bool recording = false, bool automation = false, Visibility v = Visibility (0));
+ framepos_t, framecnt_t, bool recording = false, bool automation = false, Visibility v = Visibility (0));
TimeAxisViewItem (const TimeAxisViewItem&);
Visibility visibility;
bool _recregion;
bool _automation; ///< true if this is an automation region view
+ bool _dragging;
private: