From ffc62c792c9a5196cb4ce7a353287dfe20db6524 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 9 Oct 2026 14:12:35 +0200 Subject: New upstream version 3.3.0~beta1+dfsg --- widgets/plotter.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'widgets/plotter.h') diff --git a/widgets/plotter.h b/widgets/plotter.h index af2ec36c..51d5ccb1 100644 --- a/widgets/plotter.h +++ b/widgets/plotter.h @@ -16,12 +16,14 @@ #include #include "WaterfallScale.hpp" +#include "JttySpectrum.hpp" #define VERT_DIVS 7 //specify grid screen divisions extern bool g_single_decode; class QAction; +class QPainter; class CPlotter : public QFrame { @@ -98,11 +100,14 @@ public: void restartTotalPower(); bool scaleOK () const {return m_bScaleOK;} void setDarkStyle(bool b); + void setJttyRow (JttyWaterfallRow const& row) { m_pendingJttyRow = row; } + void setJttySpectrum (std::array const& cumulative, + std::array const& linearAverage); signals: void freezeDecode1(int n); void setFreq1(int rxFreq, int txFreq); - void jttyDecodeAgainAt(float secondsAgo); + void jttyDecodeAgainAtSample (quint64 reception, qint64 endSample); protected: //re-implemented widget event handlers @@ -117,6 +122,7 @@ private: int XfromFreq(float f); float FreqfromX(int x); void drawSavedWaterfall(); + void drawJttyLabels (QPainter& painter, bool newestOnly); QAction * m_set_freq_action; @@ -167,6 +173,15 @@ private: QVector m_swideDisplay; QVector m_savgDisplay; QVector m_replotRow; + struct JttyRowHistory { + JttyWaterfallRow audio; + bool timestamp = false; + }; + QVector m_jttyRows; + JttyWaterfallRow m_pendingJttyRow; + std::array m_jttyCumulative {}; + std::array m_jttyLinearAverage {}; + int m_jttyRowsSinceTimestamp = 1000; QString m_mode; QString m_mode0; QString m_rxBand; -- cgit v1.2.3