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 <freedvmodgui.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 FreeDVModGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx) |
Private Slots | |
void | handleSourceMessages () |
void | on_deltaFrequency_changed (qint64 value) |
void | on_spanLog2_valueChanged (int value) |
void | on_gaugeInput_toggled (bool checked) |
void | on_volume_valueChanged (int value) |
void | on_audioMute_toggled (bool checked) |
void | on_freeDVMode_currentIndexChanged (int index) |
void | on_tone_toggled (bool checked) |
void | on_toneFrequency_valueChanged (int value) |
void | on_mic_toggled (bool checked) |
void | on_play_toggled (bool checked) |
void | on_playLoop_toggled (bool checked) |
void | on_morseKeyer_toggled (bool checked) |
void | on_navTimeSlider_valueChanged (int value) |
void | on_showFileDialog_clicked (bool checked) |
void | onWidgetRolled (QWidget *widget, bool rollDown) |
void | onMenuDialogCalled (const QPoint &p) |
void | configureFileName () |
void | audioSelect () |
void | tick () |
Private Member Functions | |
FreeDVModGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget *parent=0) | |
virtual | ~FreeDVModGUI () |
bool | blockApplySettings (bool block) |
void | applySettings (bool force=false) |
void | applyBandwidths (int spanLog2, bool force=false) |
void | displayBandwidths (int spanLog2) |
void | displaySettings () |
void | updateWithStreamData () |
void | updateWithStreamTime () |
void | channelMarkerUpdate () |
void | leaveEvent (QEvent *) |
void | enterEvent (QEvent *) |
Private Attributes | |
Ui::FreeDVModGUI * | ui |
PluginAPI * | m_pluginAPI |
DeviceUISet * | m_deviceUISet |
ChannelMarker | m_channelMarker |
FreeDVModSettings | m_settings |
bool | m_doApplySettings |
int | m_spectrumRate |
SpectrumVis * | m_spectrumVis |
FreeDVMod * | m_freeDVMod |
MovingAverageUtil< double, double, 20 > | m_channelPowerDbAvg |
QString | m_fileName |
quint32 | m_recordLength |
int | m_recordSampleRate |
int | m_samplesCount |
std::size_t | m_tickCount |
bool | m_enableNavTime |
MessageQueue | m_inputMessageQueue |
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 41 of file freedvmodgui.h.
|
explicitprivate |
Definition at line 337 of file freedvmodgui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applyBandwidths(), arg(), audioSelect(), channelMarkerChangedByCursor(), displaySettings(), FreeDVMod::getCWKeyer(), getInputMessageQueue(), BasebandSampleSink::getInputMessageQueue(), MainWindow::getInstance(), ColorMapper::GrayGold, handleSourceMessages(), FreeDVMod::m_channelIdURI, m_channelMarker, m_deviceUISet, m_freeDVMod, m_settings, m_spectrumRate, m_spectrumVis, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerTxChannelInstance(), resetToDefaults(), SDR_TX_SCALEF, FreeDVModSettings::setChannelMarker(), FreeDVModSettings::setCWKeyerGUI(), BasebandSampleSource::setMessageQueueToGUI(), ChannelMarker::setSourceOrSinkStream(), FreeDVModSettings::setSpectrumGUI(), FreeDVMod::setSpectrumSampleSink(), ChannelMarker::setVisible(), tick(), ui, and RollupWidget::widgetRolled().
Referenced by create().
|
privatevirtual |
Definition at line 402 of file freedvmodgui.cpp.
References m_deviceUISet, m_freeDVMod, m_spectrumVis, DeviceUISet::removeTxChannelInstance(), and ui.
|
private |
Definition at line 430 of file freedvmodgui.cpp.
References applySettings(), displayBandwidths(), m_settings, and FreeDVModSettings::m_spanLog2.
Referenced by deserialize(), FreeDVModGUI(), handleMessage(), and on_spanLog2_valueChanged().
|
private |
Definition at line 417 of file freedvmodgui.cpp.
References FreeDVMod::MsgConfigureFreeDVMod::create(), FreeDVMod::MsgConfigureChannelizer::create(), BasebandSampleSource::getInputMessageQueue(), m_doApplySettings, m_freeDVMod, FreeDVModSettings::m_inputFrequencyOffset, m_settings, and MessageQueue::push().
Referenced by applyBandwidths(), audioSelect(), channelMarkerChangedByCursor(), channelMarkerUpdate(), on_audioMute_toggled(), on_deltaFrequency_changed(), on_freeDVMode_currentIndexChanged(), on_gaugeInput_toggled(), on_mic_toggled(), on_morseKeyer_toggled(), on_play_toggled(), on_playLoop_toggled(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), and setCenterFrequency().
|
privateslot |
Definition at line 522 of file freedvmodgui.cpp.
References applySettings(), DSPEngine::instance(), AudioSelectDialog::m_audioDeviceName, FreeDVModSettings::m_audioDeviceName, AudioSelectDialog::m_selected, and m_settings.
Referenced by FreeDVModGUI().
|
private |
Definition at line 410 of file freedvmodgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
|
slot |
Definition at line 143 of file freedvmodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, FreeDVModSettings::m_inputFrequencyOffset, m_settings, and ui.
Referenced by FreeDVModGUI().
|
private |
Definition at line 150 of file freedvmodgui.cpp.
References applySettings(), displaySettings(), ChannelMarker::getColor(), m_channelMarker, FreeDVModSettings::m_rgbColor, and m_settings.
|
privateslot |
Definition at line 292 of file freedvmodgui.cpp.
References FreeDVMod::MsgConfigureFileSourceName::create(), BasebandSampleSource::getInputMessageQueue(), m_fileName, m_freeDVMod, and MessageQueue::push().
Referenced by on_showFileDialog_clicked().
|
static |
Definition at line 39 of file freedvmodgui.cpp.
References FreeDVModGUI().
Referenced by FreeDVModPlugin::createTxChannelGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 81 of file freedvmodgui.cpp.
References applyBandwidths(), FreeDVModSettings::deserialize(), displaySettings(), m_settings, FreeDVModSettings::resetToDefaults(), and ui.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 45 of file freedvmodgui.cpp.
|
private |
Definition at line 437 of file freedvmodgui.cpp.
References arg(), FreeDVMod::getModemSampleRate(), m_freeDVMod, m_spectrumRate, and ui.
Referenced by applyBandwidths(), and displaySettings().
|
private |
Definition at line 456 of file freedvmodgui.cpp.
References arg(), blockApplySettings(), displayBandwidths(), FreeDVModSettings::getHiCutoff(), FreeDVModSettings::getLowCutoff(), ChannelMarker::getTitle(), FreeDVModSettings::m_audioMute, m_channelMarker, FreeDVModSettings::m_freeDVMode, FreeDVModSettings::m_gaugeInputElseModem, FreeDVModSettings::m_inputFrequencyOffset, FreeDVModSettings::m_modAFInput, FreeDVModSettings::m_playLoop, FreeDVModSettings::m_rgbColor, m_settings, FreeDVModSettings::m_spanLog2, FreeDVModSettings::m_title, FreeDVModSettings::m_toneFrequency, FreeDVModSettings::m_volumeFactor, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), ChannelMarker::setLowCutoff(), ChannelMarker::setSidebands(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), ui, and ChannelMarker::usb.
Referenced by channelMarkerUpdate(), deserialize(), FreeDVModGUI(), and handleMessage().
|
private |
Definition at line 517 of file freedvmodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 60 of file freedvmodgui.cpp.
References ChannelMarker::getCenterFrequency(), and m_channelMarker.
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 56 of file freedvmodgui.h.
Referenced by FreeDVModGUI(), and handleSourceMessages().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 55 of file freedvmodgui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 99 of file freedvmodgui.cpp.
References applyBandwidths(), blockApplySettings(), displaySettings(), FreeDVMod::getModemSampleRate(), FreeDVMod::MsgConfigureFreeDVMod::getSettings(), CWKeyer::MsgConfigureCWKeyer::getSettings(), m_freeDVMod, m_recordLength, m_recordSampleRate, m_samplesCount, m_settings, Message::match(), ui, updateWithStreamData(), and updateWithStreamTime().
Referenced by handleSourceMessages().
|
privateslot |
Definition at line 157 of file freedvmodgui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by FreeDVModGUI().
|
private |
Definition at line 512 of file freedvmodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
|
privateslot |
Definition at line 206 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::m_audioMute, and m_settings.
|
privateslot |
Definition at line 170 of file freedvmodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, FreeDVModSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
|
privateslot |
Definition at line 212 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::getHiCutoff(), FreeDVModSettings::getLowCutoff(), m_channelMarker, FreeDVModSettings::m_freeDVMode, m_settings, ChannelMarker::setBandwidth(), and ChannelMarker::setLowCutoff().
|
privateslot |
Definition at line 186 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::m_gaugeInputElseModem, and m_settings.
|
privateslot |
Definition at line 255 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::FreeDVModInputAudio, FreeDVModSettings::FreeDVModInputNone, FreeDVModSettings::m_modAFInput, m_settings, and ui.
|
privateslot |
Definition at line 246 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::FreeDVModInputCWTone, FreeDVModSettings::FreeDVModInputNone, FreeDVModSettings::m_modAFInput, m_settings, and ui.
|
privateslot |
Definition at line 264 of file freedvmodgui.cpp.
References FreeDVMod::MsgConfigureFileSourceSeek::create(), BasebandSampleSource::getInputMessageQueue(), m_enableNavTime, m_freeDVMod, m_recordLength, and MessageQueue::push().
|
privateslot |
Definition at line 226 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::FreeDVModInputFile, FreeDVModSettings::FreeDVModInputNone, m_enableNavTime, FreeDVModSettings::m_modAFInput, m_settings, and ui.
|
privateslot |
Definition at line 220 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::m_playLoop, and m_settings.
|
privateslot |
Definition at line 277 of file freedvmodgui.cpp.
References configureFileName(), m_fileName, and ui.
|
privateslot |
Definition at line 177 of file freedvmodgui.cpp.
References applyBandwidths().
|
privateslot |
Definition at line 237 of file freedvmodgui.cpp.
References applySettings(), FreeDVModSettings::FreeDVModInputNone, FreeDVModSettings::FreeDVModInputTone, FreeDVModSettings::m_modAFInput, m_settings, and ui.
|
privateslot |
Definition at line 192 of file freedvmodgui.cpp.
References applySettings(), arg(), m_settings, FreeDVModSettings::m_toneFrequency, and ui.
|
privateslot |
Definition at line 199 of file freedvmodgui.cpp.
References applySettings(), arg(), m_settings, FreeDVModSettings::m_volumeFactor, and ui.
|
privateslot |
Definition at line 305 of file freedvmodgui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, FreeDVModSettings::m_inputFrequencyOffset, FreeDVModSettings::m_reverseAPIAddress, FreeDVModSettings::m_reverseAPIChannelIndex, FreeDVModSettings::m_reverseAPIDeviceIndex, FreeDVModSettings::m_reverseAPIPort, FreeDVModSettings::m_rgbColor, m_settings, FreeDVModSettings::m_title, FreeDVModSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by FreeDVModGUI().
|
privateslot |
Definition at line 299 of file freedvmodgui.cpp.
Referenced by FreeDVModGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 71 of file freedvmodgui.cpp.
References m_settings, and FreeDVModSettings::resetToDefaults().
Referenced by FreeDVModGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 76 of file freedvmodgui.cpp.
References m_settings, and FreeDVModSettings::serialize().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 64 of file freedvmodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, FreeDVModSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 50 of file freedvmodgui.cpp.
|
privateslot |
Definition at line 535 of file freedvmodgui.cpp.
References arg(), FreeDVMod::MsgConfigureFileSourceStreamTiming::create(), CalcDb::dbPower(), FreeDVModSettings::FreeDVModInputFile, BasebandSampleSource::getInputMessageQueue(), FreeDVMod::getMagSq(), m_channelPowerDbAvg, m_freeDVMod, FreeDVModSettings::m_modAFInput, m_settings, m_tickCount, MessageQueue::push(), and ui.
Referenced by FreeDVModGUI().
|
private |
Definition at line 548 of file freedvmodgui.cpp.
References m_recordLength, ui, and updateWithStreamTime().
Referenced by handleMessage().
|
private |
Definition at line 557 of file freedvmodgui.cpp.
References m_enableNavTime, m_recordLength, m_recordSampleRate, m_samplesCount, and ui.
Referenced by handleMessage(), and updateWithStreamData().
|
private |
Definition at line 66 of file freedvmodgui.h.
Referenced by channelMarkerChangedByCursor(), channelMarkerUpdate(), displaySettings(), enterEvent(), FreeDVModGUI(), getCenterFrequency(), leaveEvent(), on_deltaFrequency_changed(), on_freeDVMode_currentIndexChanged(), onMenuDialogCalled(), and setCenterFrequency().
|
private |
Definition at line 73 of file freedvmodgui.h.
Referenced by tick().
|
private |
Definition at line 65 of file freedvmodgui.h.
Referenced by FreeDVModGUI(), and ~FreeDVModGUI().
|
private |
Definition at line 68 of file freedvmodgui.h.
Referenced by applySettings(), and blockApplySettings().
|
private |
Definition at line 80 of file freedvmodgui.h.
Referenced by on_navTimeSlider_valueChanged(), on_play_toggled(), and updateWithStreamTime().
|
private |
Definition at line 75 of file freedvmodgui.h.
Referenced by configureFileName(), and on_showFileDialog_clicked().
|
private |
Definition at line 72 of file freedvmodgui.h.
Referenced by applySettings(), configureFileName(), displayBandwidths(), FreeDVModGUI(), handleMessage(), on_navTimeSlider_valueChanged(), tick(), and ~FreeDVModGUI().
|
private |
Definition at line 81 of file freedvmodgui.h.
|
private |
Definition at line 64 of file freedvmodgui.h.
|
private |
Definition at line 76 of file freedvmodgui.h.
Referenced by handleMessage(), on_navTimeSlider_valueChanged(), updateWithStreamData(), and updateWithStreamTime().
|
private |
Definition at line 77 of file freedvmodgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 78 of file freedvmodgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 67 of file freedvmodgui.h.
Referenced by applyBandwidths(), applySettings(), audioSelect(), channelMarkerChangedByCursor(), channelMarkerUpdate(), deserialize(), displaySettings(), FreeDVModGUI(), handleMessage(), on_audioMute_toggled(), on_deltaFrequency_changed(), on_freeDVMode_currentIndexChanged(), on_gaugeInput_toggled(), on_mic_toggled(), on_morseKeyer_toggled(), on_play_toggled(), on_playLoop_toggled(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), serialize(), setCenterFrequency(), and tick().
|
private |
Definition at line 69 of file freedvmodgui.h.
Referenced by displayBandwidths(), and FreeDVModGUI().
|
private |
Definition at line 71 of file freedvmodgui.h.
Referenced by FreeDVModGUI(), and ~FreeDVModGUI().
|
private |
Definition at line 79 of file freedvmodgui.h.
Referenced by tick().
|
private |
Definition at line 63 of file freedvmodgui.h.
Referenced by channelMarkerChangedByCursor(), deserialize(), displayBandwidths(), displaySettings(), FreeDVModGUI(), handleMessage(), on_mic_toggled(), on_morseKeyer_toggled(), on_play_toggled(), on_showFileDialog_clicked(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), tick(), updateWithStreamData(), updateWithStreamTime(), and ~FreeDVModGUI().