, routes (new RouteList)
, ROUTE_GROUP_DEFAULT_PROPERTIES
{
- _xml_node_name = X_("RegionGroup");
+ _xml_node_name = X_("RouteGroup");
add_property (_relative);
add_property (_active);
r->DropReferences.connect_same_thread (*this, boost::bind (&RouteGroup::remove_when_going_away, this, boost::weak_ptr<Route> (r)));
_session.set_dirty ();
- changed (); /* EMIT SIGNAL */
+ MembershipChanged (); /* EMIT SIGNAL */
return 0;
}
r->leave_route_group ();
routes->erase (i);
_session.set_dirty ();
- changed (); /* EMIT SIGNAL */
+ MembershipChanged (); /* EMIT SIGNAL */
return 0;
}
return set_state_2X (node, version);
}
+ set_properties (node);
+
const XMLProperty *prop;
if ((prop = node.property ("routes")) != 0) {
if (is_active() == yn) {
return;
}
+
_active = yn;
+ send_change (PropertyChange (Properties::active));
+
_session.set_dirty ();
- FlagsChanged (src); /* EMIT SIGNAL */
}
void
RouteGroup::set_relative (bool yn, void *src)
-
{
if (is_relative() == yn) {
return;
}
_relative = yn;
_session.set_dirty ();
- FlagsChanged (src); /* EMIT SIGNAL */
}
void
}
}
_session.set_dirty ();
- FlagsChanged (src); /* EMIT SIGNAL */
}
void
bool
RouteGroup::enabled_property (PBD::PropertyID prop)
{
- if (Properties::relative.property_id == prop) {
- return is_relative();
- } else if (Properties::active.property_id == prop) {
- return is_active();
- } else if (Properties::hidden.property_id == prop) {
- return is_hidden();
- } else if (Properties::gain.property_id == prop) {
- return is_gain();
- } else if (Properties::mute.property_id == prop) {
- return is_mute();
- } else if (Properties::solo.property_id == prop) {
- return is_solo();
- } else if (Properties::recenable.property_id == prop) {
- return is_recenable();
- } else if (Properties::select.property_id == prop) {
- return is_select();
- } else if (Properties::edit.property_id == prop) {
- return is_edit();
+ OwnedPropertyList::iterator i = _properties->find (prop);
+ if (i == _properties->end()) {
+ return false;
}
- return false;
+ return dynamic_cast<const PropertyTemplate<bool>* > (i->second)->val ();
}