add an plugin API to query generic-gui grid-layout
[ardour.git] / libs / ardour / ardour / stripable.h
index b21b98f2bb1b81433643a601fb7024b22fcaf848..8ad02c98b3cb1be00bbfd5e4efd8fa94cedd9306 100644 (file)
@@ -76,22 +76,23 @@ 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;
 
@@ -182,25 +183,8 @@ class LIBARDOUR_API Stripable : public SessionObject {
 
   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.
-        */
-
-       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();
-       }
 };
 
-
 }
 
 #endif /* __libardour_stripable_h__ */