Bright red label to flag Fox, Hound, or use of new 77-bit message styles.

This commit is contained in:
Joe Taylor 2018-07-09 14:33:56 -04:00
parent 340e0f9290
commit b252c11815
3 changed files with 38 additions and 13 deletions

View File

@ -1960,6 +1960,7 @@ void Configuration::impl::accept ()
twoPass_ = ui_->cbTwoPass->isChecked (); twoPass_ = ui_->cbTwoPass->isChecked ();
bFox_ = ui_->cbFox->isChecked (); bFox_ = ui_->cbFox->isChecked ();
bHound_ = ui_->cbHound->isChecked (); bHound_ = ui_->cbHound->isChecked ();
if(bFox_ or bHound_) ui_->rbNone->setChecked(true); //###
bGenerate77_ = ui_->cbGenerate77->isChecked(); bGenerate77_ = ui_->cbGenerate77->isChecked();
bDecode77_ = ui_->cbDecode77->isChecked(); bDecode77_ = ui_->cbDecode77->isChecked();
bNoSpecial_ = ui_->rbNone->isChecked (); bNoSpecial_ = ui_->rbNone->isChecked ();
@ -2453,12 +2454,18 @@ void Configuration::impl::on_calibration_slope_ppm_spin_box_valueChanged (double
void Configuration::impl::on_cbFox_clicked (bool checked) void Configuration::impl::on_cbFox_clicked (bool checked)
{ {
if (checked) ui_->cbHound->setChecked (false); if(checked) {
ui_->cbHound->setChecked (false);
ui_->rbNone->setChecked(true);
}
} }
void Configuration::impl::on_cbHound_clicked (bool checked) void Configuration::impl::on_cbHound_clicked (bool checked)
{ {
if (checked) ui_->cbFox->setChecked (false); if(checked) {
ui_->cbFox->setChecked (false);
ui_->rbNone->setChecked(true);
}
} }
void Configuration::impl::on_cbx2ToneSpacing_clicked(bool b) void Configuration::impl::on_cbx2ToneSpacing_clicked(bool b)

View File

@ -718,6 +718,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
m_msg[0][0]=0; m_msg[0][0]=0;
m_bQRAsyncWarned=false; m_bQRAsyncWarned=false;
ui->labDXped->setVisible(false); ui->labDXped->setVisible(false);
ui->labDXped->setStyleSheet("QLabel {background-color: red; color: white;}");
for(int i=0; i<28; i++) { //Initialize dBm values for(int i=0; i<28; i++) { //Initialize dBm values
float dbm=(10.0*i)/3.0 - 30.0; float dbm=(10.0*i)/3.0 - 30.0;
@ -5181,6 +5182,7 @@ void MainWindow::on_actionFT8_triggered()
ui->txb6->setEnabled(false); ui->txb6->setEnabled(false);
} }
if(!m_config.bFox() and !m_config.bHound()) {
QString t0=""; QString t0="";
if(m_config.bEU_VHF_Contest()) t0="EU VHF"; if(m_config.bEU_VHF_Contest()) t0="EU VHF";
if(m_config.bNA_VHF_Contest()) t0="NA VHF"; if(m_config.bNA_VHF_Contest()) t0="NA VHF";
@ -5191,7 +5193,8 @@ void MainWindow::on_actionFT8_triggered()
ui->labDXped->setVisible(false); ui->labDXped->setVisible(false);
} else { } else {
ui->labDXped->setVisible(true); ui->labDXped->setVisible(true);
ui->labDXped->setText("*** " + t0 + " ***"); ui->labDXped->setText(t0);
}
} }
if((m_config.bFox() or m_config.bHound()) and !m_config.split_mode() and !m_bWarnedSplit) { if((m_config.bFox() or m_config.bHound()) and !m_config.split_mode() and !m_bWarnedSplit) {

View File

@ -872,9 +872,24 @@ QLabel[oob=&quot;true&quot;] {
<layout class="QHBoxLayout" name="horizontalLayout_15"> <layout class="QHBoxLayout" name="horizontalLayout_15">
<item> <item>
<widget class="QLabel" name="labDXped"> <widget class="QLabel" name="labDXped">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="text"> <property name="text">
<string>Fox</string> <string>Fox</string>
</property> </property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget> </widget>
</item> </item>
<item> <item>