/*
- Copyright (C) 2008-2011 Paul Davis
+ Copyright (C) 2008-2012 Paul Davis
Author: David Robillard
This program is free software; you can redistribute it and/or modify
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., 675 Mass Ave, Cambridge, MA 02139, USA.
-
*/
#include "ardour/lv2_plugin.h"
#include <lilv/lilv.h>
#include <suil/suil.h>
-using namespace Gtk;
using namespace ARDOUR;
+using namespace Gtk;
using namespace PBD;
#define NS_UI "http://lv2plug.in/ns/extensions/ui#"
/*
- Copyright (C) 2008-2011 Paul Davis
+ Copyright (C) 2008-2012 Paul Davis
Author: David Robillard
This program is free software; you can redistribute it and/or modify
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., 675 Mass Ave, Cambridge, MA 02139, USA.
-
*/
#ifndef __ardour_lv2_plugin_ui_h__
#include "gtk2ardour-config.h"
#endif
-#include <vector>
-#include <map>
#include <list>
+#include <map>
+#include <vector>
-#include <sigc++/signal.h>
#include <gtkmm/widget.h>
+#include <sigc++/signal.h>
#include "ardour_dialog.h"
#include "ardour/types.h"
class LV2PluginUI : public PlugUIBase, public Gtk::VBox
{
public:
- LV2PluginUI (boost::shared_ptr<ARDOUR::PluginInsert>, boost::shared_ptr<ARDOUR::LV2Plugin>);
+ LV2PluginUI (boost::shared_ptr<ARDOUR::PluginInsert>,
+ boost::shared_ptr<ARDOUR::LV2Plugin>);
~LV2PluginUI ();
gint get_preferred_height ();
void parameter_changed (uint32_t, float);
- boost::shared_ptr<ARDOUR::LV2Plugin> _lv2;
- std::vector<int> _output_ports;
- sigc::connection _screen_update_connection;
-
- Gtk::Widget* _gui_widget;
- float* _values;
- std::vector<boost::shared_ptr<ARDOUR::AutomationControl> > _controllables;
+ typedef boost::shared_ptr<ARDOUR::AutomationControl> ControllableRef;
- struct lv2_external_ui_host _external_ui_host;
- LV2_Feature _external_ui_feature;
- struct lv2_external_ui* _external_ui_ptr;
- Gtk::Window* _win_ptr;
+ boost::shared_ptr<ARDOUR::LV2Plugin> _lv2;
+ std::vector<int> _output_ports;
+ sigc::connection _screen_update_connection;
+ Gtk::Widget* _gui_widget;
+ float* _values;
+ std::vector<ControllableRef> _controllables;
+ struct lv2_external_ui_host _external_ui_host;
+ LV2_Feature _external_ui_feature;
+ struct lv2_external_ui* _external_ui_ptr;
+ Gtk::Window* _win_ptr;
+ void* _inst;
static void on_external_ui_closed(void* controller);
- void* _inst;
-
static void write_from_ui(void* controller,
uint32_t port_index,
uint32_t buffer_size,