diff --git a/sdrbase/gui/glscopegui.h b/sdrbase/gui/glscopegui.h index 74c17b1e9..38866cbd5 100644 --- a/sdrbase/gui/glscopegui.h +++ b/sdrbase/gui/glscopegui.h @@ -6,6 +6,7 @@ #include "util/export.h" #include "util/message.h" #include "dsp/scopevis.h" +#include "settings/serializable.h" namespace Ui { class GLScopeGUI; @@ -14,7 +15,7 @@ namespace Ui { class MessageQueue; class GLScope; -class SDRANGEL_API GLScopeGUI : public QWidget { +class SDRANGEL_API GLScopeGUI : public QWidget, public Serializable { Q_OBJECT public: @@ -25,8 +26,8 @@ public: void setSampleRate(int sampleRate); void resetToDefaults(); - QByteArray serialize() const; - bool deserialize(const QByteArray& data); + virtual QByteArray serialize() const; + virtual bool deserialize(const QByteArray& data); bool handleMessage(Message* message); diff --git a/sdrbase/gui/glscopenggui.h b/sdrbase/gui/glscopenggui.h index e58408902..8b3c67891 100644 --- a/sdrbase/gui/glscopenggui.h +++ b/sdrbase/gui/glscopenggui.h @@ -25,6 +25,7 @@ #include "util/export.h" #include "util/message.h" #include "dsp/scopevisng.h" +#include "settings/serializable.h" namespace Ui { class GLScopeNGGUI; @@ -33,7 +34,7 @@ namespace Ui { class MessageQueue; class GLScopeNG; -class SDRANGEL_API GLScopeNGGUI : public QWidget { +class SDRANGEL_API GLScopeNGGUI : public QWidget, public Serializable { Q_OBJECT public: @@ -52,8 +53,8 @@ public: void setSampleRate(int sampleRate); void resetToDefaults(); - QByteArray serialize() const; - bool deserialize(const QByteArray& data); + virtual QByteArray serialize() const; + virtual bool deserialize(const QByteArray& data); bool handleMessage(Message* message);