18 #include <QMessageBox> 20 #include "ui_fcdprogui.h" 37 m_deviceUISet(deviceUISet),
38 m_forceSettings(true),
41 m_lastEngineState(
DeviceAPI::StNotStarted)
55 ui->rfFilter->clear();
61 ui->lnaEnhance->clear();
79 ui->mixFilter->clear();
103 ui->rcFilter->clear();
127 ui->ifFilter->clear();
150 connect(startStopRightClickEnabler, SIGNAL(rightClick(
const QPoint &)),
this, SLOT(
openDeviceSettingsDialog(
const QPoint &)));
250 qDebug(
"FCDProGui::handleInputMessages: message: %s", message->
getIdentifier());
257 qDebug(
"FCDProGui::handleInputMessages: DSPSignalNotification: SampleRate:%d, CenterFrequency:%llu", notif->
getSampleRate(), notif->
getCenterFrequency());
286 minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
287 maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
289 qDebug(
"FCDProGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
291 ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
454 if ((index < 0) || (index > 6)) {
467 }
else if (index == 1) {
470 }
else if (index == 2) {
510 ui->record->setStyleSheet(
"QToolButton { background-color : red; }");
512 ui->record->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
538 ui->startStop->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
541 ui->startStop->setStyleSheet(
"QToolButton { background-color : blue; }");
544 ui->startStop->setStyleSheet(
"QToolButton { background-color : green; }");
547 ui->startStop->setStyleSheet(
"QToolButton { background-color : red; }");
void blockApplySettings(bool block)
uint16_t m_reverseAPIPort
void on_gain2_currentIndexChanged(int index)
void on_band_currentIndexChanged(int index)
Message * pop()
Pop message from queue.
const QString & getReverseAPIAddress() const
void on_lnaGain_currentIndexChanged(int index)
void on_fcPos_currentIndexChanged(int index)
void on_centerFrequency_changed(quint64 value)
void push(Message *message, bool emitSignal=true)
Push message onto queue.
void setSampleRate(qint32 sampleRate)
static int fcdpro_if_filter_nb_values()
void on_record_toggled(bool checked)
static int fcdpro_rf_filter_nb_values()
static const fcdpro_if_gain3 if_gains3[]
static const fcdpro_bias_current bias_currents[]
void on_gain4_currentIndexChanged(int index)
MessageQueue m_inputMessageQueue
DeviceSampleSource * getSampleSource()
Return pointer to the device sample source (single Rx) or nullptr.
void setUseReverseAPI(bool useReverseAPI)
static const fcdpro_if_gain1 if_gains1[]
DeviceUISet * m_deviceUISet
static int fcdpro_mixer_gain_nb_values()
MessageQueue * getInputMessageQueue()
static const fcdpro_if_gain_mode if_gain_modes[]
bool deserialize(const QByteArray &data)
static int fcdpro_if_gain3_nb_values()
FCDProSettings m_settings
static int fcdpro_bias_current_nb_values()
uint16_t getReverseAPIDeviceIndex() const
void on_gain1_currentIndexChanged(int index)
static const fcdpro_if_gain6 if_gains6[]
void on_gain5_currentIndexChanged(int index)
QString errorMessage()
Last error message from the device engine.
static const fcdpro_lna_gain lna_gains[]
void updateSampleRateAndFrequency()
static const fcdpro_if_gain2 if_gains2[]
void on_gain6_currentIndexChanged(int index)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
GLSpectrum * getSpectrum()
Direct spectrum getter.
engine is before initialization
QByteArray serialize() const
FCDProGui(DeviceUISet *deviceUISet, QWidget *parent=0)
static int fcdpro_if_gain2_nb_values()
qint64 getCenterFrequency() const
EngineState state() const
Return the state of the device engine corresponding to the stream type.
void on_ifFilter_currentIndexChanged(int index)
qint64 m_transverterDeltaFrequency
void on_iqImbalance_toggled(bool checked)
uint16_t m_reverseAPIDeviceIndex
void on_mixGain_currentIndexChanged(int index)
void on_gain3_currentIndexChanged(int index)
uint16_t getReverseAPIPort() const
void on_mixFilter_currentIndexChanged(int index)
QByteArray serialize() const
static int fcdpro_lna_enhance_nb_values()
void on_startStop_toggled(bool checked)
static int fcdpro_lna_gain_nb_values()
static int fcdpro_band_nb_values()
void on_rfFilter_currentIndexChanged(int index)
void setName(const QString &name)
static bool match(const Message *message)
static int fcdpro_if_rc_filter_nb_values()
static int fcdpro_if_gain1_nb_values()
void on_ppm_valueChanged(int value)
void on_dcOffset_toggled(bool checked)
static const fcdpro_rf_filter rf_filters[]
qint32 m_mixerFilterIndex
static int fcdpro_if_gain6_nb_values()
void updateFrequencyLimits()
static const fcdpro_if_filter if_filters[]
void on_setDefaults_clicked(bool checked)
void on_decim_currentIndexChanged(int index)
QString m_reverseAPIAddress
DeviceSampleSource * m_sampleSource
int getSampleRate() const
quint64 m_deviceCenterFrequency
Center frequency in device.
void on_transverter_clicked()
static int fcdpro_if_gain_mode_nb_values()
void setCenterFrequency(qint64 frequency)
virtual const char * getIdentifier() const
virtual qint64 getCenterFrequency() const
void setReverseAPIAddress(const QString &address)
static const fcdpro_if_gain4 if_gains4[]
virtual void setCenterFrequency(qint64 centerFrequency)
void openDeviceSettingsDialog(const QPoint &p)
void on_lnaEnhance_currentIndexChanged(int index)
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
static const fcdpro_mixer_filter mixer_filters[]
bool deserialize(const QByteArray &data)
void setReverseAPIPort(uint16_t port)
virtual void setMessageQueueToGUI(MessageQueue *queue)=0
void handleInputMessages()
static const fcdpro_band bands[]
bool useReverseAPI() const
static int fcdpro_if_gain4_nb_values()
void on_bias_currentIndexChanged(int index)
void on_rcFilter_currentIndexChanged(int index)
static const fcdpro_if_gain5 if_gains5[]
quint64 m_centerFrequency
static const fcdpro_lna_enhance lna_enhances[]
static int fcdpro_if_gain5_nb_values()
void on_mode_currentIndexChanged(int index)
static const fcdpro_mixer_gain mixer_gains[]
qint32 m_biasCurrentIndex
virtual bool handleMessage(const Message &message)
static const fcdpro_if_rc_filter if_rc_filters[]
static int fcdpro_mixer_filter_nb_values()