universal change in the design of the way Route/Track controls are designed and used...
[ardour.git] / libs / ardour / ardour / route_group.h
index fc295a658cdb6c3dd844db50070748c5f049b664..feeac6a467cba170104ff4f87888ef191377c6cd 100644 (file)
 #include "pbd/signals.h"
 #include "pbd/stateful.h"
 
-#include "ardour/libardour_visibility.h"
+#include "ardour/control_group.h"
 #include "ardour/types.h"
 #include "ardour/session_object.h"
 
+#include "ardour/libardour_visibility.h"
+
 namespace ARDOUR {
 
 namespace Properties {
@@ -55,6 +57,13 @@ class Track;
 class AudioTrack;
 class Session;
 
+/** A group identifier for routes.
+ *
+ * RouteGroups permit to define properties which are shared
+ * among all Routes that use the given identifier.
+ *
+ * A route can at most be in one group.
+ */
 class LIBARDOUR_API RouteGroup : public SessionObject
 {
   public:
@@ -150,8 +159,17 @@ class LIBARDOUR_API RouteGroup : public SessionObject
        PBD::Property<bool> _color;
        PBD::Property<bool> _monitoring;
 
+       boost::shared_ptr<ControlGroup> _solo_group;
+       boost::shared_ptr<ControlGroup> _mute_group;
+       boost::shared_ptr<ControlGroup> _rec_enable_group;
+       boost::shared_ptr<ControlGroup> _gain_group;
+       boost::shared_ptr<ControlGroup> _monitoring_group;
+
        void remove_when_going_away (boost::weak_ptr<Route>);
        int set_state_2X (const XMLNode&, int);
+
+       void post_set (PBD::PropertyChange const &);
+       void push_to_groups ();
 };
 
 } /* namespace */