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