27 #include "ui_remotesinkgui.h" 56 (void) centerFrequency;
118 setAttribute(Qt::WA_DeleteOnClose,
true);
120 connect(
this, SIGNAL(customContextMenuRequested(
const QPoint &)),
this, SLOT(
onMenuDialogCalled(
const QPoint &)));
200 ui->nominalNbBlocksText->setText(tr(
"%1/%2").
arg(s).
arg(s1));
213 ui->offsetFrequencyText->setText(tr(
"%1 Hz").
arg(loc.toString(shift)));
214 ui->channelRateText->setText(tr(
"%1k").
arg(QString::number(channelSampleRate / 1000.0,
'g', 5)));
300 int dataPort =
ui->dataPort->text().toInt(&dataOk);
302 if((!dataOk) || (dataPort < 1024) || (dataPort > 65535))
320 int udpDataPort =
ui->dataPort->text().toInt(&dataOk);
322 if((dataOk) && (udpDataPort >= 1024) && (udpDataPort < 65535))
333 ui->txDelayText->setText(tr(
"%1%").
arg(value));
341 int nbOriginalBlocks = 128;
342 int nbFECBlocks = value;
343 QString s = QString::number(nbOriginalBlocks + nbFECBlocks,
'f', 0);
344 QString s1 = QString::number(nbFECBlocks,
'f', 0);
345 ui->nominalNbBlocksText->setText(tr(
"%1/%2").
arg(s).
arg(s1));
353 int samplesPerBlock = RemoteNbBytesPerBlock /
sizeof(
Sample);
356 ui->txDelayTime->setText(tr(
"%1µs").
arg(QString::number(delay*1e6,
'f', 0)));
367 ui->position->setMaximum(maxHash-1);
378 ui->filterChainText->setText(s);
QByteArray serialize() const
const QString & getReverseAPIAddress() const
void handleSourceMessages()
void push(Message *message, bool emitSignal=true)
Push message onto queue.
uint16_t m_reverseAPIDeviceIndex
void applyChannelSettings()
int getSampleRate() const
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
uint32_t m_filterChainHash
bool deserialize(const QByteArray &data)
virtual MessageQueue * getInputMessageQueue()
RemoteSinkSettings m_settings
virtual void setCenterFrequency(qint64 centerFrequency)
void applySettings(bool force=false)
void leaveEvent(QEvent *)
void setReverseAPIChannelIndex(uint16_t channelIndex)
uint16_t getReverseAPIPort() const
void addChannelMarker(ChannelMarker *channelMarker)
Add channel marker to spectrum.
ChannelMarker m_channelMarker
static RemoteSinkGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
DeviceUISet * m_deviceUISet
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
void onMenuDialogCalled(const QPoint &p)
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
uint16_t getReverseAPIDeviceIndex() const
void enterEvent(QEvent *)
RemoteSink * m_remoteSink
uint16_t m_reverseAPIChannelIndex
virtual bool handleMessage(const Message &message)
void on_dataAddress_returnPressed()
static double convertToString(unsigned int log2, unsigned int chainHash, QString &chainString)
double m_shiftFrequencyFactor
Channel frequency shift factor.
static const QString m_channelIdURI
virtual void setMessageQueueToGUI(MessageQueue *queue)
virtual qint64 getCenterFrequency() const
void setMovable(bool movable)
RemoteSinkGUI(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0)
void setHighlighted(bool highlighted)
void displayRateAndShift()
void setName(const QString &name)
void on_decimationFactor_currentIndexChanged(int index)
void registerRxChannelInstance(const QString &channelName, PluginInstanceGUI *pluginGUI)
void addRollupWidget(QWidget *widget)
Add rollup widget to channel window.
void removeRxChannelInstance(PluginInstanceGUI *pluginGUI)
const QString & getTitle() const
bool useReverseAPI() const
static bool match(const Message *message)
void on_txDelay_valueChanged(int value)
void on_nbFECBlocks_valueChanged(int value)
void on_dataPort_returnPressed()
QByteArray serialize() const
void setReverseAPIAddress(const QString &address)
void setColor(const QColor &color)
void onWidgetRolled(QWidget *widget, bool rollDown)
void blockApplySettings(bool block)
void setVisible(bool visible)
void setReverseAPIPort(uint16_t port)
uint16_t getReverseAPIChannelIndex() const
void setBandwidth(int bandwidth)
const QColor & getColor() const
void setTitle(const QString &title)
QString m_reverseAPIAddress
void setCenterFrequency(int centerFrequency)
void on_dataApplyButton_clicked(bool checked)
void setChannelMarker(Serializable *channelMarker)
bool deserialize(const QByteArray &data)
uint16_t m_reverseAPIPort
void on_position_valueChanged(int value)
void setUseReverseAPI(bool useReverseAPI)