a reverb is a reverb is a reverb
[ardour.git] / gtk2_ardour / route_processor_selection.h
index 78f6ddca4886d09a5fd5cdfd28214021e786c945..6c037d7bd9ef0aae777a2a6f25e911565834c18f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2004 Paul Davis 
+    Copyright (C) 2004 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 #define __ardour_gtk_route_processor_selection_h__
 
 #include <vector>
-#include <sigc++/signal.h>
+#include "pbd/signals.h"
 
 #include "processor_selection.h"
-#include "route_selection.h"
+#include "route_ui_selection.h"
 
-class RouteRedirectSelection : public sigc::trackable 
+class RouteProcessorSelection : public PBD::ScopedConnectionList, public sigc::trackable
 {
   public:
        ProcessorSelection processors;
-       RouteSelection     routes;
+       AxisViewSelection  axes;
 
-       RouteRedirectSelection() {}
+       RouteProcessorSelection();
 
-       RouteRedirectSelection& operator= (const RouteRedirectSelection& other);
+       RouteProcessorSelection& operator= (const RouteProcessorSelection& other);
 
        sigc::signal<void> ProcessorsChanged;
        sigc::signal<void> RoutesChanged;
 
+       void block_routes_changed (bool);
+
        void clear ();
        bool empty();
 
-       void set (boost::shared_ptr<ARDOUR::Processor>);
-       void set (const std::vector<boost::shared_ptr<ARDOUR::Processor> >&);
-       void add (boost::shared_ptr<ARDOUR::Processor>);
-       void add (const std::vector<boost::shared_ptr<ARDOUR::Processor> >&);
-       void remove (boost::shared_ptr<ARDOUR::Processor>);
+       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*);
+       void remove (AxisView*);
 
        void clear_processors ();
        void clear_routes ();
 
-       bool selected (boost::shared_ptr<ARDOUR::Route>);
+       bool selected (AxisView*);
+
+  private:
+       void removed (AxisView*);
+       bool _no_route_change_signal;
+
 };
 
-bool operator==(const RouteRedirectSelection& a, const RouteRedirectSelection& b);
+bool operator==(const RouteProcessorSelection& a, const RouteProcessorSelection& b);
 
 #endif /* __ardour_gtk_route_processor_selection_h__ */