X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Froute_processor_selection.h;h=3f8bb1a08cb445ff101a08bed62a21da70e27366;hb=6a436fd826d1c9d88b60287696cc0836ccce35aa;hp=bb0e6701e1816b1cfc5b6e1878b463e907bfce53;hpb=6698f5f686bef82b0c9568558c83a3b9b3344700;p=ardour.git diff --git a/gtk2_ardour/route_processor_selection.h b/gtk2_ardour/route_processor_selection.h index bb0e6701e1..3f8bb1a08c 100644 --- a/gtk2_ardour/route_processor_selection.h +++ b/gtk2_ardour/route_processor_selection.h @@ -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 @@ -21,40 +21,47 @@ #define __ardour_gtk_route_processor_selection_h__ #include -#include +#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 ProcessorsChanged; sigc::signal RoutesChanged; + void block_routes_changed (bool); + void clear (); bool empty(); void set (XMLNode* node); void add (XMLNode* node); - void set (boost::shared_ptr); - void add (boost::shared_ptr); - void remove (boost::shared_ptr); + void set (RouteUI*); + void add (RouteUI*); + void remove (RouteUI*); void clear_processors (); void clear_routes (); - bool selected (boost::shared_ptr); + 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__ */