diff options
author | Johannes Mueller <github@johannes-mueller.org> | 2018-10-28 17:22:32 +0100 |
---|---|---|
committer | Johannes Mueller <github@johannes-mueller.org> | 2018-11-01 18:53:27 +0100 |
commit | cc83e1a9bfd7339c4ebfcde4a57d511eec51923e (patch) | |
tree | 5317c52f1256f4f8c12ab3fc59f490ead9cd6168 /gtk2_ardour/port_matrix_row_labels.h | |
parent | 732fd75f9ba8ddf369088fb5b9e4a91d17160e00 (diff) |
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.
Diffstat (limited to 'gtk2_ardour/port_matrix_row_labels.h')
-rw-r--r-- | gtk2_ardour/port_matrix_row_labels.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |