diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-18 02:10:15 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-18 02:10:15 +0000 |
commit | 91dae1fb0329b49deb74f2972418c71b0373114c (patch) | |
tree | d38d1ec958535bfa7bd03c22f11fcd8c73220de0 /gtk2_ardour/port_matrix_grid.h | |
parent | 50437bff22279473cd364d007d5e474af2a542bc (diff) |
Drag a line in the port matrix to connect a group of things together in one go. Probably futile attempt at some cleanup.
git-svn-id: svn://localhost/ardour2/branches/3.0@5375 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_grid.h')
-rw-r--r-- | gtk2_ardour/port_matrix_grid.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gtk2_ardour/port_matrix_grid.h b/gtk2_ardour/port_matrix_grid.h index 543ea8533f..22050ece87 100644 --- a/gtk2_ardour/port_matrix_grid.h +++ b/gtk2_ardour/port_matrix_grid.h @@ -42,7 +42,8 @@ public: PortMatrixGrid (PortMatrix *, PortMatrixBody *); void button_press (double, double, int, uint32_t); - void mouseover_event (double, double); + void button_release (double, double, int, uint32_t); + void motion (double, double); double component_to_parent_x (double x) const; double parent_to_component_x (double x) const; @@ -57,14 +58,19 @@ private: void render (cairo_t *); void render_group_pair (cairo_t *, boost::shared_ptr<const PortGroup>, boost::shared_ptr<const PortGroup>, uint32_t, uint32_t); - double channel_position (ARDOUR::BundleChannel, PortGroup::BundleList const &, double) const; - PortMatrixNode position_to_node (double, double) const; - std::pair<boost::shared_ptr<PortGroup>, ARDOUR::BundleChannel> x_position_to_group_and_channel (double) const; + PortMatrixNode position_to_node (uint32_t, uint32_t) const; void queue_draw_for (PortMatrixNode const &); void draw_association_indicator (cairo_t *, uint32_t, uint32_t, double p = 1); void draw_unknown_indicator (cairo_t *, uint32_t, uint32_t); PortMatrixNode::State bundle_to_bundle_state (boost::shared_ptr<ARDOUR::Bundle>, boost::shared_ptr<ARDOUR::Bundle>) const; - + std::list<PortMatrixNode> nodes_on_line (int, int, int, int) const; + + bool _dragging; + bool _moved; + int _drag_start_x; + int _drag_start_y; + int _drag_x; + int _drag_y; }; #endif |