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_component.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_component.h')
-rw-r--r-- | gtk2_ardour/port_matrix_component.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/port_matrix_component.h b/gtk2_ardour/port_matrix_component.h index d28299b8ef..34dc18e932 100644 --- a/gtk2_ardour/port_matrix_component.h +++ b/gtk2_ardour/port_matrix_component.h @@ -22,10 +22,16 @@ #include <stdint.h> #include <gtkmm/eventbox.h> +#include <boost/shared_ptr.hpp> class PortMatrix; class PortMatrixBody; class PortMatrixNode; +class PortGroup; + +namespace ARDOUR { + class BundleChannel; +} /** One component of the PortMatrix. This is a cairo-rendered * Pixmap. @@ -166,6 +172,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; /** Render the complete component to a cairo context. */ virtual void render (cairo_t *) = 0; |