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>
|
2014-08-07 13:11:23 +00:00
|
|
|
#include "helpers.h"
|
|
|
|
#include "statistics.h"
|
|
|
|
|
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);
|
|
|
|
void exportHTMLsettings(const QString &filename);
|
2014-09-28 21:47:41 +00:00
|
|
|
void export_depths(const char *filename, const bool selected_only);
|
2014-05-20 16:33:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIVELOGEXPORTDIALOG_H
|