X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fprocessor_box.h;h=27c529980fb4564d16430fd65fd0e331432908ce;hb=e9a2eea8678708620d80d14290d234b29472044d;hp=e9c174939df79a00383b489ad6c39f5600831016;hpb=1888104f8d60d8806b8ae7add3531aeebcbdce12;p=ardour.git diff --git a/gtk2_ardour/processor_box.h b/gtk2_ardour/processor_box.h index e9c174939d..27c529980f 100644 --- a/gtk2_ardour/processor_box.h +++ b/gtk2_ardour/processor_box.h @@ -242,15 +242,18 @@ private: class PluginDisplay : public Gtk::DrawingArea { public: - PluginDisplay(boost::shared_ptr, uint32_t max_height = 80); - ~PluginDisplay(); + PluginDisplay(ProcessorEntry&, boost::shared_ptr, uint32_t max_height = 80); + virtual ~PluginDisplay(); protected: bool on_expose_event (GdkEventExpose *); void on_size_request (Gtk::Requisition* req); + bool on_button_press_event (GdkEventButton *ev); + bool on_button_release_event (GdkEventButton *ev); void update_height_alloc (uint32_t inline_height); virtual uint32_t render_inline (cairo_t *, uint32_t width); + ProcessorEntry& _entry; boost::shared_ptr _plug; PBD::ScopedConnection _qdraw_connection; cairo_surface_t* _surf; @@ -261,7 +264,7 @@ private: class LuaPluginDisplay : public PluginDisplay { public: - LuaPluginDisplay(boost::shared_ptr, uint32_t max_height = 80); + LuaPluginDisplay(ProcessorEntry&, boost::shared_ptr, uint32_t max_height = 80); ~LuaPluginDisplay(); protected: virtual uint32_t render_inline (cairo_t *, uint32_t width); @@ -551,6 +554,7 @@ class ProcessorBox : public Gtk::HBox, public PluginInterestedObject, public ARD static Glib::RefPtr paste_action; static Glib::RefPtr rename_action; static Glib::RefPtr delete_action; + static Glib::RefPtr backspace_action; static Glib::RefPtr manage_pins_action; static Glib::RefPtr edit_action; static Glib::RefPtr edit_generic_action;