mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
GLscopeGUIs: implement Serializable interface
This commit is contained in:
parent
601b429a96
commit
eccea4a4fc
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user