diff options
author | Robin Gareus <robin@gareus.org> | 2017-10-04 00:35:29 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-10-04 00:54:55 +0200 |
commit | e31f5d999837b0d0d63dc824c50e9da4acca7244 (patch) | |
tree | ef4712ccd25e8cc651ffabcd16e120571c21921d /libs/ardour/ardour/region.h | |
parent | 5dd9acf9ab39306277652c28fb5ac4af330e0af0 (diff) |
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
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r-- | libs/ardour/ardour/region.h | 11 |
1 files changed, 6 insertions, 5 deletions
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<boost::shared_ptr<Source> > 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<Region> 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); |