summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_component.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-18 02:10:15 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-18 02:10:15 +0000
commit91dae1fb0329b49deb74f2972418c71b0373114c (patch)
treed38d1ec958535bfa7bd03c22f11fcd8c73220de0 /gtk2_ardour/port_matrix_component.h
parent50437bff22279473cd364d007d5e474af2a542bc (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_component.h')
-rw-r--r--gtk2_ardour/port_matrix_component.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/gtk2_ardour/port_matrix_component.h b/gtk2_ardour/port_matrix_component.h
index 34dc18e932..7e5ed3d8a2 100644
--- a/gtk2_ardour/port_matrix_component.h
+++ b/gtk2_ardour/port_matrix_component.h
@@ -28,6 +28,7 @@ class PortMatrix;
class PortMatrixBody;
class PortMatrixNode;
class PortGroup;
+class PortGroupList;
namespace ARDOUR {
class BundleChannel;
@@ -71,13 +72,8 @@ public:
return _parent_rectangle;
}
- /** @return width of columns in the grid */
- static uint32_t column_width () {
- return 32;
- }
-
- /** @return height of rows in the grid */
- static uint32_t row_height () {
+ /** @return grid spacing */
+ static uint32_t grid_spacing () {
return 32;
}
@@ -172,9 +168,9 @@ protected:
void set_source_rgb (cairo_t *, Gdk::Color const &);
void set_source_rgba (cairo_t *, Gdk::Color const &, double);
- uint32_t group_width (boost::shared_ptr<const PortGroup>) const;
- uint32_t group_height (boost::shared_ptr<const PortGroup>) const;
- std::pair<boost::shared_ptr<PortGroup>, ARDOUR::BundleChannel> y_position_to_group_and_channel (double) const;
+ uint32_t group_size (boost::shared_ptr<const PortGroup>) const;
+ uint32_t channel_to_position (ARDOUR::BundleChannel, PortGroupList const *) const;
+ std::pair<boost::shared_ptr<PortGroup>, ARDOUR::BundleChannel> position_to_group_and_channel (uint32_t, PortGroupList const *) const;
/** Render the complete component to a cairo context. */
virtual void render (cairo_t *) = 0;