X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Fport_group.h;h=d631f8ac0515d9ea180f1236a5f2f02b831e7509;hb=65eeeb7a652d7022783b10e35941ce56e0fc7207;hp=bc0615a7a92a6ff574e66eb6aff3ad70035f7001;hpb=aae367b63c9b619db1e40f27dc334c6987219481;p=ardour.git diff --git a/gtk2_ardour/port_group.h b/gtk2_ardour/port_group.h index bc0615a7a9..d631f8ac05 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,10 +75,10 @@ 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; - boost::signals2::scoped_connection changed_connection; + PBD::ScopedConnection changed_connection; BundleRecord (boost::shared_ptr, boost::shared_ptr, Gdk::Color, bool has_colour); }; @@ -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, std::string const& bundle_name = std::string()) 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;