diff options
Diffstat (limited to 'gtk2_ardour/control_point.h')
-rw-r--r-- | gtk2_ardour/control_point.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/gtk2_ardour/control_point.h b/gtk2_ardour/control_point.h index 0c2bf1e01d..ce4c30be96 100644 --- a/gtk2_ardour/control_point.h +++ b/gtk2_ardour/control_point.h @@ -21,11 +21,10 @@ #define __ardour_control_point_h__ #include <sys/types.h> +#include <gdk/gdkevents.h> #include "ardour/automation_list.h" -#include "canvas.h" -#include "simplerect.h" #include "selectable.h" class AutomationLine; @@ -36,11 +35,9 @@ class AutomationTimeAxisView; class Selectable; class Selection; -namespace Gnome { - namespace Canvas { - class SimpleRect; - class Diamond; - } +namespace ArdourCanvas { + class Rectangle; + class Diamond; } class ControlPoint : public Selectable @@ -63,15 +60,14 @@ class ControlPoint : public Selectable void hide (); void show (); - void set_color (); + bool visible () const; double size () const { return _size; } void set_size (double); - void set_visible (bool); - bool visible () const; + void set_color (); bool can_slide() const { return _can_slide; } void set_can_slide(bool yn) { _can_slide = yn; } @@ -86,7 +82,7 @@ class ControlPoint : public Selectable static PBD::Signal1<void, ControlPoint *> CatchDeletion; private: - ArdourCanvas::SimpleRect* _item; + ArdourCanvas::Rectangle* _item; AutomationLine& _line; ARDOUR::AutomationList::iterator _model; uint32_t _view_index; |