#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;
+ RouteUISelection routes;
- 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 (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 (RouteUI*);
+ void add (RouteUI*);
+ void remove (RouteUI*);
void clear_processors ();
void clear_routes ();
- bool selected (boost::shared_ptr<ARDOUR::Route>);
+ bool selected (RouteUI*);
+
+ private:
+ void removed (RouteUI*);
+ 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__ */