Add several more widgets to the "displayWidgets" string.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8342 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2017-12-18 21:10:44 +00:00
parent ceeb410a3e
commit e94eb37ddc
2 changed files with 103 additions and 73 deletions

61
displayWidgets.txt Normal file
View File

@ -0,0 +1,61 @@
Here are the "displayWidgets()" strings for WSJT-X modes
1 2 3
01234567890123456789012345678901
----------------------------------------------
JT4 11101000000011100011000000000000
JT4/VHF 11111001001011111011110000000000
JT9 11101000000011100001000000000000
JT9/VHF 11111010100011111001000000000000
JT9+JT65 11101000000111100001000000000000
JT65 11101000000011100001000000000000
JT65/VHF 11111001000011111011110001000000
QRA64 11111001011011111000000000100000
ISCAT 10011100000000011000000000000000
MSK144 10111111010000000001000100001000
WSPR 00000000000000000101000000000000
Echo 00000000000000000000001000000000
FCal 00110100000000000000000000000100
FT8 11101000010011100001000010010000
FT8/VHF 11101000010011100001000010011000
FT8/Fox 11101000010011100001000010000010
FT8/Hound 11101000010011100001000010000011
----------------------------------------------
1 2 3
01234567890123456789012345678901
----------------------------------------------
Mapping of column numbers to widgets
----------------------------------------------
0. txFirstCheckbox
1. TxFreqSpinBox
2. RxFreqSpinBox
3. sbFtol
4. rptSpinBox
5. sbTR
6. sbCQTxFreq
7. cbShMsgs
8. cbFast9
9. cbAutoSeq
10. cbTx6
11. pbTxMode
12. pbR2T
13. pbT2R
14. cbHoldTxFreq
15. sbSubmode
16. syncSpinBox
17. WSPR_Controls_Widget
18. ClrAvgButton
19. Fast/Normal/Deep
20. Include Avg
21. Include Deep Search
22. Echo Graph
23. cbSWL
24. AP FT8
25. AP JT65
26. AP DX Call
27. cbFirst
28. cbVHFcontest
29. measure_check_box
30. labDXped
31. cbRxAll

View File

@ -3515,70 +3515,6 @@ void MainWindow::guiUpdate()
}
}
if(m_mode=="FT8") {
if(!m_config.split_mode() and !m_bWarnSplit) {
QString errorMsg;
MessageBox::critical_message (this,
"Operation in FT8 DXpedition strongly recommends use\n"
"of Split mode. Use either ""Rig"" or ""Fake It""\n"
"on the *Settings | Radio* tab.", errorMsg);
m_bWarnSplit=true;
}
if(m_config.bFox()) {
QString t;
t.sprintf("DXpedition: Fox");
ui->labDXped->setText(t);
}
int nDXped=0;
if(m_config.bFox()) nDXped=1;
if(m_config.bHound()) nDXped=2;
if(nDXped != m_nDXped) {
ui->txrb2->setEnabled(true);
ui->txrb4->setEnabled(true);
ui->txrb5->setEnabled(true);
ui->txrb6->setEnabled(true);
//DXped mode has changed, force GUI controls approprtately
if(nDXped==0) {
ui->txFirstCheckBox->setEnabled(true);
ui->cbAutoSeq->setEnabled(true);
ui->cbFirst->setVisible(true);
ui->cbRxAll->setVisible(false);
}
if(nDXped==1) {
//Fox
ui->txFirstCheckBox->setChecked(true);
ui->txFirstCheckBox->setEnabled(false);
ui->cbAutoSeq->setChecked(true);
ui->cbAutoSeq->setEnabled(false);
ui->tabWidget->setCurrentIndex(2);
ui->cbHoldTxFreq->setChecked(true);
ui->cbFirst->setChecked(false);
ui->cbFirst->setVisible(false);
ui->cbRxAll->setVisible(false);
ui->TxFreqSpinBox->setValue(300);
}
if(nDXped==2) {
//Hound
ui->txFirstCheckBox->setChecked(false);
ui->txFirstCheckBox->setEnabled(false);
ui->cbAutoSeq->setChecked(true);
ui->cbAutoSeq->setEnabled(false);
ui->tabWidget->setCurrentIndex(0);
ui->cbFirst->setChecked(false);
ui->cbFirst->setVisible(false);
ui->cbRxAll->setVisible(true);
ui->txrb1->setChecked(true);
ui->txrb2->setEnabled(false);
ui->txrb4->setEnabled(false);
ui->txrb5->setEnabled(false);
ui->txrb6->setEnabled(false);
}
m_nDXped=nDXped;
}
}
//Once per second:
if(nsec != m_sec0) {
if(m_freqNominal!=0 and m_freqNominal<50000000 and m_config.enable_VHF_features()) {
@ -4960,15 +4896,48 @@ void MainWindow::on_actionFT8_triggered()
ui->label_6->setText("Band Activity");
ui->decodedTextLabel->setText( " UTC dB DT Freq Message");
}
displayWidgets(nWidgets("111010000100111000010000100"));
if(m_config.bFox() or m_config.bHound()) {
if(m_config.bFox()) ui->labDXped->setText("DXpedition: Fox");
if(m_config.bHound()) ui->labDXped->setText("DXpedition: Hound");
ui->labDXped->setVisible(true);
ui->cbVHFcontest->setVisible(false);
} else {
ui->labDXped->setVisible(false);
ui->cbVHFcontest->setVisible(true);
displayWidgets(nWidgets("11101000010011100001000010010000"));
if(bVHF) displayWidgets(nWidgets("11101000010011100001000010011000"));
ui->txrb2->setEnabled(true);
ui->txrb4->setEnabled(true);
ui->txrb5->setEnabled(true);
ui->txrb6->setEnabled(true);
ui->txb2->setEnabled(true);
ui->txb4->setEnabled(true);
ui->txb5->setEnabled(true);
ui->txb6->setEnabled(true);
if(m_config.bFox()) {
ui->txFirstCheckBox->setChecked(true);
ui->txFirstCheckBox->setChecked(true);
ui->tabWidget->setCurrentIndex(2);
ui->TxFreqSpinBox->setValue(300);
displayWidgets(nWidgets("11101000010011100001000010000010"));
ui->labDXped->setText("DXpedition: Fox");
}
if(m_config.bHound()) {
ui->txFirstCheckBox->setChecked(false);
ui->txFirstCheckBox->setChecked(true);
ui->tabWidget->setCurrentIndex(0);
ui->cbHoldTxFreq->setChecked(true);
displayWidgets(nWidgets("11101000010011100001000010000011"));
ui->labDXped->setText("DXpedition: Hound");
ui->txrb2->setEnabled(false);
ui->txrb4->setEnabled(false);
ui->txrb5->setEnabled(false);
ui->txrb6->setEnabled(false);
ui->txb2->setEnabled(false);
ui->txb4->setEnabled(false);
ui->txb5->setEnabled(false);
ui->txb6->setEnabled(false);
}
if((m_config.bFox() or m_config.bHound()) and !m_config.split_mode() and !m_bWarnSplit) {
QString errorMsg;
MessageBox::critical_message (this,
"Operation in FT8 DXpedition strongly recommends use\n"
"of Split mode. Use either ""Rig"" or ""Fake It""\n"
"on the *Settings | Radio* tab.", errorMsg);
m_bWarnSplit=true;
}
statusChanged();
}