Prototype for customizable printing support.
Lubomir I. Ivanov
neolit123 at gmail.com
Wed Apr 15 15:33:24 PDT 2015
On 16 April 2015 at 01:14, Gehad Elrobey <gehadelrobey at gmail.com> wrote:
> Hello all,
> As we are approaching gsoc community bonding period so I thought that a
> small prototype may be the best way to discuss my thoughts with the
> I sent a group of patches with a very small but full working prototype.
> - I added Grantlee library to subsurface code base (thanks for the cmake
> build environment it made my life much easier as I don't know qmake at all)
> - I create a simple Grantlee template that prints two dives per page.
> - the TemplateLayout class iterates the selected dives and interface with
> Grantlee backend.
> - QWebview and QPainter are used to render the html file living in a
> QTemporaryFile object.
> - finally I added the "print using templates" option in the print dialog.
> Note: I tested this on Linux only, so there may be problems on other
> also many exceptions still need to be handled this is only a fast prototype
> for discussion.
> So you may test this and tell me what do you think?
cool, will test that as soon as i get the cmake setup and grantlee working.
More information about the subsurface