summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_grid.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-19 20:36:46 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-19 20:36:46 +0000
commit87d8f1f36048f1a118cb077ad8ba127c163e8ba5 (patch)
tree4dd0f6a3772abe60f3ae9acc77cfe46a2a764b2d /gtk2_ardour/port_matrix_grid.h
parentc6509b8f86c29f05e64e98093fda7635ac951ebb (diff)
Modify line-drag behaviour in port matrix so that nodes under the drag get the toggled state of the starting node.
git-svn-id: svn://localhost/ardour2/branches/3.0@5384 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_grid.h')
-rw-r--r--gtk2_ardour/port_matrix_grid.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk2_ardour/port_matrix_grid.h b/gtk2_ardour/port_matrix_grid.h
index 22abe5fe43..35a4c84d6c 100644
--- a/gtk2_ardour/port_matrix_grid.h
+++ b/gtk2_ardour/port_matrix_grid.h
@@ -61,11 +61,12 @@ private:
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_empty_square (cairo_t *, uint32_t, uint32_t);
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;
- void toggle_association (PortMatrixNode node);
- void set_association (PortMatrixNode node);
+ PortMatrixNode::State get_association (PortMatrixNode) const;
+ void set_association (PortMatrixNode, bool);
+ bool toggle_state (PortMatrixNode::State) const;
bool _dragging;
bool _moved;