Jeff Young
2e9ed67e05
Don't dirty connectivity when moving non-reference SCH_FIELD.
3 years ago
Seth Hillbrand
43e4797d4d
Don't double-tap Connectivity Recalculate
SCH_EDIT_FRAME::RecalculateConnections() calls SchematicCleanup and then
resets the connectivity graph and recalculates it. OnModify() also
calls RecalculateConnections(). For long calculation schematics, this
can impact usability
3 years ago
Jeff Young
f8ef15f174
Fix over-zealous delete.
Fixes https://gitlab.com/kicad/code/kicad/issues/13476
3 years ago
Mike Williams
4274bd0bb7
Schematic: handle rotations that include junctions
Also fix lack of line cleanup on mirroring.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13436
3 years ago
jean-pierre charras
be5810a1ce
EEschema, "Change To" context menu: do not allow converting SCH_SHEET_PINs
to something else.
SCH_SHEET_PIN are specific, handled by a SHEET, and the conversion to a label
cannot be done.
3 years ago
Jeff Young
8dc7baad3d
Cleanup actions should not activate tools. It causes all manner of side-effects.
Fixes https://gitlab.com/kicad/code/kicad/issues/13331
3 years ago
Seth Hillbrand
c29dfe026e
Force recursing annotation when set to auto
Automatic annotation should always annotate new elements regardless of
where in the hierarchy they are
Fixes https://gitlab.com/kicad/code/kicad/issues/13378
3 years ago
Mike Williams
f1fab140a1
Schematic: make menu bar rotation items conditional
Also fix some items not getting a context menu rotate action.
3 years ago
Wayne Stambaugh
78e2f0fd4d
Sheet instance handling improvements.
3 years ago
Mike Williams
8b7d0d71fb
Schematic: show update/change symbols for multiple symbol selection
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13231
3 years ago
Mike Williams
fc054bda8e
Schematic: fix edit symbol assert
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13197
3 years ago
Mike Williams
389f0655cd
Schematic: re-enable old break wire functionality, add slice
Also fix break/slice wires for multiple wires. The shortcut and code
always allowed it, the context menu just didn't appear.
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/13163
3 years ago
Wayne Stambaugh
6a0db3e7e2
Fix Coverity warnings.
3 years ago
Wayne Stambaugh
598b09821a
Coverity fixes.
3 years ago
Jeff Young
f9a791e2b0
Copy font across when changing text type.
Fixes https://gitlab.com/kicad/code/kicad/issues/12629
3 years ago
Mike Williams
c1da59b560
Swap: disallow swapping tracks / wires
Also fix missed shortcut change for S -> Shift-S
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/12538
3 years ago
Jeff Young
d0ff90eb6e
Support mirroring of multiple SCH_FIELDs at once.
Fixes https://gitlab.com/kicad/code/kicad/issues/12512
3 years ago
Jeff Young
fc10db25ba
Netclass directive and label conversion improvements.
1) Copy label fields when converting.
2) Don't assume netclass directive should be net name -- this is very
unlikely.
3) Don't show font controls in Netclass Directive Properties dialog --
there's no basic text associated witha Directive Label.
3 years ago
Mike Williams
9304607624
TOOL_EVENT: make command string non-optional
We're getting segfaults in places where this isn't checked. Also, add
some asserts so we can catch bad tool push/pop.
Removes all uses of GetCommandStr() and makes it private.
3 years ago
Jeff Young
e6c8cf0f03
Don't escape spaces in bus groups and transfer hyperlinks.
Fixes https://gitlab.com/kicad/code/kicad/issues/12451
Fixes https://gitlab.com/kicad/code/kicad/issues/12452
3 years ago
Marek Roszko
61e11d6896
Strip out Mils2Iu
3 years ago
Jeff Young
907cafef6d
Update font size before querying properties dependent on it (like the text margin).
Fixes https://gitlab.com/kicad/code/kicad/issues/12444
3 years ago
lulu731
0180bcf90a
ADDED: Implement Drag and Drop
dropping files to Kicad manager :
*.kicad_pro, *.pro -> open project;
gerber and job files -> open in Gerbview editor;
Eagle and Cadstar files -> open project.
dropping file to schematic editor -> append schematic;
dropping library file to Symbol editor -> add library;
dropping board file to PCB editor -> append board;
dropping library or footprint file to Footprint editor -> add library or import footprint;
dropping ZIP file or gerber files to Gerbview editor -> open files;
dropping sheet file to Drawing Sheet editor -> open sheet.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11638
3 years ago
Mike Williams
926f979ebc
Schematic: Add swap action
3 years ago
Jeff Young
b2a29e08a4
Improve repeat-last-item to handle unfold-from-bus.
Fixes https://gitlab.com/kicad/code/kicad/issues/12018
3 years ago
Jeff Young
c337c12410
Don't double-flip justification. (The transform already flips it.)
Fixes https://gitlab.com/kicad/code/kicad/issues/11673
3 years ago
Jeff Young
c30a557810
ADDED netclass assignment from PCB canvas.
Fixes https://gitlab.com/kicad/code/kicad/issues/5975
3 years ago
Wayne Stambaugh
4c096fee15
Eeschema: fix crash when attempting to edit missing library symbol.
Disable the edit symbol buttons in the symbol properties dialog when
there is no library symbol to edit.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/11318
(cherry picked from commit 5afeb45a84 )
3 years ago
Jeff Young
0c8787cbb9
Some more wxPoint/EDA_RECT yeeting.
3 years ago
Seth Hillbrand
b736460e71
Move optional access from value() to *operator
`value()` throws. Where we check for existence, we don't need to use
the throwing version and should just use the unprotected variant
3 years ago
Seth Hillbrand
f1261e71d4
Replace boost::optional with std::optional
3 years ago
Jeff Young
4f0136db3b
Attempt to fix std::initializer_list lifetime issue.
3 years ago
Jeff Young
b2a2d66005
Move Bus Definitions to common GUI paradigm in Schematic Setup.
Also includes a change to the std::initializer_list stuff to try and
fix a crash.
3 years ago
Jeff Young
aa2ad3b44c
Move KICAD_T[] to std::initializer_list<KICAD_T>.
3 years ago
jean-pierre charras
0604d7b813
Fix minor compil and Coverity warnings.
3 years ago
Jeff Young
9652dcf96d
ADDED conversion between textbox and other text types.
Fixes https://gitlab.com/kicad/code/kicad/issues/12031
3 years ago
Mike Williams
d44e34d513
Images: Add full properties editor
Converts dialog_image_editor to panel_image_editor. Embeds this panel in
a new properties dialog for the schematic and PCB editors that allows
editing position, layer, locked status, etc. like other items.
3 years ago
Seth Hillbrand
b5bf1da251
Keep track of blocking windows
Allows the calling KiWAY player to send messages to the blocking window
before signaling a separate call
Fixes https://gitlab.com/kicad/code/kicad/issues/11891
Fixes https://gitlab.com/kicad/code/kicad/issues/11772
3 years ago
Jeff Young
e122dc38bd
Add context menu item for clearing net highlighting.
In selection tools, drawing tools, router tool, line_wire_bus tool.
Fixes https://gitlab.com/kicad/code/kicad/issues/11920
3 years ago
Jeff Young
70aec5d576
Don't drag both ends after Break Wire.
Fixes https://gitlab.com/kicad/code/kicad/issues/11915
3 years ago
jean-pierre charras
1140fd0fb0
Eeschema, context menus: move edit value, ref and footprint to a submenu.
remove also Select All menuitem from the move context menu.
4 years ago
jean-pierre charras
e0f0bb2edd
Eeschema: Fix issues when converting a label/text to another label text type.
- make convert to/from SCH_DIRECTIVE_LABEL working.
- Autoplace fields of new labels
Fixes #11779
https://gitlab.com/kicad/code/kicad/issues/11779
4 years ago
jean-pierre charras
35bde4710c
Eeschema, context menu selection: move convert to ... menuitems to a submenu.
Add also missing icons in a few menuitems.
Fixes #11776
https://gitlab.com/kicad/code/kicad/issues/11776
4 years ago
Jeff Young
abba1b04bd
Add "Enter Sheet" to Sheet tool (context menu & double-click).
Fixes https://gitlab.com/kicad/code/kicad/issues/11531
4 years ago
Mike Williams
efa23a5cbe
Schematic: better automatic/recursive annotate
4 years ago
Mike Williams
dabd42bbc4
Schematic: Automatic Symbol Annotation
4 years ago
Jeff Young
8e94c307d2
Provide default case for mirroring single objects.
Fixes https://gitlab.com/kicad/code/kicad/issues/11649
4 years ago
jean-pierre charras
45b167dff5
Some fixes related to translated/not translated mandatory field names. DIALOG_SYMBOL_FIELDS_TABLE: add new fields to symbols only if the field is not empty.
4 years ago
Miklós Márton
7e20c0ed9c
eeschema: removed unused code
Fixes #11533
4 years ago
Jeff Young
1751c8e1cf
Save selection *before* clearing it. Saving after doesn't do much good.
Fixes https://gitlab.com/kicad/code/kicad/issues/11242
4 years ago