mirror of
				https://github.com/saitohirga/WSJT-X.git
				synced 2025-11-03 21:40:52 -05:00 
			
		
		
		
	Adding wsjt.log features...
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@2590 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
		
							parent
							
								
									1beb5daeae
								
							
						
					
					
						commit
						b6dd46f280
					
				@ -1925,7 +1925,12 @@ void MainWindow::on_logQSOButton_clicked()                 //Log QSO button
 | 
			
		||||
  QDateTime t = QDateTime::currentDateTimeUtc();
 | 
			
		||||
  QString logEntry=t.date().toString("yyyy-MMM-dd,") +
 | 
			
		||||
      t.time().toString("hh:mm,") + m_hisCall + "," + m_hisGrid + "," +
 | 
			
		||||
      QString::number(nMHz) + "," + m_mode;
 | 
			
		||||
          QString::number(nMHz) + "," + m_mode + "\n";
 | 
			
		||||
 | 
			
		||||
  int ret = QMessageBox::warning(this, "Log Entry",
 | 
			
		||||
       "Please confirm log entry:\n\n" + logEntry + "\n",
 | 
			
		||||
       QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);
 | 
			
		||||
  if(ret==QMessageBox::No) return;
 | 
			
		||||
  QFile f("wsjt.log");
 | 
			
		||||
  if(!f.open(QFile::Append)) {
 | 
			
		||||
    msgBox("Cannot open file \"wsjt.log\".");
 | 
			
		||||
@ -2058,3 +2063,9 @@ void MainWindow::on_actionFUNcube_Dongle_triggered()
 | 
			
		||||
{
 | 
			
		||||
  proc_qthid.start(QDir::toNativeSeparators(m_appDir + "/qthid"));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void MainWindow::on_actionEdit_wsjt_log_triggered()
 | 
			
		||||
{
 | 
			
		||||
  QString cmnd="notepad " + m_appDir + "/wsjt.log";
 | 
			
		||||
  proc_editor.start(QDir::toNativeSeparators(cmnd));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -128,6 +128,8 @@ private slots:
 | 
			
		||||
 | 
			
		||||
  void on_actionJT65C2_triggered();
 | 
			
		||||
 | 
			
		||||
  void on_actionEdit_wsjt_log_triggered();
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    Ui::MainWindow *ui;
 | 
			
		||||
    qint32  m_nDevIn;
 | 
			
		||||
@ -220,6 +222,8 @@ private:
 | 
			
		||||
 | 
			
		||||
    QProcess proc_m65;
 | 
			
		||||
    QProcess proc_qthid;
 | 
			
		||||
    QProcess proc_editor;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    QString m_path;
 | 
			
		||||
    QString m_pbdecoding_style1;
 | 
			
		||||
 | 
			
		||||
@ -1149,6 +1149,8 @@ p, li { white-space: pre-wrap; }
 | 
			
		||||
    <addaction name="actionOpen_next_in_directory"/>
 | 
			
		||||
    <addaction name="actionDecode_remaining_files_in_directory"/>
 | 
			
		||||
    <addaction name="separator"/>
 | 
			
		||||
    <addaction name="actionEdit_wsjt_log"/>
 | 
			
		||||
    <addaction name="separator"/>
 | 
			
		||||
    <addaction name="actionDelete_all_tf2_files_in_SaveDir"/>
 | 
			
		||||
    <addaction name="actionErase_Band_Map_and_Messages"/>
 | 
			
		||||
    <addaction name="actionErase_map65_rx_log"/>
 | 
			
		||||
@ -1586,6 +1588,11 @@ p, li { white-space: pre-wrap; }
 | 
			
		||||
    <string>JT65C2</string>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
  <action name="actionEdit_wsjt_log">
 | 
			
		||||
   <property name="text">
 | 
			
		||||
    <string>Edit wsjt.log</string>
 | 
			
		||||
   </property>
 | 
			
		||||
  </action>
 | 
			
		||||
 </widget>
 | 
			
		||||
 <layoutdefault spacing="6" margin="11"/>
 | 
			
		||||
 <customwidgets>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user