Browse Source
Eeschema: Add indicator icons for pins with alt modes
Eeschema: Add indicator icons for pins with alt modes
This makes it easier to see which pins have alt modes available. There is an option to turn them off. The icon positions are chosen so they they shouldn't interfere as far as possible: * If the text is inside, the icon goes more inside the body * If the text is above/below the pin, it goes away from the body This means it won't collide with a symbol wall in most cases, but some symbols with alt pins on opposing sides may need to be widened if the icons are show. Includes a rather fiddly refactor of the SCH_PIN painter function, which needs quite a lot of massaging to allow it to figure out where an icon would go. Quite a bit of logic is broken out into smaller encapsulations with less visible state to each chunk. Icon modes for base-name-selected and alt-selected are included, but only the former works due to information being thrown away during the SCH_PAINTER tempPin process. Fixes: https://gitlab.com/kicad/code/kicad/-/issues/11069pcb_db
18 changed files with 718 additions and 284 deletions
-
3eeschema/dialogs/panel_eeschema_display_options.cpp
-
3eeschema/dialogs/panel_eeschema_display_options_base.cpp
-
65eeschema/dialogs/panel_eeschema_display_options_base.fbp
-
1eeschema/dialogs/panel_eeschema_display_options_base.h
-
3eeschema/eeschema_settings.cpp
-
1eeschema/eeschema_settings.h
-
1eeschema/menubar.cpp
-
8eeschema/sch_edit_frame.cpp
-
828eeschema/sch_painter.cpp
-
10eeschema/sch_painter.h
-
11eeschema/sch_pin.cpp
-
12eeschema/sch_pin.h
-
6eeschema/tools/ee_actions.cpp
-
1eeschema/tools/ee_actions.h
-
13eeschema/tools/sch_editor_control.cpp
-
1eeschema/tools/sch_editor_control.h
-
6libs/kimath/include/geometry/shape_utils.h
-
29libs/kimath/src/geometry/shape_utils.cpp
828
eeschema/sch_painter.cpp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue