<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 29, 2015 at 4:13 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 29 June 2015 at 05:08, Gehad Elrobey <<a href="mailto:gehadelrobey@gmail.com">gehadelrobey@gmail.com</a>> wrote:<br>
</span><span class="">> Hello all,<br>
><br>
> This week I was working on the list of tasks which I have discussed with<br>
> Lubomir.<br>
><br>
> Tasks completed so far:<br>
> - QPrintPreviewDialog triggered from the main dialog<br>
<br>
</span>nice<br>
<span class=""><br>
> - add "print selected dives" support<br>
<br>
</span>this one doesn't work for me. i have a massive test list of dives and<br>
with "print selected dives" not selected, i expect it to print the<br>
entire list, instead it prints only a single page with two dives.<br>
<span class=""><br></span></blockquote><div><br>That was working for me before I merged commit <span class="">094264014dc47, it seems that amount_selected in display.h is not working as expected, I will look into this and push a commit.</span></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="">
> - print in colors or gray scale<br>
<br>
</span>does not work. the profile is still printed in color no matter the<br>
print dialog selection.<br>
do you simply attempt to greyscale the profile image before rendering<br>
on the HTML?<br></blockquote><div><br></div><div>I use QPrinter::setColorMode() which selects the color mode for the printer to be RGB or Gray scale, anyway the output in the QPrintPreviewDialog is always in RGB mode, while actual printing using the printer is working correctly for me. </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">
<br>
note that when Tomaz implemented "profile2" we lost the support for<br>
greyscale print support.<br>
i believe that was in qt-ui/profilegraphics.cpp via the "isGreyscale" flag.<br>
profile2 does not have that, so for now converting the rendered image<br>
to greyscale is the fast and simple solution.<br>
but using our pre-defined colors via the "// Monochromes" list in<br>
colors.h is nice-to-have.<br>
<span class=""><br>
> - fix dive profile bugs<br>
> - fixed two dives per page template on large DPI printers.<br>
><br>
> Tasks in progress:<br>
> - TemplateEdit with print preview.<br>
><br>
> Tasks I will work on next week:<br>
> - I will finish the TemplateEdit dialog, and enhance a template to be user<br>
> ready.<br>
<br>
</span>sounds about right.<br>
<br>
lubomir<br>
--<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</div></div>