mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-04 05:50:31 -05:00 
			
		
		
		
	Add suitable labels for logging to the real-time logging window.
This commit is contained in:
		
							parent
							
								
									58cbf3abbd
								
							
						
					
					
						commit
						48f4b9d824
					
				@ -5220,6 +5220,10 @@ void MainWindow::cabLog()
 | 
				
			|||||||
    out << t << endl;
 | 
					    out << t << endl;
 | 
				
			||||||
    f.close();
 | 
					    f.close();
 | 
				
			||||||
    if(m_msgAvgWidget != NULL and m_msgAvgWidget->isVisible()) {
 | 
					    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);
 | 
					      m_msgAvgWidget->foxAddLog(t);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  } else {
 | 
					  } else {
 | 
				
			||||||
 | 
				
			|||||||
@ -20,6 +20,8 @@ MessageAveraging::MessageAveraging(QSettings * settings, QFont const& font, QWid
 | 
				
			|||||||
  read_settings ();
 | 
					  read_settings ();
 | 
				
			||||||
  if(m_title_.contains("Fox")) {
 | 
					  if(m_title_.contains("Fox")) {
 | 
				
			||||||
    ui->header_label->setText("   Date     Time   Call Grid Sent Rcvd Band");
 | 
					    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 {
 | 
					  } else {
 | 
				
			||||||
    ui->header_label->setText("   UTC  Sync    DT  Freq   ");
 | 
					    ui->header_label->setText("   UTC  Sync    DT  Freq   ");
 | 
				
			||||||
    ui->lab1->setVisible(false);
 | 
					    ui->lab1->setVisible(false);
 | 
				
			||||||
@ -98,17 +100,10 @@ void MessageAveraging::foxLogSetup(int nContest)
 | 
				
			|||||||
  if(nContest>0 and nContest<5) {
 | 
					  if(nContest>0 and nContest<5) {
 | 
				
			||||||
    m_title_=QApplication::applicationName () + " - Contest Log";
 | 
					    m_title_=QApplication::applicationName () + " - Contest Log";
 | 
				
			||||||
    setWindowTitle(m_title_);
 | 
					    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)
 | 
					void MessageAveraging::foxLabCallers(int n)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  QString t;
 | 
					  QString t;
 | 
				
			||||||
 | 
				
			|||||||
@ -18,7 +18,6 @@ public:
 | 
				
			|||||||
  void displayAvg(QString const&);
 | 
					  void displayAvg(QString const&);
 | 
				
			||||||
  void changeFont (QFont const&);
 | 
					  void changeFont (QFont const&);
 | 
				
			||||||
  void foxLogSetup(int nContest);
 | 
					  void foxLogSetup(int nContest);
 | 
				
			||||||
  void contestLogSetup();
 | 
					 | 
				
			||||||
  void foxLabCallers(int n);
 | 
					  void foxLabCallers(int n);
 | 
				
			||||||
  void foxLabQueued(int n);
 | 
					  void foxLabQueued(int n);
 | 
				
			||||||
  void foxLabRate(int n);
 | 
					  void foxLabRate(int n);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user