Ardour  9.0-pre0-582-g084a23a80d
route_properties_box.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2024 Ben Loftis <ben@harrisonconsoles.com>
4  * Copyright (C) 2024 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 #pragma once
22 
23 #include <vector>
24 
25 #include <gtkmm/box.h>
26 #include <gtkmm/scrolledwindow.h>
27 
28 #include "ardour/ardour.h"
29 #include "ardour/session_handle.h"
30 
31 namespace ARDOUR {
32  class Route;
33  class Processor;
34  class Session;
35 }
36 
37 class GenericPluginUI;
38 
40 {
41 public:
44 
45  void set_route (std::shared_ptr<ARDOUR::Route>);
46 
47 private:
48  void property_changed (const PBD::PropertyChange& what_changed);
50  void drop_route ();
51  void drop_plugin_uis ();
53  void add_processor_to_display (std::weak_ptr<ARDOUR::Processor> w);
55 
56  static int _idle_refill_processors (gpointer);
57 
60 
61  std::shared_ptr<ARDOUR::Route> _route;
62  std::vector <GenericPluginUI*> _proc_uis;
63 
65 
68 };
69 
PBD::ScopedConnectionList _processor_connections
void idle_refill_processors()
void property_changed(const PBD::PropertyChange &what_changed)
Gtk::ScrolledWindow _scroller
void add_processor_to_display(std::weak_ptr< ARDOUR::Processor > w)
void set_route(std::shared_ptr< ARDOUR::Route >)
static int _idle_refill_processors(gpointer)
PBD::ScopedConnectionList _route_connections
std::vector< GenericPluginUI * > _proc_uis
std::shared_ptr< ARDOUR::Route > _route