summaryrefslogtreecommitdiff
path: root/gtk2_ardour/io_selector.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-01-30 15:08:09 +0000
committerCarl Hetherington <carl@carlh.net>2009-01-30 15:08:09 +0000
commita384dab13095f3d909e52eff9e6170ae55416601 (patch)
treec8af98d36927095909f54d3e8e8819af4c98b184 /gtk2_ardour/io_selector.h
parent24aab941eb4d77e5bdf3933b11f8ce5659872b52 (diff)
More port matrix re-working. Global matrix now has separate visibility buttons
for ins and outs. The matrix will now be arranged so that more ports are labelled horizontally than vertically, to aid readability. git-svn-id: svn://localhost/ardour2/branches/3.0@4467 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/io_selector.h')
-rw-r--r--gtk2_ardour/io_selector.h48
1 files changed, 23 insertions, 25 deletions
diff --git a/gtk2_ardour/io_selector.h b/gtk2_ardour/io_selector.h
index 20bcb2ff27..fac7281cc0 100644
--- a/gtk2_ardour/io_selector.h
+++ b/gtk2_ardour/io_selector.h
@@ -27,43 +27,41 @@ namespace ARDOUR {
class PortInsert;
}
-class IOSelector : public PortMatrix {
+class IOSelector : public PortMatrix
+{
public:
IOSelector (ARDOUR::Session&, boost::shared_ptr<ARDOUR::IO>, bool);
- ~IOSelector ();
-
- void set_state (
- boost::shared_ptr<ARDOUR::Bundle>,
- uint32_t,
- boost::shared_ptr<ARDOUR::Bundle>,
- uint32_t,
- bool,
- uint32_t
- );
-
- State get_state (
- boost::shared_ptr<ARDOUR::Bundle>,
- uint32_t,
- boost::shared_ptr<ARDOUR::Bundle>,
- uint32_t
- ) const;
+
+ void set_state (ARDOUR::BundleChannel c[2], bool);
+ State get_state (ARDOUR::BundleChannel c[2]) const;
void add_channel (boost::shared_ptr<ARDOUR::Bundle>);
- void remove_channel (boost::shared_ptr<ARDOUR::Bundle>, uint32_t);
- bool can_rename_channels () const {
+ bool can_remove_channels (int d) const {
+ return d == _ours;
+ }
+ void remove_channel (ARDOUR::BundleChannel);
+ bool can_rename_channels (int d) const {
return false;
}
- uint32_t n_rows () const;
- uint32_t maximum_rows () const;
- uint32_t minimum_rows () const;
+ uint32_t n_io_ports () const;
+ uint32_t maximum_io_ports () const;
+ uint32_t minimum_io_ports () const;
boost::shared_ptr<ARDOUR::IO> const io () { return _io; }
void setup ();
+ bool find_inputs_for_io_outputs () const {
+ return _find_inputs_for_io_outputs;
+ }
+
private:
- ARDOUR::Session& _session;
+
+ int _other;
+ int _ours;
+
boost::shared_ptr<ARDOUR::IO> _io;
- PortGroup* _port_group;
+ boost::shared_ptr<PortGroup> _port_group;
+ bool _find_inputs_for_io_outputs;
void ports_changed ();
};