MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / modeGroup

Function modeGroup

src/gui/PskReporterMapDialog.cpp:54–71  ·  view source on GitHub ↗

Normalize a PSK Reporter / ADIF mode string to one of the selector's mode groups.

Source from the content-addressed store, hash-verified

52// Normalize a PSK Reporter / ADIF mode string to one of the selector's
53// mode groups.
54QString modeGroup(const QString& mode)
55{
56 const QString m = mode.toUpper();
57 if (m.startsWith(QLatin1String("FT8"))) return QStringLiteral("FT8");
58 if (m.startsWith(QLatin1String("FT4"))) return QStringLiteral("FT4");
59 if (m.startsWith(QLatin1String("WSPR")) || m == QLatin1String("FST4W"))
60 return QStringLiteral("WSPR");
61 if (m.startsWith(QLatin1String("JS8"))) return QStringLiteral("JS8");
62 if (m == QLatin1String("CW")) return QStringLiteral("CW");
63 if (m.startsWith(QLatin1String("PSK")) || m.startsWith(QLatin1String("BPSK"))
64 || m.startsWith(QLatin1String("QPSK")))
65 return QStringLiteral("PSK");
66 if (m.startsWith(QLatin1String("RTTY"))) return QStringLiteral("RTTY");
67 if (m == QLatin1String("SSB") || m == QLatin1String("USB")
68 || m == QLatin1String("LSB"))
69 return QStringLiteral("SSB");
70 return QStringLiteral("Other");
71}
72
73// Marker color per mode group — saturated hues chosen to stand out on the
74// pastel OSM basemap (markers also carry a dark outline + white label halo).

Callers 2

modeColorFunction · 0.85
rebuildMarkersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected