Add descriptions for different formats in the export dialog

When choosing a format from the export dialog a two line description of
the format appears. This is helpful and prevents confusion.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Gehad 2014-05-23 23:28:08 +03:00 committed by Dirk Hohndel
parent 5ba573240f
commit 2b2e2f52c0
3 changed files with 65 additions and 3 deletions

View file

@ -1,6 +1,9 @@
#include <QFileDialog>
#include <QString>
#include <QShortcut>
#include <QAbstractButton>
#include <QDebug>
#include <QButtonGroup>
#include "mainwindow.h"
#include "divelogexportdialog.h"
@ -23,6 +26,19 @@ DiveLogExportDialog::~DiveLogExportDialog()
delete ui;
}
void DiveLogExportDialog::on_exportGroup_buttonClicked(QAbstractButton *button)
{
if (ui->exportUDDF->isChecked()) {
ui->description->setText("UDDF is a generic format that enables communication among many dive computers and computer programs");
} else if (ui->exportCSV->isChecked()) {
ui->description->setText("CSV format, that includes the most critical information of the dive profile.");
} else if (ui->exportDivelogs->isChecked()) {
ui->description->setText("Subsurface XML format. This is the native format used by Subsurface.");
} 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.");
}
}
void DiveLogExportDialog::on_buttonBox_accepted()
{
QFileInfo fi(system_default_filename());