mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
BasicUI moved toggle_click,toggle_roll and stop_forget from menu action to session calls
This commit is contained in:
parent
e307094af3
commit
f69808b372
1 changed files with 23 additions and 4 deletions
|
|
@ -461,13 +461,32 @@ BasicUI::midi_panic ()
|
|||
session->midi_panic ();
|
||||
}
|
||||
|
||||
void
|
||||
BasicUI::toggle_click ()
|
||||
{
|
||||
bool state = !Config->get_clicking();
|
||||
Config->set_clicking (state);
|
||||
}
|
||||
|
||||
void
|
||||
BasicUI::toggle_roll ()
|
||||
{
|
||||
if (session->transport_rolling()) {
|
||||
transport_stop ();
|
||||
} else {
|
||||
transport_play (false);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
BasicUI::stop_forget ()
|
||||
{
|
||||
session->request_stop (true, true);
|
||||
}
|
||||
|
||||
void BasicUI::mark_in () { access_action("Common/start-range-from-playhead"); }
|
||||
void BasicUI::mark_out () { access_action("Common/finish-range-from-playhead"); }
|
||||
|
||||
void BasicUI::toggle_click () { access_action("Transport/ToggleClick"); }
|
||||
void BasicUI::toggle_roll () { access_action("Transport/ToggleRoll"); }
|
||||
void BasicUI::stop_forget () { access_action("Transport/ToggleRollForgetCapture"); }
|
||||
|
||||
void BasicUI::set_punch_range () { access_action("Common/set-punch-from-edit-range"); }
|
||||
void BasicUI::set_loop_range () { access_action("Common/set-loop-from-edit-range"); }
|
||||
void BasicUI::set_session_range () { access_action("Common/set-session-from-edit-range"); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue