Add suitable labels for logging to the real-time logging window.

This commit is contained in:
Joe Taylor 2018-10-02 13:23:46 -04:00 committed by Bill Somerville
parent c392a26b70
commit ce5426ed3d
3 changed files with 7 additions and 9 deletions

View File

@ -5201,6 +5201,10 @@ void MainWindow::cabLog()
out << t << endl;
f.close();
if(m_msgAvgWidget != NULL and m_msgAvgWidget->isVisible()) {
QString band;
band.sprintf(" %5d ",nfreq);
t=QDateTime::currentDateTimeUtc().toString("yyyy-MM-dd hhmm ") + band +
m_hisCall.leftJustified(13,' ') + m_xSent.leftJustified(14,' ') + m_xRcvd;
m_msgAvgWidget->foxAddLog(t);
}
} else {

View File

@ -20,6 +20,8 @@ MessageAveraging::MessageAveraging(QSettings * settings, QFont const& font, QWid
read_settings ();
if(m_title_.contains("Fox")) {
ui->header_label->setText(" Date Time Call Grid Sent Rcvd Band");
} else if(m_title_.contains("Contest")) {
ui->header_label->setText(" Date UTC Band Call Sent Rcvd");
} else {
ui->header_label->setText(" UTC Sync DT Freq ");
ui->lab1->setVisible(false);
@ -98,17 +100,10 @@ void MessageAveraging::foxLogSetup(int nContest)
if(nContest>0 and nContest<5) {
m_title_=QApplication::applicationName () + " - Contest Log";
setWindowTitle(m_title_);
ui->header_label->setText(" Date Time Call Grid Sent Rcvd Band");
ui->header_label->setText(" Date UTC Band Call Sent Rcvd");
}
}
void MessageAveraging::contestLogSetup()
{
m_title_=QApplication::applicationName () + " - Contest Log";
setWindowTitle(m_title_);
ui->header_label->setText(" Date Time Call Grid Sent Rcvd Band");
}
void MessageAveraging::foxLabCallers(int n)
{
QString t;

View File

@ -18,7 +18,6 @@ public:
void displayAvg(QString const&);
void changeFont (QFont const&);
void foxLogSetup(int nContest);
void contestLogSetup();
void foxLabCallers(int n);
void foxLabQueued(int n);
void foxLabRate(int n);