kicad/gerbview
Jeff Young 4bae901dc8 Centralize zoom-to-fit code.
Fixes a bunch of errors:
- libedit and libbrowser would zoom to bounding box but centre on canvas
- libedit, libbrowser and gerbview didn’t take the scroll bars into account
- pcbnew didn’t take scroll bars into account or apply the 10% margin
- appending a board file would re-centre, but not re-zoom

Fixes: lp:1504302
* https://bugs.launchpad.net/kicad/+bug/1504302
2018-02-13 20:06:03 -05:00
..
dialogs Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerber_test_files Add a gerber test file 2017-10-23 09:20:10 +02:00
tools Use "..." uniformly in menus. 2018-02-10 17:32:28 -05:00
CMakeLists.txt fix code after file renaming 2018-01-31 09:24:02 +01:00
DCodeSelectionbox.cpp Fix code after renaming files 2018-01-29 16:40:22 +01:00
DCodeSelectionbox.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
Info.plist Changed the bundle identifier to org.kicad-pcb.<app> to follow the kicad domain name 2015-10-30 08:43:04 +13:00
X2_gerber_attributes.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
X2_gerber_attributes.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
am_param.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
am_param.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
am_primitive.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
am_primitive.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
block.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
clear_gbr_drawlayers.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
controle.cpp hotkey management: enhancements in code to know if a hotkey was handled by an event or not. 2017-10-06 09:23:13 +02:00
dcode.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
dcode.h GerbView GAL support part 1: changes to existing files 2017-09-25 13:35:01 +02:00
draw_gerber_screen.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
evaluate.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
events_called_functions.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
excellon_image.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
excellon_read_drill_file.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
export_to_pcbnew.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
files.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gbr_display_options.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gbr_layer_box_selector.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gbr_layer_box_selector.h fix code after file renaming 2018-01-31 09:24:02 +01:00
gbr_layout.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gbr_layout.h fix code after file renaming 2018-01-31 09:24:02 +01:00
gbr_screen.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gbr_screen.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerber_collectors.cpp GerbView GAL support part 2: New files for GAL 2017-09-25 13:35:01 +02:00
gerber_collectors.h rename class_collector.h to collector.h 2018-02-04 10:49:37 +01:00
gerber_draw_item.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerber_draw_item.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerber_file_image.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerber_file_image.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerber_file_image_list.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerber_file_image_list.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerbview.cpp Fp editor and board editor have now a separate color setup. 2017-09-11 18:51:48 +02:00
gerbview.h Refactor layer enumerations to all live in the same place 2017-03-30 16:01:48 -04:00
gerbview.icns [MacOSX] Updated Icons - Document ones still missing :( 2012-09-27 19:20:44 +02:00
gerbview.rc Remove old xpm icons files 2012-04-07 13:09:57 +02:00
gerbview_config.cpp GerbView GAL support part 1: changes to existing files 2017-09-25 13:35:01 +02:00
gerbview_doc.icns Update OS X icns icons 2010-05-13 21:03:12 +02:00
gerbview_draw_panel_gal.cpp fix code after file renaming 2018-01-31 09:24:02 +01:00
gerbview_draw_panel_gal.h GerbView GAL support part 2: New files for GAL 2017-09-25 13:35:01 +02:00
gerbview_frame.cpp Centralize zoom-to-fit code. 2018-02-13 20:06:03 -05:00
gerbview_frame.h fix code after file renaming 2018-01-31 09:24:02 +01:00
gerbview_id.h Add a first-run dialog to encourage user to switch to OpenGL 2018-01-04 10:14:40 -05:00
gerbview_layer_widget.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerbview_layer_widget.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
gerbview_painter.cpp Respect item polarity when redrawing cached gerber view items 2018-02-05 07:55:15 +01:00
gerbview_painter.h Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
hotkeys.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
hotkeys.h GerbView GAL support part 1: changes to existing files 2017-09-25 13:35:01 +02:00
job_file_reader.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
locate.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
menubar.cpp Use "..." uniformly in menus. 2018-02-10 17:32:28 -05:00
onleftclick.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
onrightclick.cpp Use "..." uniformly in menus. 2018-02-10 17:32:28 -05:00
printout_control.cpp Fix code after renaming files 2018-01-29 16:40:22 +01:00
readgerb.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
rs274_read_XY_and_IJ_coordinates.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
rs274d.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
rs274x.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
select_layers_to_pcb.cpp Gerbview: fix code after renaming files 2018-01-29 13:26:58 +01:00
select_layers_to_pcb.h * Gerbview: update a old code in a dialog. 2018-01-05 11:45:50 +01:00
toolbars_gerber.cpp Change mechanism for updating gerbview toolbar widths 2018-02-06 17:44:15 +01:00