24 #include <QMessageBox> 26 #include "ui_kiwisdrgui.h" 45 m_deviceUISet(deviceUISet),
47 m_doApplySettings(true),
48 m_forceSettings(true),
51 m_lastEngineState(
DeviceAPI::StNotStarted)
53 qDebug(
"KiwiSDRGui::KiwiSDRGui");
70 ui->centerFrequency->setValueRange(7, 0, 9999999);
82 connect(startStopRightClickEnabler, SIGNAL(rightClick(
const QPoint &)),
this, SLOT(
openDeviceSettingsDialog(
const QPoint &)));
177 ui->record->setStyleSheet(
"QToolButton { background-color : red; }");
179 ui->record->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
240 ui->startStop->setStyleSheet(
"QToolButton { background:rgb(79,79,79); }");
243 ui->startStop->setStyleSheet(
"QToolButton { background-color : blue; }");
246 ui->startStop->setStyleSheet(
"QToolButton { background-color : green; }");
249 ui->startStop->setStyleSheet(
"QToolButton { background-color : red; }");
264 qDebug(
"KiwiSDRGui::handleMessage: MsgConfigureKiwiSDR");
272 qDebug(
"KiwiSDRGui::handleMessage: MsgStartStop");
282 qDebug(
"KiwiSDRGui::handleMessage: MsgSetStatus");
286 ui->statusIndicator->setStyleSheet(
"QLabel { background-color: " +
307 qDebug(
"KiwiSDRGui::handleInputMessages: DSPSignalNotification: SampleRate:%d, CenterFrequency:%llu",
virtual void setCenterFrequency(qint64 centerFrequency)
Message * pop()
Pop message from queue.
const QString & getReverseAPIAddress() const
void on_gain_valueChanged(int value)
void push(Message *message, bool emitSignal=true)
Push message onto queue.
void setSampleRate(qint32 sampleRate)
bool deserialize(const QByteArray &data)
DeviceSampleSource * getSampleSource()
Return pointer to the device sample source (single Rx) or nullptr.
void setUseReverseAPI(bool useReverseAPI)
QByteArray serialize() const
KiwiSDRSettings m_settings
MessageQueue * getInputMessageQueue()
void updateSampleRateAndFrequency()
void setName(const QString &name)
uint16_t getReverseAPIDeviceIndex() const
void on_record_toggled(bool checked)
QString errorMessage()
Last error message from the device engine.
std::vector< QString > m_statusTooltips
QString m_reverseAPIAddress
void blockApplySettings(bool block)
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
GLSpectrum * getSpectrum()
Direct spectrum getter.
engine is before initialization
qint64 getCenterFrequency() const
EngineState state() const
Return the state of the device engine corresponding to the stream type.
virtual bool handleMessage(const Message &message)
uint16_t getReverseAPIPort() const
DeviceUISet * m_deviceUISet
DeviceSampleSource * m_sampleSource
static bool match(const Message *message)
uint16_t m_reverseAPIDeviceIndex
void on_dcBlock_toggled(bool checked)
void handleInputMessages()
void on_serverAddressApplyButton_clicked()
std::vector< QString > m_statusColors
void on_startStop_toggled(bool checked)
void on_agc_toggled(bool checked)
int getSampleRate() const
bool deserialize(const QByteArray &data)
KiwiSDRGui(DeviceUISet *deviceUISet, QWidget *parent=0)
quint64 m_deviceCenterFrequency
Center frequency in device.
void setCenterFrequency(qint64 frequency)
uint16_t m_reverseAPIPort
void setReverseAPIAddress(const QString &address)
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
quint64 m_centerFrequency
void on_centerFrequency_changed(quint64 value)
void openDeviceSettingsDialog(const QPoint &p)
void setReverseAPIPort(uint16_t port)
virtual void setMessageQueueToGUI(MessageQueue *queue)=0
bool useReverseAPI() const
QByteArray serialize() const
virtual qint64 getCenterFrequency() const
MessageQueue m_inputMessageQueue
void on_serverAddress_returnPressed()