diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-10-20 22:35:06 +0100 |
| commit | 82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch) | |
| tree | 1a1f782d3e576b758be0bc61171574a7cd8f2376 /widgets/plotter.h | |
| parent | 061658210acb6425517733ea012dda803a7f72a1 (diff) | |
| parent | 61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff) | |
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
Diffstat (limited to 'widgets/plotter.h')
| -rw-r--r-- | widgets/plotter.h | 17 |
1 files changed, 16 insertions, 1 deletions
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 <QToolTip> #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<float, JttySpectrumFrame::BinCount> const& cumulative, + std::array<float, JttySpectrumFrame::BinCount> 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<float> m_swideDisplay; QVector<float> m_savgDisplay; QVector<float> m_replotRow; + struct JttyRowHistory { + JttyWaterfallRow audio; + bool timestamp = false; + }; + QVector<JttyRowHistory> m_jttyRows; + JttyWaterfallRow m_pendingJttyRow; + std::array<float, JttySpectrumFrame::BinCount> m_jttyCumulative {}; + std::array<float, JttySpectrumFrame::BinCount> m_jttyLinearAverage {}; + int m_jttyRowsSinceTimestamp = 1000; QString m_mode; QString m_mode0; QString m_rxBand; |
