2015-06-21 06:46:47 -04:00
|
|
|
#ifndef INCLUDE_CHANNELANALYZERGUI_H
|
|
|
|
#define INCLUDE_CHANNELANALYZERGUI_H
|
|
|
|
|
|
|
|
#include "gui/rollupwidget.h"
|
|
|
|
#include "plugin/plugingui.h"
|
|
|
|
|
|
|
|
class PluginAPI;
|
|
|
|
class ChannelMarker;
|
|
|
|
|
|
|
|
//class AudioFifo;
|
|
|
|
class ThreadedSampleSink;
|
|
|
|
class Channelizer;
|
|
|
|
class ChannelAnalyzer;
|
2015-06-23 14:05:28 -04:00
|
|
|
class SpectrumScopeComboVis;
|
2015-06-21 06:46:47 -04:00
|
|
|
class SpectrumVis;
|
2015-06-21 22:16:27 -04:00
|
|
|
class ScopeVis;
|
2015-06-21 06:46:47 -04:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ChannelAnalyzerGUI;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ChannelAnalyzerGUI : public RollupWidget, public PluginGUI {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
static ChannelAnalyzerGUI* create(PluginAPI* pluginAPI);
|
|
|
|
void destroy();
|
|
|
|
|
|
|
|
void setName(const QString& name);
|
|
|
|
QString getName() const;
|
2015-07-18 20:07:40 -04:00
|
|
|
qint64 getCenterFrequency() const;
|
2015-06-21 06:46:47 -04:00
|
|
|
|
|
|
|
void resetToDefaults();
|
|
|
|
QByteArray serialize() const;
|
|
|
|
bool deserialize(const QByteArray& data);
|
|
|
|
|
|
|
|
bool handleMessage(Message* message);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void viewChanged();
|
2015-07-12 03:32:54 -04:00
|
|
|
void channelSampleRateChanged();
|
2015-06-21 06:46:47 -04:00
|
|
|
void on_deltaFrequency_changed(quint64 value);
|
|
|
|
void on_deltaMinus_clicked(bool minus);
|
|
|
|
void on_BW_valueChanged(int value);
|
|
|
|
void on_lowCut_valueChanged(int value);
|
|
|
|
void on_spanLog2_valueChanged(int value);
|
|
|
|
void on_ssb_toggled(bool checked);
|
|
|
|
void onWidgetRolled(QWidget* widget, bool rollDown);
|
|
|
|
void onMenuDoubleClicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::ChannelAnalyzerGUI* ui;
|
|
|
|
PluginAPI* m_pluginAPI;
|
|
|
|
ChannelMarker* m_channelMarker;
|
|
|
|
bool m_basicSettingsShown;
|
|
|
|
int m_rate;
|
|
|
|
int m_spanLog2;
|
|
|
|
|
2015-06-23 03:15:06 -04:00
|
|
|
ThreadedSampleSink* m_threadedSampleSink;
|
2015-06-21 06:46:47 -04:00
|
|
|
Channelizer* m_channelizer;
|
|
|
|
ChannelAnalyzer* m_channelAnalyzer;
|
2015-06-23 14:05:28 -04:00
|
|
|
SpectrumScopeComboVis* m_spectrumScopeComboVis;
|
2015-06-21 06:46:47 -04:00
|
|
|
SpectrumVis* m_spectrumVis;
|
2015-06-21 22:16:27 -04:00
|
|
|
ScopeVis* m_scopeVis;
|
2015-06-21 06:46:47 -04:00
|
|
|
|
|
|
|
explicit ChannelAnalyzerGUI(PluginAPI* pluginAPI, QWidget* parent = NULL);
|
|
|
|
~ChannelAnalyzerGUI();
|
|
|
|
|
|
|
|
int getEffectiveLowCutoff(int lowCutoff);
|
|
|
|
bool setNewRate(int spanLog2);
|
|
|
|
void applySettings();
|
|
|
|
|
|
|
|
void leaveEvent(QEvent*);
|
|
|
|
void enterEvent(QEvent*);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDE_CHANNELANALYZERGUI_H
|