Ardour  9.0-pre0-1699-gfaebc7ab35
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 <ytkmm/box.h>
26 #include <ytkmm/scrolledwindow.h>
27 
28 #include "ardour/ardour.h"
29 #include "ardour/session_handle.h"
30 
31 #include "widgets/frame.h"
32 
33 namespace ARDOUR {
34  class Route;
35  class Processor;
36  class Session;
37 }
38 
39 class GenericPluginUI;
40 class ProcessorBox;
41 
43 {
44 public:
47 
49  void set_route (std::shared_ptr<ARDOUR::Route>);
50 
51 private:
52  void property_changed (const PBD::PropertyChange& what_changed);
53  void map_frozen ();
57  void drop_route ();
58  void drop_plugin_uis ();
60  void add_processor_to_display (std::weak_ptr<ARDOUR::Processor> w);
62 
63  static int _idle_refill_processors (gpointer);
64 
67 
68  std::shared_ptr<ARDOUR::Route> _route;
69  std::vector <GenericPluginUI*> _proc_uis;
70 
74 
76 
80 };
81 
PBD::ScopedConnectionList _processor_connections
PBD::ScopedConnectionList _forever_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 >)
ProcessorBox * _insert_box
static int _idle_refill_processors(gpointer)
void update_processor_box_visibility()
ArdourWidgets::Frame _insert_frame
PBD::ScopedConnectionList _route_connections
std::vector< GenericPluginUI * > _proc_uis
std::shared_ptr< ARDOUR::Route > _route
void set_session(ARDOUR::Session *)