summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogexportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it>2014-09-21 16:11:58 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-14 20:33:46 +0200
commit4cdb80c4cd3836fdbacf50f62e9c76f0efca244b (patch)
tree13b0dfba240d6ce58b7dc68d64f29153e5116dac /qt-ui/divelogexportdialog.cpp
parent64d1ccc5502e79917bc17ed55ef1a783b4163139 (diff)
downloadsubsurface-4cdb80c4cd3836fdbacf50f62e9c76f0efca244b.tar.gz
Export to DiveShare
Adds the possibility of exporting dives to DiveShare. Signed-off-by: Salvo 'LtWorf' Tomaselli <tiposchi@tiscali.it> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r--qt-ui/divelogexportdialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index 3f9373a4f..6b847a425 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -9,6 +9,7 @@
#include "mainwindow.h"
#include "divelogexportdialog.h"
+#include "diveshareexportdialog.h"
#include "ui_divelogexportdialog.h"
#include "subsurfacewebservices.h"
#include "worldmap-save.h"
@@ -70,6 +71,8 @@ void DiveLogExportDialog::showExplanation()
ui->description->setText(tr("Comma separated values that include the most relevant information of the dive profile."));
} else if (ui->exportDivelogs->isChecked()) {
ui->description->setText(tr("Send the dive data to divelogs.de website."));
+ } else if (ui->exportDiveshare->isChecked()) {
+ ui->description->setText(tr("Send the dive data to dive-share.appspot.com website"));
} else if (ui->exportWorldMap->isChecked()) {
ui->description->setText(tr("HTML export of the dive locations, visualized on a world map."));
} else if (ui->exportSubsurfaceXML->isChecked()) {
@@ -245,6 +248,8 @@ void DiveLogExportDialog::on_buttonBox_accepted()
tr("CSV files (*.csv *.CSV)"));
} else if (ui->exportDivelogs->isChecked()) {
DivelogsDeWebServices::instance()->prepareDivesForUpload(ui->exportSelected->isChecked());
+ } else if (ui->exportDiveshare->isChecked()) {
+ DiveShareExportDialog::instance()->prepareDivesForUpload(ui->exportSelected->isChecked());
} else if (ui->exportWorldMap->isChecked()) {
filename = QFileDialog::getSaveFileName(this, tr("Export world map"), lastDir,
tr("HTML files (*.html)"));