diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-17 22:54:45 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-17 22:54:45 +0000 |
commit | 50437bff22279473cd364d007d5e474af2a542bc (patch) | |
tree | 4ebe55e6ac2ae8ded3dfd12a2f1b6e866a9dd6c4 /gtk2_ardour/port_matrix_column_labels.h | |
parent | b89a786b3e300ce3eb28c4e6791e8e141afb19f9 (diff) |
Various tweaks to the port matrix: open to full size; remove buttons and move their functionality into a context menu;
set maximum size hint to stop port matrix windows being resized beyond their useful size; remove visibility checkbuttons -
visibility now controlled through menu or by clicking on group names; port groups fold down to a small tab when hidden;
don't swap the orientation of the matrix once it has been opened.
git-svn-id: svn://localhost/ardour2/branches/3.0@5373 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.h')
-rw-r--r-- | gtk2_ardour/port_matrix_column_labels.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.h b/gtk2_ardour/port_matrix_column_labels.h index f91a5be204..7ff3bc9138 100644 --- a/gtk2_ardour/port_matrix_column_labels.h +++ b/gtk2_ardour/port_matrix_column_labels.h @@ -44,6 +44,10 @@ public: double parent_to_component_y (double y) const; void mouseover_changed (PortMatrixNode const &); + uint32_t overhang () const { + return _overhang; + } + private: void render_bundle_name (cairo_t *, Gdk::Color, double, double, boost::shared_ptr<ARDOUR::Bundle>); void render_channel_name (cairo_t *, Gdk::Color, double, double, ARDOUR::BundleChannel const &); @@ -60,11 +64,13 @@ private: return _height - _highest_group_name - 2 * name_pad(); } -// PortGroup::BundleList _bundles; + std::pair<boost::shared_ptr<PortGroup>, ARDOUR::BundleChannel> x_position_to_group_and_channel (double, double) const; + double _longest_bundle_name; double _longest_channel_name; double _highest_text; double _highest_group_name; + uint32_t _overhang; }; #endif |