2017-04-27 18:26:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2014-05-20 16:33:32 +00:00
|
|
|
#ifndef DIVELOGEXPORTDIALOG_H
|
|
|
|
#define DIVELOGEXPORTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2014-08-07 13:11:23 +00:00
|
|
|
#include <QTextStream>
|
2015-01-30 19:42:33 +00:00
|
|
|
#include <QFuture>
|
2016-04-05 05:02:03 +00:00
|
|
|
#include "core/statistics.h"
|
2014-08-07 13:11:23 +00:00
|
|
|
|
2014-06-26 17:01:31 +00:00
|
|
|
class QAbstractButton;
|
2014-05-20 16:33:32 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
2014-05-22 18:40:22 +00:00
|
|
|
class DiveLogExportDialog;
|
2014-05-20 16:33:32 +00:00
|
|
|
}
|
|
|
|
|
2014-08-07 13:11:23 +00:00
|
|
|
void exportHTMLstatisticsTotal(QTextStream &out, stats_t *total_stats);
|
|
|
|
|
2014-05-22 18:40:22 +00:00
|
|
|
class DiveLogExportDialog : public QDialog {
|
2014-05-20 16:33:32 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit DiveLogExportDialog(QWidget *parent = 0);
|
|
|
|
~DiveLogExportDialog();
|
|
|
|
|
2014-05-22 18:40:22 +00:00
|
|
|
private
|
|
|
|
slots:
|
2014-05-20 16:33:32 +00:00
|
|
|
void on_buttonBox_accepted();
|
2014-05-23 20:28:08 +00:00
|
|
|
void on_exportGroup_buttonClicked(QAbstractButton *);
|
2014-05-20 16:33:32 +00:00
|
|
|
|
|
|
|
private:
|
2015-01-30 19:42:33 +00:00
|
|
|
QFuture<int> future;
|
2014-05-20 16:33:32 +00:00
|
|
|
Ui::DiveLogExportDialog *ui;
|
2014-05-24 13:42:10 +00:00
|
|
|
void showExplanation();
|
2014-06-24 13:01:52 +00:00
|
|
|
void exportHtmlInit(const QString &filename);
|
2014-09-28 21:47:41 +00:00
|
|
|
void export_depths(const char *filename, const bool selected_only);
|
2019-01-03 09:03:12 +00:00
|
|
|
void export_TeX(const char *filename, const bool selected_only, bool plain);
|
2019-02-03 14:47:52 +00:00
|
|
|
void exportProfile(QString filename, const bool selected_only);
|
2019-02-02 13:41:53 +00:00
|
|
|
void saveProfile(const struct dive *dive, const QString filename);
|
|
|
|
|
2014-05-20 16:33:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIVELOGEXPORTDIALOG_H
|