mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: Add TemplateLayout class
This is the main class to hold Grantlee engine logic. TemplateLayout::generate() loads QT5Grantlee and initialize the templates then returns a QString that contains the rendered HTML by Grantlee library. Also this class contains the Dive class which holds the logic that formats the data before passing it to the templates. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
00f4b7b66b
commit
e2ad38189e
4 changed files with 270 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ HEADERS = \
|
|||
qthelper.h \
|
||||
units.h \
|
||||
divecomputer.h \
|
||||
templatelayout.h \
|
||||
qt-ui/about.h \
|
||||
qt-ui/completionmodels.h \
|
||||
qt-ui/divecomputermanagementdialog.h \
|
||||
|
|
@ -160,6 +161,7 @@ SOURCES = \
|
|||
profile.c \
|
||||
gaspressures.c \
|
||||
divecomputer.cpp \
|
||||
templatelayout.cpp \
|
||||
worldmap-save.c \
|
||||
save-html.c \
|
||||
qt-gui.cpp \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue