mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-30 20:40:28 -04:00 
			
		
		
		
	More GUI tweaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2619 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									979d5ba604
								
							
						
					
					
						commit
						c97bd103d3
					
				| @ -1,4 +1,4 @@ | |||||||
| subroutine symspecx(k,nsps,ndiskdat,nb,nbslider,pxdb,s,nkhz,ihsym,   & | subroutine symspecx(k,nsps,ndiskdat,nb,nbslider,pxdb,s,ihsym,   & | ||||||
|      nzap,slimit,lstrong) |      nzap,slimit,lstrong) | ||||||
| 
 | 
 | ||||||
| !  k        pointer to the most recent new data | !  k        pointer to the most recent new data | ||||||
| @ -7,7 +7,6 @@ subroutine symspecx(k,nsps,ndiskdat,nb,nbslider,pxdb,s,nkhz,ihsym,   & | |||||||
| !  nb       0/1 status of noise blanker (off/on) | !  nb       0/1 status of noise blanker (off/on) | ||||||
| !  pxdb     power (0-60 dB) | !  pxdb     power (0-60 dB) | ||||||
| !  s        spectrum for waterfall display | !  s        spectrum for waterfall display | ||||||
| !  nkhz     integer kHz portion of center frequency, e.g., 125 for 144.125 |  | ||||||
| !  ihsym    index number of this half-symbol (1-322) | !  ihsym    index number of this half-symbol (1-322) | ||||||
| !  nzap     number of samples zero'ed by noise blanker | !  nzap     number of samples zero'ed by noise blanker | ||||||
| 
 | 
 | ||||||
| @ -80,7 +79,5 @@ subroutine symspecx(k,nsps,ndiskdat,nb,nbslider,pxdb,s,nkhz,ihsym,   & | |||||||
|   enddo |   enddo | ||||||
| !  flush(71) | !  flush(71) | ||||||
| 
 | 
 | ||||||
|   nkhz=100 |  | ||||||
| 
 |  | ||||||
| 999 return | 999 return | ||||||
| end subroutine symspecx | end subroutine symspecx | ||||||
|  | |||||||
| @ -323,7 +323,7 @@ void MainWindow::dataSink(int k) | |||||||
|   nb=0; |   nb=0; | ||||||
|   if(m_NB) nb=1; |   if(m_NB) nb=1; | ||||||
|   symspecx_(&k, & m_nsps, &ndiskdat, &nb, &m_NBslider, &px, s, |   symspecx_(&k, & m_nsps, &ndiskdat, &nb, &m_NBslider, &px, s, | ||||||
|             &nkhz, &ihsym, &nzap, &slimit, lstrong); |             &ihsym, &nzap, &slimit, lstrong); | ||||||
|   if(ihsym <=0) return; |   if(ihsym <=0) return; | ||||||
|   QString t; |   QString t; | ||||||
|   m_pctZap=nzap/178.3; |   m_pctZap=nzap/178.3; | ||||||
|  | |||||||
| @ -218,7 +218,7 @@ extern void getDev(int* numDevices,char hostAPI_DeviceName[][50], | |||||||
| extern "C" { | extern "C" { | ||||||
| //----------------------------------------------------- C and Fortran routines
 | //----------------------------------------------------- C and Fortran routines
 | ||||||
| void symspecx_(int* k, int* nsps, int* ndiskdat, int* nb, int* m_NBslider, | void symspecx_(int* k, int* nsps, int* ndiskdat, int* nb, int* m_NBslider, | ||||||
|                float* px, float s[], int* nkhz, int* nhsym, int* nzap, |                float* px, float s[], int* nhsym, int* nzap, | ||||||
|                float* slimit, uchar lstrong[]); |                float* slimit, uchar lstrong[]); | ||||||
| void genjt8_(char* msg, char* msgsent, short itone[], int* nsym, | void genjt8_(char* msg, char* msgsent, short itone[], int* nsym, | ||||||
|              int len1, int len2); |              int len1, int len2); | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ | |||||||
|     <x>0</x> |     <x>0</x> | ||||||
|     <y>0</y> |     <y>0</y> | ||||||
|     <width>602</width> |     <width>602</width> | ||||||
|     <height>516</height> |     <height>515</height> | ||||||
|    </rect> |    </rect> | ||||||
|   </property> |   </property> | ||||||
|   <property name="sizePolicy"> |   <property name="sizePolicy"> | ||||||
| @ -16,6 +16,12 @@ | |||||||
|     <verstretch>0</verstretch> |     <verstretch>0</verstretch> | ||||||
|    </sizepolicy> |    </sizepolicy> | ||||||
|   </property> |   </property> | ||||||
|  |   <property name="minimumSize"> | ||||||
|  |    <size> | ||||||
|  |     <width>0</width> | ||||||
|  |     <height>510</height> | ||||||
|  |    </size> | ||||||
|  |   </property> | ||||||
|   <property name="maximumSize"> |   <property name="maximumSize"> | ||||||
|    <size> |    <size> | ||||||
|     <width>2048</width> |     <width>2048</width> | ||||||
| @ -80,7 +86,7 @@ | |||||||
|           <property name="maximumSize"> |           <property name="maximumSize"> | ||||||
|            <size> |            <size> | ||||||
|             <width>610</width> |             <width>610</width> | ||||||
|             <height>400</height> |             <height>300</height> | ||||||
|            </size> |            </size> | ||||||
|           </property> |           </property> | ||||||
|           <property name="font"> |           <property name="font"> | ||||||
|  | |||||||
| @ -190,8 +190,6 @@ void CPlotter::DrawOverlay()                                 //DrawOverlay() | |||||||
|   if(m_binsPerPixel < 1) m_binsPerPixel=1; |   if(m_binsPerPixel < 1) m_binsPerPixel=1; | ||||||
|   double df = m_binsPerPixel*m_fftBinWidth; |   double df = m_binsPerPixel*m_fftBinWidth; | ||||||
|   m_fSpan = w*df; |   m_fSpan = w*df; | ||||||
| //  m_freqPerDiv=50*m_binsPerPixel;
 |  | ||||||
| //  m_freqPerDiv=nHzDiv[m_binsPerPixel];
 |  | ||||||
|   int n=m_fSpan/10; |   int n=m_fSpan/10; | ||||||
|   m_freqPerDiv=10; |   m_freqPerDiv=10; | ||||||
|   if(n>25) m_freqPerDiv=50; |   if(n>25) m_freqPerDiv=50; | ||||||
| @ -201,8 +199,7 @@ void CPlotter::DrawOverlay()                                 //DrawOverlay() | |||||||
|   m_ScalePixmap.fill(Qt::white); |   m_ScalePixmap.fill(Qt::white); | ||||||
|   painter0.drawRect(0, 0, w, 30); |   painter0.drawRect(0, 0, w, 30); | ||||||
| 
 | 
 | ||||||
|   //draw tick marks on wideband (upper) scale
 | //draw tick marks on upper scale
 | ||||||
| //  pixperdiv = m_binsPerPixel*m_freqPerDiv/df;
 |  | ||||||
|   pixperdiv = m_freqPerDiv/df; |   pixperdiv = m_freqPerDiv/df; | ||||||
|   for( int i=1; i<m_hdivs; i++) {     //major ticks
 |   for( int i=1; i<m_hdivs; i++) {     //major ticks
 | ||||||
|     x = (int)( (float)i*pixperdiv ); |     x = (int)( (float)i*pixperdiv ); | ||||||
|  | |||||||
| @ -102,7 +102,7 @@ | |||||||
|        <item> |        <item> | ||||||
|         <widget class="QLabel" name="label_3"> |         <widget class="QLabel" name="label_3"> | ||||||
|          <property name="text"> |          <property name="text"> | ||||||
|           <string>Nbpp</string> |           <string>FFT Bins / Pixel</string> | ||||||
|          </property> |          </property> | ||||||
|         </widget> |         </widget> | ||||||
|        </item> |        </item> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user