1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00

GLscopeGUIs: implement Serializable interface

This commit is contained in:
f4exb 2017-10-03 23:28:04 +02:00
parent 601b429a96
commit eccea4a4fc
2 changed files with 8 additions and 6 deletions

View File

@ -6,6 +6,7 @@
#include "util/export.h" #include "util/export.h"
#include "util/message.h" #include "util/message.h"
#include "dsp/scopevis.h" #include "dsp/scopevis.h"
#include "settings/serializable.h"
namespace Ui { namespace Ui {
class GLScopeGUI; class GLScopeGUI;
@ -14,7 +15,7 @@ namespace Ui {
class MessageQueue; class MessageQueue;
class GLScope; class GLScope;
class SDRANGEL_API GLScopeGUI : public QWidget { class SDRANGEL_API GLScopeGUI : public QWidget, public Serializable {
Q_OBJECT Q_OBJECT
public: public:
@ -25,8 +26,8 @@ public:
void setSampleRate(int sampleRate); void setSampleRate(int sampleRate);
void resetToDefaults(); void resetToDefaults();
QByteArray serialize() const; virtual QByteArray serialize() const;
bool deserialize(const QByteArray& data); virtual bool deserialize(const QByteArray& data);
bool handleMessage(Message* message); bool handleMessage(Message* message);

View File

@ -25,6 +25,7 @@
#include "util/export.h" #include "util/export.h"
#include "util/message.h" #include "util/message.h"
#include "dsp/scopevisng.h" #include "dsp/scopevisng.h"
#include "settings/serializable.h"
namespace Ui { namespace Ui {
class GLScopeNGGUI; class GLScopeNGGUI;
@ -33,7 +34,7 @@ namespace Ui {
class MessageQueue; class MessageQueue;
class GLScopeNG; class GLScopeNG;
class SDRANGEL_API GLScopeNGGUI : public QWidget { class SDRANGEL_API GLScopeNGGUI : public QWidget, public Serializable {
Q_OBJECT Q_OBJECT
public: public:
@ -52,8 +53,8 @@ public:
void setSampleRate(int sampleRate); void setSampleRate(int sampleRate);
void resetToDefaults(); void resetToDefaults();
QByteArray serialize() const; virtual QByteArray serialize() const;
bool deserialize(const QByteArray& data); virtual bool deserialize(const QByteArray& data);
bool handleMessage(Message* message); bool handleMessage(Message* message);