<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 4, 2015 at 4:14 PM, Lubomir I. Ivanov <span dir="ltr"><<a href="mailto:neolit123@gmail.com" target="_blank">neolit123@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 4 March 2015 at 16:05, Tomaz Canabrava <<a href="mailto:tcanabrava@kde.org">tcanabrava@kde.org</a>> wrote:<br>
>><br>
>> also, i don't understand Tomaz' idea about the Grantlee extension, so<br>
>> perhaps we need to investigate into that as well.<br>
>> it probably uses QTableView Qt's Model-View-X pattern, which i don't<br>
>> like that much, yet Subsurface already uses it pretty much everywhere!<br>
><br>
><br>
><br>
> Grantlee *is* a HTML + CSS template engine that integrates with Qt.<br>
> it follows Django template scheme, so it's very flexible and easy to extend<br>
><br>
<br>
</span>yep, i did gather that previously.<br>
<span class=""><br>
> for instance, we could do something like this in grantlee:<br>
><br>
> template.html<br>
><br>
> <header> ... </header><br>
> <body><br>
>    < h1 > {{ dive.where }} </h1><br>
>    < h2 > {{ dive.buddy }} </h2><br>
> </body><br>
><br>
> ( yes, very short example )<br>
><br>
> and let the grantlee template system do it's magic.<br>
><br>
<br>
</span>i don't understand what the output of Grantlee template generator is;<br>
is it a data model for a QTableView that then can be rendered to an<br>
image, is it an image, or something else?<br>
BTW Gehad, if you want, you can start experimenting with Grantlee. I<br>
have it complied on Windows so perhaps you can try setuping a simple<br>
TestGrantlee POC package for Qt5 to show everyone how it fits our<br>
needs?<br></blockquote><div><br></div><div>I built Grantlee on linux and I am going to look more into it these days. I love the fact that Grantlee produces HTML files that can be printed easily with neat quality without the need to reinvent the wheel.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
> I'm -1 for depending on tex because it's a huge package and a mess to<br>
> install it on windows<br>
<br>
</span>if we can get your idea to work then we can use it for printing, while<br>
the TeX export is still viable as a separate feature.<br>
<span class=""><br>
><br>
> Quite a lot of the issues we had on the painter side was when we depended on<br>
> Qt4, since now we are depending on qt5 we can look if the issues are still<br>
> happening.<br>
><br>
<br>
</span>hopefully true.<br>
<br>
lubomir<br>
--<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">regards,<div>Gehad</div></div></div>
</div></div>