← Back to team overview

kicad-developers team mailing list archive

Re: New zoom code musings.


Vesa Solonen wrote:
> Wayne, is it too much work to add 3, 6, 12 (and 24) to zoom values?

It's very simple. If you want to add zoom levels to the PCB programs
(cvpcb, gerbview, & pcbnew), add the new zoom values to the PcbZoomList
array in pcbnew/classpcb.cpp. To add new zoom values to the schematic
editing programs, add the new zoom values to the SchematicZoomList array
in eeschema/class_screen.cpp. Zoom values need to be scaled by 10. If
you want a zoom level of 3, you need to add 30 to the zoom list. Please
note that the zoom list implementation does not sort. If you don't put
new zoom values out of order, you will get some interesting zooming.
The popup zoom submenu is limited to the first 15 zoom values to prevent
it from becoming too long.


> -Vesa
> ------------------------------------
> Yahoo! Groups Links


Follow ups