mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-29 12:52:28 -04:00
Several tweaks and additions to GUI behavior in DXpedition mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8332 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
516aef2e99
commit
5a716157f9
109
mainwindow.cpp
109
mainwindow.cpp
@ -1732,8 +1732,20 @@ void MainWindow::keyPressEvent (QKeyEvent * e)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
QMainWindow::keyPressEvent (e);
|
QMainWindow::keyPressEvent (e);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(m_config.bHound()) {
|
||||||
|
switch (e->key()) {
|
||||||
|
case Qt::Key_Return:
|
||||||
|
auto_tx_mode(true);
|
||||||
|
return;
|
||||||
|
case Qt::Key_Enter:
|
||||||
|
auto_tx_mode(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
QMainWindow::keyPressEvent (e);
|
||||||
|
}
|
||||||
|
|
||||||
int n;
|
int n;
|
||||||
switch(e->key())
|
switch(e->key())
|
||||||
{
|
{
|
||||||
@ -2581,6 +2593,7 @@ void MainWindow::decode() //decode()
|
|||||||
dec_data.params.nfa=m_wideGraph->nStartFreq();
|
dec_data.params.nfa=m_wideGraph->nStartFreq();
|
||||||
dec_data.params.nfSplit=m_wideGraph->Fmin();
|
dec_data.params.nfSplit=m_wideGraph->Fmin();
|
||||||
dec_data.params.nfb=m_wideGraph->Fmax();
|
dec_data.params.nfb=m_wideGraph->Fmax();
|
||||||
|
if(m_mode=="FT8" and m_config.bHound() and !ui->cbRxAll->isChecked()) dec_data.params.nfb=1000;
|
||||||
dec_data.params.ntol=ui->sbFtol->value ();
|
dec_data.params.ntol=ui->sbFtol->value ();
|
||||||
if(m_mode=="JT9+JT65" or !m_config.enable_VHF_features()) {
|
if(m_mode=="JT9+JT65" or !m_config.enable_VHF_features()) {
|
||||||
dec_data.params.ntol=20;
|
dec_data.params.ntol=20;
|
||||||
@ -3496,44 +3509,69 @@ void MainWindow::guiUpdate()
|
|||||||
on_actionOpen_next_in_directory_triggered();
|
on_actionOpen_next_in_directory_triggered();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(m_config.bFox()) {
|
|
||||||
QString t;
|
|
||||||
t.sprintf("DXpedition: Fox");
|
|
||||||
ui->labDXped->setText(t);
|
|
||||||
}
|
|
||||||
|
|
||||||
int nDXped=0;
|
if(m_mode=="FT8") {
|
||||||
if(m_config.bFox()) nDXped=1;
|
if(!m_config.split_mode() and !m_bWarnSplit) {
|
||||||
if(m_config.bHound()) nDXped=2;
|
QString errorMsg;
|
||||||
if(nDXped != m_nDXped) {
|
MessageBox::critical_message (this,
|
||||||
|
"Operation in FT8 DXpedition requires use of\n"
|
||||||
|
"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
|
//DXped mode has changed, force GUI controls approprtately
|
||||||
if(nDXped==0) {
|
if(nDXped==0) {
|
||||||
ui->txFirstCheckBox->setEnabled(true);
|
ui->txFirstCheckBox->setEnabled(true);
|
||||||
ui->cbAutoSeq->setEnabled(true);
|
ui->cbAutoSeq->setEnabled(true);
|
||||||
ui->cbFirst->setVisible(true);
|
ui->cbFirst->setVisible(true);
|
||||||
}
|
ui->cbRxAll->setVisible(false);
|
||||||
if(nDXped==1) {
|
}
|
||||||
|
if(nDXped==1) {
|
||||||
//Fox
|
//Fox
|
||||||
ui->txFirstCheckBox->setChecked(true);
|
ui->txFirstCheckBox->setChecked(true);
|
||||||
ui->txFirstCheckBox->setEnabled(false);
|
ui->txFirstCheckBox->setEnabled(false);
|
||||||
ui->cbAutoSeq->setChecked(true);
|
ui->cbAutoSeq->setChecked(true);
|
||||||
ui->cbAutoSeq->setEnabled(false);
|
ui->cbAutoSeq->setEnabled(false);
|
||||||
ui->tabWidget->setCurrentIndex(2);
|
ui->tabWidget->setCurrentIndex(2);
|
||||||
ui->cbHoldTxFreq->setChecked(true);
|
ui->cbHoldTxFreq->setChecked(true);
|
||||||
ui->cbFirst->setChecked(false);
|
ui->cbFirst->setChecked(false);
|
||||||
ui->cbFirst->setVisible(false);
|
ui->cbFirst->setVisible(false);
|
||||||
}
|
ui->cbRxAll->setVisible(false);
|
||||||
if(nDXped==2) {
|
ui->TxFreqSpinBox->setValue(300);
|
||||||
|
}
|
||||||
|
if(nDXped==2) {
|
||||||
//Hound
|
//Hound
|
||||||
ui->txFirstCheckBox->setChecked(true);
|
ui->txFirstCheckBox->setChecked(false);
|
||||||
ui->txFirstCheckBox->setEnabled(false);
|
ui->txFirstCheckBox->setEnabled(false);
|
||||||
ui->cbAutoSeq->setChecked(true);
|
ui->cbAutoSeq->setChecked(true);
|
||||||
ui->cbAutoSeq->setEnabled(false);
|
ui->cbAutoSeq->setEnabled(false);
|
||||||
ui->tabWidget->setCurrentIndex(0);
|
ui->tabWidget->setCurrentIndex(0);
|
||||||
ui->cbFirst->setChecked(false);
|
ui->cbFirst->setChecked(false);
|
||||||
ui->cbFirst->setVisible(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;
|
||||||
}
|
}
|
||||||
m_nDXped=nDXped;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Once per second:
|
//Once per second:
|
||||||
@ -3676,6 +3714,7 @@ void MainWindow::stopTx2()
|
|||||||
m_ntr=0;
|
m_ntr=0;
|
||||||
}
|
}
|
||||||
last_tx_label.setText("Last Tx: " + m_currentMessage.trimmed());
|
last_tx_label.setText("Last Tx: " + m_currentMessage.trimmed());
|
||||||
|
if(m_mode=="FT8" and m_config.bHound()) auto_tx_mode(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()
|
void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()
|
||||||
@ -4906,7 +4945,7 @@ void MainWindow::on_actionFT8_triggered()
|
|||||||
ui->label_7->setText("Rx Frequency");
|
ui->label_7->setText("Rx Frequency");
|
||||||
if(m_config.bFox()) {
|
if(m_config.bFox()) {
|
||||||
ui->label_6->setText("Stations calling DXpedition " + m_config.my_callsign());
|
ui->label_6->setText("Stations calling DXpedition " + m_config.my_callsign());
|
||||||
ui->decodedTextLabel->setText( "Call Grid dB Freq Dist");
|
ui->decodedTextLabel->setText( "Call Grid dB Freq Dist Age Continent");
|
||||||
} else {
|
} else {
|
||||||
ui->label_6->setText("Band Activity");
|
ui->label_6->setText("Band Activity");
|
||||||
ui->decodedTextLabel->setText( " UTC dB DT Freq Message");
|
ui->decodedTextLabel->setText( " UTC dB DT Freq Message");
|
||||||
|
@ -477,6 +477,7 @@ private:
|
|||||||
bool m_bCallingCQ;
|
bool m_bCallingCQ;
|
||||||
bool m_bAutoReply;
|
bool m_bAutoReply;
|
||||||
bool m_bCheckedContest;
|
bool m_bCheckedContest;
|
||||||
|
bool m_bWarnSplit=false;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -989,6 +989,13 @@ QLabel[oob="true"] {
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="cbRxAll">
|
||||||
|
<property name="text">
|
||||||
|
<string>Rx All Freqs</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="15" column="0" colspan="2">
|
<item row="15" column="0" colspan="2">
|
||||||
@ -1049,7 +1056,7 @@ QLabel[oob="true"] {
|
|||||||
<enum>QTabWidget::Triangular</enum>
|
<enum>QTabWidget::Triangular</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>2</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tab">
|
<widget class="QWidget" name="tab">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user