desensitize almost everything in a mixer strip when displaying send(s), to avoid user confusion about what can and cannot be modified
git-svn-id: svn://localhost/ardour2/branches/3.0@8609 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
314f0d91d3
commit
6ffc443eaa
|
@ -1718,6 +1718,16 @@ MixerStrip::drop_send ()
|
|||
send_gone_connection.disconnect ();
|
||||
input_button.set_sensitive (true);
|
||||
output_button.set_sensitive (true);
|
||||
group_button.set_sensitive (true);
|
||||
set_invert_sensitive (true);
|
||||
meter_point_button.set_sensitive (true);
|
||||
mute_button->set_sensitive (true);
|
||||
solo_button->set_sensitive (true);
|
||||
rec_enable_button->set_sensitive (true);
|
||||
_mono_button.set_sensitive (true);
|
||||
comment_button.set_sensitive (true);
|
||||
solo_isolated_led->set_sensitive (true);
|
||||
solo_safe_led->set_sensitive (true);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1746,6 +1756,16 @@ MixerStrip::show_send (boost::shared_ptr<Send> send)
|
|||
panner_ui().setup_pan ();
|
||||
|
||||
input_button.set_sensitive (false);
|
||||
group_button.set_sensitive (false);
|
||||
set_invert_sensitive (false);
|
||||
meter_point_button.set_sensitive (false);
|
||||
mute_button->set_sensitive (false);
|
||||
solo_button->set_sensitive (false);
|
||||
rec_enable_button->set_sensitive (false);
|
||||
_mono_button.set_sensitive (false);
|
||||
comment_button.set_sensitive (false);
|
||||
solo_isolated_led->set_sensitive (false);
|
||||
solo_safe_led->set_sensitive (false);
|
||||
|
||||
if (boost::dynamic_pointer_cast<InternalSend>(send)) {
|
||||
output_button.set_sensitive (false);
|
||||
|
|
|
@ -1822,3 +1822,11 @@ RouteUI::invert_menu_toggled (uint32_t c)
|
|||
|
||||
_route->set_phase_invert (c, !_route->phase_invert (c));
|
||||
}
|
||||
|
||||
void
|
||||
RouteUI::set_invert_sensitive (bool yn)
|
||||
{
|
||||
for (list<BindableToggleButton*>::iterator b = _invert_buttons.begin(); b != _invert_buttons.end(); ++b) {
|
||||
(*b)->set_sensitive (yn);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -223,6 +223,8 @@ class RouteUI : public virtual AxisView
|
|||
virtual void start_step_editing () {}
|
||||
virtual void stop_step_editing() {}
|
||||
|
||||
void set_invert_sensitive (bool);
|
||||
|
||||
private:
|
||||
void check_rec_enable_sensitivity ();
|
||||
void parameter_changed (std::string const &);
|
||||
|
|
Loading…
Reference in New Issue