Who needs PIs for Plugin GUIs?

Use abstract base class for plugin UIs wherever possible
This commit is contained in:
Robin Gareus 2022-04-04 20:48:56 +02:00
parent 74a673ce17
commit 9cbf3ae4ad
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
24 changed files with 295 additions and 274 deletions

View file

@ -27,12 +27,12 @@
#include "widgets/ardour_button.h"
#include "ardour/plugin_insert.h"
#include "ardour/plug_insert_base.h"
class PluginLoadStatsGui : public Gtk::Table
{
public:
PluginLoadStatsGui (boost::shared_ptr<ARDOUR::PluginInsert>);
PluginLoadStatsGui (boost::shared_ptr<ARDOUR::PlugInsertBase>);
void start_updating ();
void stop_updating ();
@ -44,10 +44,10 @@ private:
void update_cpu_label ();
bool draw_bar (GdkEventExpose*);
void clear_stats () {
_insert->clear_stats ();
_pib->clear_stats ();
}
boost::shared_ptr<ARDOUR::PluginInsert> _insert;
boost::shared_ptr<ARDOUR::PlugInsertBase> _pib;
sigc::connection update_cpu_label_connection;
Gtk::Label _lbl_min;