#include "route_processor_selection.h"
#include "route_ui.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace std;
using namespace ARDOUR;
using namespace PBD;
+
RouteProcessorSelection::RouteProcessorSelection()
- : _no_route_change_signal (false)
{
}
void
RouteProcessorSelection::clear_routes ()
{
+ PresentationInfo::ChangeSuspender cs;
+
for (AxisViewSelection::iterator i = axes.begin(); i != axes.end(); ++i) {
(*i)->set_selected (false);
}
axes.clear ();
drop_connections ();
- if (!_no_route_change_signal) {
- RoutesChanged ();
- }
}
void
if (ms) {
ms->CatchDeletion.connect (*this, invalidator (*this), boost::bind (&RouteProcessorSelection::remove, this, _1), gui_context());
}
-
- if (!_no_route_change_signal) {
- RoutesChanged();
- }
}
}
RouteProcessorSelection::remove (AxisView* r)
{
ENSURE_GUI_THREAD (*this, &RouteProcessorSelection::remove, r);
+ PresentationInfo::ChangeSuspender cs;
AxisViewSelection::iterator i;
if ((i = find (axes.begin(), axes.end(), r)) != axes.end()) {
(*i)->set_selected (false);
axes.erase (i);
- if (!_no_route_change_signal) {
- RoutesChanged ();
- }
}
}
{
return processors.empty () && axes.empty ();
}
-
-void
-RouteProcessorSelection::block_routes_changed (bool yn)
-{
- _no_route_change_signal = yn;
-}