2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2009-10-14 12:10:01 -04:00
|
|
|
Copyright (C) 2004 Paul Davis
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
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
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
#ifndef __ardour_gtk_route_processor_selection_h__
|
|
|
|
#define __ardour_gtk_route_processor_selection_h__
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#include <vector>
|
2009-12-19 15:26:31 -05:00
|
|
|
#include "pbd/signals.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
#include "processor_selection.h"
|
2011-11-04 13:53:21 -04:00
|
|
|
#include "route_ui_selection.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-11-15 14:33:09 -05:00
|
|
|
class RouteProcessorSelection : public PBD::ScopedConnectionList, public sigc::trackable
|
2005-09-25 14:42:24 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-06-27 16:23:48 -04:00
|
|
|
ProcessorSelection processors;
|
2011-11-04 13:53:21 -04:00
|
|
|
RouteUISelection routes;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-11-15 14:33:09 -05:00
|
|
|
RouteProcessorSelection();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-11-15 14:33:09 -05:00
|
|
|
RouteProcessorSelection& operator= (const RouteProcessorSelection& other);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
sigc::signal<void> ProcessorsChanged;
|
2005-09-25 16:33:00 -04:00
|
|
|
sigc::signal<void> RoutesChanged;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-11-15 14:33:09 -05:00
|
|
|
void block_routes_changed (bool);
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void clear ();
|
|
|
|
bool empty();
|
|
|
|
|
2007-08-01 18:18:46 -04:00
|
|
|
void set (XMLNode* node);
|
|
|
|
void add (XMLNode* node);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-11-04 13:53:21 -04:00
|
|
|
void set (RouteUI*);
|
|
|
|
void add (RouteUI*);
|
|
|
|
void remove (RouteUI*);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
void clear_processors ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void clear_routes ();
|
|
|
|
|
2011-11-04 13:53:21 -04:00
|
|
|
bool selected (RouteUI*);
|
2009-12-17 13:24:23 -05:00
|
|
|
|
|
|
|
private:
|
2011-11-04 13:53:21 -04:00
|
|
|
void removed (RouteUI*);
|
2011-11-15 14:33:09 -05:00
|
|
|
bool _no_route_change_signal;
|
2009-12-17 13:24:23 -05:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
};
|
|
|
|
|
2011-11-15 14:33:09 -05:00
|
|
|
bool operator==(const RouteProcessorSelection& a, const RouteProcessorSelection& b);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-06-27 16:23:48 -04:00
|
|
|
#endif /* __ardour_gtk_route_processor_selection_h__ */
|