mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	Shift-double-click on decoded line does NOT change the frequencies.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3032 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									b723e0f2a2
								
							
						
					
					
						commit
						06df70aec1
					
				| @ -10,6 +10,7 @@ DisplayText::DisplayText(QWidget *parent) : | ||||
| void DisplayText::mouseDoubleClickEvent(QMouseEvent *e) | ||||
| { | ||||
|   bool ctrl = (e->modifiers() & Qt::ControlModifier); | ||||
|   emit(selectCallsign(ctrl)); | ||||
|   bool shift = (e->modifiers() & Qt::ShiftModifier); | ||||
|   emit(selectCallsign(shift,ctrl)); | ||||
|   QTextBrowser::mouseDoubleClickEvent(e); | ||||
| } | ||||
|  | ||||
| @ -10,7 +10,7 @@ public: | ||||
|     explicit DisplayText(QWidget *parent = 0); | ||||
| 
 | ||||
| signals: | ||||
|   void selectCallsign(bool ctrl); | ||||
|   void selectCallsign(bool shift, bool ctrl); | ||||
| 
 | ||||
| public slots: | ||||
| 
 | ||||
|  | ||||
| @ -72,8 +72,8 @@ MainWindow::MainWindow(QWidget *parent) : | ||||
|   txMsgButtonGroup->addButton(ui->txrb5,5); | ||||
|   txMsgButtonGroup->addButton(ui->txrb6,6); | ||||
|   connect(txMsgButtonGroup,SIGNAL(buttonClicked(int)),SLOT(set_ntx(int))); | ||||
|   connect(ui->decodedTextBrowser,SIGNAL(selectCallsign(bool)),this, | ||||
|           SLOT(doubleClickOnCall(bool))); | ||||
|   connect(ui->decodedTextBrowser,SIGNAL(selectCallsign(bool,bool)),this, | ||||
|           SLOT(doubleClickOnCall(bool,bool))); | ||||
| 
 | ||||
|   setWindowTitle(Program_Title_Version); | ||||
|   connect(&soundInThread, SIGNAL(readyForFFT(int)), | ||||
| @ -1253,7 +1253,7 @@ void MainWindow::on_txb6_clicked()                                //txb6 | ||||
|   m_restart=true; | ||||
| } | ||||
| 
 | ||||
| void MainWindow::doubleClickOnCall(bool ctrl) | ||||
| void MainWindow::doubleClickOnCall(bool shift, bool ctrl) | ||||
| { | ||||
|   QTextCursor cursor=ui->decodedTextBrowser->textCursor(); | ||||
|   cursor.select(QTextCursor::LineUnderCursor); | ||||
| @ -1266,10 +1266,12 @@ void MainWindow::doubleClickOnCall(bool ctrl) | ||||
|   if(i4>60) i4=60; | ||||
|   QString t3=t.mid(i1,i4); | ||||
|   QStringList t4=t3.split(" ",QString::SkipEmptyParts); | ||||
|   if(t4.length() <7) return; | ||||
|   int nfreq=int(t4.at(4).toFloat()); | ||||
|   ui->TxFreqSpinBox->setValue(nfreq); | ||||
|   g_pWideGraph->setQSOfreq(nfreq); | ||||
|   if(t4.length() <7) return;           //Skip the rest if no decoded text
 | ||||
|   if(!shift) {                         //Don't change freqs if Shift key down
 | ||||
|     int nfreq=int(t4.at(4).toFloat()); | ||||
|     ui->TxFreqSpinBox->setValue(nfreq); | ||||
|     g_pWideGraph->setQSOfreq(nfreq); | ||||
|   } | ||||
|   QString hiscall=t4.at(7); | ||||
|   ui->dxCallEntry->setText(hiscall); | ||||
|   int n = 60*t2.mid(0,2).toInt() + t2.mid(2,2).toInt(); | ||||
|  | ||||
| @ -28,7 +28,7 @@ public slots: | ||||
|   void diskWriteFinished(); | ||||
|   void freezeDecode(int n); | ||||
|   void guiUpdate(); | ||||
|   void doubleClickOnCall(bool ctrl); | ||||
|   void doubleClickOnCall(bool shift, bool ctrl); | ||||
|   void readFromStdout(); | ||||
|   void readFromStderr(); | ||||
|   void jt9_error(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user