2015-01-10 19:12:58 -05:00
|
|
|
#ifndef INCLUDE_LoRaDEMODGUI_H
|
|
|
|
#define INCLUDE_LoRaDEMODGUI_H
|
|
|
|
|
|
|
|
#include "gui/rollupwidget.h"
|
|
|
|
#include "plugin/plugingui.h"
|
|
|
|
|
2015-02-20 03:45:57 -05:00
|
|
|
#define BANDWIDTHSTRING {7813,15625,20833,31250,62500}
|
|
|
|
|
2015-01-10 19:12:58 -05:00
|
|
|
class PluginAPI;
|
|
|
|
class ChannelMarker;
|
|
|
|
class ThreadedSampleSink;
|
|
|
|
class Channelizer;
|
|
|
|
class LoRaDemod;
|
|
|
|
class SpectrumVis;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class LoRaDemodGUI;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LoRaDemodGUI : public RollupWidget, public PluginGUI {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
static LoRaDemodGUI* create(PluginAPI* pluginAPI);
|
|
|
|
void destroy();
|
|
|
|
|
|
|
|
void setName(const QString& name);
|
2015-06-06 21:30:28 -04:00
|
|
|
QString getName() const;
|
2015-07-18 20:07:40 -04:00
|
|
|
qint64 getCenterFrequency() const;
|
2015-01-10 19:12:58 -05:00
|
|
|
|
|
|
|
void resetToDefaults();
|
|
|
|
QByteArray serialize() const;
|
|
|
|
bool deserialize(const QByteArray& data);
|
|
|
|
|
|
|
|
bool handleMessage(Message* message);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void viewChanged();
|
|
|
|
void on_BW_valueChanged(int value);
|
2015-01-12 09:25:16 -05:00
|
|
|
void on_Spread_valueChanged(int value);
|
2015-01-10 19:12:58 -05:00
|
|
|
void onWidgetRolled(QWidget* widget, bool rollDown);
|
|
|
|
void onMenuDoubleClicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::LoRaDemodGUI* ui;
|
|
|
|
PluginAPI* m_pluginAPI;
|
|
|
|
ChannelMarker* m_channelMarker;
|
|
|
|
bool m_basicSettingsShown;
|
|
|
|
|
|
|
|
ThreadedSampleSink* m_threadedSampleSink;
|
|
|
|
Channelizer* m_channelizer;
|
|
|
|
LoRaDemod* m_LoRaDemod;
|
|
|
|
SpectrumVis* m_spectrumVis;
|
|
|
|
|
|
|
|
explicit LoRaDemodGUI(PluginAPI* pluginAPI, QWidget* parent = NULL);
|
|
|
|
~LoRaDemodGUI();
|
|
|
|
|
|
|
|
void applySettings();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDE_LoRaDEMODGUI_H
|