#include "ardour/types.h"
#include "ardour/ardour.h"
#include "ardour/plugin_insert.h"
+#include "ardour/luaproc.h"
#include "ardour/port_insert.h"
#include "ardour/processor.h"
#include "ardour/route.h"
void set_selectable(bool s) { _selectable = s; }
bool drag_data_get (Glib::RefPtr<Gdk::DragContext> const, Gtk::SelectionData &);
+ bool can_copy_state (Gtkmm2ext::DnDVBoxChild*) const;
enum Position {
PreFader,
std::list<Control*> _controls;
+ void toggle_inline_display_visibility ();
void toggle_control_visibility (Control *);
void toggle_panner_link ();
+ class PluginDisplay : public Gtk::DrawingArea {
+ public:
+ PluginDisplay(boost::shared_ptr<ARDOUR::Plugin>, uint32_t max_height = 80);
+ ~PluginDisplay();
+ protected:
+ bool on_expose_event (GdkEventExpose *);
+ void on_size_request (Gtk::Requisition* req);
+
+ void update_height_alloc (uint32_t inline_height);
+ virtual uint32_t render_inline (cairo_t *, uint32_t width);
+
+ boost::shared_ptr<ARDOUR::Plugin> _plug;
+ PBD::ScopedConnection _qdraw_connection;
+ cairo_surface_t* _surf;
+ uint32_t _max_height;
+ uint32_t _cur_height;
+ bool _scroll;
+ };
+
+ class LuaPluginDisplay : public PluginDisplay {
+ public:
+ LuaPluginDisplay(boost::shared_ptr<ARDOUR::LuaProc>, uint32_t max_height = 80);
+ ~LuaPluginDisplay();
+ protected:
+ virtual uint32_t render_inline (cairo_t *, uint32_t width);
+ private:
+ boost::shared_ptr<ARDOUR::LuaProc> _luaproc;
+ LuaState lua_gui;
+ luabridge::LuaRef * _lua_render_inline;
+ };
+
class PortIcon : public Gtk::DrawingArea {
public:
PortIcon(bool input);
RoutingIcon _routing_icon;
PortIcon _input_icon;
PortIcon _output_icon;
+ PluginDisplay *_plugin_display ;
};
class PluginInsertProcessorEntry : public ProcessorEntry
sigc::signal<void,boost::shared_ptr<ARDOUR::Processor> > ProcessorSelected;
sigc::signal<void,boost::shared_ptr<ARDOUR::Processor> > ProcessorUnselected;
+ static Glib::RefPtr<Gtk::ActionGroup> processor_box_actions;
+ static Gtkmm2ext::Bindings* bindings;
static void register_actions();
+
#ifndef NDEBUG
static bool show_all_processors;
#endif
uint32_t _visible_prefader_processors;
RouteProcessorSelection& _rr_selection;
+ static Gtkmm2ext::ActionMap myactions;
+
+ static void load_bindings ();
void route_going_away ();
XMLNode* entry_gui_object_state (ProcessorEntry *);
PBD::ScopedConnection amp_config_connection;
-
- static Gtkmm2ext::ActionMap processor_box_actions;
};
#endif /* __ardour_gtk_processor_box__ */