fix visual focus indication in IOSelector; import pays attention to audio file embedd...
[ardour.git] / libs / ardour / ardour / automation_event.h
index 89823bc738d00d2bdb318dd06c3f1510ede4cd73..459ec2b6cf881da727f1eabcbbcdfacc8bc06cac 100644 (file)
@@ -60,7 +60,8 @@ class AutomationList : public PBD::StatefulDestructible
        typedef AutomationEventList::iterator iterator;
        typedef AutomationEventList::const_iterator const_iterator;
 
-       AutomationList(double default_value, bool no_state = false);
+       AutomationList (double default_value);
+       AutomationList (const XMLNode&);
        ~AutomationList();
 
        AutomationList (const AutomationList&);
@@ -84,8 +85,9 @@ class AutomationList : public PBD::StatefulDestructible
 
        void reposition_for_rt_add (double when);
        void rt_add (double when, double value);
-       iterator add (double when, double value, iterator, bool ignore_mode = false);
-       void add (double when, double value, bool for_loading = false);
+       void add (double when, double value);
+       /* this should be private but old-school automation loading needs it in IO/Redirect */
+       void fast_simple_add (double when, double value);
 
        void reset_range (double start, double end);
        void erase_range (double start, double end);
@@ -152,11 +154,10 @@ class AutomationList : public PBD::StatefulDestructible
 
        sigc::signal<void,Change> StateChanged;
 
-       virtual void store_state (XMLNode& node) const;
-       virtual void load_state (const XMLNode&);
-
-       XMLNode &get_state(void); 
+       XMLNode& get_state(void); 
        int set_state (const XMLNode &s);
+       XMLNode& state (bool full);
+       XMLNode& serialize_events ();
 
        void set_max_xval (double);
        double get_max_xval() const { return max_xval; }
@@ -208,7 +209,6 @@ class AutomationList : public PBD::StatefulDestructible
        double min_yval;
        double max_yval;
        double default_value;
-       bool   no_state;
 
        iterator rt_insertion_point;
        double   rt_pos;
@@ -239,6 +239,8 @@ class AutomationList : public PBD::StatefulDestructible
        virtual ControlEvent* point_factory (const ControlEvent&) const;
 
        AutomationList* cut_copy_clear (double, double, int op);
+
+       int deserialize_events (const XMLNode&);
 };
 
 } // namespace