diff options
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; |