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:
parent
601b429a96
commit
eccea4a4fc
@ -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);
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user