mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Export dives in UDDF format
Implement exporting in UDDF format as was done in Gtk version. File menu exports all the dives, right click on selection exports the selected ones. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
bdedf46e4c
commit
3e48511318
5 changed files with 83 additions and 2 deletions
|
@ -189,7 +189,13 @@ void MainWindow::on_actionImport_triggered()
|
|||
|
||||
void MainWindow::on_actionExportUDDF_triggered()
|
||||
{
|
||||
qDebug("actionExportUDDF");
|
||||
QString filename;
|
||||
QFileInfo fi(system_default_filename());
|
||||
|
||||
filename = QFileDialog::getSaveFileName(this, tr("Save File as"), fi.absolutePath(),
|
||||
tr("UDDF files (*.uddf *.UDDF)"));
|
||||
if (!filename.isNull() && !filename.isEmpty())
|
||||
export_dives_uddf((const char *)filename.toStdString().c_str(), false);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionPrint_triggered()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue