27 #include "ui_localsinkgui.h" 56 (void) centerFrequency;
117 setAttribute(Qt::WA_DeleteOnClose,
true);
119 connect(
this, SIGNAL(customContextMenuRequested(
const QPoint &)),
this, SLOT(
onMenuDialogCalled(
const QPoint &)));
205 ui->offsetFrequencyText->setText(tr(
"%1 Hz").
arg(loc.toString(shift)));
206 ui->channelRateText->setText(tr(
"%1k").
arg(QString::number(channelSampleRate / 1000.0,
'g', 5)));
213 std::vector<uint32_t> localDevicesIndexes;
215 ui->localDevice->clear();
216 std::vector<uint32_t>::const_iterator it = localDevicesIndexes.begin();
218 for (; it != localDevicesIndexes.end(); ++it) {
219 ui->localDevice->addItem(tr(
"%1").
arg(*it), QVariant(*it));
315 ui->position->setMaximum(maxHash-1);
326 ui->filterChainText->setText(s);
void on_decimationFactor_currentIndexChanged(int index)
void on_position_valueChanged(int value)
const QString & getReverseAPIAddress() const
QByteArray serialize() const
void push(Message *message, bool emitSignal=true)
Push message onto queue.
void setChannelMarker(Serializable *channelMarker)
QByteArray serialize() const
MessageQueue * getInputMessageQueue()
Get the queue for asynchronous inbound communication.
virtual bool handleMessage(const Message &message)
virtual MessageQueue * getInputMessageQueue()
static LocalSinkGUI * create(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel)
void leaveEvent(QEvent *)
void applyChannelSettings()
bool deserialize(const QByteArray &data)
void setReverseAPIChannelIndex(uint16_t channelIndex)
void setName(const QString &name)
uint16_t getReverseAPIPort() const
void addChannelMarker(ChannelMarker *channelMarker)
Add channel marker to spectrum.
void blockApplySettings(bool block)
double m_shiftFrequencyFactor
Channel frequency shift factor.
virtual qint64 getCenterFrequency() const
Fixed< IntType, IntBits > arg(const std::complex< Fixed< IntType, IntBits > > &val)
LocalSinkGUI(PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSink *rxChannel, QWidget *parent=0)
void setReverseAPIDeviceIndex(uint16_t deviceIndex)
uint16_t getReverseAPIDeviceIndex() const
uint16_t m_reverseAPIChannelIndex
void on_localDevicesRefresh_clicked(bool checked)
static double convertToString(unsigned int log2, unsigned int chainHash, QString &chainString)
void updateLocalDevices()
virtual void setMessageQueueToGUI(MessageQueue *queue)
void on_localDevice_currentIndexChanged(int index)
void onMenuDialogCalled(const QPoint &p)
bool deserialize(const QByteArray &data)
void setMovable(bool movable)
ChannelMarker m_channelMarker
uint16_t m_reverseAPIPort
void setHighlighted(bool highlighted)
void registerRxChannelInstance(const QString &channelName, PluginInstanceGUI *pluginGUI)
virtual void setCenterFrequency(qint64 centerFrequency)
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)
DeviceUISet * m_deviceUISet
uint16_t m_reverseAPIDeviceIndex
void displayRateAndShift()
void applySettings(bool force=false)
QString m_reverseAPIAddress
void onWidgetRolled(QWidget *widget, bool rollDown)
LocalSinkSettings m_settings
void setReverseAPIAddress(const QString &address)
void setColor(const QColor &color)
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)
void enterEvent(QEvent *)
int getSampleRate() const
uint32_t m_localDeviceIndex
void setCenterFrequency(int centerFrequency)
static const QString m_channelIdURI
uint32_t m_filterChainHash
void setUseReverseAPI(bool useReverseAPI)
void getLocalDevices(std::vector< uint32_t > &indexes)
void handleSourceMessages()