From cc83e1a9bfd7339c4ebfcde4a57d511eec51923e Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Sun, 28 Oct 2018 17:22:32 +0100 Subject: Consider size of port matrix column labels for size of row labels The column labels are drawn in an angle towards the edge where the row labels are. Therefore, if the column labels are much longer than the row labels it can happen that they go beyond the left edge. In that case we have to add an extra width to the row labels. --- gtk2_ardour/port_matrix_row_labels.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/port_matrix_row_labels.h') diff --git a/gtk2_ardour/port_matrix_row_labels.h b/gtk2_ardour/port_matrix_row_labels.h index 21839df41e..59a945479a 100644 --- a/gtk2_ardour/port_matrix_row_labels.h +++ b/gtk2_ardour/port_matrix_row_labels.h @@ -27,6 +27,7 @@ class PortMatrix; class PortMatrixBody; class PortMatrixNode; +class PortMatrixColumnLabels; namespace ARDOUR { class Bundle; @@ -41,7 +42,7 @@ namespace Gtk { class PortMatrixRowLabels : public PortMatrixLabels { public: - PortMatrixRowLabels (PortMatrix *, PortMatrixBody *); + PortMatrixRowLabels (PortMatrix *, PortMatrixBody *, PortMatrixColumnLabels&); void button_press (double, double, GdkEventButton *); @@ -68,6 +69,8 @@ private: double _longest_port_name; double _longest_bundle_name; + + PortMatrixColumnLabels& _column_labels; }; #endif -- cgit v1.2.3