From fab3ddd372f8c70de370d09fb61c902fe8f470eb Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 5 Apr 2016 14:48:19 +0000 Subject: [PATCH] Make JT9 wide/slow Rx/Tx markers the proper width. Add (tentatively?) a checkbox for Reference spectrum. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6578 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- plotter.cpp | 15 +++++++++++++-- widegraph.ui | 25 ++++++++++++++++++------- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/plotter.cpp b/plotter.cpp index d567fc119..6fdd4abdf 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -335,8 +335,19 @@ void CPlotter::DrawOverlay() //DrawOverlay() } } + if(m_modeTx=="JT9" and m_nSubMode>0) { //JT9 + bw=8.0*12000.0/m_nsps; + if(m_nSubMode==1) bw=2*bw; + if(m_nSubMode==2) bw=4*bw; + if(m_nSubMode==3) bw=8*bw; + if(m_nSubMode==4) bw=16*bw; + if(m_nSubMode==5) bw=32*bw; + if(m_nSubMode==6) bw=64*bw; + if(m_nSubMode==7) bw=128*bw; + } + if(m_modeTx=="JT65") { //JT65 - bw=66.0*11025.0/4096.0; + bw=65.0*11025.0/4096.0; if(m_nSubMode==1) bw=2*bw; if(m_nSubMode==2) bw=4*bw; } @@ -354,7 +365,7 @@ void CPlotter::DrawOverlay() //DrawOverlay() painter0.drawLine(x1,24,x1,30); painter0.drawLine(x1,28,x2,28); painter0.drawLine(x2,24,x2,30); - if(g_single_decode) { + if(g_single_decode and m_mode=="JT65") { x3=XfromFreq(m_rxFreq+22.0*bw/66.0); painter0.drawLine(x3,24,x3,30); x4=XfromFreq(m_rxFreq+32.0*bw/66.0); diff --git a/widegraph.ui b/widegraph.ui index 9336f74e2..dd31f7a24 100644 --- a/widegraph.ui +++ b/widegraph.ui @@ -143,13 +143,6 @@ - - - - Flatten - - - @@ -564,6 +557,24 @@ + + + + + + Flat + + + + + + + Ref + + + + +