1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-18 07:35:47 -05:00

Presets by source: plugin GUI interface cleanup

This commit is contained in:
f4exb 2015-09-29 03:45:35 +02:00
parent 921b511f96
commit 66987e5b19
4 changed files with 2 additions and 15 deletions

View File

@ -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

View File

@ -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;

View File

@ -1,11 +0,0 @@
#include "plugin/plugingui.h"
QByteArray PluginGUI::serializeGeneral() const
{
return QByteArray();
}
bool PluginGUI::deserializeGeneral(const QByteArray& data)
{
return false;
}

View File

@ -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());