summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogexportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-24 06:42:10 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-24 06:42:10 -0700
commit18fa359b481893bf2ef71cfbb676efbd9601204b (patch)
tree6fdfd1384e0b53f6a11dfa8d8a55e74cae53284b /qt-ui/divelogexportdialog.cpp
parent2b2e2f52c037e6660808f2e47983a2103fee32a6 (diff)
downloadsubsurface-18fa359b481893bf2ef71cfbb676efbd9601204b.tar.gz
Rework the Export dialog
The UI design looked too tight in my screen. The explanation texts were a bit inconsistent (and in one case simply wrong). The explanation for the initial selection wasn't shown. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogexportdialog.cpp')
-rw-r--r--qt-ui/divelogexportdialog.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index 94b9c9fc9..cc59b2e6d 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -15,6 +15,7 @@ DiveLogExportDialog::DiveLogExportDialog(QWidget *parent) : QDialog(parent),
ui(new Ui::DiveLogExportDialog)
{
ui->setupUi(this);
+ showExplanation();
QShortcut *quit = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q), this);
connect(quit, SIGNAL(activated()), parent, SLOT(close()));
QShortcut *close = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), this);
@@ -26,19 +27,24 @@ DiveLogExportDialog::~DiveLogExportDialog()
delete ui;
}
-void DiveLogExportDialog::on_exportGroup_buttonClicked(QAbstractButton *button)
+void DiveLogExportDialog::showExplanation()
{
if (ui->exportUDDF->isChecked()) {
- ui->description->setText("UDDF is a generic format that enables communication among many dive computers and computer programs");
+ ui->description->setText("Generic format that is used for data exchange between a variety of diving related programs.");
} else if (ui->exportCSV->isChecked()) {
- ui->description->setText("CSV format, that includes the most critical information of the dive profile.");
+ ui->description->setText("Comma separated values that include the most relevant information of the dive profile.");
} else if (ui->exportDivelogs->isChecked()) {
- ui->description->setText("Subsurface XML format. This is the native format used by Subsurface.");
+ ui->description->setText("Send the dive data to Divelogs.de website.");
} else if (ui->exportWorldMap->isChecked()) {
- ui->description->setText("Export the currently open dive logbook locations in HTML format and draw these on a world map.");
+ ui->description->setText("HTML export of the dive locations, visualized on a world map.");
}
}
+void DiveLogExportDialog::on_exportGroup_buttonClicked(QAbstractButton *button)
+{
+ showExplanation();
+}
+
void DiveLogExportDialog::on_buttonBox_accepted()
{
QFileInfo fi(system_default_filename());