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 <fileinputgui.h>
Public Member Functions | |
FileInputGUI (DeviceUISet *deviceUISet, QWidget *parent=0) | |
virtual | ~FileInputGUI () |
virtual void | destroy () |
void | setName (const QString &name) |
QString | getName () const |
void | resetToDefaults () |
virtual qint64 | getCenterFrequency () const |
virtual void | setCenterFrequency (qint64 centerFrequency) |
QByteArray | serialize () const |
bool | deserialize (const QByteArray &data) |
virtual MessageQueue * | getInputMessageQueue () |
virtual bool | handleMessage (const Message &message) |
Public Member Functions inherited from PluginInstanceGUI | |
PluginInstanceGUI () | |
virtual | ~PluginInstanceGUI () |
Private Slots | |
void | handleInputMessages () |
void | on_startStop_toggled (bool checked) |
void | on_playLoop_toggled (bool checked) |
void | on_play_toggled (bool checked) |
void | on_navTimeSlider_valueChanged (int value) |
void | on_showFileDialog_clicked (bool checked) |
void | on_acceleration_currentIndexChanged (int index) |
void | updateStatus () |
void | tick () |
void | openDeviceSettingsDialog (const QPoint &p) |
Private Member Functions | |
void | blockApplySettings (bool block) |
void | displaySettings () |
void | displayTime () |
void | sendSettings () |
void | updateSampleRateAndFrequency () |
void | configureFileName () |
void | updateWithAcquisition () |
void | updateWithStreamData () |
void | updateWithStreamTime () |
void | setAccelerationCombo () |
void | setNumberStr (int n, QString &s) |
Private Attributes | |
Ui::FileInputGUI * | ui |
DeviceUISet * | m_deviceUISet |
FileInputSettings | m_settings |
bool | m_doApplySettings |
QTimer | m_statusTimer |
std::vector< int > | m_gains |
DeviceSampleSource * | m_sampleSource |
bool | m_acquisition |
QString | m_fileName |
int | m_sampleRate |
quint32 | m_sampleSize |
quint64 | m_centerFrequency |
quint64 | m_recordLength |
quint64 | m_startingTimeStamp |
quint64 | m_samplesCount |
std::size_t | m_tickCount |
bool | m_enableNavTime |
int | m_deviceSampleRate |
quint64 | m_deviceCenterFrequency |
Center frequency in device. More... | |
int | m_lastEngineState |
MessageQueue | m_inputMessageQueue |
Definition at line 36 of file fileinputgui.h.
|
explicit |
Definition at line 41 of file fileinputgui.cpp.
References displaySettings(), DeviceAPI::getMasterTimer(), DeviceAPI::getSampleSource(), ColorMapper::GrayGold, handleInputMessages(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_fileName, m_inputMessageQueue, m_sampleSource, m_statusTimer, openDeviceSettingsDialog(), setAccelerationCombo(), DeviceSampleSource::setMessageQueueToGUI(), tick(), ui, and updateStatus().
|
virtual |
Definition at line 84 of file fileinputgui.cpp.
References ui.
|
inlineprivate |
Definition at line 79 of file fileinputgui.h.
Referenced by displaySettings(), and handleMessage().
|
private |
Definition at line 344 of file fileinputgui.cpp.
References FileInput::MsgConfigureFileSourceName::create(), DeviceSampleSource::getInputMessageQueue(), m_fileName, m_sampleSource, and MessageQueue::push().
Referenced by on_showFileDialog_clicked().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 128 of file fileinputgui.cpp.
References FileInputSettings::deserialize(), displaySettings(), m_settings, resetToDefaults(), and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 89 of file fileinputgui.cpp.
|
private |
Definition at line 241 of file fileinputgui.cpp.
References blockApplySettings(), FileInputSettings::getAccelerationIndex(), FileInputSettings::m_accelerationFactor, FileInputSettings::m_loop, m_settings, and ui.
Referenced by deserialize(), FileInputGUI(), handleMessage(), resetToDefaults(), and setCenterFrequency().
|
private |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 111 of file fileinputgui.cpp.
References m_centerFrequency.
|
inlinevirtual |
|
virtual |
Implements PluginInstanceGUI.
Definition at line 99 of file fileinputgui.cpp.
|
privateslot |
Definition at line 140 of file fileinputgui.cpp.
References DSPSignalNotification::getCenterFrequency(), DSPSignalNotification::getSampleRate(), handleMessage(), m_deviceCenterFrequency, m_deviceSampleRate, m_inputMessageQueue, Message::match(), MessageQueue::pop(), and updateSampleRateAndFrequency().
Referenced by FileInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 166 of file fileinputgui.cpp.
References blockApplySettings(), displaySettings(), FileInput::MsgPlayPause::getPlayPause(), FileInput::MsgConfigureFileInput::getSettings(), FileInput::MsgStartStop::getStartStop(), FileInput::MsgReportHeaderCRC::isOK(), m_acquisition, m_centerFrequency, m_enableNavTime, m_recordLength, m_sampleRate, m_samplesCount, m_sampleSize, m_settings, m_startingTimeStamp, Message::match(), ui, updateWithAcquisition(), updateWithStreamData(), and updateWithStreamTime().
Referenced by handleInputMessages().
|
privateslot |
Definition at line 334 of file fileinputgui.cpp.
References FileInput::MsgConfigureFileInput::create(), FileInputSettings::getAccelerationValue(), DeviceSampleSource::getInputMessageQueue(), FileInputSettings::m_accelerationFactor, m_doApplySettings, m_sampleSource, m_settings, and MessageQueue::push().
|
privateslot |
Definition at line 310 of file fileinputgui.cpp.
References FileInput::MsgConfigureFileSourceSeek::create(), DeviceSampleSource::getInputMessageQueue(), m_enableNavTime, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 301 of file fileinputgui.cpp.
References FileInput::MsgConfigureFileInputWork::create(), DeviceSampleSource::getInputMessageQueue(), m_enableNavTime, m_sampleSource, MessageQueue::push(), and ui.
|
privateslot |
Definition at line 253 of file fileinputgui.cpp.
References FileInput::MsgConfigureFileInput::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, FileInputSettings::m_loop, m_sampleSource, m_settings, and MessageQueue::push().
|
privateslot |
Definition at line 319 of file fileinputgui.cpp.
References configureFileName(), m_fileName, and ui.
|
privateslot |
Definition at line 263 of file fileinputgui.cpp.
References FileInput::MsgStartStop::create(), DeviceSampleSource::getInputMessageQueue(), m_doApplySettings, m_sampleSource, and MessageQueue::push().
|
privateslot |
Definition at line 448 of file fileinputgui.cpp.
References BasicDeviceSettingsDialog::getReverseAPIAddress(), BasicDeviceSettingsDialog::getReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::getReverseAPIPort(), FileInputSettings::m_reverseAPIAddress, FileInputSettings::m_reverseAPIDeviceIndex, FileInputSettings::m_reverseAPIPort, m_settings, FileInputSettings::m_useReverseAPI, sendSettings(), BasicDeviceSettingsDialog::setReverseAPIAddress(), BasicDeviceSettingsDialog::setReverseAPIDeviceIndex(), BasicDeviceSettingsDialog::setReverseAPIPort(), BasicDeviceSettingsDialog::setUseReverseAPI(), and BasicDeviceSettingsDialog::useReverseAPI().
Referenced by FileInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 104 of file fileinputgui.cpp.
References displaySettings(), m_settings, FileInputSettings::resetToDefaults(), and sendSettings().
Referenced by deserialize().
|
private |
Definition at line 249 of file fileinputgui.cpp.
Referenced by deserialize(), openDeviceSettingsDialog(), resetToDefaults(), and setCenterFrequency().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 123 of file fileinputgui.cpp.
References m_settings, and FileInputSettings::serialize().
|
private |
Definition at line 409 of file fileinputgui.cpp.
References i, FileInputSettings::m_accelerationMaxScale, setNumberStr(), and ui.
Referenced by FileInputGUI().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 116 of file fileinputgui.cpp.
References displaySettings(), m_centerFrequency, and sendSettings().
|
virtual |
Implements PluginInstanceGUI.
Definition at line 94 of file fileinputgui.cpp.
|
private |
Definition at line 433 of file fileinputgui.cpp.
Referenced by setAccelerationCombo().
|
privateslot |
Definition at line 401 of file fileinputgui.cpp.
References FileInput::MsgConfigureFileInputStreamTiming::create(), DeviceSampleSource::getInputMessageQueue(), m_sampleSource, m_tickCount, and MessageQueue::push().
Referenced by FileInputGUI().
|
private |
Definition at line 234 of file fileinputgui.cpp.
References arg(), DeviceUISet::getSpectrum(), m_deviceCenterFrequency, m_deviceSampleRate, m_deviceUISet, GLSpectrum::setCenterFrequency(), GLSpectrum::setSampleRate(), and ui.
Referenced by handleInputMessages().
|
privateslot |
Definition at line 272 of file fileinputgui.cpp.
References DeviceAPI::errorMessage(), DeviceUISet::m_deviceAPI, m_deviceUISet, m_lastEngineState, DeviceAPI::state(), DeviceAPI::StError, DeviceAPI::StIdle, DeviceAPI::StNotStarted, DeviceAPI::StRunning, and ui.
Referenced by FileInputGUI().
|
private |
Definition at line 351 of file fileinputgui.cpp.
References m_acquisition, and ui.
Referenced by handleMessage().
|
private |
Definition at line 358 of file fileinputgui.cpp.
References arg(), m_acquisition, m_centerFrequency, m_recordLength, m_sampleRate, m_sampleSize, ui, and updateWithStreamTime().
Referenced by handleMessage().
|
private |
Definition at line 371 of file fileinputgui.cpp.
References m_enableNavTime, m_recordLength, m_sampleRate, m_samplesCount, m_startingTimeStamp, and ui.
Referenced by handleMessage(), and updateWithStreamData().
|
private |
Definition at line 64 of file fileinputgui.h.
Referenced by handleMessage(), updateWithAcquisition(), and updateWithStreamData().
|
private |
Definition at line 68 of file fileinputgui.h.
Referenced by getCenterFrequency(), handleMessage(), setCenterFrequency(), and updateWithStreamData().
|
private |
Center frequency in device.
Definition at line 75 of file fileinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 74 of file fileinputgui.h.
Referenced by handleInputMessages(), and updateSampleRateAndFrequency().
|
private |
Definition at line 58 of file fileinputgui.h.
Referenced by FileInputGUI(), updateSampleRateAndFrequency(), and updateStatus().
|
private |
Definition at line 60 of file fileinputgui.h.
Referenced by on_acceleration_currentIndexChanged(), on_playLoop_toggled(), and on_startStop_toggled().
|
private |
Definition at line 73 of file fileinputgui.h.
Referenced by handleMessage(), on_navTimeSlider_valueChanged(), on_play_toggled(), and updateWithStreamTime().
|
private |
Definition at line 65 of file fileinputgui.h.
Referenced by configureFileName(), FileInputGUI(), and on_showFileDialog_clicked().
|
private |
Definition at line 62 of file fileinputgui.h.
|
private |
Definition at line 77 of file fileinputgui.h.
Referenced by FileInputGUI(), and handleInputMessages().
|
private |
Definition at line 76 of file fileinputgui.h.
Referenced by updateStatus().
|
private |
Definition at line 69 of file fileinputgui.h.
Referenced by handleMessage(), updateWithStreamData(), and updateWithStreamTime().
|
private |
Definition at line 66 of file fileinputgui.h.
Referenced by handleMessage(), updateWithStreamData(), and updateWithStreamTime().
|
private |
Definition at line 71 of file fileinputgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 67 of file fileinputgui.h.
Referenced by handleMessage(), and updateWithStreamData().
|
private |
Definition at line 63 of file fileinputgui.h.
Referenced by configureFileName(), FileInputGUI(), on_acceleration_currentIndexChanged(), on_navTimeSlider_valueChanged(), on_play_toggled(), on_playLoop_toggled(), on_startStop_toggled(), and tick().
|
private |
Definition at line 59 of file fileinputgui.h.
Referenced by deserialize(), displaySettings(), handleMessage(), on_acceleration_currentIndexChanged(), on_playLoop_toggled(), openDeviceSettingsDialog(), resetToDefaults(), and serialize().
|
private |
Definition at line 70 of file fileinputgui.h.
Referenced by handleMessage(), and updateWithStreamTime().
|
private |
Definition at line 61 of file fileinputgui.h.
Referenced by FileInputGUI().
|
private |
Definition at line 72 of file fileinputgui.h.
Referenced by tick().
|
private |
Definition at line 56 of file fileinputgui.h.
Referenced by displaySettings(), FileInputGUI(), handleMessage(), on_play_toggled(), on_showFileDialog_clicked(), setAccelerationCombo(), updateSampleRateAndFrequency(), updateStatus(), updateWithAcquisition(), updateWithStreamData(), updateWithStreamTime(), and ~FileInputGUI().