/*
- Copyright (C) 2002-2007 Paul Davis
+ Copyright (C) 2002-2007 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
_port_group.reset (new PortGroup (""));
_ports[_ours].add_group (_port_group);
-
+
setup_all_ports ();
}
if (dim == _other) {
_ports[_other].gather (_session, _find_inputs_for_io_outputs);
-
+
} else {
_port_group->clear ();
/* since we are talking about an IO, our ports should all have an associated Port *,
so the above call should never fail */
assert (f);
-
+
if (!f->connected_to (*j)) {
/* if any one thing is not connected, all bets are off */
return PortMatrixNode::NOT_ASSOCIATED;
Gtk::Window::on_show ();
pair<uint32_t, uint32_t> const pm_max = _selector.max_size ();
resize_window_to_proportion_of_monitor (this, pm_max.first, pm_max.second);
-}
+}
void
IOSelectorWindow::io_name_changed (void* src)
{
ENSURE_GUI_THREAD(bind (mem_fun(*this, &IOSelectorWindow::io_name_changed), src));
-
+
string title;
if (!_selector.find_inputs_for_io_outputs()) {
{
output_selector.set_min_height_divisor (2);
input_selector.set_min_height_divisor (2);
-
+
pack_start (output_selector, true, true);
pack_start (input_selector, true, true);
}
string title = _("ardour: ");
title += pi->name();
set_title (title);
-
+
ok_button.set_name ("IOSelectorButton");
if (!can_cancel) {
ok_button.set_image (*Gtk::manage (new Gtk::Image (Gtk::Stock::CLOSE, Gtk::ICON_SIZE_BUTTON)));
cancel_button.signal_clicked().connect (mem_fun (*this, &PortInsertWindow::cancel));
signal_delete_event().connect (mem_fun (*this, &PortInsertWindow::wm_delete), false);
-
+
going_away_connection = pi->GoingAway.connect (mem_fun (*this, &PortInsertWindow::plugin_going_away));
}
PortInsertWindow::plugin_going_away ()
{
ENSURE_GUI_THREAD (mem_fun (*this, &PortInsertWindow::plugin_going_away));
-
+
going_away_connection.disconnect ();
delete_when_idle (this);
}