summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 86d612457..53f7a15df 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -36,6 +36,7 @@
#include "simplewidgets.h"
#include "diveplanner.h"
#include "about.h"
+#include "worldmap-save.h"
#ifndef NO_PRINTING
#include "printdialog.h"
#endif
@@ -277,6 +278,15 @@ void MainWindow::on_actionExportUDDF_triggered()
export_dives_uddf(filename.toUtf8(), false);
}
+void MainWindow::on_actionExportHTMLworldmap_triggered()
+{
+ QFileInfo fi(system_default_filename());
+ QString filename = QFileDialog::getSaveFileName(this, tr("Export World Map"), fi.absolutePath(),
+ tr("HTML files (*.html)"));
+ if (!filename.isNull() && !filename.isEmpty())
+ export_worldmap_HTML(filename.toUtf8().data());
+}
+
void MainWindow::on_actionPrint_triggered()
{
#ifndef NO_PRINTING