2014-05-20 16:33:32 +00:00
|
|
|
#ifndef DIVELOGEXPORTDIALOG_H
|
|
|
|
#define DIVELOGEXPORTDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
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-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:
|
|
|
|
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);
|
|
|
|
void copy_and_overwrite(const QString &fileName, const QString &newName);
|
2014-05-20 16:33:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIVELOGEXPORTDIALOG_H
|