From 73a0cd56f8bab790e0bbcf09b4f51e20175f4dc8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 18 Nov 2009 13:35:31 +0000 Subject: Rework port matrix to use Gtk notebook tabs to select visible groups. git-svn-id: svn://localhost/ardour2/branches/3.0@6117 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_group.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'gtk2_ardour/port_group.h') diff --git a/gtk2_ardour/port_group.h b/gtk2_ardour/port_group.h index e367adec9b..77b1fc91df 100644 --- a/gtk2_ardour/port_group.h +++ b/gtk2_ardour/port_group.h @@ -60,15 +60,6 @@ public: std::string name; ///< name for the group - bool visible () const { - return _visible; - } - - void set_visible (bool v) { - _visible = v; - Changed (); - } - bool has_port (std::string const &) const; sigc::signal Changed; @@ -95,7 +86,6 @@ private: void add_bundle_internal (boost::shared_ptr, boost::shared_ptr, bool, Gdk::Color, bool); BundleList _bundles; - bool _visible; ///< true if the group is visible in the UI }; /// A list of PortGroups @@ -107,12 +97,13 @@ class PortGroupList : public sigc::trackable typedef std::vector > List; 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); PortGroup::BundleList const & bundles () const; void clear (); void remove_bundle (boost::shared_ptr); - uint32_t total_visible_channels () const; + uint32_t total_channels () const; uint32_t size () const { return _groups.size(); } -- cgit v1.2.3