X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fcurve.cc;h=c9c6db7baf81896fd7e9b432d8b1ba54c9251721;hb=1bd4c5b3a212460eed1773f6b049d18c89625565;hp=977b6dfd7be5088fc88df669e594497e57564a71;hpb=7ff370e79895d7eb293e7214689b791bd98415fb;p=ardour.git diff --git a/libs/ardour/curve.cc b/libs/ardour/curve.cc index 977b6dfd7b..c9c6db7baf 100644 --- a/libs/ardour/curve.cc +++ b/libs/ardour/curve.cc @@ -40,11 +40,14 @@ using namespace ARDOUR; using namespace sigc; using namespace PBD; +sigc::signal 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) @@ -52,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) @@ -59,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 () @@ -430,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