From e31f5d999837b0d0d63dc824c50e9da4acca7244 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 4 Oct 2017 00:35:29 +0200 Subject: Clean up State API: * Processor implement get_state(), classes derived from Processor implement protected ::state() -- as documented in processor.h * likewise for Route, Track: make ::state() a protected interface * removal of "full_state", use explicit "template_save" * use RAII/Unwind to skip saving automation-state --- libs/ardour/ardour/region.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libs/ardour/ardour/region.h') diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 1ae75d1469..a147a6163a 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -88,7 +88,7 @@ class LIBARDOUR_API Region , public Trimmable , public Movable { - public: +public: typedef std::vector > SourceList; static void make_property_quarks (); @@ -281,7 +281,6 @@ class LIBARDOUR_API Region /* serialization */ XMLNode& get_state (); - virtual XMLNode& state (); virtual int set_state (const XMLNode&, int version); virtual boost::shared_ptr get_parent() const; @@ -344,7 +343,9 @@ class LIBARDOUR_API Region void drop_sources (); - protected: +protected: + virtual XMLNode& state (); + friend class RegionFactory; /** Construct a region from multiple sources*/ @@ -366,7 +367,7 @@ class LIBARDOUR_API Region return false; } - protected: +protected: void send_change (const PBD::PropertyChange&); virtual int _set_state (const XMLNode&, int version, PBD::PropertyChange& what_changed, bool send_signal); @@ -412,7 +413,7 @@ class LIBARDOUR_API Region samplepos_t _transient_analysis_start; samplepos_t _transient_analysis_end; - private: +private: void mid_thaw (const PBD::PropertyChange&); virtual void trim_to_internal (samplepos_t position, samplecnt_t length, const int32_t sub_num); -- cgit v1.2.3