|  | 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 <ammodgui.h>
 Inheritance diagram for AMModGUI:
 Inheritance diagram for AMModGUI: Collaboration diagram for AMModGUI:
 Collaboration diagram for AMModGUI:| 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 AMModGUI * | create (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx) | 
| Private Slots | |
| void | handleSourceMessages () | 
| void | on_deltaFrequency_changed (qint64 value) | 
| void | on_rfBW_valueChanged (int value) | 
| void | on_modPercent_valueChanged (int value) | 
| void | on_volume_valueChanged (int value) | 
| void | on_channelMute_toggled (bool checked) | 
| 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_morseKeyer_toggled (bool checked) | 
| void | on_playLoop_toggled (bool checked) | 
| void | on_navTimeSlider_valueChanged (int value) | 
| void | on_showFileDialog_clicked (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 | |
| AMModGUI (PluginAPI *pluginAPI, DeviceUISet *deviceUISet, BasebandSampleSource *channelTx, QWidget *parent=0) | |
| virtual | ~AMModGUI () | 
| void | blockApplySettings (bool block) | 
| void | applySettings (bool force=false) | 
| void | displaySettings () | 
| void | updateWithStreamData () | 
| void | updateWithStreamTime () | 
| void | leaveEvent (QEvent *) | 
| void | enterEvent (QEvent *) | 
| Private Attributes | |
| Ui::AMModGUI * | ui | 
| PluginAPI * | m_pluginAPI | 
| DeviceUISet * | m_deviceUISet | 
| ChannelMarker | m_channelMarker | 
| AMModSettings | m_settings | 
| bool | m_doApplySettings | 
| AMMod * | m_amMod | 
| 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 40 of file ammodgui.h.
| 
 | explicitprivate | 
Definition at line 324 of file ammodgui.cpp.
References DeviceUISet::addChannelMarker(), DeviceUISet::addRollupWidget(), applySettings(), arg(), audioFeedbackSelect(), audioSelect(), channelMarkerChangedByCursor(), displaySettings(), AMMod::getCWKeyer(), getInputMessageQueue(), MainWindow::getInstance(), ColorMapper::GrayGold, handleSourceMessages(), m_amMod, AMMod::m_channelIdURI, m_channelMarker, m_deviceUISet, m_settings, onMenuDialogCalled(), onWidgetRolled(), DeviceUISet::registerTxChannelInstance(), ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), AMModSettings::setChannelMarker(), ChannelMarker::setColor(), AMModSettings::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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privatevirtual | 
Definition at line 390 of file ammodgui.cpp.
References m_amMod, m_deviceUISet, DeviceUISet::removeTxChannelInstance(), and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 402 of file ammodgui.cpp.
References AMMod::MsgConfigureAMMod::create(), AMMod::MsgConfigureChannelizer::create(), ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasebandSampleSource::getInputMessageQueue(), m_amMod, m_channelMarker, m_doApplySettings, m_settings, MessageQueue::push(), and RollupWidget::setTitleColor().
Referenced by AMModGUI(), audioFeedbackSelect(), audioSelect(), channelMarkerChangedByCursor(), deserialize(), on_channelMute_toggled(), on_deltaFrequency_changed(), on_feedbackEnable_toggled(), on_feedbackVolume_valueChanged(), on_mic_toggled(), on_modPercent_valueChanged(), on_morseKeyer_toggled(), on_play_toggled(), on_playLoop_toggled(), on_rfBW_valueChanged(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), and setCenterFrequency().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 489 of file ammodgui.cpp.
References applySettings(), audioSelect(), DSPEngine::instance(), AudioSelectDialog::m_audioDeviceName, AMModSettings::m_audioDeviceName, AMModSettings::m_feedbackAudioDeviceName, AudioSelectDialog::m_selected, and m_settings.
Referenced by AMModGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 476 of file ammodgui.cpp.
References applySettings(), DSPEngine::instance(), AudioSelectDialog::m_audioDeviceName, AMModSettings::m_audioDeviceName, AudioSelectDialog::m_selected, and m_settings.
Referenced by AMModGUI(), and audioFeedbackSelect().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 397 of file ammodgui.cpp.
References m_doApplySettings.
Referenced by displaySettings(), and handleMessage().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | slot | 
Definition at line 132 of file ammodgui.cpp.
References applySettings(), ChannelMarker::getCenterFrequency(), m_channelMarker, AMModSettings::m_inputFrequencyOffset, m_settings, and ui.
Referenced by AMModGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 280 of file ammodgui.cpp.
References AMMod::MsgConfigureFileSourceName::create(), BasebandSampleSource::getInputMessageQueue(), m_amMod, m_fileName, and MessageQueue::push().
Referenced by on_showFileDialog_clicked().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 39 of file ammodgui.cpp.
References AMModGUI().
Referenced by AMModPlugin::createTxChannelGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 82 of file ammodgui.cpp.
References applySettings(), AMModSettings::deserialize(), displaySettings(), m_settings, and resetToDefaults().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
| 
 | private | 
