diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/divelogexportdialog.cpp | 4 | ||||
-rw-r--r-- | qt-ui/divelogexportdialog.ui | 16 |
2 files changed, 17 insertions, 3 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp index 965af494f..a237c9941 100644 --- a/qt-ui/divelogexportdialog.cpp +++ b/qt-ui/divelogexportdialog.cpp @@ -272,6 +272,10 @@ void DiveLogExportDialog::on_buttonBox_accepted() stylesheet = "xml2csv.xslt"; filename = QFileDialog::getSaveFileName(this, tr("Export CSV file as"), lastDir, tr("CSV files (*.csv *.CSV)")); + } else if (ui->exportCSVDetails->isChecked()) { + stylesheet = "xml2manualcsv.xslt"; + filename = QFileDialog::getSaveFileName(this, tr("Export CSV file as"), lastDir, + tr("CSV files (*.csv *.CSV)")); } else if (ui->exportDivelogs->isChecked()) { DivelogsDeWebServices::instance()->prepareDivesForUpload(ui->exportSelected->isChecked()); } else if (ui->exportDiveshare->isChecked()) { diff --git a/qt-ui/divelogexportdialog.ui b/qt-ui/divelogexportdialog.ui index aaa485eb3..62e984294 100644 --- a/qt-ui/divelogexportdialog.ui +++ b/qt-ui/divelogexportdialog.ui @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>507</width> - <height>413</height> + <height>423</height> </rect> </property> <property name="windowTitle"> @@ -166,7 +166,17 @@ <item> <widget class="QRadioButton" name="exportCSV"> <property name="text"> - <string>CSV</string> + <string>CSV samples</string> + </property> + <attribute name="buttonGroup"> + <string notr="true">exportGroup</string> + </attribute> + </widget> + </item> + <item> + <widget class="QRadioButton" name="exportCSVDetails"> + <property name="text"> + <string>CSV dive details</string> </property> <attribute name="buttonGroup"> <string notr="true">exportGroup</string> @@ -440,7 +450,7 @@ </connection> </connections> <buttongroups> - <buttongroup name="buttonGroup"/> <buttongroup name="exportGroup"/> + <buttongroup name="buttonGroup"/> </buttongroups> </ui> |