prepare sharing C++ class instances across lua-interpreters
[ardour.git] / libs / ardour / ardour / stripable.h
index 274a0109dcc4d292191b121f2bf7d9355c3bc4f9..8ad02c98b3cb1be00bbfd5e4efd8fa94cedd9306 100644 (file)
@@ -43,6 +43,9 @@ class PhaseControl;
 class SoloIsolateControl;
 class SoloSafeControl;
 class MonitorControl;
+class MonitorProcessor;
+class RecordEnableControl;
+class RecordSafeControl;
 
 /* This is a virtual base class for any object that needs to be potentially
  * represented by a control-centric user interface using the general model of a
@@ -73,35 +76,40 @@ class LIBARDOUR_API Stripable : public SessionObject {
 
        /* set just the order */
 
-       void  set_presentation_group_order (PresentationInfo::order_t, bool notify_class_listeners = true);
-       void  set_presentation_group_order_explicit (PresentationInfo::order_t);
+       void  set_presentation_order (PresentationInfo::order_t, bool notify_class_listeners = true);
+       void  set_presentation_order_explicit (PresentationInfo::order_t);
 
-       /* for things concerned about *this* route's RID */
+       struct PresentationOrderSorter {
+               bool operator() (boost::shared_ptr<Stripable> a, boost::shared_ptr<Stripable> b) {
+                       return a->presentation_info().order() < b->presentation_info().order();
+               }
+       };
 
-       PBD::Signal0<void> PresentationInfoChanged;
+       /* gui's call this for their own purposes. */
 
-       /* for things concerned about *any* route's RID changes */
-
-       static PBD::Signal0<void> PresentationInfoChange;
+       PBD::Signal2<void,std::string,void*> gui_changed;
 
        /***************************************************************
         * Pure interface begins here
         ***************************************************************/
 
-
        virtual boost::shared_ptr<PeakMeter>       peak_meter() = 0;
        virtual boost::shared_ptr<const PeakMeter> peak_meter() const = 0;
 
        virtual boost::shared_ptr<GainControl> gain_control() const = 0;
 
        virtual boost::shared_ptr<SoloControl> solo_control() const = 0;
+       virtual boost::shared_ptr<SoloIsolateControl> solo_isolate_control() const = 0;
+       virtual boost::shared_ptr<SoloSafeControl> solo_safe_control() const = 0;
        virtual boost::shared_ptr<MuteControl> mute_control() const = 0;
 
        virtual boost::shared_ptr<PhaseControl> phase_control() const = 0;
        virtual boost::shared_ptr<GainControl> trim_control() const = 0;
 
        virtual boost::shared_ptr<MonitorControl> monitoring_control() const = 0;
-       virtual boost::shared_ptr<AutomationControl> recenable_control() const { return boost::shared_ptr<AutomationControl>(); }
+
+       virtual boost::shared_ptr<AutomationControl> rec_enable_control() const { return boost::shared_ptr<AutomationControl>(); }
+       virtual boost::shared_ptr<AutomationControl> rec_safe_control() const { return boost::shared_ptr<AutomationControl>(); }
 
        /* "well-known" controls for panning. Any or all of these may return
          * null.
@@ -171,27 +179,12 @@ class LIBARDOUR_API Stripable : public SessionObject {
 
        virtual bool muted_by_others_soloing () const = 0;
 
-   protected:
-       PresentationInfo _presentation_info;
-
-       /* set the entire info. This should only be used in cases where the
-        * derived could not supply the correct Flag and/or order information
-        * in its constructor.
-        */
+       virtual boost::shared_ptr<MonitorProcessor> monitor_control() const = 0;
 
-       void set_presentation_info (PresentationInfo id, bool notify_class_listeners = true);
-       void set_presentation_info_explicit (PresentationInfo);
-
-       void add_state (XMLNode&) const;
-};
-
-struct PresentationInfoSorter {
-       bool operator() (boost::shared_ptr<Stripable> a, boost::shared_ptr<Stripable> b) {
-               return a->presentation_info() < b->presentation_info();
-       }
+  protected:
+       PresentationInfo _presentation_info;
 };
 
-
 }
 
 #endif /* __libardour_stripable_h__ */