Definition at line 417 of file ammodgui.cpp.
References arg(), blockApplySettings(), ChannelMarker::getCenterFrequency(), ChannelMarker::getTitle(), m_channelMarker, AMModSettings::m_channelMute, AMModSettings::m_feedbackAudioEnable, AMModSettings::m_feedbackVolumeFactor, AMModSettings::m_inputFrequencyOffset, AMModSettings::m_modAFInput, AMModSettings::m_modFactor, AMModSettings::m_playLoop, AMModSettings::m_rfBandwidth, AMModSettings::m_rgbColor, m_settings, AMModSettings::m_title, AMModSettings::m_toneFrequency, AMModSettings::m_volumeFactor, ChannelMarker::setBandwidth(), ChannelMarker::setCenterFrequency(), ChannelMarker::setColor(), ChannelMarker::setTitle(), RollupWidget::setTitleColor(), and ui.
Referenced by AMModGUI(), deserialize(), handleMessage(), and resetToDefaults().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 471 of file ammodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 60 of file ammodgui.cpp.
References ChannelMarker::getCenterFrequency(), and m_channelMarker.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | inlinevirtual | 
Implements PluginInstanceGUI.
Definition at line 55 of file ammodgui.h.
Referenced by AMModGUI(), and handleSourceMessages().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 55 of file ammodgui.cpp.
| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 94 of file ammodgui.cpp.
References blockApplySettings(), displaySettings(), AMMod::MsgConfigureAMMod::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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 139 of file ammodgui.cpp.
References getInputMessageQueue(), and handleMessage().
Referenced by AMModGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 466 of file ammodgui.cpp.
References m_channelMarker, and ChannelMarker::setHighlighted().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 189 of file ammodgui.cpp.
References applySettings(), AMModSettings::m_channelMute, and m_settings.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 152 of file ammodgui.cpp.
References applySettings(), m_channelMarker, AMModSettings::m_inputFrequencyOffset, m_settings, and ChannelMarker::setCenterFrequency().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 239 of file ammodgui.cpp.
References applySettings(), AMModSettings::m_feedbackAudioEnable, and m_settings.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 245 of file ammodgui.cpp.
References applySettings(), arg(), AMModSettings::m_feedbackVolumeFactor, m_settings, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 230 of file ammodgui.cpp.
References AMModSettings::AMModInputAudio, AMModSettings::AMModInputNone, applySettings(), AMModSettings::m_modAFInput, m_settings, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 167 of file ammodgui.cpp.
References applySettings(), arg(), AMModSettings::m_modFactor, m_settings, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 221 of file ammodgui.cpp.
References AMModSettings::AMModInputCWTone, AMModSettings::AMModInputNone, applySettings(), AMModSettings::m_modAFInput, m_settings, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 252 of file ammodgui.cpp.
References AMMod::MsgConfigureFileSourceSeek::create(), BasebandSampleSource::getInputMessageQueue(), m_amMod, m_enableNavTime, m_recordLength, and MessageQueue::push().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 201 of file ammodgui.cpp.
References AMModSettings::AMModInputFile, AMModSettings::AMModInputNone, applySettings(), m_enableNavTime, AMModSettings::m_modAFInput, m_settings, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 195 of file ammodgui.cpp.
References applySettings(), AMModSettings::m_playLoop, and m_settings.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 159 of file ammodgui.cpp.
References applySettings(), arg(), m_channelMarker, AMModSettings::m_rfBandwidth, m_settings, ChannelMarker::setBandwidth(), and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 265 of file ammodgui.cpp.
References configureFileName(), m_fileName, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 212 of file ammodgui.cpp.
References AMModSettings::AMModInputNone, AMModSettings::AMModInputTone, applySettings(), AMModSettings::m_modAFInput, m_settings, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 181 of file ammodgui.cpp.
References applySettings(), arg(), m_settings, AMModSettings::m_toneFrequency, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 174 of file ammodgui.cpp.
References applySettings(), arg(), m_settings, AMModSettings::m_volumeFactor, and ui.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | privateslot | 
Definition at line 293 of file ammodgui.cpp.
References applySettings(), RollupWidget::ContextMenuChannelSettings, ChannelMarker::getCenterFrequency(), ChannelMarker::getColor(), BasicChannelSettingsDialog::getReverseAPIAddress(), BasicChannelSettingsDialog::getReverseAPIChannelIndex(), BasicChannelSettingsDialog::getReverseAPIDeviceIndex(), BasicChannelSettingsDialog::getReverseAPIPort(), ChannelMarker::getTitle(), m_channelMarker, RollupWidget::m_contextMenuType, AMModSettings::m_inputFrequencyOffset, AMModSettings::m_reverseAPIAddress, AMModSettings::m_reverseAPIChannelIndex, AMModSettings::m_reverseAPIDeviceIndex, AMModSettings::m_reverseAPIPort, AMModSettings::m_rgbColor, m_settings, AMModSettings::m_title, AMModSettings::m_useReverseAPI, RollupWidget::resetContextMenuType(), BasicChannelSettingsDialog::setReverseAPIAddress(), BasicChannelSettingsDialog::setReverseAPIChannelIndex(), BasicChannelSettingsDialog::setReverseAPIDeviceIndex(), BasicChannelSettingsDialog::setReverseAPIPort(), RollupWidget::setTitleColor(), BasicChannelSettingsDialog::setUseReverseAPI(), and BasicChannelSettingsDialog::useReverseAPI().
Referenced by AMModGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | privateslot | 
Definition at line 287 of file ammodgui.cpp.
Referenced by AMModGUI().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 70 of file ammodgui.cpp.
References applySettings(), displaySettings(), m_settings, and AMModSettings::resetToDefaults().
Referenced by deserialize().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 77 of file ammodgui.cpp.
References m_settings, and AMModSettings::serialize().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 64 of file ammodgui.cpp.
References applySettings(), m_channelMarker, and ChannelMarker::setCenterFrequency().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
Implements PluginInstanceGUI.
Definition at line 50 of file ammodgui.cpp.
| 
 | privateslot | 
