Display all current calls with grids. Add asterisk for those ready to call.

This commit is contained in:
Joe Taylor 2022-03-19 19:42:29 -04:00
parent 6ca1b14477
commit 653ea56a77
2 changed files with 16 additions and 16 deletions

View File

@ -21,7 +21,7 @@ ActiveStations::ActiveStations(QSettings * settings, QFont const& font, QWidget
ui->RecentStationsPlainTextEdit->setReadOnly (true); ui->RecentStationsPlainTextEdit->setReadOnly (true);
changeFont (font); changeFont (font);
read_settings (); read_settings ();
ui->header_label2->setText(" N Call Grid Az S/N Freq Tx Age Pts Bands"); ui->header_label2->setText(" N Call Grid Az S/N Freq Tx Age Pts Bands");
connect(ui->RecentStationsPlainTextEdit, SIGNAL(selectionChanged()), this, SLOT(select())); connect(ui->RecentStationsPlainTextEdit, SIGNAL(selectionChanged()), this, SLOT(select()));
} }

View File

@ -3445,21 +3445,21 @@ void MainWindow::ARRL_Digi_Display()
if(age>maxAge) { if(age>maxAge) {
icall.remove(); icall.remove();
} else { } else {
if(m_recentCall.value(deCall).ready2call) { i++;
i++; int az=m_activeCall[deCall].az;
int az=m_activeCall[deCall].az; deGrid=m_activeCall[deCall].grid4;
deGrid=m_activeCall[deCall].grid4; points=m_activeCall[deCall].points;
points=m_activeCall[deCall].points; bands=m_activeCall[deCall].bands;
bands=m_activeCall[deCall].bands; if(points>maxPoints) maxPoints=points;
if(points>maxPoints) maxPoints=points; float x=float(age)/(maxAge+1);
float x=float(age)/(maxAge+1); if(x>1.0) x=0;
if(x>1.0) x=0; pts[i-1]=points - x;
pts[i-1]=points - x; QString t0=" ";
QString t1; if(m_recentCall.value(deCall).ready2call) t0="* ";
t1 = t1.asprintf(" %3d %+2.2d %4d %1d %2d %4d",az,snr,freq,itx,age,points); QString t1;
t1 = (deCall + " ").left(6) + " " + m_activeCall[deCall].grid4 + t1 + " " + bands; t1 = t1.asprintf(" %3d %+2.2d %4d %1d %2d %4d",az,snr,freq,itx,age,points);
list.append(t1); t1 = t0 + (deCall + " ").left(6) + " " + m_activeCall[deCall].grid4 + t1 + " " + bands;
} list.append(t1);
} }
} }
if(i==0) return; if(i==0) return;