Live-debugging of DRC rule conditions
Description
We should add a live-debugging function to the rule editor for condition
blocks.
Example of how this could work:
-
Evaluate a
condition
block that the text editor cursor is inside, either on real-time or on-demand (depends on how slow it is). -
For the evaluated
condition
:`
2a) Show stats on the evaluation in the board setup dialog page (N objects matched, for example) 2b) Highlight; select; zoom-to-fit the matching objects in the board canvas
The operations in 2b should be able to be disabled if not desired.
Note: the underlying code for this can be shared with #8390 -- just the UI is different.
KiCad Version
Application: KiCad
Version: (6.0.1-94-g100cf757fe), release build
Libraries:
wxWidgets 3.1.5
Platform: macOS Catalina Version 10.15.7 (Build 19H1615), 64 bit, Little endian, wxMac
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.6.0
Curl: 7.64.1
ngspice: 35
Compiler: Clang 12.0.0 with C++ ABI 1002
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Edited by Jon Evans