Definition at line 502 of file ammodgui.cpp.
References AMModSettings::AMModInputFile, arg(), AMMod::MsgConfigureFileSourceStreamTiming::create(), CalcDb::dbPower(), BasebandSampleSource::getInputMessageQueue(), AMMod::getMagSq(), m_amMod, m_channelPowerDbAvg, AMModSettings::m_modAFInput, m_settings, m_tickCount, MessageQueue::push(), and ui.
Referenced by AMModGUI().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 515 of file ammodgui.cpp.
References m_recordLength, ui, and updateWithStreamTime().
Referenced by handleMessage().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 524 of file ammodgui.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:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 69 of file ammodgui.h.
Referenced by AMModGUI(), applySettings(), configureFileName(), on_navTimeSlider_valueChanged(), tick(), and ~AMModGUI().
| 
 | private | 
Definition at line 65 of file ammodgui.h.
Referenced by AMModGUI(), applySettings(), channelMarkerChangedByCursor(), displaySettings(), enterEvent(), getCenterFrequency(), leaveEvent(), on_deltaFrequency_changed(), on_rfBW_valueChanged(), onMenuDialogCalled(), and setCenterFrequency().
| 
 | private | 
Definition at line 70 of file ammodgui.h.
Referenced by tick().
| 
 | private | 
Definition at line 64 of file ammodgui.h.
Referenced by AMModGUI(), and ~AMModGUI().
| 
 | private | 
Definition at line 67 of file ammodgui.h.
Referenced by applySettings(), and blockApplySettings().
| 
 | private | 
Definition at line 77 of file ammodgui.h.
Referenced by on_navTimeSlider_valueChanged(), on_play_toggled(), and updateWithStreamTime().
| 
 | private | 
Definition at line 72 of file ammodgui.h.
Referenced by configureFileName(), and on_showFileDialog_clicked().
| 
 | private | 
Definition at line 78 of file ammodgui.h.
| 
 | private | 
Definition at line 63 of file ammodgui.h.
| 
 | private | 
Definition at line 73 of file ammodgui.h.
Referenced by handleMessage(), on_navTimeSlider_valueChanged(), updateWithStreamData(), and updateWithStreamTime().
| 
 | private | 
Definition at line 74 of file ammodgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
| 
 | private | 
Definition at line 75 of file ammodgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
| 
 | private | 
Definition at line 66 of file ammodgui.h.
Referenced by AMModGUI(), applySettings(), audioFeedbackSelect(), audioSelect(), channelMarkerChangedByCursor(), deserialize(), displaySettings(), handleMessage(), on_channelMute_toggled(), on_deltaFrequency_changed(), on_feedbackEnable_toggled(), on_feedbackVolume_valueChanged(), on_mic_toggled(), on_modPercent_valueChanged(), on_morseKeyer_toggled(), on_play_toggled(), on_playLoop_toggled(), on_rfBW_valueChanged(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), onMenuDialogCalled(), resetToDefaults(), serialize(), and tick().
| 
 | private | 
Definition at line 76 of file ammodgui.h.
Referenced by tick().
| 
 | private | 
Definition at line 62 of file ammodgui.h.
Referenced by AMModGUI(), channelMarkerChangedByCursor(), displaySettings(), handleMessage(), on_feedbackVolume_valueChanged(), on_mic_toggled(), on_modPercent_valueChanged(), on_morseKeyer_toggled(), on_play_toggled(), on_rfBW_valueChanged(), on_showFileDialog_clicked(), on_tone_toggled(), on_toneFrequency_valueChanged(), on_volume_valueChanged(), tick(), updateWithStreamData(), updateWithStreamTime(), and ~AMModGUI().
 1.8.13
 1.8.13