triggerbox UI: catch up with method and property name changes from 528fd247

This commit is contained in:
Paul Davis 2022-01-26 10:12:03 -07:00
parent f20966cbad
commit 7f96255722
2 changed files with 8 additions and 8 deletions

View File

@ -411,7 +411,7 @@ SlotPropertyTable::velocity_adjusted ()
return;
}
trigger()->set_midi_velocity_effect (_velocity_adjustment.get_value());
trigger()->set_velocity_effect (_velocity_adjustment.get_value());
}
void
@ -571,7 +571,7 @@ SlotPropertyTable::on_trigger_changed (PropertyChange const& pc)
_legato_button.set_active_state (trigger()->legato() ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
}
if (pc.contains (Properties::isolated)) {
if (pc.contains (Properties::cue_isolated)) {
_isolate_button.set_active_state (trigger()->cue_isolated() ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
}
@ -580,10 +580,10 @@ SlotPropertyTable::on_trigger_changed (PropertyChange const& pc)
}
if (pc.contains (Properties::follow_action0)) {
_follow_left.set_text (follow_action_to_string (trigger()->follow_action (0)));
_follow_left.set_text (follow_action_to_string (trigger()->follow_action0 ()));
/* set widget sensitivity based on 'left' follow action */
bool follow_widgets_sensitive = trigger()->follow_action (0).type != FollowAction::None;
bool follow_widgets_sensitive = trigger()->follow_action0 ().type != FollowAction::None;
if (follow_widgets_sensitive) {
_follow_right.set_sensitive(true);
_follow_count_spinner.set_sensitive(true);
@ -610,11 +610,11 @@ SlotPropertyTable::on_trigger_changed (PropertyChange const& pc)
}
if (pc.contains (Properties::follow_action1)) {
_follow_right.set_text (follow_action_to_string (trigger()->follow_action (1)));
_follow_right.set_text (follow_action_to_string (trigger()->follow_action1 ()));
}
if (pc.contains (Properties::velocity_effect)) {
_velocity_adjustment.set_value (trigger()->midi_velocity_effect());
_velocity_adjustment.set_value (trigger()->velocity_effect());
}
if (pc.contains (Properties::follow_action_probability)) {

View File

@ -469,7 +469,7 @@ TriggerEntry::render (ArdourCanvas::Rect const& area, Cairo::RefPtr<Cairo::Conte
context->set_identity_matrix ();
context->translate (self.x0, self.y0 - 0.5);
context->translate (width - height, 0); // right side of the widget
draw_follow_icon (context, trigger ()->follow_action (0), height, scale);
draw_follow_icon (context, trigger ()->follow_action0 (), height, scale);
context->set_identity_matrix ();
}
}
@ -495,7 +495,7 @@ TriggerEntry::on_trigger_changed (PropertyChange const& change)
interesting_stuff.add (ARDOUR::Properties::follow_action1);
interesting_stuff.add (ARDOUR::Properties::follow_action_probability);
interesting_stuff.add (ARDOUR::Properties::follow_count);
interesting_stuff.add (ARDOUR::Properties::isolated);
interesting_stuff.add (ARDOUR::Properties::cue_isolated);
interesting_stuff.add (ARDOUR::Properties::running);
if (change.contains (interesting_stuff)) {