Added menu items to export csv decoded data, still need wiring

This commit is contained in:
Andy Huska
2022-10-17 10:33:13 -05:00
parent c6c19b38aa
commit ef762e5ae5
4 changed files with 27 additions and 5 deletions
+16 -2
View File
@@ -988,6 +988,16 @@ void MainWindow::handleLoadFilters()
}
void MainWindow::handleSaveDecoded()
{
handleSaveDecodedMethod(false);
}
void MainWindow::handleSaveDecodedCsv()
{
handleSaveDecodedMethod(true);
}
void MainWindow::handleSaveDecodedMethod(bool csv)
{
QString filename;
QFileDialog dialog(this);
@@ -1006,8 +1016,12 @@ void MainWindow::handleSaveDecoded()
{
filename = dialog.selectedFiles()[0];
if (!filename.contains('.')) filename += ".txt";
//saveDecodedTextFile(filename);
saveDecodedTextFileAsColumns(filename);
if(csv)
saveDecodedTextFileAsColumns(filename);
else
saveDecodedTextFile(filename);
settings.setValue("FileIO/LoadSaveDirectory", dialog.directory().path());
}
}