Ardour  9.0-pre0-582-g084a23a80d
plugin_dspload_window.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (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 along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 #pragma once
20 
21 #include <memory>
22 
23 #include <gtkmm/box.h>
24 #include <gtkmm/scrolledwindow.h>
25 
26 #include "widgets/ardour_button.h"
27 #include "pbd/signals.h"
28 
29 #include "ardour_window.h"
30 
31 namespace ARDOUR {
32  class Processor;
33  class PlugInsertBase;
34 }
35 
36 class PluginLoadStatsGui;
37 
39 {
40 public:
43 
45 
46 protected:
48 
49  void on_show ();
50  void on_hide ();
51 
52 private:
54  void drop_references ();
55  void clear_all_stats ();
56  void sort_by_stats (bool);
57  void add_processor_to_display (std::weak_ptr<ARDOUR::Processor>, std::string const&);
58  void add_pluginsert_to_display (std::shared_ptr<ARDOUR::PlugInsertBase>, std::string const&);
59  void clear_processor_stats (std::weak_ptr<ARDOUR::Processor>);
60  void clear_pluginsert_stats (std::shared_ptr<ARDOUR::PlugInsertBase>);
61 
68 
71 };
72 
void sort_by_stats(bool)
ArdourWidgets::ArdourButton _sort_avg_button
Gtk::ScrolledWindow _scroller
void clear_processor_stats(std::weak_ptr< ARDOUR::Processor >)
PBD::ScopedConnectionList _route_connections
ArdourWidgets::ArdourButton _sort_max_button
void clear_pluginsert_stats(std::shared_ptr< ARDOUR::PlugInsertBase >)
void set_session(ARDOUR::Session *)
ArdourWidgets::ArdourButton _reset_button
void on_hide()
This is a default handler for the signal signal_hide().
void add_pluginsert_to_display(std::shared_ptr< ARDOUR::PlugInsertBase >, std::string const &)
void on_show()
This is a default handler for the signal signal_show().
PBD::ScopedConnectionList _processor_connections
void add_processor_to_display(std::weak_ptr< ARDOUR::Processor >, std::string const &)