Customizable Print Formats GSoC 2015

Lubomir I. Ivanov neolit123 at gmail.com
Fri Mar 6 03:51:01 PST 2015


On 6 March 2015 at 13:36, Gehad Elrobey <gehadelrobey at gmail.com> wrote:
>
>
> I am think of making some default layouts that divide the page into N x M
> boxes (in different page orientation) , and the user have the option to map
> the data to the boxes for each dive. for example he puts the dive profile in
> the top right corner and the dive notes in the bottom of the page and this
> layout is repeated for each dive. The problem of well fitting can be handled
> by responsive html design for each widget so that the data will always fit
> in the widget that is placed in the N x M boxes. This will need a lot more
> testing to check how this will actually work.
>

the current printlayout.cpp supports NxM (even if the UI only allows
certain ones).

there is simple formula that is used for that. basically it takes the
N and M parameters and based on the available space on the page and
padding it estimates the size of single dive (profile + table). the
problem with this approach is that if, say the dive notes are too long
they may not fit in the singular estimated space for a dive.

the alternative is to feed only N (e.g. columns) and produce a more
fluid layout where a dive can span vertically even to multiple columns
if it has longer notes. the next dive starts at the column where the
previous one ended (think newspaper).

lubomir
--


More information about the subsurface mailing list