summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-10-19 20:02:44 -0500
committerBen Loftis <ben@harrisonconsoles.com>2019-08-01 12:11:31 -0500
commit6c052348b513719cf40893595fb82d46d55704cb (patch)
tree27dec32a93a8a484f853a5ee89a5ca7e1cb9dce7 /libs/ardour/region.cc
parent375a09029535bd76afa0d76c74278a77805c9417 (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/region.cc')
-rw-r--r--libs/ardour/region.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 4c20e2236a..94eb4ca27e 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -75,6 +75,7 @@ namespace ARDOUR {
PBD::PropertyDescriptor<float> shift;
PBD::PropertyDescriptor<PositionLockStyle> position_lock_style;
PBD::PropertyDescriptor<uint64_t> layering_index;
+ PBD::PropertyDescriptor<std::string> tags;
}
}
@@ -134,7 +135,9 @@ Region::make_property_quarks ()
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
@@ -167,6 +170,7 @@ Region::register_properties ()
add_property (_shift);
add_property (_position_lock_style);
add_property (_layering_index);
+ add_property (_tags);
}
#define REGION_DEFAULT_STATE(s,l) \
@@ -199,7 +203,8 @@ Region::register_properties ()
, _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) \
@@ -233,7 +238,8 @@ Region::register_properties ()
, _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)
@@ -1982,3 +1988,4 @@ Region::latest_possible_sample () const
return _position + (minlen - _start) - 1;
}
+