diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-19 20:12:59 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-19 20:12:59 +0000 |
commit | c6509b8f86c29f05e64e98093fda7635ac951ebb (patch) | |
tree | b311dfa688b81150185a1500fca4732f2468d125 /gtk2_ardour/io_selector.h | |
parent | 6da5dd6d41df9e3d05b9b8cceaf1b671b4e21141 (diff) |
Restore add channel option to port matrix context menu.
git-svn-id: svn://localhost/ardour2/branches/3.0@5383 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/io_selector.h')
-rw-r--r-- | gtk2_ardour/io_selector.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/io_selector.h b/gtk2_ardour/io_selector.h index eccdd91a26..fd5cb2fb50 100644 --- a/gtk2_ardour/io_selector.h +++ b/gtk2_ardour/io_selector.h @@ -36,10 +36,14 @@ class IOSelector : public PortMatrix void set_state (ARDOUR::BundleChannel c[2], bool); PortMatrixNode::State get_state (ARDOUR::BundleChannel c[2]) const; - void add_channel (boost::shared_ptr<ARDOUR::Bundle>); + std::string add_channel_name () const; + + void add_channel (); + bool can_remove_channels (int d) const { return d == _ours; } + void remove_channel (ARDOUR::BundleChannel); bool can_rename_channels (int d) const { return false; @@ -67,7 +71,7 @@ class IOSelector : public PortMatrix } private: - + int _other; int _ours; boost::shared_ptr<ARDOUR::IO> _io; @@ -90,6 +94,8 @@ class IOSelectorWindow : public Gtk::Window IOSelector _selector; void io_name_changed (void *src); + void set_max_size (); + void max_size_changed (); }; |