mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 13:30:52 -05:00 
			
		
		
		
	Use monospace font in ActiveStations window.
This commit is contained in:
		
							parent
							
								
									e732c5ba62
								
							
						
					
					
						commit
						ceb13110c5
					
				@ -18,9 +18,11 @@ ActiveStations::ActiveStations(QSettings * settings, QFont const& font, QWidget
 | 
				
			|||||||
  ui->setupUi(this);
 | 
					  ui->setupUi(this);
 | 
				
			||||||
  setWindowTitle (QApplication::applicationName () + " - " + tr ("Active Stations"));
 | 
					  setWindowTitle (QApplication::applicationName () + " - " + tr ("Active Stations"));
 | 
				
			||||||
  ui->ActiveStationsPlainTextEdit->setReadOnly (true);
 | 
					  ui->ActiveStationsPlainTextEdit->setReadOnly (true);
 | 
				
			||||||
 | 
					  ui->RecentStationsPlainTextEdit->setReadOnly (true);
 | 
				
			||||||
  changeFont (font);
 | 
					  changeFont (font);
 | 
				
			||||||
  read_settings ();
 | 
					  read_settings ();
 | 
				
			||||||
  ui->header_label->setText("Pts  Call   Grid  Az    S/N   Dial  Freq");
 | 
					  ui->header_label->setText("Pts  Call   Grid  Az    S/N   Dial  Freq");
 | 
				
			||||||
 | 
					  ui->header_label2->setText(" Call    Grid  Age  Points");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ActiveStations::~ActiveStations()
 | 
					ActiveStations::~ActiveStations()
 | 
				
			||||||
@ -33,10 +35,14 @@ void ActiveStations::changeFont (QFont const& font)
 | 
				
			|||||||
  ui->header_label->setStyleSheet (font_as_stylesheet (font));
 | 
					  ui->header_label->setStyleSheet (font_as_stylesheet (font));
 | 
				
			||||||
  ui->ActiveStationsPlainTextEdit->setStyleSheet (font_as_stylesheet (font));
 | 
					  ui->ActiveStationsPlainTextEdit->setStyleSheet (font_as_stylesheet (font));
 | 
				
			||||||
  setContentFont (font);
 | 
					  setContentFont (font);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ui->header_label2->setStyleSheet (font_as_stylesheet (font));
 | 
				
			||||||
 | 
					  ui->RecentStationsPlainTextEdit->setStyleSheet (font_as_stylesheet (font));
 | 
				
			||||||
 | 
					//  setContentFont (font);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  updateGeometry ();
 | 
					  updateGeometry ();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
void ActiveStations::setContentFont(QFont const& font)
 | 
					void ActiveStations::setContentFont(QFont const& font)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  ui->ActiveStationsPlainTextEdit->setFont (font);
 | 
					  ui->ActiveStationsPlainTextEdit->setFont (font);
 | 
				
			||||||
 | 
				
			|||||||
@ -16,40 +16,7 @@
 | 
				
			|||||||
  <layout class="QVBoxLayout" name="verticalLayout">
 | 
					  <layout class="QVBoxLayout" name="verticalLayout">
 | 
				
			||||||
   <item>
 | 
					   <item>
 | 
				
			||||||
    <layout class="QGridLayout" name="gridLayout">
 | 
					    <layout class="QGridLayout" name="gridLayout">
 | 
				
			||||||
     <item row="1" column="0">
 | 
					     <item row="4" column="0">
 | 
				
			||||||
      <widget class="QPlainTextEdit" name="ActiveStationsPlainTextEdit">
 | 
					 | 
				
			||||||
       <property name="sizePolicy">
 | 
					 | 
				
			||||||
        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | 
					 | 
				
			||||||
         <horstretch>0</horstretch>
 | 
					 | 
				
			||||||
         <verstretch>2</verstretch>
 | 
					 | 
				
			||||||
        </sizepolicy>
 | 
					 | 
				
			||||||
       </property>
 | 
					 | 
				
			||||||
       <property name="lineWrapMode">
 | 
					 | 
				
			||||||
        <enum>QPlainTextEdit::NoWrap</enum>
 | 
					 | 
				
			||||||
       </property>
 | 
					 | 
				
			||||||
      </widget>
 | 
					 | 
				
			||||||
     </item>
 | 
					 | 
				
			||||||
     <item row="2" column="0">
 | 
					 | 
				
			||||||
      <widget class="QPlainTextEdit" name="RecentStationsPlainTextEdit">
 | 
					 | 
				
			||||||
       <property name="sizePolicy">
 | 
					 | 
				
			||||||
        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | 
					 | 
				
			||||||
         <horstretch>0</horstretch>
 | 
					 | 
				
			||||||
         <verstretch>1</verstretch>
 | 
					 | 
				
			||||||
        </sizepolicy>
 | 
					 | 
				
			||||||
       </property>
 | 
					 | 
				
			||||||
      </widget>
 | 
					 | 
				
			||||||
     </item>
 | 
					 | 
				
			||||||
     <item row="0" column="0">
 | 
					 | 
				
			||||||
      <widget class="QLabel" name="header_label">
 | 
					 | 
				
			||||||
       <property name="text">
 | 
					 | 
				
			||||||
        <string>Points   Call     Grid     AZ      SNR     Freq     Band</string>
 | 
					 | 
				
			||||||
       </property>
 | 
					 | 
				
			||||||
       <property name="margin">
 | 
					 | 
				
			||||||
        <number>3</number>
 | 
					 | 
				
			||||||
       </property>
 | 
					 | 
				
			||||||
      </widget>
 | 
					 | 
				
			||||||
     </item>
 | 
					 | 
				
			||||||
     <item row="3" column="0">
 | 
					 | 
				
			||||||
      <layout class="QGridLayout" name="gridLayout_2">
 | 
					      <layout class="QGridLayout" name="gridLayout_2">
 | 
				
			||||||
       <item row="0" column="1">
 | 
					       <item row="0" column="1">
 | 
				
			||||||
        <widget class="QSpinBox" name="sbMaxAge">
 | 
					        <widget class="QSpinBox" name="sbMaxAge">
 | 
				
			||||||
@ -119,6 +86,46 @@
 | 
				
			|||||||
       </item>
 | 
					       </item>
 | 
				
			||||||
      </layout>
 | 
					      </layout>
 | 
				
			||||||
     </item>
 | 
					     </item>
 | 
				
			||||||
 | 
					     <item row="1" column="0">
 | 
				
			||||||
 | 
					      <widget class="QPlainTextEdit" name="ActiveStationsPlainTextEdit">
 | 
				
			||||||
 | 
					       <property name="sizePolicy">
 | 
				
			||||||
 | 
					        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | 
				
			||||||
 | 
					         <horstretch>0</horstretch>
 | 
				
			||||||
 | 
					         <verstretch>2</verstretch>
 | 
				
			||||||
 | 
					        </sizepolicy>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					       <property name="lineWrapMode">
 | 
				
			||||||
 | 
					        <enum>QPlainTextEdit::NoWrap</enum>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </widget>
 | 
				
			||||||
 | 
					     </item>
 | 
				
			||||||
 | 
					     <item row="3" column="0">
 | 
				
			||||||
 | 
					      <widget class="QPlainTextEdit" name="RecentStationsPlainTextEdit">
 | 
				
			||||||
 | 
					       <property name="sizePolicy">
 | 
				
			||||||
 | 
					        <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
 | 
				
			||||||
 | 
					         <horstretch>0</horstretch>
 | 
				
			||||||
 | 
					         <verstretch>1</verstretch>
 | 
				
			||||||
 | 
					        </sizepolicy>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </widget>
 | 
				
			||||||
 | 
					     </item>
 | 
				
			||||||
 | 
					     <item row="0" column="0">
 | 
				
			||||||
 | 
					      <widget class="QLabel" name="header_label">
 | 
				
			||||||
 | 
					       <property name="text">
 | 
				
			||||||
 | 
					        <string>Points   Call     Grid     AZ      SNR     Freq     Band</string>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					       <property name="margin">
 | 
				
			||||||
 | 
					        <number>3</number>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </widget>
 | 
				
			||||||
 | 
					     </item>
 | 
				
			||||||
 | 
					     <item row="2" column="0">
 | 
				
			||||||
 | 
					      <widget class="QLabel" name="header_label2">
 | 
				
			||||||
 | 
					       <property name="text">
 | 
				
			||||||
 | 
					        <string>Call  Grid  Age   Points</string>
 | 
				
			||||||
 | 
					       </property>
 | 
				
			||||||
 | 
					      </widget>
 | 
				
			||||||
 | 
					     </item>
 | 
				
			||||||
    </layout>
 | 
					    </layout>
 | 
				
			||||||
   </item>
 | 
					   </item>
 | 
				
			||||||
  </layout>
 | 
					  </layout>
 | 
				
			||||||
 | 
				
			|||||||
@ -3406,14 +3406,6 @@ void MainWindow::ARRL_Digi_Update(DecodedText dt)
 | 
				
			|||||||
    if(bCQ or deGrid=="RR73" or deGrid=="73") rc.ready2call=true;
 | 
					    if(bCQ or deGrid=="RR73" or deGrid=="73") rc.ready2call=true;
 | 
				
			||||||
    rc.decodeTime=m_latestDecodeTime;
 | 
					    rc.decodeTime=m_latestDecodeTime;
 | 
				
			||||||
    m_recentCall[deCall]=rc;
 | 
					    m_recentCall[deCall]=rc;
 | 
				
			||||||
    /*
 | 
					 | 
				
			||||||
    ac=m_activeCall[deCall];
 | 
					 | 
				
			||||||
    if(rc.ready2call != bCQ) {
 | 
					 | 
				
			||||||
      qDebug() << "aa" << deCall << ac.grid4 << ac.az
 | 
					 | 
				
			||||||
               << rc.dialFreq/1000000.0 << rc.audioFreq
 | 
					 | 
				
			||||||
               << rc.snr << rc.decodeTime << ac.points << rc.ready2call << bCQ;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    */
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -3443,7 +3435,7 @@ void MainWindow::ARRL_Digi_Display()
 | 
				
			|||||||
      if(points>maxPoints) maxPoints=points;
 | 
					      if(points>maxPoints) maxPoints=points;
 | 
				
			||||||
      pts[i-1]=points - float(age)/(maxAge+1);
 | 
					      pts[i-1]=points - float(age)/(maxAge+1);
 | 
				
			||||||
      QString t1;
 | 
					      QString t1;
 | 
				
			||||||
      t1 = t1.asprintf("  %2d  %2d",age,points);
 | 
					      t1 = t1.asprintf("  %2d  %5d",age,points);
 | 
				
			||||||
      t1 = (deCall + "   ").left(6) + "  " + m_activeCall[deCall].grid4 + t1;
 | 
					      t1 = (deCall + "   ").left(6) + "  " + m_activeCall[deCall].grid4 + t1;
 | 
				
			||||||
      list.append(t1);
 | 
					      list.append(t1);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -3456,7 +3448,6 @@ void MainWindow::ARRL_Digi_Display()
 | 
				
			|||||||
    t += (list[k] + "\n");
 | 
					    t += (list[k] + "\n");
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if(m_ActiveStationsWidget!=NULL) m_ActiveStationsWidget->displayRecentStations(t);
 | 
					  if(m_ActiveStationsWidget!=NULL) m_ActiveStationsWidget->displayRecentStations(t);
 | 
				
			||||||
  qDebug() << "dd" << maxRecent << maxAge;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void MainWindow::readFromStdout()                             //readFromStdout
 | 
					void MainWindow::readFromStdout()                             //readFromStdout
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user