diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2014-06-24 16:01:49 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-24 21:39:10 +0800 |
commit | e9c4259db43dbd2de204295f9cdae8c9cc267a5d (patch) | |
tree | 111fc6e1fef554035d21fb2c523824531437bf84 /qt-ui | |
parent | ccfdcca6e63336fddf4444e7bcf56c009c6195f7 (diff) | |
download | subsurface-e9c4259db43dbd2de204295f9cdae8c9cc267a5d.tar.gz |
HTML: Add export list only option
Exporting small dive list only or choose to export the dive list with
all the dive details like the profile, Bookmarks, dive equipments and
statistics.
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divelogexportdialog.cpp | 5 | ||||
-rw-r--r-- | qt-ui/divelogexportdialog.ui | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp index 829765424..82e3aaf74 100644 --- a/qt-ui/divelogexportdialog.cpp +++ b/qt-ui/divelogexportdialog.cpp @@ -79,7 +79,7 @@ void DiveLogExportDialog::exportHtmlInit(const QString &filename) QString json_settings = exportFiles + QDir::separator() + "settings.json"; exportHTMLsettings(json_settings); - export_HTML(json_dive_data.toUtf8().data(), ui->exportSelectedDives->isChecked()); + export_HTML(json_dive_data.toUtf8().data(), ui->exportSelectedDives->isChecked(), ui->exportListOnly->isChecked()); QString searchPath = getSubsurfaceDataPath("theme"); if (searchPath.isEmpty()) @@ -114,7 +114,8 @@ void DiveLogExportDialog::exportHTMLsettings(const QString &filename) QFile file(filename); file.open(QIODevice::WriteOnly | QIODevice::Text); QTextStream out(&file); - out << "settings = {\"fontSize\":\"" << fontSize << "\",\"fontFamily\":\"" << fontFamily << "\",}"; + out << "settings = {\"fontSize\":\"" << fontSize << "\",\"fontFamily\":\"" << fontFamily << "\",\"listOnly\":\""<< + ui->exportListOnly->isChecked() << "\",}"; file.close(); } diff --git a/qt-ui/divelogexportdialog.ui b/qt-ui/divelogexportdialog.ui index d2036bda4..610ee53e9 100644 --- a/qt-ui/divelogexportdialog.ui +++ b/qt-ui/divelogexportdialog.ui @@ -234,9 +234,9 @@ </widget> </item> <item row="2" column="0"> - <widget class="QCheckBox" name="checkBox_3"> + <widget class="QCheckBox" name="exportListOnly"> <property name="text"> - <string>Dive List only</string> + <string>Export List only</string> </property> </widget> </item> |