diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-10-19 20:02:44 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2019-08-01 12:11:31 -0500 |
commit | 6c052348b513719cf40893595fb82d46d55704cb (patch) | |
tree | 27dec32a93a8a484f853a5ee89a5ca7e1cb9dce7 /libs/ardour/ardour/region.h | |
parent | 375a09029535bd76afa0d76c74278a77805c9417 (diff) |
(Source List) Region Tags (libardour part)
Rough-in: Region-Tags.
More correct implementation of tags property (libardour).
Region Tags (libardour part)
Diffstat (limited to 'libs/ardour/ardour/region.h')
-rw-r--r-- | libs/ardour/ardour/region.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 61a676f5a0..d676db1d1e 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -67,6 +67,7 @@ namespace Properties { LIBARDOUR_API extern PBD::PropertyDescriptor<float> shift; LIBARDOUR_API extern PBD::PropertyDescriptor<PositionLockStyle> position_lock_style; LIBARDOUR_API extern PBD::PropertyDescriptor<uint64_t> layering_index; + LIBARDOUR_API extern PBD::PropertyDescriptor<std::string> tags; }; class Playlist; @@ -282,6 +283,17 @@ public: virtual boost::shared_ptr<const Evoral::Control> control (const Evoral::Parameter& id) const = 0; + /* tags */ + + std::string tags() const { return _tags; } + virtual bool set_tags (const std::string& str) { + if (_tags != str) { + _tags = str; + PropertyChanged (PBD::PropertyChange (Properties::tags)); + } + return true; + } + /* serialization */ XMLNode& get_state (); @@ -451,6 +463,7 @@ private: PBD::Property<float> _shift; PBD::EnumProperty<PositionLockStyle> _position_lock_style; PBD::Property<uint64_t> _layering_index; + PBD::Property<std::string> _tags; samplecnt_t _last_length; samplepos_t _last_position; |