X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fport_group.h;h=a9dfc1a4addad8480800999458f6aecd39d4fd59;hb=e80ccbfc8b3a572e517cd9932e5f260e41a5dff7;hp=d5868bddd6f554cf19606d5dfa7019a65927fabd;hpb=f450df300c9c057141a4caf79ff6dbfbf58492d9;p=ardour.git diff --git a/gtk2_ardour/port_group.h b/gtk2_ardour/port_group.h index d5868bddd6..a9dfc1a4ad 100644 --- a/gtk2_ardour/port_group.h +++ b/gtk2_ardour/port_group.h @@ -40,7 +40,6 @@ namespace ARDOUR { } class PortMatrix; -class RouteBundle; class PublicEditor; /** A list of bundles grouped by some aspect of their type e.g. busses, tracks, system. @@ -58,8 +57,9 @@ public: void remove_bundle (boost::shared_ptr); boost::shared_ptr only_bundle (); void clear (); - uint32_t total_channels () const; + ARDOUR::ChanCount total_channels () const; boost::shared_ptr io_from_bundle (boost::shared_ptr) const; + void remove_duplicates (); std::string name; ///< name for the group @@ -75,7 +75,7 @@ public: boost::shared_ptr bundle; /** IO whose ports are in the bundle, or 0. This is so that we can do things like adding ports to the IO from matrix editor menus. */ - boost::shared_ptr io; + boost::weak_ptr io; Gdk::Color colour; bool has_colour; PBD::ScopedConnection changed_connection; @@ -107,12 +107,11 @@ class PortGroupList : public sigc::trackable void add_group (boost::shared_ptr); void add_group_if_not_empty (boost::shared_ptr); - void set_type (ARDOUR::DataType); - void gather (ARDOUR::Session *, bool, bool); + void gather (ARDOUR::Session *, ARDOUR::DataType, bool, bool, bool); PortGroup::BundleList const & bundles () const; void clear (); void remove_bundle (boost::shared_ptr); - uint32_t total_channels () const; + ARDOUR::ChanCount total_channels () const; uint32_t size () const { return _groups.size(); } @@ -143,12 +142,11 @@ class PortGroupList : public sigc::trackable std::string common_prefix_before (std::vector const &, std::string const &) const; void emit_changed (); void emit_bundle_changed (ARDOUR::Bundle::Change); - boost::shared_ptr make_bundle_from_ports (std::vector const &, bool) const; + boost::shared_ptr make_bundle_from_ports (std::vector const &, ARDOUR::DataType, bool) const; void maybe_add_processor_to_list ( - boost::weak_ptr, std::list > *, bool, std::set > & + boost::weak_ptr, std::list > *, bool, std::set > & ); - ARDOUR::DataType _type; mutable PortGroup::BundleList _bundles; List _groups; PBD::ScopedConnectionList _bundle_changed_connections;