mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-01 05:32:31 -04:00
Display active stations in decreasing order of points.
This commit is contained in:
parent
689b040cc5
commit
38e65b747a
@ -180,6 +180,8 @@ extern "C" {
|
|||||||
void chk_samples_(int* m_ihsym,int* k, int* m_hsymStop);
|
void chk_samples_(int* m_ihsym,int* k, int* m_hsymStop);
|
||||||
|
|
||||||
void save_dxbase_(char* dxbase, FCL len);
|
void save_dxbase_(char* dxbase, FCL len);
|
||||||
|
|
||||||
|
void indexx_(float arr[], int* n, int indx[]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int volatile itone[MAX_NUM_SYMBOLS]; //Audio tones for all Tx symbols
|
int volatile itone[MAX_NUM_SYMBOLS]; //Audio tones for all Tx symbols
|
||||||
@ -3422,6 +3424,10 @@ void MainWindow::ARRL_Digi_Display()
|
|||||||
int maxAge=4;
|
int maxAge=4;
|
||||||
int points=0;
|
int points=0;
|
||||||
int maxPoints=0;
|
int maxPoints=0;
|
||||||
|
int indx[1000];
|
||||||
|
float pts[1000];
|
||||||
|
QStringList list;
|
||||||
|
|
||||||
while (icall.hasNext()) {
|
while (icall.hasNext()) {
|
||||||
icall.next();
|
icall.next();
|
||||||
deCall=icall.key();
|
deCall=icall.key();
|
||||||
@ -3433,12 +3439,22 @@ void MainWindow::ARRL_Digi_Display()
|
|||||||
i++;
|
i++;
|
||||||
points=m_activeCall[deCall].points;
|
points=m_activeCall[deCall].points;
|
||||||
if(points>maxPoints) maxPoints=points;
|
if(points>maxPoints) maxPoints=points;
|
||||||
QString t;
|
pts[i-1]=points - float(age)/(maxAge+1);
|
||||||
t = t.asprintf(" %2d %2d",age,points);
|
QString t1;
|
||||||
t = (deCall + " ").left(6) + " " + m_activeCall[deCall].grid4 + t;
|
t1 = t1.asprintf(" %2d %2d",age,points);
|
||||||
qDebug() << "cc" << t << m_activeCall.count() << m_recentCall.count();
|
t1 = (deCall + " ").left(6) + " " + m_activeCall[deCall].grid4 + t1;
|
||||||
|
// qDebug() << "cc" << t1 << m_activeCall.count() << m_recentCall.count() << pts[i-1];
|
||||||
|
list.append(t1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
int nmax=i;
|
||||||
|
indexx_(pts,&nmax,indx);
|
||||||
|
QString t;
|
||||||
|
for(int j=nmax-1; j>=0; j--) {
|
||||||
|
int k=indx[j]-1;
|
||||||
|
t += (list[k] + "\n");
|
||||||
|
}
|
||||||
|
if(m_ActiveStationsWidget!=NULL) m_ActiveStationsWidget->displayActiveStations(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::readFromStdout() //readFromStdout
|
void MainWindow::readFromStdout() //readFromStdout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user