mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-03 13:47:51 -04:00
Revert "Add and implement menu item "File | Copy main text window to WSJT-X.txt"."
This reverts commit 036c612d415f81bb871dbb8425ab8d5df8a85f0c.
This commit is contained in:
parent
9243342ddd
commit
7cc46af421
@ -10026,26 +10026,3 @@ void MainWindow::on_jt65Button_clicked()
|
|||||||
}
|
}
|
||||||
on_actionJT65_triggered();
|
on_actionJT65_triggered();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::on_actionCopy_to_WSJTX_txt_triggered()
|
|
||||||
{
|
|
||||||
static QFile f {QDir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)}.absoluteFilePath ("WSJT-X.txt")};
|
|
||||||
if(!f.open(QIODevice::Text | QIODevice::WriteOnly)) {
|
|
||||||
MessageBox::warning_message (this, tr ("WSJT-X.txt file error"),
|
|
||||||
tr ("Cannot open \"%1\" for writing").arg (f.fileName ()),
|
|
||||||
tr ("Error: %1").arg (f.errorString ()));
|
|
||||||
} else {
|
|
||||||
QString t=ui->decodedTextBrowser->toPlainText();
|
|
||||||
|
|
||||||
QTextStream out(&f);
|
|
||||||
out << t <<
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
|
|
||||||
endl
|
|
||||||
#else
|
|
||||||
Qt::endl
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
f.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -173,7 +173,6 @@ 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_actionCopy_to_WSJTX_txt_triggered();
|
|
||||||
void on_actionOpen_log_directory_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();
|
||||||
|
@ -3026,8 +3026,6 @@ QLabel[oob="true"] {
|
|||||||
<addaction name="actionOpen_next_in_directory"/>
|
<addaction name="actionOpen_next_in_directory"/>
|
||||||
<addaction name="actionDecode_remaining_files_in_directory"/>
|
<addaction name="actionDecode_remaining_files_in_directory"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionCopy_to_WSJTX_txt"/>
|
|
||||||
<addaction name="separator"/>
|
|
||||||
<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"/>
|
||||||
@ -3038,6 +3036,7 @@ QLabel[oob="true"] {
|
|||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionSettings"/>
|
<addaction name="actionSettings"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="actionExit"/>
|
<addaction name="actionExit"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuView">
|
<widget class="QMenu" name="menuView">
|
||||||
@ -3670,11 +3669,6 @@ QLabel[oob="true"] {
|
|||||||
<string>Active Stations</string>
|
<string>Active Stations</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionCopy_to_WSJTX_txt">
|
|
||||||
<property name="text">
|
|
||||||
<string>Copy main text window to WSJT-X.txt</string>
|
|
||||||
</property>
|
|
||||||
</action>
|
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user