kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #02177
Re: New zoom code musings.
-
To:
kicad-devel@xxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@...>
-
Date:
Thu, 05 Feb 2009 16:12:14 -0500
-
In-reply-to:
<498B50D5.1030601@...>
-
User-agent:
Thunderbird 2.0.0.19 (Windows/20081209)
jean-pierre.charras@... wrote:
> Guys, how about this:
>
> 1 - Until now zoom levels were 1, 2 ... 2048.
> 2 - many user want intermediate values.
> 3 - Wayne enhanced the zoom code to allow these intermediate levels.
> 4 - A kicad release candidate is coming soon, ans doc update, the best
> is do not make large changes about zoom.
>
> So (before having a better way to handle zoom level, like user selection
> values, or zoom step adjust) a reasonnable way is :
> use the old values and add an intermediate value (something like 1, 1.5,
> 2, 3, 4 , 6, 8...in old values, and in new values: 10, 15, .. 20480)
> Because i had a *lot* of problems due to integers overflows in graphic
> libraries, no zoom less than 1 (or 10 in new values),
> because i am afraid these problems still exists in 2009.
>
> After the stable version, a better way to handle zoom values can be
> tried, tested and refined.
> But for now, I am thinking last changes commited were not refined or
> fully tested.
> As an example, last updates made changes zoom level values, but they
> were not fully tested ( and commited some days before the next release)
> because the popup menu does not show all values, and therefore the
> user cannot select all zoom values. This is not very good (and could be
> sound like a bug).
This is not a bug. This is by design. The goal was to prevent the zoom
popup submenu from becoming too large. I actually think fifteen entries
is too many but I saw this situation coming so I made it as large as I
thought was reasonable. If you want to add more zoom values to the zoom
submenu, in the header file id.h change the number 15 in the line
ID_POPUP_ZOOM_LEVEL_END = ID_POPUP_ZOOM_LEVEL_START + 15,
to however many zoom levels you want to display in the popup menu.
Wayne
> and if there are to much values this popup could be unuseable (too
> big to be seen on screen).
> This means zoom levels list choice is not just a matter of choice
> of values, its *does* involve more work.
>
> Please, excuse my poor english.
>
>
Follow ups
References
-
New zoom code musings.
From: Wayne Stambaugh, 2009-01-29
-
Re: New zoom code musings.
From: jean-pierre charras - INPG, 2009-01-29
-
Re: New zoom code musings.
From: Wayne Stambaugh, 2009-01-29
-
Re: New zoom code musings.
From: Vesa Solonen, 2009-02-04
-
Re: New zoom code musings.
From: Wayne Stambaugh, 2009-02-04
-
Re: New zoom code musings.
From: Vesa Solonen, 2009-02-04
-
Re: New zoom code musings.
From: Dick Hollenbeck, 2009-02-05
-
Re: New zoom code musings.
From: Vesa Solonen, 2009-02-05
-
Re: New zoom code musings.
From: Dick Hollenbeck, 2009-02-05
-
Re: New zoom code musings.
From: Vesa Solonen, 2009-02-05
-
Re: New zoom code musings.
From: Dick Hollenbeck, 2009-02-05
-
Re: New zoom code musings.
From: Vesa Solonen, 2009-02-05
-
Re: New zoom code musings.
From: jean-pierre.charras@..., 2009-02-05