2015-06-21 22:16:27 -04:00
|
|
|
#ifndef INCLUDE_GLSCOPEGUI_H
|
|
|
|
#define INCLUDE_GLSCOPEGUI_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
#include "dsp/dsptypes.h"
|
|
|
|
#include "util/export.h"
|
|
|
|
#include "util/message.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class GLScopeGUI;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MessageQueue;
|
|
|
|
class ScopeVis;
|
|
|
|
class GLScope;
|
|
|
|
|
|
|
|
class SDRANGELOVE_API GLScopeGUI : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit GLScopeGUI(QWidget* parent = NULL);
|
|
|
|
~GLScopeGUI();
|
|
|
|
|
|
|
|
void setBuddies(MessageQueue* messageQueue, ScopeVis* scopeVis, GLScope* glScope);
|
|
|
|
|
2015-06-23 18:01:48 -04:00
|
|
|
void setSampleRate(int sampleRate);
|
2015-06-21 22:16:27 -04:00
|
|
|
void resetToDefaults();
|
|
|
|
QByteArray serialize() const;
|
|
|
|
bool deserialize(const QByteArray& data);
|
|
|
|
|
|
|
|
bool handleMessage(Message* message);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::GLScopeGUI* ui;
|
|
|
|
|
|
|
|
MessageQueue* m_messageQueue;
|
|
|
|
ScopeVis* m_scopeVis;
|
|
|
|
GLScope* m_glScope;
|
|
|
|
|
|
|
|
int m_sampleRate;
|
|
|
|
|
|
|
|
qint32 m_displayData;
|
|
|
|
qint32 m_displayOrientation;
|
|
|
|
qint32 m_timeBase;
|
|
|
|
qint32 m_timeOffset;
|
|
|
|
qint32 m_amplification;
|
2015-07-06 03:17:51 -04:00
|
|
|
qint32 m_ampOffset;
|
2015-06-23 16:52:27 -04:00
|
|
|
int m_displayGridIntensity;
|
2015-06-21 22:16:27 -04:00
|
|
|
|
|
|
|
void applySettings();
|
2015-07-06 19:17:16 -04:00
|
|
|
void setTimeScaleDisplay();
|
2015-06-21 22:16:27 -04:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_amp_valueChanged(int value);
|
2015-07-06 03:17:51 -04:00
|
|
|
void on_ampOfs_valueChanged(int value);
|
2015-06-21 22:16:27 -04:00
|
|
|
void on_scope_traceSizeChanged(int value);
|
2015-07-06 19:17:16 -04:00
|
|
|
void on_scope_sampleRateChanged(int value);
|
2015-06-21 22:16:27 -04:00
|
|
|
void on_time_valueChanged(int value);
|
|
|
|
void on_timeOfs_valueChanged(int value);
|
2015-06-22 03:01:25 -04:00
|
|
|
void on_dataMode_currentIndexChanged(int index);
|
2015-06-23 16:52:27 -04:00
|
|
|
void on_gridIntensity_valueChanged(int index);
|
2015-06-21 22:16:27 -04:00
|
|
|
|
|
|
|
void on_horizView_clicked();
|
|
|
|
void on_vertView_clicked();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDE_GLSCOPEGUI_H
|