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;
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 ();
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;
PBD::PropertyDescriptor<float> shift;
PBD::PropertyDescriptor<PositionLockStyle> position_lock_style;
PBD::PropertyDescriptor<uint64_t> layering_index;
+ PBD::PropertyDescriptor<std::string> tags;
}
}
Properties::position_lock_style.property_id = g_quark_from_static_string (X_("positional-lock-style"));
DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for position_lock_style = %1\n", Properties::position_lock_style.property_id));
Properties::layering_index.property_id = g_quark_from_static_string (X_("layering-index"));
- DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for layering_index = %1\n", Properties::layering_index.property_id));
+ DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for layering_index = %1\n", Properties::layering_index.property_id));
+ Properties::tags.property_id = g_quark_from_static_string (X_("tags"));
+ DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for tags = %1\n", Properties::tags.property_id));
}
void
add_property (_shift);
add_property (_position_lock_style);
add_property (_layering_index);
+ add_property (_tags);
}
#define REGION_DEFAULT_STATE(s,l) \
, _stretch (Properties::stretch, 1.0) \
, _shift (Properties::shift, 1.0) \
, _position_lock_style (Properties::position_lock_style, _type == DataType::AUDIO ? AudioTime : MusicTime) \
- , _layering_index (Properties::layering_index, 0)
+ , _layering_index (Properties::layering_index, 0) \
+ , _tags (Properties::tags, "")
#define REGION_COPY_STATE(other) \
_sync_marked (Properties::sync_marked, other->_sync_marked) \
, _stretch (Properties::stretch, other->_stretch) \
, _shift (Properties::shift, other->_shift) \
, _position_lock_style (Properties::position_lock_style, other->_position_lock_style) \
- , _layering_index (Properties::layering_index, other->_layering_index)
+ , _layering_index (Properties::layering_index, other->_layering_index) \
+ , _tags (Properties::tags, other->_tags)
/* derived-from-derived constructor (no sources in constructor) */
Region::Region (Session& s, samplepos_t start, samplecnt_t length, const string& name, DataType type)
return _position + (minlen - _start) - 1;
}
+