mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Clean and overhaul up SendUI
* add polarity control * set transient parent * remove unused methods * clang-format source
This commit is contained in:
parent
8113633bb9
commit
5a48a56bfe
5 changed files with 81 additions and 103 deletions
|
|
@ -362,13 +362,9 @@ RouteParams_UI::set_session (Session *sess)
|
|||
boost::shared_ptr<RouteList> r = _session->get_routes();
|
||||
add_routes (*r);
|
||||
_session->RouteAdded.connect (_session_connections, invalidator (*this), boost::bind (&RouteParams_UI::add_routes, this, _1), gui_context());
|
||||
start_updating ();
|
||||
} else {
|
||||
stop_updating ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
RouteParams_UI::session_going_away ()
|
||||
{
|
||||
|
|
@ -479,7 +475,7 @@ RouteParams_UI::redirect_selected (boost::shared_ptr<ARDOUR::Processor> proc)
|
|||
return;
|
||||
} else if ((send = boost::dynamic_pointer_cast<Send> (proc)) != 0) {
|
||||
|
||||
SendUI *send_ui = new SendUI (this, send, _session);
|
||||
SendUI *send_ui = new SendUI (this, _session, send);
|
||||
|
||||
cleanup_view();
|
||||
send->DropReferences.connect (_processor_going_away_connection, invalidator (*this), boost::bind (&RouteParams_UI::processor_going_away, this, boost::weak_ptr<Processor>(proc)), gui_context());
|
||||
|
|
@ -576,27 +572,3 @@ RouteParams_UI::update_title ()
|
|||
set_title(title.get_string());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
RouteParams_UI::start_updating ()
|
||||
{
|
||||
update_connection = Timers::rapid_connect
|
||||
(sigc::mem_fun(*this, &RouteParams_UI::update_views));
|
||||
}
|
||||
|
||||
void
|
||||
RouteParams_UI::stop_updating ()
|
||||
{
|
||||
update_connection.disconnect();
|
||||
}
|
||||
|
||||
void
|
||||
RouteParams_UI::update_views ()
|
||||
{
|
||||
SendUI *sui;
|
||||
// TODO: only do it if correct tab is showing
|
||||
|
||||
if ((sui = dynamic_cast<SendUI*> (_active_view)) != 0) {
|
||||
sui->update ();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue