source: subsurface/desktop-widgets/divelogexportdialog.h @ 9b8a040

Last change on this file since 9b8a040 was 9b8a040, checked in by Dirk Hohndel <dirk@…>, 14 months ago

Export to TeX file initialized

This does the basic export as a TeX file including a template.

It still lacks proper location parsing.

Signed-off-by: Robert C. Helling <helling@…>
Signed-off-by: Dirk Hohndel <dirk@…>

  • Property mode set to 100644
File size: 869 bytes
Line 
1#ifndef DIVELOGEXPORTDIALOG_H
2#define DIVELOGEXPORTDIALOG_H
3
4#include <QDialog>
5#include <QTextStream>
6#include <QFuture>
7#include "core/helpers.h"
8#include "core/statistics.h"
9
10class QAbstractButton;
11
12namespace Ui {
13        class DiveLogExportDialog;
14}
15
16void exportHTMLstatisticsTotal(QTextStream &out, stats_t *total_stats);
17
18class DiveLogExportDialog : public QDialog {
19        Q_OBJECT
20
21public:
22        explicit DiveLogExportDialog(QWidget *parent = 0);
23        ~DiveLogExportDialog();
24
25private
26slots:
27        void on_buttonBox_accepted();
28        void on_exportGroup_buttonClicked(QAbstractButton *);
29
30private:
31        QFuture<int> future;
32        Ui::DiveLogExportDialog *ui;
33        void showExplanation();
34        void exportHtmlInit(const QString &filename);
35        void export_depths(const char *filename, const bool selected_only);
36        void export_TeX(const char *filename, const bool selected_only);
37};
38
39#endif // DIVELOGEXPORTDIALOG_H
Note: See TracBrowser for help on using the repository browser.