summaryrefslogtreecommitdiff
path: root/map65/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 /map65/widegraph.h
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'map65/widegraph.h')
-rw-r--r--map65/widegraph.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/map65/widegraph.h b/map65/widegraph.h
index e96cb2c2..d0df0cb1 100644
--- a/map65/widegraph.h
+++ b/map65/widegraph.h
@@ -2,6 +2,7 @@
#define WIDEGRAPH_H
#include <QDialog>
+#include <QHash>
#include <QList>
#include <QString>
#include <QTimer>
@@ -50,17 +51,20 @@ public:
// parsing the freq + sender callsign out of the "!"-prefix line);
// the list ages out after m_decodeLabelPeriods ? TR period of no
// refresh and gets pushed to the plotter for rendering.
- // mode_reliable=false: caller has no authoritative mode (e.g. "&"
- // bandmap line, where display.f90 writes no cmode). On dedup, the
+ // mode_reliable=false: caller has no authoritative mode (e.g. an "&"
+ // bandmap line without the mode character). On dedup, the
// existing label's is_jt65 is preserved. For brand-new labels the
// caller's is_jt65 is used as a best-guess seed.
// freq_reliable=false: caller only has integer-kHz precision (e.g.
// "&" bandmap line — cfreq0 is 3 chars, no ndf). On dedup, the
// existing label's freq_khz is preserved so a precise "!" tick
// is not stomped by a later imprecise "&" refresh.
+ // decode_utc: UTC (hhmm) of the decode an "&" bandmap line reports, or
+ // -1 if unknown. The Band Map repeats old decodes on every redisplay,
+ // so such a line keeps a label alive only when its UTC is new.
void addDecodeLabel(double freq_khz, const QString& callsign,
bool is_jt65, bool mode_reliable = true,
- bool freq_reliable = true);
+ bool freq_reliable = true, int decode_utc = -1);
void clearDecodeLabels();
bool decodeLabelsEnabled() const { return m_decodeLabelsEnabled; }
void setDecodeLabelsEnabled(bool on);
@@ -132,6 +136,9 @@ private:
// Decoded-callsign overlay state.
QList<DecodeLabel> m_decodeLabels;
+ // Callsign -> UTC of the decode an aged-out label showed. The Band Map
+ // keeps re-sending that decode, which must not bring the label back.
+ QHash<QString, int> m_expiredLabelUtc;
bool m_decodeLabelsEnabled {true};
int m_decodeLabelPeriods {5}; // disappear after N×TRperiod of no decode
// Overlay opacity preset (0..255). UI offers None=255 / Medium=200 /