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/global_port_matrix.cc | |
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/global_port_matrix.cc')
-rw-r--r-- | gtk2_ardour/global_port_matrix.cc | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/gtk2_ardour/global_port_matrix.cc b/gtk2_ardour/global_port_matrix.cc index 51b1f47b3f..80ddecc813 100644 --- a/gtk2_ardour/global_port_matrix.cc +++ b/gtk2_ardour/global_port_matrix.cc @@ -25,25 +25,19 @@ #include "ardour/port.h" GlobalPortMatrix::GlobalPortMatrix (ARDOUR::Session& s, ARDOUR::DataType t) - : PortMatrix (s, t, true, PortGroupList::Mask (PortGroupList::BUSS | - PortGroupList::TRACK | - PortGroupList::SYSTEM | - PortGroupList::OTHER)), + : PortMatrix (s, t, true), _session (s), - _our_port_group_list (s, t, false, PortGroupList::Mask (PortGroupList::BUSS | - PortGroupList::TRACK | - PortGroupList::SYSTEM | - PortGroupList::OTHER)) + _our_port_group_list (t, false) { setup (); - _port_group_list.VisibilityChanged.connect (sigc::mem_fun (*this, &GlobalPortMatrix::group_visibility_changed)); + _column_ports.VisibilityChanged.connect (sigc::mem_fun (*this, &GlobalPortMatrix::group_visibility_changed)); } void GlobalPortMatrix::group_visibility_changed () { - _our_port_group_list.take_visibility_from (_port_group_list); + _row_ports.take_visibility_from (_column_ports); setup (); } @@ -51,11 +45,8 @@ GlobalPortMatrix::group_visibility_changed () void GlobalPortMatrix::setup () { - _our_port_group_list.refresh (); - _our_bundles = _our_port_group_list.bundles (); - + _row_ports.gather (_session); PortMatrix::setup (); - } void |