Properly revert FormatSpec changes on "cancel"
[ardour.git] / gtk2_ardour / control_point.h
index ce4c30be968aa0506009972f2eed4ac880b7675f..524398aa014ece481cf596e4ea0515d87cd9f90a 100644 (file)
@@ -38,11 +38,12 @@ class Selection;
 namespace ArdourCanvas {
        class Rectangle;
        class Diamond;
+       class Item;
 }
 
 class ControlPoint : public Selectable
 {
-  public:
+public:
        ControlPoint (AutomationLine& al);
        ControlPoint (const ControlPoint&, bool dummy_arg_to_force_special_copy_constructor);
        virtual ~ControlPoint ();
@@ -74,14 +75,14 @@ class ControlPoint : public Selectable
        uint32_t view_index() const         { return _view_index; }
        void     set_view_index(uint32_t i) { _view_index = i; }
 
-       void i2w (double &, double &) const;
+       ArdourCanvas::Item& item() const;
 
        ARDOUR::AutomationList::iterator model() const { return _model; }
        AutomationLine&                  line()  const { return _line; }
 
        static PBD::Signal1<void, ControlPoint *> CatchDeletion;
-       
-  private:
+
+private:
        ArdourCanvas::Rectangle*        _item;
        AutomationLine&                  _line;
        ARDOUR::AutomationList::iterator _model;