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