new automation state model, sort of working, but not really
[ardour.git] / libs / ardour / curve.cc
index a515c3a39a8e341efe04950e0edc5ca4df29bb1e..c9c6db7baf81896fd7e9b432d8b1ba54c9251721 100644 (file)
 using namespace std;
 using namespace ARDOUR;
 using namespace sigc;
+using namespace PBD;
+
+sigc::signal<void, Curve*> Curve::CurveCreated;
 
 Curve::Curve (double minv, double maxv, double canv, bool nostate)
        : AutomationList (canv, nostate)
 {
        min_yval = minv;
        max_yval = maxv;
+        CurveCreated(this);
 }
 
 Curve::Curve (const Curve& other)
@@ -51,6 +55,7 @@ Curve::Curve (const Curve& other)
 {
        min_yval = other.min_yval;
        max_yval = other.max_yval;
+        CurveCreated(this);
 }
 
 Curve::Curve (const Curve& other, double start, double end)
@@ -58,6 +63,7 @@ Curve::Curve (const Curve& other, double start, double end)
 {
        min_yval = other.min_yval;
        max_yval = other.max_yval;
+        CurveCreated(this);
 }
 
 Curve::~Curve ()
@@ -429,14 +435,6 @@ Curve::point_factory (const ControlEvent& other) const
        return new CurvePoint (other.when, other.value);
 }
 
-Change
-Curve::restore_state (StateManager::State& state)
-{
-       mark_dirty ();
-       return AutomationList::restore_state (state);
-}
-
-
 extern "C" {
 
 void