mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 04:50:34 -04:00 
			
		
		
		
	Change selection of Current/Cumulative/JT9Sync to a combobox.
Don't change frequency settings on double-click on decoded text, if the first call is MyCall. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3038 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									2e92af10c3
								
							
						
					
					
						commit
						37e78f1afa
					
				| @ -1267,7 +1267,9 @@ void MainWindow::doubleClickOnCall(bool shift, bool ctrl) | |||||||
|   QString t3=t.mid(i1,i4); |   QString t3=t.mid(i1,i4); | ||||||
|   QStringList t4=t3.split(" ",QString::SkipEmptyParts); |   QStringList t4=t3.split(" ",QString::SkipEmptyParts); | ||||||
|   if(t4.length() <7) return;           //Skip the rest if no decoded text
 |   if(t4.length() <7) return;           //Skip the rest if no decoded text
 | ||||||
|   if(!shift) {                         //Don't change freqs if Shift key down
 |   QString firstcall=t4.at(6); | ||||||
|  |   //Don't change freqs if Shift key down or a station is calling me.
 | ||||||
|  |   if(!shift and firstcall!=m_myCall) { | ||||||
|     int nfreq=int(t4.at(4).toFloat()); |     int nfreq=int(t4.at(4).toFloat()); | ||||||
|     ui->TxFreqSpinBox->setValue(nfreq); |     ui->TxFreqSpinBox->setValue(nfreq); | ||||||
|     g_pWideGraph->setQSOfreq(nfreq); |     g_pWideGraph->setQSOfreq(nfreq); | ||||||
|  | |||||||
| @ -44,9 +44,9 @@ WideGraph::WideGraph(QWidget *parent) : | |||||||
|   ui->widePlot->m_bCurrent=settings.value("Current",true).toBool(); |   ui->widePlot->m_bCurrent=settings.value("Current",true).toBool(); | ||||||
|   ui->widePlot->m_bCumulative=settings.value("Cumulative",false).toBool(); |   ui->widePlot->m_bCumulative=settings.value("Cumulative",false).toBool(); | ||||||
|   ui->widePlot->m_bJT9Sync=settings.value("JT9Sync",false).toBool(); |   ui->widePlot->m_bJT9Sync=settings.value("JT9Sync",false).toBool(); | ||||||
|   ui->rbCurrent->setChecked(ui->widePlot->m_bCurrent); |   if(ui->widePlot->m_bCurrent) ui->spec2dComboBox->setCurrentIndex(0); | ||||||
|   ui->rbCumulative->setChecked(ui->widePlot->m_bCumulative); |   if(ui->widePlot->m_bCumulative) ui->spec2dComboBox->setCurrentIndex(1); | ||||||
|   ui->rbJT9Sync->setChecked(ui->widePlot->m_bJT9Sync); |   if(ui->widePlot->m_bJT9Sync) ui->spec2dComboBox->setCurrentIndex(2); | ||||||
|   int nbpp=settings.value("BinsPerPixel",1).toInt(); |   int nbpp=settings.value("BinsPerPixel",1).toInt(); | ||||||
|   ui->widePlot->setBinsPerPixel(nbpp); |   ui->widePlot->setBinsPerPixel(nbpp); | ||||||
|   m_qsoFreq=settings.value("QSOfreq",1010).toInt(); |   m_qsoFreq=settings.value("QSOfreq",1010).toInt(); | ||||||
| @ -252,28 +252,17 @@ void WideGraph::setPeriod(int ntrperiod, int nsps) | |||||||
|   ui->widePlot->setNsps(ntrperiod, nsps); |   ui->widePlot->setNsps(ntrperiod, nsps); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void WideGraph::on_rbCurrent_clicked() |  | ||||||
| { |  | ||||||
|   ui->widePlot->m_bCurrent=true; |  | ||||||
|   ui->widePlot->m_bCumulative=false; |  | ||||||
|   ui->widePlot->m_bJT9Sync=false; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void WideGraph::on_rbCumulative_clicked() |  | ||||||
| { |  | ||||||
|   ui->widePlot->m_bCurrent=false; |  | ||||||
|   ui->widePlot->m_bCumulative=true; |  | ||||||
|   ui->widePlot->m_bJT9Sync=false; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void WideGraph::on_rbJT9Sync_clicked() |  | ||||||
| { |  | ||||||
|   ui->widePlot->m_bCurrent=false; |  | ||||||
|   ui->widePlot->m_bCumulative=false; |  | ||||||
|   ui->widePlot->m_bJT9Sync=true; |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| void WideGraph::setTxFreq(int n) | void WideGraph::setTxFreq(int n) | ||||||
| { | { | ||||||
|   ui->widePlot->setTxFreq(n); |   ui->widePlot->setTxFreq(n); | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | void WideGraph::on_spec2dComboBox_currentIndexChanged(const QString &arg1) | ||||||
|  | { | ||||||
|  |   ui->widePlot->m_bCurrent=false; | ||||||
|  |   ui->widePlot->m_bCumulative=false; | ||||||
|  |   ui->widePlot->m_bJT9Sync=false; | ||||||
|  |   if(arg1=="Current") ui->widePlot->m_bCurrent=true; | ||||||
|  |   if(arg1=="Cumulative") ui->widePlot->m_bCumulative=true; | ||||||
|  |   if(arg1=="JT9 Sync") ui->widePlot->m_bJT9Sync=true; | ||||||
|  | } | ||||||
|  | |||||||
| @ -50,9 +50,7 @@ private slots: | |||||||
|   void on_zeroSpinBox_valueChanged(int arg1); |   void on_zeroSpinBox_valueChanged(int arg1); | ||||||
|   void on_gainSpinBox_valueChanged(int arg1); |   void on_gainSpinBox_valueChanged(int arg1); | ||||||
|   void on_fDialLineEdit_editingFinished(); |   void on_fDialLineEdit_editingFinished(); | ||||||
|   void on_rbCurrent_clicked(); |   void on_spec2dComboBox_currentIndexChanged(const QString &arg1); | ||||||
|   void on_rbCumulative_clicked(); |  | ||||||
|   void on_rbJT9Sync_clicked(); |  | ||||||
| 
 | 
 | ||||||
| private: | private: | ||||||
|   qint32 m_waterfallAvg; |   qint32 m_waterfallAvg; | ||||||
|  | |||||||
							
								
								
									
										40
									
								
								widegraph.ui
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								widegraph.ui
									
									
									
									
									
								
							| @ -6,7 +6,7 @@ | |||||||
|    <rect> |    <rect> | ||||||
|     <x>0</x> |     <x>0</x> | ||||||
|     <y>0</y> |     <y>0</y> | ||||||
|     <width>1178</width> |     <width>811</width> | ||||||
|     <height>326</height> |     <height>326</height> | ||||||
|    </rect> |    </rect> | ||||||
|   </property> |   </property> | ||||||
| @ -258,27 +258,25 @@ | |||||||
|         </spacer> |         </spacer> | ||||||
|        </item> |        </item> | ||||||
|        <item> |        <item> | ||||||
|         <widget class="QRadioButton" name="rbCurrent"> |         <widget class="QComboBox" name="spec2dComboBox"> | ||||||
|          <property name="text"> |          <property name="currentIndex"> | ||||||
|           <string>Current</string> |           <number>2</number> | ||||||
|          </property> |  | ||||||
|          <property name="checked"> |  | ||||||
|           <bool>true</bool> |  | ||||||
|          </property> |  | ||||||
|         </widget> |  | ||||||
|        </item> |  | ||||||
|        <item> |  | ||||||
|         <widget class="QRadioButton" name="rbCumulative"> |  | ||||||
|          <property name="text"> |  | ||||||
|           <string>Cumulative</string> |  | ||||||
|          </property> |  | ||||||
|         </widget> |  | ||||||
|        </item> |  | ||||||
|        <item> |  | ||||||
|         <widget class="QRadioButton" name="rbJT9Sync"> |  | ||||||
|          <property name="text"> |  | ||||||
|           <string>JT9 Sync</string> |  | ||||||
|          </property> |          </property> | ||||||
|  |          <item> | ||||||
|  |           <property name="text"> | ||||||
|  |            <string>Current</string> | ||||||
|  |           </property> | ||||||
|  |          </item> | ||||||
|  |          <item> | ||||||
|  |           <property name="text"> | ||||||
|  |            <string>Cumulative</string> | ||||||
|  |           </property> | ||||||
|  |          </item> | ||||||
|  |          <item> | ||||||
|  |           <property name="text"> | ||||||
|  |            <string>JT9 Sync</string> | ||||||
|  |           </property> | ||||||
|  |          </item> | ||||||
|         </widget> |         </widget> | ||||||
|        </item> |        </item> | ||||||
|        <item> |        <item> | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| [Setup] | [Setup] | ||||||
| AppName=wsjtx | AppName=wsjtx | ||||||
| AppVerName=wsjtx Version 0.5 r3032 | AppVerName=wsjtx Version 0.5 r3037 | ||||||
| AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT | AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT | ||||||
| DefaultDirName=c:\wsjtx | DefaultDirName=c:\wsjtx | ||||||
| DefaultGroupName=wsjtx | DefaultGroupName=wsjtx | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user