mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 12:48:40 -05:00
Menu action to open the log directory
Since the log files have moved to a hidden directory a menu action to open the logs directory in a suitable system applicaiton is needed. Added "Open log directory" to File manu bar pop up menu. Merged from wsjtx-1.4 branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4471 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
ca4ed77474
commit
e2b39b6b8a
@ -9,6 +9,9 @@
|
|||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QRegExpValidator>
|
#include <QRegExpValidator>
|
||||||
#include <QRegExp>
|
#include <QRegExp>
|
||||||
|
#include <QDesktopServices>
|
||||||
|
#include <QUrl>
|
||||||
|
#include <QDir>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QtConcurrent/QtConcurrentRun>
|
#include <QtConcurrent/QtConcurrentRun>
|
||||||
|
|
||||||
@ -2496,6 +2499,11 @@ void MainWindow::on_actionErase_wsjtx_log_adi_triggered()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionOpen_log_directory_triggered ()
|
||||||
|
{
|
||||||
|
QDesktopServices::openUrl (QUrl::fromLocalFile (m_config.data_path ().absolutePath ()));
|
||||||
|
}
|
||||||
|
|
||||||
bool MainWindow::gridOK(QString g)
|
bool MainWindow::gridOK(QString g)
|
||||||
{
|
{
|
||||||
bool b=g.mid(0,1).compare("A")>=0 and
|
bool b=g.mid(0,1).compare("A")>=0 and
|
||||||
|
@ -103,6 +103,7 @@ private slots:
|
|||||||
void on_actionOpen_next_in_directory_triggered();
|
void on_actionOpen_next_in_directory_triggered();
|
||||||
void on_actionDecode_remaining_files_in_directory_triggered();
|
void on_actionDecode_remaining_files_in_directory_triggered();
|
||||||
void on_actionDelete_all_wav_files_in_SaveDir_triggered();
|
void on_actionDelete_all_wav_files_in_SaveDir_triggered();
|
||||||
|
void on_actionOpen_log_directory_triggered ();
|
||||||
void on_actionNone_triggered();
|
void on_actionNone_triggered();
|
||||||
void on_actionSave_all_triggered();
|
void on_actionSave_all_triggered();
|
||||||
void on_actionKeyboard_shortcuts_triggered();
|
void on_actionKeyboard_shortcuts_triggered();
|
||||||
|
@ -2294,6 +2294,7 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
<addaction name="actionDelete_all_wav_files_in_SaveDir"/>
|
<addaction name="actionDelete_all_wav_files_in_SaveDir"/>
|
||||||
<addaction name="actionErase_ALL_TXT"/>
|
<addaction name="actionErase_ALL_TXT"/>
|
||||||
<addaction name="actionErase_wsjtx_log_adi"/>
|
<addaction name="actionErase_wsjtx_log_adi"/>
|
||||||
|
<addaction name="actionOpen_log_directory"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionSettings"/>
|
<addaction name="actionSettings"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
@ -2692,6 +2693,11 @@ list. The list can be maintained in Settings (F2).</string>
|
|||||||
<string>Local User Guide</string>
|
<string>Local User Guide</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionOpen_log_directory">
|
||||||
|
<property name="text">
|
||||||
|
<string>Open log directory</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
Loading…
Reference in New Issue
Block a user