diff options
author | Carl Hetherington <carl@carlh.net> | 2010-01-03 00:08:58 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-01-03 00:08:58 +0000 |
commit | 0f79f67398fcf319e9471e9b2b3b91e2ea6b2fee (patch) | |
tree | 7faedc8d87a8a4195be2d4878a4dc2abb54ab487 /gtk2_ardour/control_point.h | |
parent | c88716665a62399efa6278b5eaa254434a77a305 (diff) |
Some cleanups to drawing of automation line control points. Drag all selected automation points if one selected point is dragged.
git-svn-id: svn://localhost/ardour2/branches/3.0@6437 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/control_point.h')
-rw-r--r-- | gtk2_ardour/control_point.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/control_point.h b/gtk2_ardour/control_point.h index f2ff37ea6d..6ef6f8fb3e 100644 --- a/gtk2_ardour/control_point.h +++ b/gtk2_ardour/control_point.h @@ -62,10 +62,11 @@ class ControlPoint void hide (); void show (); - void show_color (bool entered, bool hide_too); + void set_color (); void set_size (double); void set_visible (bool); + bool visible () const; bool can_slide() const { return _can_slide; } void set_can_slide(bool yn) { _can_slide = yn; } @@ -74,11 +75,12 @@ class ControlPoint uint32_t view_index() const { return _view_index; } void set_view_index(uint32_t i) { _view_index = i; } + void i2w (double &, double &) const; + ARDOUR::AutomationList::iterator model() const { return _model; } AutomationLine& line() const { return _line; } - ArdourCanvas::Item* item() const { return _item; } - protected: + private: ArdourCanvas::SimpleRect* _item; AutomationLine& _line; @@ -90,7 +92,6 @@ class ControlPoint virtual bool event_handler (GdkEvent*); - private: double _x; double _y; double _size; |