-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsigtuner_gui.h
executable file
·45 lines (35 loc) · 959 Bytes
/
sigtuner_gui.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef SIGTUNER_GUI_H
#define SIGTUNER_GUI_H
#include <qcustomplot.h>
#include <ftmarker.h>
/*
This is the GUI representation of a tuner on either the FFT plot
or the waterfall plot.
Used in conjection with the control, it will allow editing CF/BW changes
*/
// enum for line selection
enum linesel
{
eMV_LowF,
eMV_HighF,
eMV_CenterF,
eMV_None
};
// this is a qobject to receive signals
class sigtuner_GUI : public QObject
{
Q_OBJECT
public:
sigtuner_GUI(ftmarker *tunermarker,QCustomPlot *ParentPlot);
QCPItemStraightLine *lowFreqLineFFT;
QCPItemStraightLine *highFreqLineFFT;
QCPItemStraightLine *CenterFreqLineFFT;
linesel m_ms; // moving line selection
QCustomPlot *m_ParentPlot;
ftmarker *m_tunermarker;
void SetupLine(QCPItemStraightLine* line, float xv, QColor color);
void SetVisible(bool visible);
private slots:
void OnMarkerChanged(ftmarker *mrk);
};
#endif // SIGTUNER_GUI_H