<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 13, 2015 at 11: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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 13 July 2015 at 23:54, Gehad Elrobey <<a href="mailto:gehadelrobey@gmail.com">gehadelrobey@gmail.com</a>> wrote:<br>
><br>
><br>
> On Mon, Jul 13, 2015 at 10:33 PM, Lubomir I. Ivanov <<a href="mailto:neolit123@gmail.com">neolit123@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On 13 July 2015 at 22:35, Gehad Elrobey <<a href="mailto:gehadelrobey@gmail.com">gehadelrobey@gmail.com</a>> wrote:<br>
>> > Hello all,<br>
>> ><br>
>> > This week I was working on the following tasks:<br>
>> ><br>
>> > - Enhancing the one dive per page template.<br>
>> > - Refactoring the Printing class to handle QPrinter and QPixmap.<br>
>> > - Implement the Preview section in "TemplateEdit" dialog.<br>
>> > - Adding color tab to "TemplateEdit".<br>
>> > - Adding color palettes to template settings.<br>
>><br>
>> nice, i will take a look tomorrow.<br>
>><br>
>> ><br>
>> > This week I will mainly work to enhance the user experience and add<br>
>> > remaining templates (eg. flow layout), Also I want to fix any bugs as<br>
>> > soon<br>
>> > as possible so testing the whole thing now can be very useful.<br>
>> ><br>
>> > I have done some work to fix the gray-scale issue in the dive profile, I<br>
>> > have attached a picture of the dive profile after my progress, But there<br>
>> > are<br>
>> > still some dive profile items that I couldn't change to gray-scale (eg.<br>
>> > numbers on the axis and the cylinder pressure curve), I also needed to<br>
>> > change the QPixmaps to QImages and transformed them to gray-scale<br>
>> > manually,<br>
>> > So I am not sure If I am progressing in the correct direction regarding<br>
>> > the<br>
>> > dive profile gray-scale issue.<br>
>> ><br>
>><br>
>> at least a couple of times, i've said to approach the whole thing<br>
>> using the "convert everything to greyscale via CSS" method.<br>
>> mind that this is a feature that is not very important (not that many<br>
>> "i want to print in greyscale" requests by users out there) and we<br>
>> should attempt to save time by doing the easier solution. the approach<br>
>> of "let's bring back the custom greyscale color table that was in<br>
>> Profile1" is going to eat a lot time and is questionable as a<br>
>> maintainable code-base feature, unless we decide to add customizable<br>
>> user colors in the profile at some point.<br>
>><br>
>> have you encountered problems with the CSS filter approach?<br>
>><br>
><br>
> As the dive profile is rendered on top of the QWebView after the Html page<br>
> is already displayed. the css filtering will not affect the dive profile and<br>
> will only affect the content of the HTML page, that's why I though I should<br>
> render a gray scale version of the dive profile.<br>
><br>
<br>
</div></div>i forgot about that part.<br>
in that case, use the CSS filtering on the QWebView page but also<br>
convert the whole profile QImage/QPixmap to greyscale (not individual<br>
profile item classes using the custom color table).<br></blockquote><div><br>Should I convert the dive profile to QImage during previewing only or should I convert it during actual printing also which will affect the printing quality?</div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">regards,</div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div dir="ltr"><div>Gehad</div></div></div></blockquote></div></div>
</div></div>