- return true;
-}
-
-/**
- * Set the `base dimensions'. These are the dimensions of the area at which the labels start, and
- * have to be set up to match whatever they are labelling.
- *
- * Roughly speaking, we have
- *
- * L L L L
- * E E E E
- * B B B B
- * A A A A
- * L L L L
- * <--s--><--w--->
- */
-
-void
-RotatedLabelSet::set_base_dimensions (int s, int w)
-{
- _base_start = s;
- _base_width = w;
- queue_resize ();
-}
-
-
-/**
- * Construct an IOSelector.
- * @param session Session to operate on.
- * @param io IO to operate on.
- * @param for_input true if the selector is for an input, otherwise false.
- */
-
-IOSelector::IOSelector (ARDOUR::Session& session, boost::shared_ptr<ARDOUR::IO> io, bool for_input)
- : _session (session), _port_list (session, io, for_input), _io (io), _for_input (for_input),
- _width (0), _height (0), _column_labels (_port_list),
- _ignore_check_button_toggle (false), _add_remove_box_added (false)
-{
- /* Column labels */
- pack_start (_column_labels, true, true);
-
- /* Buttons for adding and removing ports */
- _add_port_button.set_image (*Gtk::manage (new Gtk::Image (Gtk::Stock::ADD, Gtk::ICON_SIZE_MENU)));
- _add_port_button.set_label (_("Add port"));
- _add_port_button.signal_clicked().connect (mem_fun (*this, &IOSelector::add_port_button_clicked));
- _add_remove_box.pack_start (_add_port_button);
- _remove_port_button.set_image (*Gtk::manage (new Gtk::Image (Gtk::Stock::REMOVE, Gtk::ICON_SIZE_MENU)));
- _remove_port_button.set_label (_("Remove port"));
- _remove_port_button.signal_clicked().connect (mem_fun (*this, &IOSelector::remove_port_button_clicked));
- _add_remove_box.pack_start (_remove_port_button);
- set_button_sensitivity ();
-
- /* Table. We need to put in a HBox, with a dummy label to its right,
- so that the rotated column labels can overhang the right hand side of the table. */
-
- setup_table ();
- setup_row_labels ();
- setup_check_button_states ();
- _table_hbox.pack_start (_table, false, false);
- _table_hbox.pack_start (_dummy);
- _table.set_col_spacings (4);
- pack_start (_table_hbox);
-
- show_all ();
-
- update_column_label_dimensions ();
-
- /* Listen for ports changing on the IO */
- if (_for_input) {
- _io->input_changed.connect (mem_fun(*this, &IOSelector::ports_changed));