diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-14 18:30:34 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-14 18:30:34 +0200 |
commit | 6ea864d845a330127e452d6c48105c82e7f37087 (patch) | |
tree | 82876fb8955b37f382040bfbc3c2ab600b8bd149 /gtk2_ardour/plugin_pin_dialog.h | |
parent | 79621762193a7a56cbb5a966cc8603c1d1c5e17c (diff) |
update Pin DnD logic:
When starting a Drag on a connected destination, re-connect the
destination. "you grab the connect plug out of the socket and drag it"
Diffstat (limited to 'gtk2_ardour/plugin_pin_dialog.h')
-rw-r--r-- | gtk2_ardour/plugin_pin_dialog.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/plugin_pin_dialog.h b/gtk2_ardour/plugin_pin_dialog.h index 8d36ca2afa..c8fd460cb0 100644 --- a/gtk2_ardour/plugin_pin_dialog.h +++ b/gtk2_ardour/plugin_pin_dialog.h @@ -76,6 +76,7 @@ private: CtrlElem _actor; CtrlElem _hover; CtrlElemList _elements; + CtrlElem _drag_dst; Gtk::DrawingArea darea; @@ -107,6 +108,8 @@ private: bool darea_button_release_event (GdkEventButton*); bool drag_type_matches (const CtrlElem& ct); + void start_drag (const CtrlElem&, double, double); + void draw_io_pin (cairo_t*, const CtrlWidget&); void draw_plugin_pin (cairo_t*, const CtrlWidget&); @@ -127,7 +130,7 @@ private: void handle_input_action (const CtrlElem &, const CtrlElem &); void handle_output_action (const CtrlElem &, const CtrlElem &); void handle_thru_action (const CtrlElem &, const CtrlElem &); - void handle_disconnect (const CtrlElem &); + bool handle_disconnect (const CtrlElem &, bool no_signal = false); void disconnect_other_outputs (uint32_t skip_pc, ARDOUR::DataType dt, uint32_t id); void disconnect_other_thru (ARDOUR::DataType dt, uint32_t id); void add_port_to_table (boost::shared_ptr<ARDOUR::Port>, uint32_t, bool); @@ -163,6 +166,7 @@ private: bool _dragging; double _drag_x, _drag_y; + }; #endif |