![]() |
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 <nfmmodgui.h>
Inheritance diagram for NFMModGUI:
Collaboration diagram for NFMModGUI: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 NFMModGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx) |
Private Slots | |
| void | handleSourceMessages () |
| void | on_deltaFrequency_changed (qint64 value) |
| void | on_rfBW_currentIndexChanged (int index) |
| void | on_afBW_valueChanged (int value) |
| void | on_fmDev_valueChanged (int value) |
| void | on_toneFrequency_valueChanged (int value) |
| void | on_volume_valueChanged (int value) |
| void | on_channelMute_toggled (bool checked) |
| void | on_tone_toggled (bool checked) |
| void | on_morseKeyer_toggled (bool checked) |
| void | on_mic_toggled (bool checked) |
| void | on_play_toggled (bool checked) |
| void | on_playLoop_toggled (bool checked) |
| void | on_navTimeSlider_valueChanged (int value) |
| void | on_showFileDialog_clicked (bool checked) |
| void | on_ctcss_currentIndexChanged (int index) |
| void | on_ctcssOn_toggled (bool checked) |
| void | on_feedbackEnable_toggled (bool checked) |
| void | on_feedbackVolume_valueChanged (int value) |
| void | onWidgetRolled (QWidget *widget, bool rollDown) |
| void | onMenuDialogCalled (const QPoint &p) |
| void | configureFileName () |
| void | audioSelect () |
| void | audioFeedbackSelect () |
| void | tick () |
Private Member Functions | |
| NFMModGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget *parent=0) | |
| virtual | ~NFMModGUI () |
| void | blockApplySettings (bool block) |
| void | applySettings (bool force=false) |
| void | displaySettings () |
| void | updateWithStreamData () |
| void | updateWithStreamTime () |
| void | leaveEvent (QEvent *) |
| void | enterEvent (QEvent *) |
Private Attributes | |
| Ui::NFMModGUI * | ui |
| PluginAPI * | m_pluginAPI |
| DeviceUISet * | m_deviceUISet |
| ChannelMarker | m_channelMarker |
| NFMModSettings | m_settings |
| bool | m_doApplySettings |
| NFMMod * | m_nfmMod |
| 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 |
| NFMModSettings::NFMModInputAF | m_modAFInput |
| 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 38 of file nfmmodgui.h.
|
explicitprivate |
Definition at line 341 of file nfmmodgui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applySettings(), arg(), audioFeedbackSelect(), audioSelect(), blockApplySettings(), channelMarkerChangedByCursor(), displaySettings(), NFMModSettings::getCTCSSFreq(), NFMMod::getCWKeyer(), getInputMessageQueue(), MainWindow::getInstance(), NFMModSettings::getRFBW(), ColorMapper::GrayGold, handleSourceMessages(), i, NFMMod::m_channelIdURI, m_channelMarker, m_deviceUISet, NFMModSettings::m_nbCTCSSFreqs, NFMModSettings::m_nbRfBW, m_nfmMod, m_settings, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerTxChannelInstance(), ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), NFMModSettings::setChannelMarker(), ChannelMarker::setColor(), NFMModSettings::setCWKeyerGUI(), BasebandSampleSource::setMessageQueueToGUI(), ChannelMarker::setSourceOrSinkStream(), ChannelMarker::setTitle(), ChannelMarker::setVisible(), tick(), ui, and RollupWidget::widgetRolled().
Referenced by create().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privatevirtual |
Definition at line 422 of file nfmmodgui.cpp.
References m_deviceUISet, m_nfmMod, DeviceUISet::removeTxChannelInstance(), and ui.
Here is the call graph for this function:
|
private |
Definition at line 434 of file nfmmodgui.cpp.
References NFMMod::MsgConfigureNFMMod::create(), NFMMod::MsgConfigureChannelizer::create(), ChannelMarker::getCenterFrequency(), BasebandSampleSource::getInputMessageQueue(), m_channelMarker, m_doApplySettings, m_nfmMod, m_settings, and MessageQueue::push().
Referenced by audioFeedbackSelect(), audioSelect(), channelMarkerChangedByCursor(), deserialize(), NFMModGUI(), on_afBW_valueChanged(), on_channelMute_toggled(), on_ctcss_currentIndexChanged(), on_ctcssOn_toggled(), on_deltaFrequency_changed(), on_feedbackEnable_toggled(), on_feedbackVolume_valueChanged(), on_fmDev_valueChanged(), on_mic_toggled(), on_morseKeyer_toggled(), on_play_toggled(), on_playLoop_toggled(), on_rfBW_currentIndexChanged(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), and setCenterFrequency().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 524 of file nfmmodgui.cpp.
References applySettings(), audioSelect(), DSPEngine::instance(), AudioSelectDialog::m_audioDeviceName, NFMModSettings::m_audioDeviceName, NFMModSettings::m_feedbackAudioDeviceName, AudioSelectDialog::m_selected, and m_settings.
Referenced by NFMModGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 511 of file nfmmodgui.cpp.
References applySettings(), DSPEngine::instance(), AudioSelectDialog::m_audioDeviceName, NFMModSettings::m_audioDeviceName, AudioSelectDialog::m_selected, and m_settings.
Referenced by audioFeedbackSelect(), and NFMModGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 429 of file nfmmodgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), handleMessage(), and NFMModGUI().
Here is the caller graph for this function:
|
slot |
Definition at line 131 of file nfmmodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, NFMModSettings::m_inputFrequencyOffset, m_settings, and ui.
Referenced by NFMModGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 297 of file nfmmodgui.cpp.
References NFMMod::MsgConfigureFileSourceName::create(), BasebandSampleSource::getInputMessageQueue(), m_fileName, m_nfmMod, and MessageQueue::push().
Referenced by on_showFileDialog_clicked().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 38 of file nfmmodgui.cpp.
References NFMModGUI().
Referenced by NFMModPlugin::createTxChannelGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 81 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 44 of file nfmmodgui.cpp.
|
private |
Definition at line 447 of file nfmmodgui.cpp.
References arg(), blockApplySettings(), ChannelMarker::getCenterFrequency(), NFMModSettings::getRFBWIndex(), ChannelMarker::getTitle(), NFMModSettings::m_afBandwidth, m_channelMarker, NFMModSettings::m_channelMute, NFMModSettings::m_ctcssIndex, NFMModSettings::m_ctcssOn, NFMModSettings::m_feedbackAudioEnable, NFMModSettings::m_feedbackVolumeFactor, NFMModSettings::m_fmDeviation, NFMModSettings::m_inputFrequencyOffset, NFMModSettings::m_modAFInput, NFMModSettings::m_playLoop, NFMModSettings::m_rfBandwidth, NFMModSettings::m_rgbColor, m_settings, NFMModSettings::m_title, NFMModSettings::m_toneFrequency, NFMModSettings::m_volumeFactor, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), and ui.
Referenced by deserialize(), handleMessage(), NFMModGUI(), and resetToDefaults().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 506 of file nfmmodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 59 of file nfmmodgui.cpp.
References ChannelMarker::getCenterFrequency(), and m_channelMarker.
Here is the call graph for this function:
|
inlinevirtual |
Implements PluginInstanceGUI.
Definition at line 53 of file nfmmodgui.h.
Referenced by handleSourceMessages(), and NFMModGUI().
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 54 of file nfmmodgui.cpp.
|
virtual |
Implements PluginInstanceGUI.
Definition at line 93 of file nfmmodgui.cpp.
References blockApplySettings(), displaySettings(), NFMMod::MsgConfigureNFMMod::getSettings(), CWKeyer::MsgConfigureCWKeyer::getSettings(), m_recordLength, m_recordSampleRate, m_samplesCount, m_settings, Message::match(), ui, updateWithStreamData(), and updateWithStreamTime().
Referenced by handleSourceMessages().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 138 of file nfmmodgui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by NFMModGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 501 of file nfmmodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
Here is the call graph for this function:
|
privateslot |
Definition at line 165 of file nfmmodgui.cpp.
References applySettings(), arg(), NFMModSettings::m_afBandwidth, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 193 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_channelMute, and m_settings.
Here is the call graph for this function:
|
privateslot |
Definition at line 284 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_ctcssIndex, and m_settings.
Here is the call graph for this function:
|
privateslot |
Definition at line 290 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_ctcssOn, and m_settings.
Here is the call graph for this function:
|
privateslot |
Definition at line 151 of file nfmmodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, NFMModSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
Here is the call graph for this function:
|
privateslot |
Definition at line 243 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_feedbackAudioEnable, and m_settings.
Here is the call graph for this function:
|
privateslot |
Definition at line 249 of file nfmmodgui.cpp.
References applySettings(), arg(), NFMModSettings::m_feedbackVolumeFactor, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 172 of file nfmmodgui.cpp.
References applySettings(), arg(), NFMModSettings::m_fmDeviation, m_settings, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 234 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_modAFInput, m_settings, NFMModSettings::NFMModInputAudio, NFMModSettings::NFMModInputNone, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 225 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_modAFInput, m_settings, NFMModSettings::NFMModInputCWTone, NFMModSettings::NFMModInputNone, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 256 of file nfmmodgui.cpp.
References NFMMod::MsgConfigureFileSourceSeek::create(), BasebandSampleSource::getInputMessageQueue(), m_enableNavTime, m_nfmMod, m_recordLength, and MessageQueue::push().
Here is the call graph for this function:
|
privateslot |
Definition at line 205 of file nfmmodgui.cpp.
References applySettings(), m_enableNavTime, NFMModSettings::m_modAFInput, m_settings, NFMModSettings::NFMModInputFile, NFMModSettings::NFMModInputNone, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 199 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_playLoop, and m_settings.
Here is the call graph for this function:
|
privateslot |
Definition at line 158 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::getRFBW(), m_channelMarker, NFMModSettings::m_rfBandwidth, m_settings, and ChannelMarker::setBandwidth().
Here is the call graph for this function:
|
privateslot |
Definition at line 269 of file nfmmodgui.cpp.
References configureFileName(), m_fileName, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 216 of file nfmmodgui.cpp.
References applySettings(), NFMModSettings::m_modAFInput, m_settings, NFMModSettings::NFMModInputNone, NFMModSettings::NFMModInputTone, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 186 of file nfmmodgui.cpp.
References applySettings(), arg(), m_settings, NFMModSettings::m_toneFrequency, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 179 of file nfmmodgui.cpp.
References applySettings(), arg(), m_settings, NFMModSettings::m_volumeFactor, and ui.
Here is the call graph for this function:
|
privateslot |
Definition at line 310 of file nfmmodgui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, NFMModSettings::m_inputFrequencyOffset, NFMModSettings::m_reverseAPIAddress, NFMModSettings::m_reverseAPIChannelIndex, NFMModSettings::m_reverseAPIDeviceIndex, NFMModSettings::m_reverseAPIPort, NFMModSettings::m_rgbColor, m_settings, NFMModSettings::m_title, NFMModSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by NFMModGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
privateslot |
Definition at line 304 of file nfmmodgui.cpp.
Referenced by NFMModGUI().
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 69 of file nfmmodgui.cpp.
References applySettings(), displaySettings(), m_settings, and NFMModSettings::resetToDefaults().
Referenced by deserialize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 76 of file nfmmodgui.cpp.
References m_settings, and NFMModSettings::serialize().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 63 of file nfmmodgui.cpp.
References applySettings(), m_channelMarker, and ChannelMarker::setCenterFrequency().
Here is the call graph for this function:
|
virtual |
Implements PluginInstanceGUI.
Definition at line 49 of file nfmmodgui.cpp.
|
privateslot |
Definition at line 537 of file nfmmodgui.cpp.
References arg(), NFMMod::MsgConfigureFileSourceStreamTiming::create(), CalcDb::dbPower(), BasebandSampleSource::getInputMessageQueue(), NFMMod::getMagSq(), m_channelPowerDbAvg, NFMModSettings::m_modAFInput, m_nfmMod, m_settings, m_tickCount, NFMModSettings::NFMModInputFile, MessageQueue::push(), and ui.
Referenced by NFMModGUI().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 550 of file nfmmodgui.cpp.
References m_recordLength, ui, and updateWithStreamTime().
Referenced by handleMessage().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 559 of file nfmmodgui.cpp.
References m_enableNavTime, m_recordLength, m_recordSampleRate, m_samplesCount, and ui.
Referenced by handleMessage(), and updateWithStreamData().
Here is the caller graph for this function:
|
private |
Definition at line 63 of file nfmmodgui.h.
Referenced by applySettings(), channelMarkerChangedByCursor(), displaySettings(), enterEvent(), getCenterFrequency(), leaveEvent(), NFMModGUI(), on_deltaFrequency_changed(), on_rfBW_currentIndexChanged(), onMenuDialogCalled(), and setCenterFrequency().
|
private |
Definition at line 68 of file nfmmodgui.h.
Referenced by tick().
|
private |
Definition at line 62 of file nfmmodgui.h.
Referenced by NFMModGUI(), and ~NFMModGUI().
|
private |
Definition at line 65 of file nfmmodgui.h.
Referenced by applySettings(), and blockApplySettings().
|
private |
Definition at line 75 of file nfmmodgui.h.
Referenced by on_navTimeSlider_valueChanged(), on_play_toggled(), and updateWithStreamTime().
|
private |
Definition at line 70 of file nfmmodgui.h.
Referenced by configureFileName(), and on_showFileDialog_clicked().
|
private |
Definition at line 77 of file nfmmodgui.h.
|
private |
Definition at line 76 of file nfmmodgui.h.
|
private |
Definition at line 67 of file nfmmodgui.h.
Referenced by applySettings(), configureFileName(), NFMModGUI(), on_navTimeSlider_valueChanged(), tick(), and ~NFMModGUI().
|
private |
Definition at line 61 of file nfmmodgui.h.
|
private |
Definition at line 71 of file nfmmodgui.h.
Referenced by handleMessage(), on_navTimeSlider_valueChanged(), updateWithStreamData(), and updateWithStreamTime().
|
private |
Definition at line 72 of file nfmmodgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 73 of file nfmmodgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 64 of file nfmmodgui.h.
Referenced by applySettings(), audioFeedbackSelect(), audioSelect(), channelMarkerChangedByCursor(), deserialize(), displaySettings(), handleMessage(), NFMModGUI(), on_afBW_valueChanged(), on_channelMute_toggled(), on_ctcss_currentIndexChanged(), on_ctcssOn_toggled(), on_deltaFrequency_changed(), on_feedbackEnable_toggled(), on_feedbackVolume_valueChanged(), on_fmDev_valueChanged(), on_mic_toggled(), on_morseKeyer_toggled(), on_play_toggled(), on_playLoop_toggled(), on_rfBW_currentIndexChanged(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), serialize(), and tick().
|
private |
Definition at line 74 of file nfmmodgui.h.
Referenced by tick().
|
private |
Definition at line 60 of file nfmmodgui.h.
Referenced by channelMarkerChangedByCursor(), displaySettings(), handleMessage(), NFMModGUI(), on_afBW_valueChanged(), on_feedbackVolume_valueChanged(), on_fmDev_valueChanged(), 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 ~NFMModGUI().
1.8.13