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

Function panCountForLayoutId

src/gui/MainWindowHelpers.cpp:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255// ─── Pan layout ──────────────────────────────────────────────────────────────
256
257int panCountForLayoutId(const QString& layoutId)
258{
259 static const QMap<QString, int> kPanCounts = {
260 {"1", 1}, {"2v", 2}, {"2h", 2}, {"2h1", 3}, {"12h", 3}, {"3v", 3},
261 {"2x2", 4}, {"4v", 4}, {"3h2", 5}, {"2x3", 6}, {"4h3", 7}, {"2x4", 8}
262 };
263 return kPanCounts.value(layoutId, 1);
264}
265
266// ─── XVTR policy summaries (diagnostics) ────────────────────────────────────
267

Callers 3

applyPanLayoutMethod · 0.85
eventFilterMethod · 0.85
wirePanLifecycleMethod · 0.85

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected