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

ATV Modulator: added camera details to the GUI

This commit is contained in:
f4exb
2017-03-11 06:57:22 +01:00
parent 2adf6da86d
commit 41fac50526
7 changed files with 133 additions and 27 deletions
+6 -3
View File
@@ -164,7 +164,10 @@ bool ATVModGUI::handleMessage(const Message& message)
}
else if (ATVMod::MsgReportCameraData::match(message))
{
// TODO
ATVMod::MsgReportCameraData& rpt = (ATVMod::MsgReportCameraData&) message;
ui->cameraDeviceNumber->setText(tr("#%1").arg(rpt.getdeviceNumber()));
ui->camerFPS->setText(tr("%1 FPS").arg(rpt.getFPS(), 0, 'f', 2));
ui->cameraImageSize->setText(tr("%1x%2").arg(rpt.getWidth()).arg(rpt.getHeight()));
return true;
}
else
@@ -270,7 +273,7 @@ void ATVModGUI::on_playLoop_toggled(bool checked)
applySettings();
}
void ATVModGUI::on_play_toggled(bool checked)
void ATVModGUI::on_playVideo_toggled(bool checked)
{
ui->navTimeSlider->setEnabled(!checked);
m_enableNavTime = !checked;
@@ -406,7 +409,7 @@ void ATVModGUI::applySettings()
ui->uniformLevel->value() / 100.0f,
(ATVMod::ATVModulation) ui->modulation->currentIndex(),
ui->playLoop->isChecked(),
ui->play->isChecked(),
ui->playVideo->isChecked(),
ui->channelMute->isChecked());
}
}