diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-20 00:22:09 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-20 00:22:09 +0000 |
commit | 23f86529fd2c4d06285671d55f695438e9cb58ac (patch) | |
tree | 0c2c96da31a4353d5cc97e95e248ea9970f86201 /gtk2_ardour/port_group.h | |
parent | de58b257ae2444e224543a5da8003e7c717fa5bc (diff) |
Clean up handling of add/remove/rename channels in the port matrix. Hence make it possible to do these things for any bundle (give or take). Clean up port matrix context menu.
git-svn-id: svn://localhost/ardour2/branches/3.0@5393 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_group.h')
-rw-r--r-- | gtk2_ardour/port_group.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/port_group.h b/gtk2_ardour/port_group.h index 22dee8de5e..dbdcfc06ca 100644 --- a/gtk2_ardour/port_group.h +++ b/gtk2_ardour/port_group.h @@ -50,11 +50,13 @@ public: PortGroup (std::string const & n); void add_bundle (boost::shared_ptr<ARDOUR::Bundle>); - void add_bundle (boost::shared_ptr<ARDOUR::Bundle>, Gdk::Color); + void add_bundle (boost::shared_ptr<ARDOUR::Bundle>, boost::shared_ptr<ARDOUR::IO> io); + void add_bundle (boost::shared_ptr<ARDOUR::Bundle>, boost::shared_ptr<ARDOUR::IO>, Gdk::Color); void remove_bundle (boost::shared_ptr<ARDOUR::Bundle>); boost::shared_ptr<ARDOUR::Bundle> only_bundle (); void clear (); uint32_t total_channels () const; + boost::shared_ptr<ARDOUR::IO> io_from_bundle (boost::shared_ptr<ARDOUR::Bundle>) const; std::string name; ///< name for the group @@ -74,6 +76,7 @@ public: struct BundleRecord { boost::shared_ptr<ARDOUR::Bundle> bundle; + boost::shared_ptr<ARDOUR::IO> io; Gdk::Color colour; bool has_colour; sigc::connection changed_connection; @@ -110,6 +113,7 @@ class PortGroupList : public sigc::trackable uint32_t size () const { return _groups.size(); } + boost::shared_ptr<ARDOUR::IO> io_from_bundle (boost::shared_ptr<ARDOUR::Bundle>) const; void suspend_signals (); void resume_signals (); |