remove hound callsign from left hand side if clicked on in active station window

This commit is contained in:
Brian Moran 2024-08-29 10:11:23 -07:00
parent 30c87ea019
commit ffd5dd1db2
2 changed files with 13 additions and 0 deletions

View File

@ -3998,6 +3998,7 @@ void MainWindow::queueActiveWindowHound2(QString line) {
refreshHoundQueueDisplay();
// TODO: remove from active stations window too?
}
removeHoundFromCallingList(caller);
}
} else {
LOG_INFO(QString("ActiveStations Window click: skipping %1").arg(line));
@ -10239,6 +10240,17 @@ QString MainWindow::sortHoundCalls(QString t, int isort, int max_dB)
return m_houndCallers;
}
void MainWindow::removeHoundFromCallingList(QString callsign)
{
QString text = m_houndCallers;
QRegularExpression re = QRegularExpression("^" + callsign + "[^\\n]+\\n", QRegularExpression::MultilineOption);
text.remove(re);
if (text != m_houndCallers) {
m_nSortedHounds--;
m_houndCallers = text;
ui->decodedTextBrowser->setHighlightedHoundText(m_houndCallers);
}
}
//------------------------------------------------------------------------------
void MainWindow::selectHound(QString line, bool bTopQueue)
{

View File

@ -873,6 +873,7 @@ private:
QChar current_submode () const; // returns QChar {0} if submode is not appropriate
void write_transmit_entry (QString const& file_name);
void selectHound(QString t, bool bTopQueue);
void removeHoundFromCallingList(QString callsign);
void houndCallers();
void updateFoxQSOsInProgressDisplay();
void foxQueueTopCallCommand();