mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-20 22:59:45 -04:00
Scan ADIF log asynchronously and new settings button to rescan ADIF log
This commit is contained in:
+14
-2
@@ -210,7 +210,8 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
m_configurations_button {0},
|
||||
m_settings {multi_settings->settings ()},
|
||||
ui(new Ui::MainWindow),
|
||||
m_config {&m_network_manager, temp_directory, m_settings, this},
|
||||
m_logBook {&m_config},
|
||||
m_config {&m_network_manager, temp_directory, m_settings, &m_logBook, this},
|
||||
m_WSPR_band_hopping {m_settings, &m_config, this},
|
||||
m_WSPR_tx_next {false},
|
||||
m_rigErrorMessageBox {MessageBox::Critical, tr ("Rig Control Error")
|
||||
@@ -361,7 +362,6 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
},
|
||||
m_sfx {"P", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A"},
|
||||
mem_jt9 {shdmem},
|
||||
m_logBook {&m_config},
|
||||
m_msAudioOutputBuffered (0u),
|
||||
m_framesAudioInputBuffered (RX_SAMPLE_RATE / 10),
|
||||
m_downSampleFactor (downSampleFactor),
|
||||
@@ -463,6 +463,18 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
||||
connect (m_logDlg.data (), &LogQSO::acceptQSO, this, &MainWindow::acceptQSO);
|
||||
connect (this, &MainWindow::finished, m_logDlg.data (), &LogQSO::close);
|
||||
|
||||
// hook up the log book
|
||||
connect (&m_logBook, &LogBook::finished_loading, [this] (int record_count, QString const& error) {
|
||||
if (error.size ())
|
||||
{
|
||||
MessageBox::warning_message (this, tr ("Error Scanning ADIF Log"), error);
|
||||
}
|
||||
else
|
||||
{
|
||||
showStatusMessage (tr ("Scanned ADIF log, %1 worked before records created").arg (record_count));
|
||||
}
|
||||
});
|
||||
|
||||
// Network message handlers
|
||||
connect (m_messageClient, &MessageClient::reply, this, &MainWindow::replyToCQ);
|
||||
connect (m_messageClient, &MessageClient::replay, this, &MainWindow::replayDecodes);
|
||||
|
||||
Reference in New Issue
Block a user