From 10e70336c6fc45028c8b25dae99edaeb7b596137 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Sun, 10 Aug 2014 07:10:19 +0300 Subject: HTML: Remember General Export Settings. Set Default values and remember user selected general HTML export settings. Signed-off-by: Gehad elrobey Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- qt-ui/divelogexportdialog.cpp | 12 ++++++++++++ qt-ui/divelogexportdialog.ui | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp index 9156f17ac..f3f32949f 100644 --- a/qt-ui/divelogexportdialog.cpp +++ b/qt-ui/divelogexportdialog.cpp @@ -45,6 +45,15 @@ DiveLogExportDialog::DiveLogExportDialog(QWidget *parent) : QDialog(parent), if (settings.contains("themeSelection")) { ui->themeSelection->setCurrentIndex(settings.value("themeSelection").toInt()); } + if (settings.contains("subsurfaceNumbers")) { + ui->exportSubsurfaceNumber->setChecked(settings.value("subsurfaceNumbers").toBool()); + } + if (settings.contains("yearlyStatistics")) { + ui->exportStatistics->setChecked(settings.value("yearlyStatistics").toBool()); + } + if (settings.contains("listOnly")) { + ui->exportListOnly->setChecked(settings.value("listOnly").toBool()); + } settings.endGroup(); } @@ -122,6 +131,9 @@ void DiveLogExportDialog::exportHTMLsettings(const QString &filename) settings.setValue("fontSelection", ui->fontSelection->currentIndex()); settings.setValue("fontSizeSelection", ui->fontSizeSelection->currentIndex()); settings.setValue("themeSelection", ui->themeSelection->currentIndex()); + settings.setValue("subsurfaceNumbers", ui->exportSubsurfaceNumber->isChecked()); + settings.setValue("yearlyStatistics", ui->exportStatistics->isChecked()); + settings.setValue("listOnly", ui->exportListOnly->isChecked()); settings.endGroup(); QString fontSize = ui->fontSizeSelection->currentText(); diff --git a/qt-ui/divelogexportdialog.ui b/qt-ui/divelogexportdialog.ui index 0e8ef4a42..ce1513efb 100644 --- a/qt-ui/divelogexportdialog.ui +++ b/qt-ui/divelogexportdialog.ui @@ -194,6 +194,9 @@ Subsurface numbers + + true + @@ -220,6 +223,9 @@ Export Yearly Statistics + + true + -- cgit v1.2.3-70-g09d2