mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
Make Active apply to the selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@9089 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
92a5e4da48
commit
8f45604f27
9 changed files with 87 additions and 63 deletions
|
|
@ -109,7 +109,6 @@ RouteUI::init ()
|
|||
solo_safe_led = 0;
|
||||
_solo_release = 0;
|
||||
_mute_release = 0;
|
||||
route_active_menu_item = 0;
|
||||
denormal_menu_item = 0;
|
||||
step_edit_item = 0;
|
||||
multiple_mute_change = false;
|
||||
|
|
@ -179,7 +178,6 @@ RouteUI::reset ()
|
|||
xml_node = 0;
|
||||
}
|
||||
|
||||
route_active_menu_item = 0;
|
||||
denormal_menu_item = 0;
|
||||
}
|
||||
|
||||
|
|
@ -1467,26 +1465,15 @@ RouteUI::property_changed (const PropertyChange& what_changed)
|
|||
}
|
||||
|
||||
void
|
||||
RouteUI::toggle_route_active ()
|
||||
RouteUI::set_route_active (bool a, bool apply_to_selection)
|
||||
{
|
||||
bool yn;
|
||||
|
||||
if (route_active_menu_item) {
|
||||
if (route_active_menu_item->get_active() != (yn = _route->active())) {
|
||||
_route->set_active (!yn, this);
|
||||
}
|
||||
if (apply_to_selection) {
|
||||
ARDOUR_UI::instance()->the_editor().get_selection().tracks.foreach_route_ui (boost::bind (&RouteTimeAxisView::set_route_active, _1, a, false));
|
||||
} else {
|
||||
_route->set_active (a, this);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
RouteUI::route_active_changed ()
|
||||
{
|
||||
if (route_active_menu_item) {
|
||||
Gtkmm2ext::UI::instance()->call_slot (invalidator (*this), boost::bind (&CheckMenuItem::set_active, route_active_menu_item, _route->active()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
RouteUI::toggle_denormal_protection ()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue