Vkeybd: use ArdourWidgets for all GUI elements
[ardour.git] / gtk2_ardour / route_processor_selection.h
1 /*
2  * Copyright (C) 2007-2009 David Robillard <d@drobilla.net>
3  * Copyright (C) 2007-2017 Paul Davis <paul@linuxaudiosystems.com>
4  * Copyright (C) 2016-2017 Robin Gareus <robin@gareus.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20
21 #ifndef __ardour_gtk_route_processor_selection_h__
22 #define __ardour_gtk_route_processor_selection_h__
23
24 #include <vector>
25 #include "pbd/signals.h"
26
27 #include "processor_selection.h"
28 #include "route_ui_selection.h"
29
30 namespace ARDOUR {
31         class SessionHandlePtr;
32 }
33
34 class AxisViewProvider;
35
36 class RouteProcessorSelection : public ProcessorSelection
37 {
38 public:
39         AxisViewSelection  axes;
40
41         RouteProcessorSelection (ARDOUR::SessionHandlePtr&, AxisViewProvider&);
42
43         void clear ();
44         bool empty();
45
46         void set (AxisView*);
47         void add (AxisView*, bool with_groups = false);
48         void remove (AxisView*, bool with_groups = false);
49         bool selected (AxisView*);
50
51         void clear_routes ();
52
53         void presentation_info_changed (PBD::PropertyChange const & what_changed);
54
55 private:
56         ARDOUR::SessionHandlePtr& shp;
57         AxisViewProvider& avp;
58         void removed (AxisView*);
59         std::list<AxisView*> add_grouped_tracks (AxisView*) const;
60
61         RouteProcessorSelection& operator= (const RouteProcessorSelection& other);
62         RouteProcessorSelection (RouteProcessorSelection const&);
63 };
64
65 bool operator==(const RouteProcessorSelection& a, const RouteProcessorSelection& b);
66
67 #endif /* __ardour_gtk_route_processor_selection_h__ */