Properly revert FormatSpec changes on "cancel"
[ardour.git] / gtk2_ardour / route_processor_selection.h
index df43019e91e75d4b0206e6801b7e2deea275ceb3..80ab9e6adfe7f19e95242b16d4fb685635ab6b32 100644 (file)
 #include "pbd/signals.h"
 
 #include "processor_selection.h"
-#include "route_selection.h"
+#include "route_ui_selection.h"
 
-class RouteRedirectSelection : public PBD::ScopedConnectionList, public sigc::trackable
-{
-  public:
-       ProcessorSelection processors;
-       RouteSelection     routes;
+namespace ARDOUR {
+       class SessionHandlePtr;
+}
 
-       RouteRedirectSelection() {}
+class AxisViewProvider;
 
-       RouteRedirectSelection& operator= (const RouteRedirectSelection& other);
+class RouteProcessorSelection : public ProcessorSelection
+{
+public:
+       AxisViewSelection  axes;
 
-       sigc::signal<void> ProcessorsChanged;
-       sigc::signal<void> RoutesChanged;
+       RouteProcessorSelection (ARDOUR::SessionHandlePtr&, AxisViewProvider&);
 
        void clear ();
        bool empty();
 
-       void set (XMLNode* node);
-       void add (XMLNode* node);
-
-       void set (boost::shared_ptr<ARDOUR::Route>);
-       void add (boost::shared_ptr<ARDOUR::Route>);
-       void remove (boost::shared_ptr<ARDOUR::Route>);
+       void set (AxisView*);
+       void add (AxisView*, bool with_groups = false);
+       void remove (AxisView*, bool with_groups = false);
+       bool selected (AxisView*);
 
-       void clear_processors ();
        void clear_routes ();
 
-       bool selected (boost::shared_ptr<ARDOUR::Route>);
+       void presentation_info_changed (PBD::PropertyChange const & what_changed);
 
-  private:
-       void removed (boost::weak_ptr<ARDOUR::Route>);
+private:
+       ARDOUR::SessionHandlePtr& shp;
+       AxisViewProvider& avp;
+       void removed (AxisView*);
+       std::list<AxisView*> add_grouped_tracks (AxisView*) const;
 
+       RouteProcessorSelection& operator= (const RouteProcessorSelection& other);
+       RouteProcessorSelection (RouteProcessorSelection const&);
 };
 
-bool operator==(const RouteRedirectSelection& a, const RouteRedirectSelection& b);
+bool operator==(const RouteProcessorSelection& a, const RouteProcessorSelection& b);
 
 #endif /* __ardour_gtk_route_processor_selection_h__ */