X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Froute_group.h;h=763430e1f1c1d6a607ed4ebf5b747fb8c245759e;hb=b32d9a1c70cb81680b75f3b02ae54d4e6afb20e5;hp=1f6be864cdd3e90b560468e5426ed2fab7ff4943;hpb=881b5a43e755860e91bf596bcac1f8c105b0a843;p=ardour.git diff --git a/libs/ardour/ardour/route_group.h b/libs/ardour/ardour/route_group.h index 1f6be864cd..763430e1f1 100644 --- a/libs/ardour/ardour/route_group.h +++ b/libs/ardour/ardour/route_group.h @@ -29,24 +29,25 @@ #include "pbd/stateful.h" #include "pbd/signals.h" +#include "ardour/libardour_visibility.h" #include "ardour/types.h" #include "ardour/session_object.h" namespace ARDOUR { namespace Properties { - extern PBD::PropertyDescriptor relative; - extern PBD::PropertyDescriptor active; - extern PBD::PropertyDescriptor gain; - extern PBD::PropertyDescriptor mute; - extern PBD::PropertyDescriptor solo; - extern PBD::PropertyDescriptor recenable; - extern PBD::PropertyDescriptor select; - extern PBD::PropertyDescriptor edit; - extern PBD::PropertyDescriptor route_active; - extern PBD::PropertyDescriptor color; + LIBARDOUR_API extern PBD::PropertyDescriptor relative; + LIBARDOUR_API extern PBD::PropertyDescriptor active; + LIBARDOUR_API extern PBD::PropertyDescriptor gain; + LIBARDOUR_API extern PBD::PropertyDescriptor mute; + LIBARDOUR_API extern PBD::PropertyDescriptor solo; + LIBARDOUR_API extern PBD::PropertyDescriptor recenable; + LIBARDOUR_API extern PBD::PropertyDescriptor select; + LIBARDOUR_API extern PBD::PropertyDescriptor route_active; + LIBARDOUR_API extern PBD::PropertyDescriptor color; + LIBARDOUR_API extern PBD::PropertyDescriptor monitoring; /* we use this, but its declared in region.cc */ - extern PBD::PropertyDescriptor hidden; + LIBARDOUR_API extern PBD::PropertyDescriptor hidden; }; class Route; @@ -54,7 +55,7 @@ class Track; class AudioTrack; class Session; -class RouteGroup : public SessionObject +class LIBARDOUR_API RouteGroup : public SessionObject { public: static void make_property_quarks(); @@ -70,9 +71,9 @@ class RouteGroup : public SessionObject bool is_solo () const { return _solo.val(); } bool is_recenable () const { return _recenable.val(); } bool is_select () const { return _select.val(); } - bool is_edit () const { return _edit.val(); } bool is_route_active () const { return _route_active.val(); } bool is_color () const { return _color.val(); } + bool is_monitoring() const { return _monitoring.val(); } bool empty() const {return routes->empty();} size_t size() const { return routes->size();} @@ -89,9 +90,9 @@ class RouteGroup : public SessionObject void set_solo (bool yn); void set_recenable (bool yn); void set_select (bool yn); - void set_edit (bool yn); void set_route_active (bool yn); void set_color (bool yn); + void set_monitoring (bool yn); bool enabled_property (PBD::PropertyID); @@ -118,13 +119,16 @@ class RouteGroup : public SessionObject changed(); } + bool has_subgroup() const; void make_subgroup (bool, Placement); void destroy_subgroup (); boost::shared_ptr route_list() { return routes; } - /** Emitted when a route has been added to or removed from this group */ - PBD::Signal0 MembershipChanged; + /** Emitted when a route has been added to this group */ + PBD::Signal2 > RouteAdded; + /** Emitted when a route has been removed from this group */ + PBD::Signal2 > RouteRemoved; XMLNode& get_state (); @@ -142,9 +146,9 @@ private: PBD::Property _solo; PBD::Property _recenable; PBD::Property _select; - PBD::Property _edit; PBD::Property _route_active; PBD::Property _color; + PBD::Property _monitoring; void remove_when_going_away (boost::weak_ptr); int set_state_2X (const XMLNode&, int);