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
This commit is contained in:
Joe Taylor 2017-05-12 19:40:54 +00:00
parent c6bd586d82
commit 0f3b83633e
2 changed files with 15 additions and 4 deletions

View File

@ -570,7 +570,7 @@ QLabel[oob="true"] {
<item row="0" column="3" rowspan="3">
<widget class="QStackedWidget" name="controls_stack_widget">
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="page">
<layout class="QHBoxLayout" name="horizontalLayout_8">
@ -1744,7 +1744,7 @@ list. The list can be maintained in Settings (F2).</string>
<number>1400</number>
</property>
<property name="maximum">
<number>1600</number>
<number>1700</number>
</property>
<property name="value">
<number>1500</number>

View File

@ -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);