summaryrefslogtreecommitdiff
path: root/widgets/widegraph.h
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /widgets/widegraph.h
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'widgets/widegraph.h')
-rw-r--r--widgets/widegraph.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/widgets/widegraph.h b/widgets/widegraph.h
index d4d2d839..cfee0cd8 100644
--- a/widgets/widegraph.h
+++ b/widgets/widegraph.h
@@ -8,6 +8,7 @@
#include <QHash>
#include <QVariant>
#include "WFPalette.hpp"
+#include "JttySpectrum.hpp"
#define MAX_SCREENSIZE 2048
@@ -27,6 +28,8 @@ public:
~WideGraph ();
void dataSink2(float s[], float df3, int ihsym, int ndiskdata, float pdB);
+ void jttyDataSink (JttySpectrumFrame const& frame);
+ void jttyReceptionEnded ();
void setRxFreq(int n);
int rxFreq();
int nStartFreq();
@@ -66,13 +69,12 @@ signals:
void f11f12(int n);
void setXIT2(int n);
void setFreq3(int rxFreq, int txFreq);
- void jttyDecodeAgainAt2(float secondsAgo);
+ void jttyDecodeAgainAtSample (quint64 reception, qint64 endSample);
public slots:
void wideFreezeDecode(int n);
void setFreq2(int rxFreq, int txFreq);
void setDialFreq(double d);
- void wideJttyDecodeAgainAt(float secondsAgo);
protected:
void keyPressEvent (QKeyEvent *e) override;
@@ -102,6 +104,7 @@ private slots:
private:
void readPalette ();
void replot();
+ void drawJttyAverage ();
QScopedPointer<Ui::WideGraph> ui;
@@ -134,6 +137,10 @@ private:
QString m_waterfallPalette;
float m_swide[MAX_SCREENSIZE];
QString m_user_defined;
+ std::array<double, JttySpectrumFrame::BinCount> m_jttySpectrumSum {};
+ JttyWaterfallRow m_jttyAverageRow;
+ JttyWaterfallRow m_jttyLastRow;
+ int m_jttySpectrumCount = 0;
};
#endif // WIDEGRAPH_H