1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 23:14:47 -04:00

REST API device and channel actions: extension of record action: implementation

This commit is contained in:
f4exb
2020-03-10 05:23:19 +01:00
parent beee7a7a78
commit 18aa9ffbc2
49 changed files with 995 additions and 3 deletions
@@ -287,6 +287,23 @@ bool KiwiSDRGui::handleMessage(const Message& message)
m_statusColors[status] + "; border-radius: 7px; }");
return true;
}
else if (KiwiSDRInput::MsgFileRecord::match(message)) // API action "record" feedback
{
const KiwiSDRInput::MsgFileRecord& notif = (const KiwiSDRInput::MsgFileRecord&) message;
bool record = notif.getStartStop();
ui->record->blockSignals(true);
ui->record->setChecked(record);
if (record) {
ui->record->setStyleSheet("QToolButton { background-color : red; }");
} else {
ui->record->setStyleSheet("QToolButton { background:rgb(79,79,79); }");
}
ui->record->blockSignals(false);
return true;
}
else
{
return false;