SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <filesourcegui.h>
Public Slots | |
void | channelMarkerChangedByCursor () |
Public Member Functions | |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
void | resetToDefaults () |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
Public Member Functions inherited from RollupWidget | |
RollupWidget (QWidget *parent=NULL) | |
void | setTitleColor (const QColor &c) |
void | setHighlighted (bool highlighted) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Static Public Member Functions | |
static FileSourceGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx) |
Private Slots | |
void | handleSourceMessages () |
void | onWidgetRolled (QWidget *widget, bool rollDown) |
void | onMenuDialogCalled (const QPoint &p) |
void | on_interpolationFactor_currentIndexChanged (int index) |
void | on_position_valueChanged (int value) |
void | on_gain_valueChanged (int value) |
void | on_showFileDialog_clicked (bool checked) |
void | on_playLoop_toggled (bool checked) |
void | on_play_toggled (bool checked) |
void | on_navTime_valueChanged (int value) |
void | tick () |
Private Member Functions | |
FileSourceGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget *parent=nullptr) | |
virtual | ~FileSourceGUI () |
void | blockApplySettings (bool block) |
void | applySettings (bool force=false) |
void | applyChannelSettings () |
void | configureFileName () |
void | updateWithAcquisition () |
void | updateWithStreamData () |
void | updateWithStreamTime () |
void | displaySettings () |
void | displayRateAndShift () |
void | leaveEvent (QEvent *) |
void | enterEvent (QEvent *) |
void | applyInterpolation () |
void | applyPosition () |
Private Attributes | |
Ui::FileSourceGUI * | ui |
PluginAPI * | m_pluginAPI |
DeviceUISet * | m_deviceUISet |
ChannelMarker | m_channelMarker |
FileSourceSettings | m_settings |
int | m_sampleRate |
double | m_shiftFrequencyFactor |
Channel frequency shift factor. More... | |
QString | m_fileName |
int | m_fileSampleRate |
quint32 | m_fileSampleSize |
quint64 | m_recordLength |
quint64 | m_startingTimeStamp |
quint64 | m_samplesCount |
bool | m_acquisition |
bool | m_enableNavTime |
bool | m_doApplySettings |
FileSource * | m_fileSource |
MessageQueue | m_inputMessageQueue |
QTime | m_time |
uint32_t | m_tickCount |
Additional Inherited Members | |
Signals inherited from RollupWidget | |
void | widgetRolled (QWidget *widget, bool rollDown) |
Protected Types inherited from RollupWidget | |
enum | { VersionMarker = 0xff } |
enum | ContextMenuType { ContextMenuNone, ContextMenuChannelSettings, ContextMenuStreamSettings } |
Protected Member Functions inherited from RollupWidget | |
int | arrangeRollups () |
QByteArray | saveState (int version=0) const |
bool | restoreState (const QByteArray &state, int version=0) |
void | paintEvent (QPaintEvent *) |
int | paintRollup (QWidget *rollup, int pos, QPainter *p, bool last, const QColor &frame) |
void | resizeEvent (QResizeEvent *size) |
void | mousePressEvent (QMouseEvent *event) |
bool | event (QEvent *event) |
bool | eventFilter (QObject *object, QEvent *event) |
void | resetContextMenuType () |
void | setStreamIndicator (const QString &indicator) |
Protected Attributes inherited from RollupWidget | |
QColor | m_titleColor |
QColor | m_titleTextColor |
bool | m_highlighted |
ContextMenuType | m_contextMenuType |
QString | m_streamIndicator |
Definition at line 39 of file filesourcegui.h.
|
explicitprivate |
Definition at line 156 of file filesourcegui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applySettings(), channelMarkerChangedByCursor(), LevelMeterSignalDB::ColorGreenAndBlue, displaySettings(), getInputMessageQueue(), DeviceAPI::getMasterTimer(), handleSourceMessages(), FileSource::m_channelIdURI, m_channelMarker, DeviceUISet::m_deviceAPI, m_deviceUISet, m_fileSource, FileSourceSettings::m_rgbColor, m_settings, m_time, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerTxChannelInstance(), ChannelMarker::setCenterFrequency(), FileSourceSettings::setChannelMarker(), ChannelMarker::setColor(), BasebandSampleSource::setMessageQueueToGUI(), ChannelMarker::setMovable(), ChannelMarker::setSourceOrSinkStream(), ChannelMarker::setTitle(), ChannelMarker::setVisible(), tick(), ui, and RollupWidget::widgetRolled().
Referenced by create().
|
privatevirtual |
Definition at line 211 of file filesourcegui.cpp.
References m_deviceUISet, m_fileSource, DeviceUISet::removeTxChannelInstance(), and ui.
|
private |
Definition at line 234 of file filesourcegui.cpp.
References FileSource::MsgConfigureChannelizer::create(), BasebandSampleSource::getInputMessageQueue(), m_doApplySettings, m_fileSource, FileSourceSettings::m_filterChainHash, FileSourceSettings::m_log2Interp, m_settings, and MessageQueue::push().
Referenced by applyPosition().
|
private |
Definition at line 454 of file filesourcegui.cpp.
References applyPosition(), i, FileSourceSettings::m_filterChainHash, FileSourceSettings::m_log2Interp, m_settings, and ui.
Referenced by displaySettings(), and on_interpolationFactor_currentIndexChanged().
|
private |
Definition at line 468 of file filesourcegui.cpp.
References applyChannelSettings(), arg(), HBFilterChainConverter::convertToString(), displayRateAndShift(), FileSourceSettings::m_filterChainHash, FileSourceSettings::m_log2Interp, m_settings, m_shiftFrequencyFactor, and ui.
Referenced by applyInterpolation(), and on_position_valueChanged().
|
private |
Definition at line 223 of file filesourcegui.cpp.
References FileSource::MsgConfigureFileSource::create(), ChannelMarker::getColor(), BasebandSampleSource::getInputMessageQueue(), m_channelMarker, m_doApplySettings, m_fileSource, m_settings, MessageQueue::push(), and RollupWidget::setTitleColor().
Referenced by deserialize(), FileSourceGUI(), on_gain_valueChanged(), onMenuDialogCalled(), and resetToDefaults().
|
private |
Definition at line 218 of file filesourcegui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
|
slot |
Definition at line 504 of file filesourcegui.cpp.
Referenced by FileSourceGUI().
|
private |
Definition at line 245 of file filesourcegui.cpp.
References FileSource::MsgConfigureFileSourceName::create(), BasebandSampleSource::getInputMessageQueue(), m_fileName, m_fileSource, and MessageQueue::push().
Referenced by on_showFileDialog_clicked().
|
static |
Definition at line 35 of file filesourcegui.cpp.
References FileSourceGUI().
Referenced by FileSourcePlugin::createTxChannelGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 77 of file filesourcegui.cpp.
References applySettings(), FileSourceSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 41 of file filesourcegui.cpp.
|
private |
Definition at line 322 of file filesourcegui.cpp.
References arg(), m_channelMarker, FileSourceSettings::m_log2Interp, m_sampleRate, m_settings, m_shiftFrequencyFactor, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), and ui.
Referenced by applyPosition(), and handleMessage().
|
private |
Definition at line 302 of file filesourcegui.cpp.
References applyInterpolation(), arg(), blockApplySettings(), ChannelMarker::getTitle(), m_channelMarker, FileSourceSettings::m_gainDB, FileSourceSettings::m_log2Interp, FileSourceSettings::m_rgbColor, m_sampleRate, m_settings, FileSourceSettings::m_title, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), and ui.
Referenced by deserialize(), FileSourceGUI(), handleMessage(), and resetToDefaults().
|
private |
Definition at line 338 of file filesourcegui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 56 of file filesourcegui.cpp.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 54 of file filesourcegui.h.
Referenced by FileSourceGUI(), and handleSourceMessages().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 51 of file filesourcegui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 89 of file filesourcegui.cpp.
References blockApplySettings(), displayRateAndShift(), displaySettings(), FileSource::MsgPlayPause::getPlayPause(), FileSource::MsgSampleRateNotification::getSampleRate(), FileSource::MsgConfigureFileSource::getSettings(), FileSource::MsgReportHeaderCRC::isOK(), m_acquisition, m_enableNavTime, m_fileSampleRate, m_fileSampleSize, m_recordLength, m_sampleRate, m_samplesCount, m_settings, m_startingTimeStamp, Message::match(), ui, updateWithAcquisition(), updateWithStreamData(), and updateWithStreamTime().
Referenced by handleSourceMessages().
|
privateslot |
Definition at line 343 of file filesourcegui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by FileSourceGUI().
|
private |
Definition at line 333 of file filesourcegui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
privateslot |
Definition at line 405 of file filesourcegui.cpp.
References applySettings(), arg(), FileSourceSettings::m_gainDB, m_settings, and ui.
|
privateslot |
Definition at line 393 of file filesourcegui.cpp.
References applyInterpolation(), FileSourceSettings::m_log2Interp, and m_settings.
|
privateslot |
Definition at line 445 of file filesourcegui.cpp.
References FileSource::MsgConfigureFileSourceSeek::create(), BasebandSampleSource::getInputMessageQueue(), m_enableNavTime, m_fileSource, and MessageQueue::push().
|
privateslot |
Definition at line 437 of file filesourcegui.cpp.
References FileSource::MsgConfigureFileSourceWork::create(), BasebandSampleSource::getInputMessageQueue(), m_enableNavTime, m_fileSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 427 of file filesourcegui.cpp.
References FileSource::MsgConfigureFileSource::create(), BasebandSampleSource::getInputMessageQueue(), m_doApplySettings, m_fileSource, FileSourceSettings::m_loop, m_settings, and MessageQueue::push().
|
privateslot |
Definition at line 399 of file filesourcegui.cpp.
References applyPosition(), FileSourceSettings::m_filterChainHash, and m_settings.
|
privateslot |
Definition at line 412 of file filesourcegui.cpp.
References configureFileName(), m_fileName, and ui.
|
privateslot |
Definition at line 362 of file filesourcegui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, FileSourceSettings::m_reverseAPIAddress, FileSourceSettings::m_reverseAPIChannelIndex, FileSourceSettings::m_reverseAPIDeviceIndex, FileSourceSettings::m_reverseAPIPort, FileSourceSettings::m_rgbColor, m_settings, FileSourceSettings::m_title, FileSourceSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by FileSourceGUI().
|
privateslot |
Definition at line 356 of file filesourcegui.cpp.
Referenced by FileSourceGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 65 of file filesourcegui.cpp.
References applySettings(), displaySettings(), m_settings, and FileSourceSettings::resetToDefaults().
Referenced by deserialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 72 of file filesourcegui.cpp.
References m_settings, and FileSourceSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 60 of file filesourcegui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 46 of file filesourcegui.cpp.
|
privateslot |
Definition at line 479 of file filesourcegui.cpp.
References FileSource::MsgConfigureFileSourceStreamTiming::create(), CalcDb::dbPower(), BasebandSampleSource::getInputMessageQueue(), FileSource::getMagSqLevels(), m_fileSource, m_tickCount, MessageQueue::push(), and ui.
Referenced by FileSourceGUI().
|
private |
Definition at line 252 of file filesourcegui.cpp.
References m_acquisition, and ui.
Referenced by handleMessage().
|
private |
Definition at line 260 of file filesourcegui.cpp.
References arg(), m_fileSampleRate, m_fileSampleSize, m_recordLength, ui, and updateWithStreamTime().
Referenced by handleMessage().
|
private |
Definition at line 271 of file filesourcegui.cpp.
References m_enableNavTime, m_fileSampleRate, m_recordLength, m_samplesCount, m_startingTimeStamp, and ui.
Referenced by handleMessage(), and updateWithStreamData().
|
private |
Definition at line 74 of file filesourcegui.h.
Referenced by handleMessage(), and updateWithAcquisition().
|
private |
Definition at line 64 of file filesourcegui.h.
Referenced by applySettings(), displayRateAndShift(), displaySettings(), enterEvent(), FileSourceGUI(), leaveEvent(), and onMenuDialogCalled().
|
private |
Definition at line 63 of file filesourcegui.h.
Referenced by FileSourceGUI(), and ~FileSourceGUI().
|
private |
Definition at line 76 of file filesourcegui.h.
Referenced by applyChannelSettings(), applySettings(), blockApplySettings(), and on_playLoop_toggled().
|
private |
Definition at line 75 of file filesourcegui.h.
Referenced by handleMessage(), on_navTime_valueChanged(), on_play_toggled(), and updateWithStreamTime().
|
private |
Definition at line 68 of file filesourcegui.h.
Referenced by configureFileName(), and on_showFileDialog_clicked().
|
private |
Definition at line 69 of file filesourcegui.h.
Referenced by handleMessage(), updateWithStreamData(), and updateWithStreamTime().
|
private |
Definition at line 70 of file filesourcegui.h.
Referenced by handleMessage(), and updateWithStreamData().
|
private |
Definition at line 78 of file filesourcegui.h.
Referenced by applyChannelSettings(), applySettings(), configureFileName(), FileSourceGUI(), on_navTime_valueChanged(), on_play_toggled(), on_playLoop_toggled(), tick(), and ~FileSourceGUI().
|
private |
Definition at line 79 of file filesourcegui.h.
|
private |
Definition at line 62 of file filesourcegui.h.
|
private |
Definition at line 71 of file filesourcegui.h.
Referenced by handleMessage(), updateWithStreamData(), and updateWithStreamTime().
|
private |
Definition at line 66 of file filesourcegui.h.
Referenced by displayRateAndShift(), displaySettings(), and handleMessage().
|
private |
Definition at line 73 of file filesourcegui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 65 of file filesourcegui.h.
Referenced by applyChannelSettings(), applyInterpolation(), applyPosition(), applySettings(), deserialize(), displayRateAndShift(), displaySettings(), FileSourceGUI(), handleMessage(), on_gain_valueChanged(), on_interpolationFactor_currentIndexChanged(), on_playLoop_toggled(), on_position_valueChanged(), onMenuDialogCalled(), resetToDefaults(), and serialize().
|
private |
Channel frequency shift factor.
Definition at line 67 of file filesourcegui.h.
Referenced by applyPosition(), and displayRateAndShift().
|
private |
Definition at line 72 of file filesourcegui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 82 of file filesourcegui.h.
Referenced by tick().
|
private |
Definition at line 81 of file filesourcegui.h.
Referenced by FileSourceGUI().
|
private |
Definition at line 61 of file filesourcegui.h.
Referenced by applyInterpolation(), applyPosition(), displayRateAndShift(), displaySettings(), FileSourceGUI(), handleMessage(), on_gain_valueChanged(), on_play_toggled(), on_showFileDialog_clicked(), tick(), updateWithAcquisition(), updateWithStreamData(), updateWithStreamTime(), and ~FileSourceGUI().