18 #ifndef PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_SOAPYSDRINPUTGUI_H_ 19 #define PLUGINS_SAMPLESOURCE_SOAPYSDRINPUT_SOAPYSDRINPUTGUI_H_ 48 virtual void destroy();
50 void setName(
const QString& name);
51 QString getName()
const;
53 virtual void resetToDefaults();
54 virtual qint64 getCenterFrequency()
const;
55 virtual void setCenterFrequency(qint64 centerFrequency);
56 virtual QByteArray serialize()
const;
57 virtual bool deserialize(
const QByteArray& data);
59 virtual bool handleMessage(
const Message& message);
62 void createRangesControl(
64 const SoapySDR::RangeList& rangeList,
67 void createAntennasControl(
const std::vector<std::string>& antennaList);
68 void createTunableElementsControl(
const std::vector<DeviceSoapySDRParams::FrequencySetting>& tunableElementsList);
69 void createGlobalGainControl();
70 void createIndividualGainsControl(
const std::vector<DeviceSoapySDRParams::GainSetting>& individualGainsList);
71 void createCorrectionsControl();
72 void createArgumentsControl(
const SoapySDR::ArgInfoList& argInfoList,
bool deviceArguments);
74 Ui::SoapySDRInputGui*
ui;
102 void displaySettings();
103 void displayTunableElementsControlSettings();
104 void displayIndividualGainsControlSettings();
105 void displayCorrectionsSettings();
106 void displayStreamArgsSettings();
107 void displayDeviceArgsSettings();
109 void updateSampleRateAndFrequency();
110 void updateFrequencyLimits();
111 void setCenterFrequencySetting(
uint64_t kHzValue);
112 void blockApplySettings(
bool block);
115 void handleInputMessages();
116 void antennasChanged();
117 void sampleRateChanged(
double sampleRate);
118 void bandwidthChanged(
double bandwidth);
119 void tunableElementChanged(QString name,
double value);
120 void globalGainChanged(
double gain);
121 void autoGainChanged(
bool set);
122 void individualGainChanged(QString name,
double value);
123 void autoDCCorrectionChanged(
bool set);
124 void autoIQCorrectionChanged(
bool set);
125 void dcCorrectionModuleChanged(
double value);
126 void dcCorrectionArgumentChanged(
double value);
127 void iqCorrectionModuleChanged(
double value);
128 void iqCorrectionArgumentChanged(
double value);
129 void streamArgChanged(QString itemName, QVariant value);
130 void deviceArgChanged(QString itemName, QVariant value);
132 void on_centerFrequency_changed(quint64 value);
133 void on_LOppm_valueChanged(
int value);
134 void on_dcOffset_toggled(
bool checked);
135 void on_iqImbalance_toggled(
bool checked);
136 void on_decim_currentIndexChanged(
int index);
137 void on_fcPos_currentIndexChanged(
int index);
138 void on_transverter_clicked();
139 void on_startStop_toggled(
bool checked);
140 void on_record_toggled(
bool checked);
141 void updateHardware();
143 void openDeviceSettingsDialog(
const QPoint& p);
unsigned __int64 uint64_t