summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_group.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-11-18 13:35:31 +0000
committerCarl Hetherington <carl@carlh.net>2009-11-18 13:35:31 +0000
commit73a0cd56f8bab790e0bbcf09b4f51e20175f4dc8 (patch)
tree4589913ad551505381b0a7ac0a0c5277ce67148e /gtk2_ardour/port_group.h
parentef92349187b61349d2d5182f49f700183901f59e (diff)
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
Diffstat (limited to 'gtk2_ardour/port_group.h')
-rw-r--r--gtk2_ardour/port_group.h13
1 files changed, 2 insertions, 11 deletions
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<void> Changed;
@@ -95,7 +86,6 @@ private:
void add_bundle_internal (boost::shared_ptr<ARDOUR::Bundle>, boost::shared_ptr<ARDOUR::IO>, 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<boost::shared_ptr<PortGroup> > List;
void add_group (boost::shared_ptr<PortGroup>);
+ void add_group_if_not_empty (boost::shared_ptr<PortGroup>);
void set_type (ARDOUR::DataType);
void gather (ARDOUR::Session &, bool, bool);
PortGroup::BundleList const & bundles () const;
void clear ();
void remove_bundle (boost::shared_ptr<ARDOUR::Bundle>);
- uint32_t total_visible_channels () const;
+ uint32_t total_channels () const;
uint32_t size () const {
return _groups.size();
}