From d378795d293b114f9ef0705da6c5106ef83da4c6 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 12 May 2017 19:40:54 +0000 Subject: [PATCH] Minor tweaks to GUI for WSPR-LF. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7674 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.ui | 4 ++-- plotter.cpp | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/mainwindow.ui b/mainwindow.ui index 6368fc652..03e1f0c3e 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -570,7 +570,7 @@ QLabel[oob="true"] { - 0 + 1 @@ -1744,7 +1744,7 @@ list. The list can be maintained in Settings (F2). 1400 - 1600 + 1700 1500 diff --git a/plotter.cpp b/plotter.cpp index b8cbce5cf..14ac09e73 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -414,12 +414,18 @@ void CPlotter::DrawOverlay() //DrawOverlay() } painter0.setPen(penGreen); - if(m_mode=="WSPR") { //### WSPR-15 code needed here, too ### + if(m_mode=="WSPR") { x1=XfromFreq(1400); x2=XfromFreq(1600); painter0.drawLine(x1,29,x2,29); } + if(m_mode=="WSPR-LF") { + x1=XfromFreq(1600); + x2=XfromFreq(1700); + painter0.drawLine(x1,29,x2,29); + } + if(m_mode=="FreqCal") { //FreqCal x1=XfromFreq(m_rxFreq-m_tol); x2=XfromFreq(m_rxFreq+m_tol); @@ -466,11 +472,16 @@ void CPlotter::DrawOverlay() //DrawOverlay() painter0.setPen(penRed); x1=XfromFreq(m_txFreq); x2=XfromFreq(m_txFreq+bw); - if(m_mode=="WSPR") { //### WSPR-15 code needed here, too + if(m_mode=="WSPR") { bw=4*12000.0/8192.0; //WSPR x1=XfromFreq(m_txFreq-0.5*bw); x2=XfromFreq(m_txFreq+0.5*bw); } + if(m_mode=="WSPR-LF") { + bw=3*12000.0/8640.0; //WSPR-LF + x1=XfromFreq(m_txFreq-0.5*bw); + x2=XfromFreq(m_txFreq+0.5*bw); + } painter0.drawLine(x1,17,x1,21); painter0.drawLine(x1,17,x2,17); painter0.drawLine(x2,17,x2,21);