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:
Gehad elrobey 2015-04-21 17:23:13 +02:00 committed by Dirk Hohndel
parent 00f4b7b66b
commit e2ad38189e
4 changed files with 270 additions and 0 deletions

View file

@ -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 \