1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-03-23 04:44:53 -04:00

SDRdaemonSink: activate GUI set and send buttons

This commit is contained in:
f4exb 2017-05-28 10:13:54 +02:00
parent 3c2683f6c1
commit a217312032
2 changed files with 24 additions and 6 deletions

View File

@ -454,12 +454,30 @@ void SDRdaemonSinkGui::on_specificParms_returnPressed()
sendControl();
}
void on_applyButton_clicked(bool checked __attribute__((unused)))
void SDRdaemonSinkGui::on_applyButton_clicked(bool checked __attribute__((unused)))
{
m_settings.m_address = ui->address->text();
bool ctlOk;
int udpCtlPort = ui->controlPort->text().toInt(&ctlOk);
if((ctlOk) && (udpCtlPort >= 1024) && (udpCtlPort < 65535))
{
m_settings.m_controlPort = udpCtlPort;
}
bool dataOk;
int udpDataPort = ui->dataPort->text().toInt(&dataOk);
if((dataOk) && (udpDataPort >= 1024) && (udpDataPort < 65535))
{
m_settings.m_dataPort = udpDataPort;
}
}
void on_sendButton_clicked(bool checked __attribute__((unused)))
void SDRdaemonSinkGui::on_sendButton_clicked(bool checked __attribute__((unused)))
{
sendControl(true);
}
void SDRdaemonSinkGui::on_startStop_toggled(bool checked)

View File

@ -25,13 +25,13 @@ SDRdaemonSinkSettings::SDRdaemonSinkSettings()
void SDRdaemonSinkSettings::resetToDefaults()
{
m_centerFrequency = 435000*1000;
m_sampleRate = 48000;
m_log2Interp = 0;
m_sampleRate = 192000;
m_log2Interp = 4;
m_txDelay = 300;
m_nbFECBlocks = 0;
m_address = "127.0.0.1";
m_dataPort = 9090;
m_controlPort = 9091;
m_dataPort = 9092;
m_controlPort = 9093;
m_specificParameters = "";
}