Move RecordState to ardour/types.h

This allows it to be used without including session.h.  Using this pointless
cast syntax to make it easy to mechanically convert them all when we can
finally use strong enums.
This commit is contained in:
David Robillard 2021-06-17 11:01:05 -04:00
parent 43ea100381
commit 8998efa8c8
20 changed files with 54 additions and 54 deletions

View file

@ -367,7 +367,7 @@ void
BasicUI::rec_enable_toggle ()
{
switch (_session->record_status()) {
case Session::Disabled:
case (RecordState)Disabled:
if (_session->ntracks() == 0) {
// string txt = _("Please create 1 or more track\nbefore trying to record.\nCheck the Session menu.");
// MessageDialog msg (*editor, txt);
@ -376,8 +376,8 @@ BasicUI::rec_enable_toggle ()
}
_session->maybe_enable_record ();
break;
case Session::Recording:
case Session::Enabled:
case (RecordState)Recording:
case (RecordState)Enabled:
_session->disable_record (false, true);
}
}