19 #include <QMessageBox> 21 #include "ui_fcdproplusgui.h" 38 m_deviceUISet(deviceUISet),
39 m_forceSettings(true),
42 m_lastEngineState(
DeviceAPI::StNotStarted)
51 ui->filterIF->clear();
57 ui->filterRF->clear();
68 connect(startStopRightClickEnabler, SIGNAL(rightClick(
const QPoint &)),
this, SLOT(
openDeviceSettingsDialog(
const QPoint &)));
173 qDebug(
"FCDProPlusGui::handleInputMessages: DSPSignalNotification: SampleRate:%d, CenterFrequency:%llu", notif->
getSampleRate(), notif->
getCenterFrequency());
202 minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit;
203 maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit;
205 qDebug(
"FCDProPlusGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit);
207 ui->centerFrequency->setValueRange(7, minLimit, maxLimit);
245 if ((index < 0) || (index > 6)) {
258 }
else if (index == 1) {
261 }
else if (index == 2) {
296 ui->startStop->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
299 ui->startStop->setStyleSheet(
"QToolButton { background-color : blue; }");
302 ui->startStop->setStyleSheet(
"QToolButton { background-color : green; }");
305 ui->startStop->setStyleSheet(
"QToolButton { background-color : red; }");
369 ui->record->setStyleSheet(
"QToolButton { background-color : red; }");
371 ui->record->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
void on_decim_currentIndexChanged(int index)
QByteArray serialize() const
Message * pop()
Pop message from queue.
const QString & getReverseAPIAddress() const
void on_mixGain_stateChanged(int state)
void push(Message *message, bool emitSignal=true)
Push message onto queue.
quint64 m_deviceCenterFrequency
Center frequency in device.
void setSampleRate(qint32 sampleRate)
static const fcdproplus_rf_filter rf_filters[]
void on_fcPos_currentIndexChanged(int index)
qint64 m_transverterDeltaFrequency
void on_dcOffset_toggled(bool checked)
DeviceSampleSource * getSampleSource()
Return pointer to the device sample source (single Rx) or nullptr.
void setUseReverseAPI(bool useReverseAPI)
DeviceUISet * m_deviceUISet
void on_checkBoxB_stateChanged(int state)
MessageQueue * getInputMessageQueue()
QString m_reverseAPIAddress
void on_iqImbalance_toggled(bool checked)
void on_checkBoxG_stateChanged(int state)
static const fcdproplus_if_filter if_filters[]
QByteArray serialize() const
void on_record_toggled(bool checked)
uint16_t getReverseAPIDeviceIndex() const
QString errorMessage()
Last error message from the device engine.
static int fcdproplus_rf_filter_nb_values()
void on_ifGain_valueChanged(int value)
quint64 m_centerFrequency
void on_filterRF_currentIndexChanged(int index)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
GLSpectrum * getSpectrum()
Direct spectrum getter.
MessageQueue m_inputMessageQueue
engine is before initialization
void on_filterIF_currentIndexChanged(int index)
qint64 getCenterFrequency() const
EngineState state() const
Return the state of the device engine corresponding to the stream type.
uint16_t getReverseAPIPort() const
FCDProPlusGui(DeviceUISet *deviceUISet, QWidget *parent=0)
virtual bool handleMessage(const Message &message)
static int fcdproplus_if_filter_nb_values()
static bool match(const Message *message)
FCDProPlusSettings m_settings
bool deserialize(const QByteArray &data)
void on_startStop_toggled(bool checked)
bool deserialize(const QByteArray &data)
void setName(const QString &name)
void on_transverter_clicked()
int getSampleRate() const
void setCenterFrequency(qint64 frequency)
void openDeviceSettingsDialog(const QPoint &p)
void setReverseAPIAddress(const QString &address)
DeviceSampleSource * m_sampleSource
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
void updateSampleRateAndFrequency()
void updateFrequencyLimits()
void setReverseAPIPort(uint16_t port)
virtual qint64 getCenterFrequency() const
virtual void setMessageQueueToGUI(MessageQueue *queue)=0
bool useReverseAPI() const
uint16_t m_reverseAPIDeviceIndex
void handleInputMessages()
void on_ppm_valueChanged(int value)
void on_centerFrequency_changed(quint64 value)
void blockApplySettings(bool block)
virtual void setCenterFrequency(qint64 centerFrequency)
uint16_t m_reverseAPIPort