mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-17 23:28:50 -05:00
Presets by source: plugin GUI interface cleanup
This commit is contained in:
parent
921b511f96
commit
66987e5b19
@ -102,7 +102,7 @@ set(sdrbase_SOURCES
|
||||
sdrbase/dsp/samplesource.cpp
|
||||
|
||||
sdrbase/plugin/pluginapi.cpp
|
||||
sdrbase/plugin/plugingui.cpp
|
||||
#sdrbase/plugin/plugingui.cpp
|
||||
sdrbase/plugin/plugininterface.cpp
|
||||
sdrbase/plugin/pluginmanager.cpp
|
||||
|
||||
|
@ -18,8 +18,6 @@ public:
|
||||
|
||||
virtual void resetToDefaults() = 0;
|
||||
|
||||
virtual QByteArray serializeGeneral() const;
|
||||
virtual bool deserializeGeneral(const QByteArray& data);
|
||||
virtual qint64 getCenterFrequency() const = 0;
|
||||
virtual void setCenterFrequency(qint64 centerFrequency) = 0;
|
||||
|
||||
|
@ -1,11 +0,0 @@
|
||||
#include "plugin/plugingui.h"
|
||||
|
||||
QByteArray PluginGUI::serializeGeneral() const
|
||||
{
|
||||
return QByteArray();
|
||||
}
|
||||
|
||||
bool PluginGUI::deserializeGeneral(const QByteArray& data)
|
||||
{
|
||||
return false;
|
||||
}
|
@ -173,7 +173,7 @@ bool PluginManager::ChannelInstanceRegistration::operator<(const ChannelInstance
|
||||
void PluginManager::saveSettings(Preset* preset)
|
||||
{
|
||||
if(m_sampleSourcePluginGUI != NULL) {
|
||||
preset->setSourceConfig(m_sampleSourceName, m_sampleSourcePluginGUI->serializeGeneral(), m_sampleSourcePluginGUI->serialize());
|
||||
//preset->setSourceConfig(m_sampleSourceName, m_sampleSourcePluginGUI->serializeGeneral(), m_sampleSourcePluginGUI->serialize());
|
||||
preset->setCenterFrequency(m_sampleSourcePluginGUI->getCenterFrequency());
|
||||
} else {
|
||||
preset->setSourceConfig(QString::null, QByteArray(), QByteArray());
|
||||
|
Loading…
Reference in New Issue
Block a user