kicad/pcbnew
Seth Hillbrand 4f874057ab DRC scripting: load project from board if possible
s_SettingsManager is not always initialized when the WriteDRCReport is
run.  We should first attempt to extract the project from the actual
board being checked.  Failing that, we fall back to the static settings manager and then exit if we don't have a project associated.

Fixes https://gitlab.com/kicad/code/kicad/issues/10221

(cherry picked from commit 78e737b9d8)
2022-01-06 11:51:05 -08:00
..
autorouter Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
board_stackup_manager Make sure standard OK/Cancel buttons respond to current language. 2021-12-24 18:13:11 +00:00
connectivity Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
dialogs Tear down the wxPoint trigo helpers 2022-01-04 21:23:11 -05:00
drc Allow solder mask aperture objects to inherit nets during DRC. 2022-01-03 20:58:01 +00:00
exporters Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
import_gfx Cleanup some wx/gdicmn.h includes 2022-01-04 20:32:27 -05:00
microwave Tear down the wxPoint trigo helpers 2022-01-04 21:23:11 -05:00
netlist_reader Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
plugins pcbnew: EAGLE plugin is case sensitive to >VALUE / >NAME 2022-01-05 12:51:02 +00:00
python DRC scripting: load project from board if possible 2022-01-06 11:51:05 -08:00
ratsnest Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
router Exit router and invoke edit tool when attempting to drag an arc track 2022-01-02 16:10:50 -05:00
specctra_import_export Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
tools Handle footprint shapes in polygon creation 2022-01-04 21:31:47 -05:00
widgets Fix saving of existing appearance presets 2022-01-02 12:11:52 -05:00
CMakeLists.txt Update footprint wizards after changes wxPoint->VECTOR2I 2022-01-03 11:43:15 +01:00
Doxyfile_python
Doxyfile_xml
action_plugin.cpp Ugly hack to avoid crash on msys2 when running Pcbnew after running Eeschema+its Python console 2021-08-14 21:08:56 +02:00
action_plugin.h Pcbnew header housekeeping round 1. 2021-06-04 09:08:38 -04:00
array_creator.cpp Radial dimensions. 2021-12-23 19:34:54 +00:00
array_creator.h Array creator tool: Add option to assign unique reference designators 2021-10-25 22:38:49 +01:00
array_pad_number_provider.cpp We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
array_pad_number_provider.h We don't keep a CHANGELOG.TXT 2021-10-05 19:46:53 -07:00
board.cpp Remove some more wxPoint 2022-01-01 14:12:20 -05:00
board.h Scoop up some more wxPoint instances 2022-01-03 20:00:53 -05:00
board_commit.cpp Fix creating polygons from footprint rule areas 2022-01-04 21:31:40 -05:00
board_commit.h Remove ZONE_FILLER_TOOL since it's not really necessary. 2021-07-31 01:50:42 +01:00
board_connected_item.cpp Cleanup (includes and formatting). 2021-08-03 18:37:23 +01:00
board_connected_item.h More NULL expunging. 2021-07-20 07:27:18 -04:00
board_design_settings.cpp Line styles for PCBNew shapes. 2021-12-24 12:36:59 +00:00
board_item.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
board_item_container.h
build_BOM_from_board.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
cleanup_item.cpp
cleanup_item.h Pcbnew header housekeeping round 1. 2021-06-04 09:08:38 -04:00
collectors.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
collectors.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
convert_shape_list_to_polygon.cpp Scoop up some more wxPoints 2022-01-01 21:06:40 -05:00
convert_shape_list_to_polygon.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
cross-probing.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
edit.cpp Dimensions for footprints. 2021-12-24 21:10:28 +00:00
edit_track_width.cpp PCB Editor: changes to track width overrides starting track width 2021-12-15 23:32:48 +00:00
edit_zone_helpers.cpp Recalculate ratsnest after zone fill 2021-12-14 13:37:15 -08:00
files.cpp Add DRC tests for text height and text thickness. 2021-12-23 19:18:45 +00:00
footprint.cpp Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
footprint.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
footprint_edit_frame.cpp Dimensions for footprints. 2021-12-24 21:10:28 +00:00
footprint_edit_frame.h Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
footprint_editor_settings.cpp Add missing initialization values to variables 2021-12-30 23:42:06 +00:00
footprint_editor_utils.cpp Dimensions for footprints. 2021-12-24 21:10:28 +00:00
footprint_info_impl.cpp Catch errors from `load()` 2022-01-03 15:31:14 -08:00
footprint_info_impl.h Pass wxString objects by reference instead of on the stack. 2021-07-27 08:41:27 -04:00
footprint_libraries_utils.cpp Kicad has many plugins. This one is for the pcb. 2021-11-25 12:56:46 +00:00
footprint_preview_panel.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
footprint_preview_panel.h Kill the last of wx/wx.h in headers 2021-06-07 17:59:20 -04:00
footprint_tree_pane.cpp Rename SCH_COMPONENT to SCH_SYMBOL. 2021-06-10 10:34:49 -04:00
footprint_tree_pane.h
footprint_viewer_frame.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
footprint_viewer_frame.h Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
footprint_wizard.cpp More NULL expunging. 2021-07-20 07:27:18 -04:00
footprint_wizard.h Pcbnew header housekeeping round 1. 2021-06-04 09:08:38 -04:00
footprint_wizard_frame.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
footprint_wizard_frame.h Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
footprint_wizard_frame_functions.cpp Freshen microwave polygon dialog and remove a bunch of dead code. 2021-08-03 01:11:11 +01:00
fp_shape.cpp Remove some more wxPoint 2022-01-01 14:12:20 -05:00
fp_shape.h Cleanup some wx/gdicmn.h includes 2022-01-04 20:32:27 -05:00
fp_text.cpp Scoop up some more wxPoints 2022-01-01 21:06:40 -05:00
fp_text.h Scoop up some more wxPoints 2022-01-01 21:06:40 -05:00
fp_text_grid_table.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
fp_text_grid_table.h Add hot-updating of units in common wxGrids. 2021-12-23 16:54:03 +00:00
fp_tree_model_adapter.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
fp_tree_model_adapter.h
fp_tree_synchronizing_adapter.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
fp_tree_synchronizing_adapter.h
generate_footprint_info.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
generate_footprint_info.h
graphics_cleaner.cpp Remove some more wxPoint 2022-01-01 14:12:20 -05:00
graphics_cleaner.h Pull some name changes back from 7.0 to ease merging. 2021-07-21 20:58:59 +01:00
grid_layer_box_helpers.cpp All the preferences, all the time. 2021-12-24 13:08:44 +00:00
grid_layer_box_helpers.h Cleanup. 2021-12-23 20:36:18 +00:00
initpcb.cpp More NULL expunging. 2021-07-20 07:27:18 -04:00
invoke_pcb_dialog.h
io_mgr.cpp Kicad has many plugins. This one is for the pcb. 2021-11-25 12:56:46 +00:00
io_mgr.h Formatting and include cleanup. 2021-06-25 17:48:15 +01:00
kicad_clipboard.cpp Scoop up some more wxPoints 2022-01-01 21:06:40 -05:00
kicad_clipboard.h Kicad has many plugins. This one is for the pcb. 2021-11-25 12:56:46 +00:00
load_select_footprint.cpp Scoop up some more wxPoints 2022-01-01 21:06:40 -05:00
menubar_footprint_editor.cpp Dimensions for footprints. 2021-12-24 21:10:28 +00:00
menubar_pcb_editor.cpp Dimensions for footprints. 2021-12-24 21:10:28 +00:00
netinfo.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
netinfo_item.cpp Fix kicad_string.h / string.cpp mismatch. 2021-07-29 16:03:25 +01:00
netinfo_list.cpp More NULL expunging. 2021-07-20 07:27:18 -04:00
pad.cpp Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
pad.h Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
pad_custom_shape_functions.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_base_edit_frame.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
pcb_base_edit_frame.h Remove dead code. 2021-12-24 21:10:28 +00:00
pcb_base_frame.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_dimension.cpp Another batch of point changes 2022-01-01 13:17:12 -05:00
pcb_dimension.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_draw_panel_gal.cpp Keep netnames on tracks within the viewport when possible. 2021-12-24 17:11:01 +00:00
pcb_draw_panel_gal.h Use progress reporting in more places when loading a board 2021-11-25 11:19:03 -05:00
pcb_edit_frame.cpp Pcbnew, drawing sheet: use "First Page" option to draw/plot it. 2022-01-01 09:29:18 +01:00
pcb_edit_frame.h Check footprint text items for changes when updating. 2021-12-25 17:32:55 +00:00
pcb_expr_evaluator.cpp Add field access to custom DRC rules. 2021-12-24 18:13:00 +00:00
pcb_expr_evaluator.h Add a compile error for ill-defined rules, and more performance. 2021-08-16 12:14:17 +01:00
pcb_group.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_item_containers.h Prefix TRACK, ARC and VIA. 2021-06-11 22:07:02 +01:00
pcb_layer_box_selector.cpp All the preferences, all the time. 2021-12-24 13:08:44 +00:00
pcb_layer_box_selector.h Cleanup. 2021-12-23 20:36:18 +00:00
pcb_marker.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_marker.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_origin_transforms.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
pcb_origin_transforms.h Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
pcb_painter.cpp Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
pcb_painter.h Move to new font engine. 2022-01-02 14:57:03 +00:00
pcb_plot_params.cpp Use ISO 128-2 values for dashed line defaults. 2021-12-25 14:00:57 +00:00
pcb_plot_params.h Line styles for PCBNew shapes. 2021-12-24 12:36:59 +00:00
pcb_plot_params_parser.h
pcb_screen.cpp Rename layer ids file. 2021-07-29 16:03:25 +01:00
pcb_shape.cpp Remove some more wxPoint 2022-01-01 14:12:20 -05:00
pcb_shape.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_target.cpp Some more wxPoint removal 2022-01-01 12:11:21 -05:00
pcb_target.h Some more wxPoint removal 2022-01-01 12:11:21 -05:00
pcb_text.cpp Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_text.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_track.cpp Remove some more wxPoint 2022-01-01 14:12:20 -05:00
pcb_track.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
pcb_view.cpp Flatten out some more preferences. 2021-12-24 15:43:20 +00:00
pcb_view.h Rename layer ids file. 2021-07-29 16:03:25 +01:00
pcbnew.cpp All the preferences, all the time. 2021-12-24 13:08:44 +00:00
pcbnew.h Add Python Tool to pcbnew 2021-06-01 20:18:24 +00:00
pcbnew.icns Add drop shadows to MacOS icons 2021-07-30 20:55:34 -07:00
pcbnew_config.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
pcbnew_config.h
pcbnew_doc.icns Add drop shadows to MacOS icons 2021-07-30 20:55:34 -07:00
pcbnew_id.h Add Python Tool to pcbnew 2021-06-01 20:18:24 +00:00
pcbnew_printout.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
pcbnew_printout.h Prefix TRACK, ARC and VIA. 2021-06-11 22:07:02 +01:00
pcbnew_settings.cpp Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
pcbnew_settings.h Remove some more duplicated preferences. 2021-12-26 13:37:28 +00:00
pcbplot.cpp Convert wxPoint/wxSize starting from EDA_RECT usages 2022-01-01 11:30:33 -05:00
pcbplot.h Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
plot_board_layers.cpp Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
plot_brditems_plotter.cpp Swap out some wxSize for VECTOR2I 2022-01-04 20:42:27 -05:00
plotcontroller.h Cleanup. 2021-12-23 20:36:18 +00:00
plugin.cpp Clean up unused variable usage 2021-10-05 10:00:30 -07:00
sel_layer.cpp Cleanup. 2021-12-23 20:36:18 +00:00
toolbars_footprint_editor.cpp Dimensions for footprints. 2021-12-24 21:10:28 +00:00
toolbars_footprint_viewer.cpp Remove vestiges of old zoom-auto architecture. 2021-09-19 18:32:15 +01:00
toolbars_pcb_editor.cpp Units cleanup. 2021-12-23 22:17:10 +00:00
tracks_cleaner.cpp Another batch of point changes 2022-01-01 13:17:12 -05:00
tracks_cleaner.h Prefix TRACK, ARC and VIA. 2021-06-11 22:07:02 +01:00
undo_redo.cpp pcbnew, undo_redo.cpp: fix a logical bug that can hang in rare cases. 2021-09-08 13:06:55 +02:00
zone.cpp Scoop up some more wxPoints 2022-01-01 21:06:40 -05:00
zone.h Neurotically update position wxPoint usages 2022-01-01 11:55:51 -05:00
zone_filler.cpp Thermal reliefs: fix incorrect calculation 2022-01-06 09:00:29 +01:00
zone_filler.h Hook up zone-pad connections to custom rules. 2021-12-23 22:30:26 +00:00
zone_settings.cpp Hook up zone-pad connections to custom rules. 2021-12-23 22:30:26 +00:00
zone_settings.h Hook up zone-pad connections to custom rules. 2021-12-23 22:30:26 +00:00
zones.h Try to make gcc happy. 2021-12-23 23:58:20 +00:00
zones_functions_for_undo_redo.cpp Cleanup. 2021-12-23 20:36:18 +00:00
zones_functions_for_undo_redo.h Cleanup. 2021-12-23 20:36:18 +00:00