PropertyDescriptor<bool> edit;
PropertyDescriptor<bool> route_active;
PropertyDescriptor<bool> color;
+ PropertyDescriptor<bool> monitoring;
}
}
DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for route-active = %1\n", Properties::route_active.property_id));
Properties::color.property_id = g_quark_from_static_string (X_("color"));
DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for color = %1\n", Properties::color.property_id));
+ Properties::monitoring.property_id = g_quark_from_static_string (X_("monitoring"));
+ DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for monitoring = %1\n", Properties::monitoring.property_id));
}
#define ROUTE_GROUP_DEFAULT_PROPERTIES _relative (Properties::relative, false) \
, _select (Properties::select, false) \
, _edit (Properties::edit, false) \
, _route_active (Properties::route_active, false) \
- , _color (Properties::color, false)
+ , _color (Properties::color, false) \
+ , _monitoring (Properties::monitoring, false)
RouteGroup::RouteGroup (Session& s, const string &n)
: SessionObject (s, n)
add_property (_edit);
add_property (_route_active);
add_property (_color);
+ add_property (_monitoring);
}
RouteGroup::~RouteGroup ()
r->DropReferences.connect_same_thread (*this, boost::bind (&RouteGroup::remove_when_going_away, this, boost::weak_ptr<Route> (r)));
_session.set_dirty ();
- MembershipChanged (); /* EMIT SIGNAL */
+ RouteAdded (this, boost::weak_ptr<Route> (r)); /* EMIT SIGNAL */
return 0;
}
r->leave_route_group ();
routes->erase (i);
_session.set_dirty ();
- MembershipChanged (); /* EMIT SIGNAL */
+ RouteRemoved (this, boost::weak_ptr<Route> (r)); /* EMIT SIGNAL */
return 0;
}
const XMLProperty *prop;
- if ((prop = node.property ("id")) != 0) {
- _id = prop->value();
- }
-
+ set_id (node);
set_values (node);
if ((prop = node.property ("routes")) != 0) {
}
}
+void
+RouteGroup::set_monitoring (bool yn)
+{
+ if (is_monitoring() == yn) {
+ return;
+ }
+
+ _monitoring = yn;
+ send_change (PropertyChange (Properties::monitoring));
+
+ _session.set_dirty ();
+}
+
void
RouteGroup::set_active (bool yn, void* /*src*/)
{