mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-10-31 13:10:19 -04:00 
			
		
		
		
	Correct logic errors when user has requested VOX control of PTT.
Clear DXCall and DXGrid boxes after logging a QSO. Add instruction at top of "confirm LogQSO" screen; increase font size on its labels. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3113 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									e7f8b7e0ca
								
							
						
					
					
						commit
						0192ff74f8
					
				
										
											Binary file not shown.
										
									
								
							| @ -11,7 +11,7 @@ CAboutDlg::CAboutDlg(QWidget *parent, QString Revision) : | ||||
|   m_Str  = "<html><h2>" + m_Revision + "</h2>\n\n"; | ||||
|   m_Str += "WSJT-X implements experimental mode JT9 for <br>"; | ||||
|   m_Str += "Amateur Radio communication at MF and LF.  <br><br>"; | ||||
|   m_Str += "Copyright 2001-2012 by Joe Taylor, K1JT.   Additional <br>"; | ||||
|   m_Str += "Copyright 2001-2013 by Joe Taylor, K1JT.   Additional <br>"; | ||||
|   m_Str += "acknowledgments are contained in the source code. <br>"; | ||||
|   ui->labelTxt->setText(m_Str); | ||||
| } | ||||
|  | ||||
							
								
								
									
										77
									
								
								logqso.ui
									
									
									
									
									
								
							
							
						
						
									
										77
									
								
								logqso.ui
									
									
									
									
									
								
							| @ -11,7 +11,7 @@ | ||||
|    </rect> | ||||
|   </property> | ||||
|   <property name="windowTitle"> | ||||
|    <string>Dialog</string> | ||||
|    <string>Log QSO</string> | ||||
|   </property> | ||||
|   <widget class="QDialogButtonBox" name="buttonBox"> | ||||
|    <property name="geometry"> | ||||
| @ -52,6 +52,31 @@ | ||||
|       </property> | ||||
|      </spacer> | ||||
|     </item> | ||||
|     <item> | ||||
|      <widget class="QLabel" name="label"> | ||||
|       <property name="font"> | ||||
|        <font> | ||||
|         <pointsize>10</pointsize> | ||||
|        </font> | ||||
|       </property> | ||||
|       <property name="text"> | ||||
|        <string>Click OK to confirm the following QSO:</string> | ||||
|       </property> | ||||
|      </widget> | ||||
|     </item> | ||||
|     <item> | ||||
|      <spacer name="verticalSpacer_4"> | ||||
|       <property name="orientation"> | ||||
|        <enum>Qt::Vertical</enum> | ||||
|       </property> | ||||
|       <property name="sizeHint" stdset="0"> | ||||
|        <size> | ||||
|         <width>20</width> | ||||
|         <height>20</height> | ||||
|        </size> | ||||
|       </property> | ||||
|      </spacer> | ||||
|     </item> | ||||
|     <item> | ||||
|      <layout class="QHBoxLayout" name="horizontalLayout_5"> | ||||
|       <item> | ||||
| @ -74,6 +99,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Call</string> | ||||
|         </property> | ||||
| @ -102,6 +132,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Date</string> | ||||
|         </property> | ||||
| @ -130,6 +165,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Time</string> | ||||
|         </property> | ||||
| @ -158,6 +198,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Mode</string> | ||||
|         </property> | ||||
| @ -186,6 +231,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Band</string> | ||||
|         </property> | ||||
| @ -339,6 +389,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Rpt Sent</string> | ||||
|         </property> | ||||
| @ -367,6 +422,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Rpt Rcvd</string> | ||||
|         </property> | ||||
| @ -395,6 +455,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Grid</string> | ||||
|         </property> | ||||
| @ -426,6 +491,11 @@ | ||||
|           <height>16777215</height> | ||||
|          </size> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Name</string> | ||||
|         </property> | ||||
| @ -551,6 +621,11 @@ | ||||
|         <property name="enabled"> | ||||
|          <bool>true</bool> | ||||
|         </property> | ||||
|         <property name="font"> | ||||
|          <font> | ||||
|           <pointsize>10</pointsize> | ||||
|          </font> | ||||
|         </property> | ||||
|         <property name="text"> | ||||
|          <string>Comments</string> | ||||
|         </property> | ||||
|  | ||||
| @ -98,6 +98,9 @@ MainWindow::MainWindow(QWidget *parent) : | ||||
|   connect(&proc_jt9, SIGNAL(readyReadStandardError()), | ||||
|           this, SLOT(readFromStderr())); | ||||
| 
 | ||||
|   connect(&p3, SIGNAL(error(QProcess::ProcessError)), | ||||
|           this, SLOT(p3_error())); | ||||
| 
 | ||||
|   ui->bandComboBox->setEditable(true); | ||||
|   ui->bandComboBox->lineEdit()->setReadOnly(true); | ||||
|   ui->bandComboBox->lineEdit()->setAlignment(Qt::AlignCenter); | ||||
| @ -1120,6 +1123,13 @@ void MainWindow::jt9_error()                                     //jt9_error | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| void MainWindow::p3_error()                                     //jt9_error
 | ||||
| { | ||||
|   if(!m_killAll) { | ||||
|     QString t="Error running the command\n" + m_cmnd; | ||||
|     msgBox(t); | ||||
|   } | ||||
| } | ||||
| void MainWindow::readFromStderr()                             //readFromStderr
 | ||||
