More work toward implementing GUI features for FST280 and FST280W.

This commit is contained in:
Joe Taylor 2020-06-16 15:56:15 -04:00
parent 725933ddca
commit 4f802cae84
4 changed files with 37 additions and 4 deletions

View File

@ -24,7 +24,9 @@ namespace
"QRA64", "QRA64",
"FreqCal", "FreqCal",
"FT8", "FT8",
"FT4" "FT4",
"FST280",
"FST280W"
}; };
std::size_t constexpr mode_names_size = sizeof (mode_names) / sizeof (mode_names[0]); std::size_t constexpr mode_names_size = sizeof (mode_names) / sizeof (mode_names[0]);
} }

View File

@ -50,6 +50,8 @@ public:
FreqCal, FreqCal,
FT8, FT8,
FT4, FT4,
FST280,
FST280W,
MODES_END_SENTINAL_AND_COUNT // this must be last MODES_END_SENTINAL_AND_COUNT // this must be last
}; };
Q_ENUM (Mode) Q_ENUM (Mode)

View File

@ -423,6 +423,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
ui->dxGridEntry->setValidator (new MaidenheadLocatorValidator {this}); ui->dxGridEntry->setValidator (new MaidenheadLocatorValidator {this});
ui->dxCallEntry->setValidator (new CallsignValidator {this}); ui->dxCallEntry->setValidator (new CallsignValidator {this});
ui->sbTR->values ({5, 10, 15, 30, 60, 120, 300}); ui->sbTR->values ({5, 10, 15, 30, 60, 120, 300});
ui->sbTR_FST280W->values ({120, 300});
ui->decodedTextBrowser->set_configuration (&m_config, true); ui->decodedTextBrowser->set_configuration (&m_config, true);
ui->decodedTextBrowser2->set_configuration (&m_config); ui->decodedTextBrowser2->set_configuration (&m_config);
@ -5828,6 +5829,9 @@ void MainWindow::on_actionFST280_triggered()
displayWidgets(nWidgets("111011000000111100010000000000000")); displayWidgets(nWidgets("111011000000111100010000000000000"));
bool bVHF=m_config.enable_VHF_features(); bool bVHF=m_config.enable_VHF_features();
setup_status_bar (bVHF); setup_status_bar (bVHF);
m_TRperiod = ui->sbTR->value ();
ui->sbTR->setMinimum(15);
ui->sbTR->setMaximum(300);
ui->sbSubmode->setMaximum(3); ui->sbSubmode->setMaximum(3);
statusChanged(); statusChanged();
} }
@ -5839,9 +5843,14 @@ void MainWindow::on_actionFST280W_triggered()
WSPR_config(true); WSPR_config(true);
ui->actionFST280W->setChecked(true); ui->actionFST280W->setChecked(true);
// 012345678901234567890123456789012 // 012345678901234567890123456789012
displayWidgets(nWidgets("000000000000000001010000000000000")); displayWidgets(nWidgets("000001000000000001010000000000000"));
bool bVHF=m_config.enable_VHF_features(); bool bVHF=m_config.enable_VHF_features();
setup_status_bar (bVHF); setup_status_bar (bVHF);
m_TRperiod = ui->sbTR->value ();
ui->band_hopping_group_box->setVisible(false);
ui->sbTR->setMinimum(120);
ui->sbTR->setMaximum(300);
ui->sbSubmode->setMaximum(3);
statusChanged(); statusChanged();
} }
@ -6464,6 +6473,7 @@ void MainWindow::WSPR_config(bool b)
ui->label_7->setVisible(!b and ui->cbMenus->isChecked()); ui->label_7->setVisible(!b and ui->cbMenus->isChecked());
ui->logQSOButton->setVisible(!b); ui->logQSOButton->setVisible(!b);
ui->DecodeButton->setEnabled(!b); ui->DecodeButton->setEnabled(!b);
ui->band_hopping_group_box->setVisible(true);
if(b and (m_mode!="Echo")) { if(b and (m_mode!="Echo")) {
QString t="UTC dB DT Freq Drift Call Grid dBm "; QString t="UTC dB DT Freq Drift Call Grid dBm ";
if(m_config.miles()) t += " mi"; if(m_config.miles()) t += " mi";

View File

@ -1039,7 +1039,7 @@ QPushButton[state="ok"] {
<item row="0" column="3" rowspan="3"> <item row="0" column="3" rowspan="3">
<widget class="QStackedWidget" name="controls_stack_widget"> <widget class="QStackedWidget" name="controls_stack_widget">
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="page"> <widget class="QWidget" name="page">
<layout class="QHBoxLayout" name="horizontalLayout_8"> <layout class="QHBoxLayout" name="horizontalLayout_8">
@ -1608,7 +1608,7 @@ When not checked you can view the calibration results.</string>
<enum>QTabWidget::Triangular</enum> <enum>QTabWidget::Triangular</enum>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="tab"> <widget class="QWidget" name="tab">
<attribute name="title"> <attribute name="title">
@ -2590,6 +2590,25 @@ list. The list can be maintained in Settings (F2).</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="RestrictedSpinBox" name="sbTR_FST280W">
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="suffix">
<string> s</string>
</property>
<property name="prefix">
<string>T/R </string>
</property>
<property name="minimum">
<number>120</number>
</property>
<property name="maximum">
<number>300</number>
</property>
</widget>
</item>
<item> <item>
<widget class="QGroupBox" name="band_hopping_group_box"> <widget class="QGroupBox" name="band_hopping_group_box">
<property name="title"> <property name="title">