patch from brian to get consistent menu behaviour
[ardour.git] / gtk2_ardour / automation_line.h
index 52193ecc4cf5d10a846308950d47391d2ef84800..b73a1c548ab840f3787a5080cb62a1e052fd80ef 100644 (file)
@@ -96,7 +96,7 @@ class ControlPoint
        ShapeType _shape;
 };
 
-class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible
+class AutomationLine : public sigc::trackable, public PBD::StatefulThingWithGoingAway
 {
   public:
         AutomationLine (const string & name, TimeAxisView&, ArdourCanvas::Group&, ARDOUR::AutomationList&);
@@ -146,8 +146,6 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible
        void show_selection();
        void hide_selection ();
 
-       void set_point_size (double size);
-
        virtual string  get_verbose_cursor_string (float);
        virtual void view_to_model_y (double&) = 0;
        virtual void model_to_view_y (double&) = 0;
@@ -204,9 +202,7 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible
        virtual void change_model_range (ARDOUR::AutomationList::iterator,ARDOUR::AutomationList::iterator, double delta, float ydelta);
 
        void reset_callback (const ARDOUR::AutomationList&);
-       void list_changed (ARDOUR::Change);
-
-       UndoAction get_memento();
+       void list_changed ();
 
        virtual bool event_handler (GdkEvent*);
        
@@ -221,6 +217,8 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible
        void reset_line_coords (ControlPoint&);
        void update_line ();
 
+       double control_point_box_size ();
+
        struct ModelRepresentation {
            ARDOUR::AutomationList::iterator start;
            ARDOUR::AutomationList::iterator end;