| { | ||||
|   QByteArray t=proc_jt9.readAllStandardError(); | ||||
| @ -1289,32 +1299,22 @@ void MainWindow::guiUpdate() | ||||
| 
 | ||||
|     if(bTxTime and m_iptt==0 and !btxMute) { | ||||
|       icw[0]=m_ncw; | ||||
| #define NEW | ||||
| #ifdef NEW | ||||
| 
 | ||||
|       //Raise PTT
 | ||||
|       if(m_pttMethodIndex==0) { | ||||
|       if(m_pttMethodIndex==0) {                  //CAT control for PTT
 | ||||
|         m_cmnd=rig_command() + " T 1"; | ||||
|         p3.start(m_cmnd); | ||||
|         p3.waitForFinished(); | ||||
|         m_iptt=1; | ||||
|       } | ||||
|       if(m_pttMethodIndex==1 or m_pttMethodIndex==2) { | ||||
|       if(m_pttMethodIndex==1 or m_pttMethodIndex==2) {  //DTR or RTS
 | ||||
|           ptt(m_pttPort,1,&m_iptt,&m_COMportOpen); | ||||
| //        ptt(m_pttPort,1,&m_iptt);
 | ||||
|       } | ||||
| //      qDebug() << "ptt1Timer" << m_iptt;
 | ||||
|       ptt1Timer->start(200);                       //Sequencer delay
 | ||||
| #else | ||||
|       int itx=1; | ||||
|       ptt(m_pttPort,itx,&m_iptt,&m_COMportOpen);       // Raise PTT
 | ||||
|       if(!soundOutThread.isRunning()) { | ||||
|         QString t=ui->tx6->text(); | ||||
|         double snr=t.mid(1,5).toDouble(); | ||||
|         if(snr>0.0 or snr < -50.0) snr=99.0; | ||||
|         soundOutThread.setTxSNR(snr); | ||||
|         soundOutThread.start(QThread::HighPriority); | ||||
|       if(m_pttMethodIndex==3) {                  //VOX
 | ||||
|         m_iptt=1; | ||||
|       } | ||||
| #endif | ||||
|       ptt1Timer->start(200);                       //Sequencer delay
 | ||||
|     } | ||||
|     if(!bTxTime || btxMute) { | ||||
|       btxok=false; | ||||
| @ -1417,28 +1417,18 @@ void MainWindow::guiUpdate() | ||||
|   } | ||||
|   if(nc0 == 0) { | ||||
| 
 | ||||
| #ifdef NEW | ||||
| 
 | ||||
|     //Lower PTT
 | ||||
|       if(m_pttMethodIndex==0) { | ||||
|       if(m_pttMethodIndex==0) {                         //CAT
 | ||||
|         m_cmnd=rig_command() + " T 0"; | ||||
|         p3.start(m_cmnd); | ||||
|         p3.waitForFinished(); | ||||
|       } | ||||
|       if(m_pttMethodIndex==1 or m_pttMethodIndex==2) { | ||||
|       if(m_pttMethodIndex==1 or m_pttMethodIndex==2) {  //DTR-RTS
 | ||||
|         ptt(m_pttPort,0,&m_iptt,&m_COMportOpen); | ||||
|       } | ||||
| #else | ||||
|     int itx=0; | ||||
|     ptt(m_pttPort,itx,&m_iptt,&m_COMportOpen);       // Lower PTT
 | ||||
| 
 | ||||
|     if(!btxMute) soundOutThread.quitExecution=true; | ||||
|     m_transmitting=false; | ||||
|     if(m_auto) { | ||||
|       m_monitoring=true; | ||||
|       soundInThread.setMonitoring(m_monitoring); | ||||
|     } | ||||
| #endif | ||||
|       if(m_pttMethodIndex==3) {                         //VOX
 | ||||
|         m_iptt=0; | ||||
|       } | ||||
|   } | ||||
| 
 | ||||
|   if(m_iptt == 0 && !btxok) { | ||||
| @ -1509,8 +1499,6 @@ QString MainWindow::rig_command() | ||||
| void MainWindow::startTx2() | ||||
| { | ||||
|   if(!soundOutThread.isRunning()) { | ||||
|     //qDebug() << "startTx2";
 | ||||
| 
 | ||||
|     if(!soundOutThread.isRunning()) { | ||||
|       QString t=ui->tx6->text(); | ||||
|       double snr=t.mid(1,5).toDouble(); | ||||
| @ -1978,6 +1966,10 @@ void MainWindow::on_logQSOButton_clicked()                 //Log QSO button | ||||
|                     m_noSuffix,m_toRTTY,m_dBtoComments); | ||||
|   if(logDlg.exec() == QDialog::Accepted) { | ||||
|   } | ||||
|   m_hisCall=""; | ||||
|   ui->dxCallEntry->setText(""); | ||||
|   m_hisGrid=""; | ||||
|   ui->dxGridEntry->setText(""); | ||||
|   m_rptSent=""; | ||||
|   m_rptRcvd=""; | ||||
|   m_qsoStart=""; | ||||
|  | ||||
| @ -36,6 +36,7 @@ public slots: | ||||
|   void readFromStdout(); | ||||
|   void readFromStderr(); | ||||
|   void jt9_error(); | ||||
|   void p3_error(); | ||||
| 
 | ||||
| protected: | ||||
|   virtual void keyPressEvent( QKeyEvent *e ); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user