diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-25 06:47:11 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-25 06:47:11 +0000 |
commit | 49510ba1d7fc1c85e767c05f10f9481998ef94b0 (patch) | |
tree | e04210728fb9b5e52864eb8cdc0774e4d0b9d7f2 /gtk2_ardour/port_matrix_body.h | |
parent | a9d67a2cc97b28795a9112a176ba1f2c1ab470d3 (diff) |
Some refactoring. Add port group headers to the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@4443 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_body.h')
-rw-r--r-- | gtk2_ardour/port_matrix_body.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/gtk2_ardour/port_matrix_body.h b/gtk2_ardour/port_matrix_body.h index 753f4f7096..c9fd8bdb65 100644 --- a/gtk2_ardour/port_matrix_body.h +++ b/gtk2_ardour/port_matrix_body.h @@ -23,6 +23,7 @@ #include "port_matrix_column_labels.h" #include "port_matrix_row_labels.h" #include "port_matrix_grid.h" +#include "port_group.h" class PortMatrix; @@ -40,20 +41,17 @@ public: PortMatrixBody (PortMatrix *, Arrangement); - /** @return bundles to offer for columns */ - std::vector<boost::shared_ptr<ARDOUR::Bundle> > const & column_bundles () { - return _column_bundles; + /** @return ports to offer for columns */ + PortGroupList const & column_ports () { + return _column_ports; } - /** @return bundles to offer for rows */ - std::vector<boost::shared_ptr<ARDOUR::Bundle> > const & row_bundles () { - return _row_bundles; + /** @return ports to offer for rows */ + PortGroupList const & row_ports () { + return _row_ports; } - void setup ( - std::vector<boost::shared_ptr<ARDOUR::Bundle> > const &, - std::vector<boost::shared_ptr<ARDOUR::Bundle> > const & - ); + void setup (PortGroupList const &, PortGroupList const &); uint32_t full_scroll_width (); uint32_t alloc_scroll_width (); @@ -91,9 +89,9 @@ private: uint32_t _yoffset; /// bundles to offer for columns - std::vector<boost::shared_ptr<ARDOUR::Bundle> > _column_bundles; + PortGroupList _column_ports; /// bundles to offer for rows - std::vector<boost::shared_ptr<ARDOUR::Bundle> > _row_bundles; + PortGroupList _row_ports; std::list<sigc::connection> _bundle_connections; }; |