mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
Add BasicUI::record_status()
Towards removing the direct use of Session by surfaces.
This commit is contained in:
parent
1f17d0834c
commit
799008e4d7
9 changed files with 14 additions and 7 deletions
|
|
@ -642,7 +642,7 @@ CC121::map_recenable_state ()
|
||||||
|
|
||||||
bool onoff;
|
bool onoff;
|
||||||
|
|
||||||
switch (_session->record_status()) {
|
switch (record_status()) {
|
||||||
case RecordState::Disabled:
|
case RecordState::Disabled:
|
||||||
onoff = false;
|
onoff = false;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -486,6 +486,12 @@ BasicUI::get_record_enabled ()
|
||||||
return _session->get_record_enabled();
|
return _session->get_record_enabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RecordState
|
||||||
|
BasicUI::record_status () const
|
||||||
|
{
|
||||||
|
return _session->record_status ();
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
BasicUI::set_record_enable (bool yn)
|
BasicUI::set_record_enable (bool yn)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,7 @@ class LIBCONTROLCP_API BasicUI {
|
||||||
|
|
||||||
void set_record_enable (bool yn);
|
void set_record_enable (bool yn);
|
||||||
bool get_record_enabled ();
|
bool get_record_enabled ();
|
||||||
|
RecordState record_status() const;
|
||||||
|
|
||||||
//editor visibility stuff (why do we have to make explicit numbers here? because "gui actions" don't accept args
|
//editor visibility stuff (why do we have to make explicit numbers here? because "gui actions" don't accept args
|
||||||
void fit_1_track();
|
void fit_1_track();
|
||||||
|
|
|
||||||
|
|
@ -659,7 +659,7 @@ FaderPort::map_recenable_state ()
|
||||||
|
|
||||||
bool onoff;
|
bool onoff;
|
||||||
|
|
||||||
switch (_session->record_status()) {
|
switch (record_status()) {
|
||||||
case RecordState::Disabled:
|
case RecordState::Disabled:
|
||||||
onoff = false;
|
onoff = false;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ FaderPort8::notify_transport_state_changed ()
|
||||||
void
|
void
|
||||||
FaderPort8::notify_record_state_changed ()
|
FaderPort8::notify_record_state_changed ()
|
||||||
{
|
{
|
||||||
switch (_session->record_status ()) {
|
switch (record_status ()) {
|
||||||
case RecordState::Disabled:
|
case RecordState::Disabled:
|
||||||
_ctrls.button (FP8Controls::BtnRecord).set_active (0);
|
_ctrls.button (FP8Controls::BtnRecord).set_active (0);
|
||||||
_ctrls.button (FP8Controls::BtnRecord).set_blinking (false);
|
_ctrls.button (FP8Controls::BtnRecord).set_blinking (false);
|
||||||
|
|
|
||||||
|
|
@ -1417,7 +1417,7 @@ MackieControlProtocol::notify_record_state_changed ()
|
||||||
if (rec) {
|
if (rec) {
|
||||||
LedState ls;
|
LedState ls;
|
||||||
|
|
||||||
switch (_session->record_status()) {
|
switch (record_status()) {
|
||||||
case RecordState::Disabled:
|
case RecordState::Disabled:
|
||||||
DEBUG_TRACE (DEBUG::MackieControl, "record state changed to disabled, LED off\n");
|
DEBUG_TRACE (DEBUG::MackieControl, "record state changed to disabled, LED off\n");
|
||||||
ls = off;
|
ls = off;
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ Maschine2::connect_signals ()
|
||||||
void
|
void
|
||||||
Maschine2::notify_record_state_changed ()
|
Maschine2::notify_record_state_changed ()
|
||||||
{
|
{
|
||||||
switch (_session->record_status ()) {
|
switch (record_status ()) {
|
||||||
case RecordState::Disabled:
|
case RecordState::Disabled:
|
||||||
_ctrl->button (M2Contols::Rec)->set_color (0);
|
_ctrl->button (M2Contols::Rec)->set_color (0);
|
||||||
_ctrl->button (M2Contols::Rec)->set_blinking (false);
|
_ctrl->button (M2Contols::Rec)->set_blinking (false);
|
||||||
|
|
|
||||||
|
|
@ -886,7 +886,7 @@ Push2::notify_record_state_changed ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (_session->record_status ()) {
|
switch (record_status ()) {
|
||||||
case RecordState::Disabled:
|
case RecordState::Disabled:
|
||||||
b->second->set_color (LED::White);
|
b->second->set_color (LED::White);
|
||||||
b->second->set_state (LED::NoTransition);
|
b->second->set_state (LED::NoTransition);
|
||||||
|
|
|
||||||
|
|
@ -1137,7 +1137,7 @@ US2400Protocol::notify_record_state_changed ()
|
||||||
if (rec) {
|
if (rec) {
|
||||||
LedState ls;
|
LedState ls;
|
||||||
|
|
||||||
switch (_session->record_status()) {
|
switch (record_status()) {
|
||||||
case RecordState::Disabled:
|
case RecordState::Disabled:
|
||||||
DEBUG_TRACE (DEBUG::US2400, "record state changed to disabled, LED off\n");
|
DEBUG_TRACE (DEBUG::US2400, "record state changed to disabled, LED off\n");
|
||||||
ls = off;
|
ls = off;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue