more verbose debug output for slave debugging
[ardour.git] / gtk2_ardour / processor_selection.cc
1 /*
2  * Copyright (C) 2017 Paul Davis (paul@linuxaudiosystems.com)
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18
19 #include "processor_selection.h"
20
21 ProcessorSelection&
22 ProcessorSelection::operator= (ProcessorSelection const & other)
23 {
24         if (this != &other) {
25                 processors = other.processors;
26         }
27
28         return *this;
29 }
30
31 void
32 ProcessorSelection::clear_processors ()
33 {
34         processors.clear ();
35         ProcessorsChanged ();
36 }
37
38 void
39 ProcessorSelection::add (XMLNode* node)
40 {
41         // XXX check for duplicate
42         processors.add (node);
43         ProcessorsChanged();
44 }
45
46 void
47 ProcessorSelection::set (XMLNode* node)
48 {
49         clear_processors ();
50         processors.set (node);
51         ProcessorsChanged ();
52 }
53