mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
HTML export: separate UI and logic code
In order to be able to initiate an HTML export from the core library we need to separate the actual logic from the UI. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a2c546152e
commit
6a0e1cd9f6
5 changed files with 194 additions and 141 deletions
20
divelogexportlogic.h
Normal file
20
divelogexportlogic.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef DIVELOGEXPORTLOGIC_H
|
||||
#define DIVELOGEXPORTLOGIC_H
|
||||
|
||||
struct htmlExportSetting {
|
||||
bool exportPhotos;
|
||||
bool selectedOnly;
|
||||
bool listOnly;
|
||||
QString fontFamily;
|
||||
QString fontSize;
|
||||
int themeSelection;
|
||||
bool subsurfaceNumbers;
|
||||
bool yearlyStatistics;
|
||||
QString themeFile;
|
||||
};
|
||||
|
||||
void file_copy_and_overwrite(const QString &fileName, const QString &newName);
|
||||
void exportHtmlInitLogic(const QString &filename, struct htmlExportSetting &hes);
|
||||
|
||||
#endif // DIVELOGEXPORTLOGIC_H
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue