mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Separate Plugin DSP load UI implementation
This commit is contained in:
parent
4bdf0dad20
commit
f7b93ee7b9
4 changed files with 333 additions and 266 deletions
63
gtk2_ardour/plugin_dspload_ui.h
Normal file
63
gtk2_ardour/plugin_dspload_ui.h
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
/*
|
||||
* Copyright (C) 2018 Robin Gareus <robin@gareus.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _gtkardour_plugin_dspload_ui_h_
|
||||
#define _gtkardour_plugin_dspload_ui_h_
|
||||
|
||||
#include <gtkmm/widget.h>
|
||||
#include <gtkmm/table.h>
|
||||
#include <gtkmm/label.h>
|
||||
#include <gtkmm/drawingarea.h>
|
||||
#include <gtkmm/separator.h>
|
||||
|
||||
#include "widgets/ardour_button.h"
|
||||
|
||||
#include "ardour/plugin_insert.h"
|
||||
|
||||
class PluginLoadStatsGui : public Gtk::Table
|
||||
{
|
||||
public:
|
||||
PluginLoadStatsGui (boost::shared_ptr<ARDOUR::PluginInsert>);
|
||||
|
||||
void start_updating ();
|
||||
void stop_updating ();
|
||||
|
||||
private:
|
||||
void update_cpu_label ();
|
||||
bool draw_bar (GdkEventExpose*);
|
||||
void clear_stats () {
|
||||
_insert->clear_stats ();
|
||||
}
|
||||
|
||||
boost::shared_ptr<ARDOUR::PluginInsert> _insert;
|
||||
sigc::connection update_cpu_label_connection;
|
||||
|
||||
Gtk::Label _lbl_min;
|
||||
Gtk::Label _lbl_max;
|
||||
Gtk::Label _lbl_avg;
|
||||
Gtk::Label _lbl_dev;
|
||||
|
||||
ArdourWidgets::ArdourButton _reset_button;
|
||||
Gtk::DrawingArea _darea;
|
||||
|
||||
uint64_t _min, _max;
|
||||
double _avg, _dev;
|
||||
bool _valid;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue