Mark Roszko
1082402b33
Convert UNDO_REDO_T to an enum class
5 years ago
Jeff Young
f4ab14f32d
Performance improvements for SchematicCleanup().
Fixes https://gitlab.com/kicad/code/kicad/issues/4563
5 years ago
Jeff Young
dcd02539e3
Remove linked-pin processing from LIB_PIN's setters.
It belongs in the tool layer (specifically LIB_PIN_TOOL).
5 years ago
Jeff Young
11ca21039a
Clear new flag when creating image pins.
Otherwise if you then move it we'll think it needs to be inserted
and end up with a circular drawings list.
Fixes https://gitlab.com/kicad/code/kicad/issues/4622
5 years ago
Jeff Young
1535c83b88
Lay some groundwork for adding distances to DRC errors.
modified: eeschema/lib_rectangle.cpp
6 years ago
Jeff Young
122b1ddaae
Unwrap an unnecessary layer now that we have new config stuff.
6 years ago
Mark Roszko
70908043a3
Convert enums inside eeschema and the symbol editor to be scoped
Scope: NETLIST_ITEM, CONNECTION_TYPE, ELECTRICAL_PINTYPE,
NET_CONNECTION, NETLIST_ITEM, GRAPHIC_PINSHAPE
Note, the pin type enum had PT_ added to the front to prevent
shadowing of the INPUT symbol on msys2 (see discussion at
c17c9960d8 )
6 years ago
Seth Hillbrand
84d5d6c168
Eeschema: Return null in case of canceling placement
6 years ago
Ian McInerney
079423c3cc
eeschema: Remove unused include of eeschema_id.h
6 years ago
Jeff Young
a5a237ac32
Improve readability of flag checking.
6 years ago
Jeff Young
3cdf88f2c6
CERN copyrights for work packages.
6 years ago
Maciej Suminski
c715a22e1c
Symbol Editor: clear IS_NEW flag after placing a pin
IS_NEW flag needs to be cleared after a pin is placed, otherwise further
move operations will keep adding the pin to the edited symbol.
6 years ago
Jeff Young
e6d5110ccf
Implement I18N for ACTIONs.
It's a bit of a hack because they're statically initialized and
so we can't make use of the _() macro. We do still want it in the
code, however, because the string harvesting is based off of it.
Fixes: lp:1833000
* https://bugs.launchpad.net/kicad/+bug/1833000
7 years ago
Jeff Young
19aba615c2
Remove selection condition from conditional menu separators.
We don't allow duplicate separators anyway so all they really do
is complicate the code.
7 years ago
Jeff Young
5610261dce
Immediate-action hotkeys (and context menu actions) for eeschema.
7 years ago
Jeff Young
e4d16abcbd
Fix overly-generic flag test when synchronizing pins.
Fixes: lp:1832170
* https://bugs.launchpad.net/kicad/+bug/1832170
7 years ago
Jeff Young
a568e70b99
Follow naming conventions.
7 years ago
Jeff Young
5e49517781
Move hotkeys to ACTION architecture.
7 years ago
Jeff Young
765606012f
Convert separate-compilation of selection.cpp to polymorphism.
7 years ago
Jeff Young
d2daab808c
Remove some legacy cursor handling stuff.
7 years ago
Jeff Young
68224e0fcd
Don't double-add pins to parent part when pasting.
Also adds undo to paste operations in LibEdit.
Fixes: lp:1829355
* https://bugs.launchpad.net/kicad/+bug/1829355
7 years ago
Jeff Young
f602ccd814
Insert EE_TOOL_BASE under SchEdit and LibEdit tools, and fix errant rename scope which clobbered PCBNew's PICKER_TOOL.
7 years ago
Jeff Young
7995b5cc3c
Restore selection on abort and undo/redo.
Also includes a related bug fix to not create an undo record for
the initial schematic cleanup.
Fixes: lp:1825975
* https://bugs.launchpad.net/kicad/+bug/1825975
7 years ago
Jeff Young
c1539ae014
Naming changes to reflect sharing between SchEdit and LibEdit.
7 years ago
Jeff Young
f6e07f575a
Rename for clarity.
SetOffset() didn't set anything; it performed an action.
Move() suggests a delta, when it in fact does a SetPosition().
7 years ago
Jeff Young
ea0941cab3
Implement modern tools for LibEdit.
7 years ago
Jeff Young
469231ae15
Move Pin, Symbol Text and Symbol Anchor to modern toolset.
7 years ago
Jeff Young
a461eae8b9
Fix 100s of usages of GetFlags() which conflated != 0 with being edited.
While this was true long ago, many flags have been added since which
have nothing to do with editing (HIGHLIGHTED, BEGIN_ONPAD, etc.)
7 years ago
Frank Severinsen
71a62bb782
Change pin on grid test in symbol editor.
The pin on grid test always used a fixed grid spacing of 25 mils. The
change uses the current grid setting for the on grid test. Grid sizes
below 25 mils are clamped to 25 mils to prevent issues when connecting
wires to pins in the schematic editor.
Fixes lp:1817896
https://bugs.launchpad.net/kicad/+bug/1817896
7 years ago
Jeff Young
96e65c7f23
Hide existing object when displaying moving preview.
Fixes: lp:1799478
* https://bugs.launchpad.net/kicad/+bug/1799478
7 years ago
Jeff Young
8a54b1b3b7
Add view refresh calls for edit operations.
Note that the bug referenced in the "fixes" section is only one
of many addressed by this commit.
Fixes: lp:1798449
* https://bugs.launchpad.net/kicad/+bug/1798449
7 years ago
jean-pierre charras
9df7626e31
Fix issue: Symbol library editor: Moving pins jumps to origin
Also: remove outdated lines in code.
Fixes: lp:1797266
https://bugs.launchpad.net/kicad/+bug/1797266
7 years ago
Seth Hillbrand
bfa7f16b44
Wrap printfs in DBG defines
This places the remaining printf statements behind DBG() macros to
suppress their output on release builds. We should remove these prior
to 5.1
7 years ago
Jeff Young
d7178c7833
Implement GAL refresh for a bunch of operations.
7 years ago
Tomasz Wlostowski
90c7c60471
eeschema-gal: initial GALified version. Lots of stuff still to do!
7 years ago
Tomasz Wlostowski
c024fce625
eeschema-gal: moved libedit to a separate directory
7 years ago
Jeff Young
c90a3efea2
Change KIDIALOG hashing algorithm to __FILE__ + __LINE__.
Using Title + Message wasn't working for all the dialogs which
did substitutions in the message (which was a lot of them).
Fixes: lp:1789348
* https://bugs.launchpad.net/kicad/+bug/1789348
7 years ago
Jeff Young
99db5cb543
Allow for reduced nagging with wider use of KIDIALOG.
(cherry picked from commit c2dd5df)
7 years ago
Jeff Young
49ea6e1670
Fix occurrences of "edition" which should be "editing"
Fixes: lp:1778168
* https://bugs.launchpad.net/kicad/+bug/1778168
(cherry picked from commit bcb1220)
8 years ago
Jeff Young
e4d9366fe4
UNIT_BINDERize Pin Properties dialog.
(cherry picked from commit c609087)
8 years ago
Jeff Young
eacaa39aa2
Remove global units usage from GetSelectionText...
... and GetMsgPanelInfo.
Step 4 in the g_UserUnit eradication effort.
Also removes a couple of conversion routines that were close
enough to extinction.
(cherry picked from commit c75da51)
8 years ago
Jeff Young
bcd9a7745d
Make the pin table editable.
Also adds generic icon + text grid renderer and grid editor.
Fixes: lp:1521055
* https://bugs.launchpad.net/kicad/+bug/1521055
Fixes: lp:1528817
* https://bugs.launchpad.net/kicad/+bug/1528817
(cherry picked from commit 067f777)
8 years ago
Carsten Schoenert
a11714b1a4
fix misspelled 'an other' -> 'another'
8 years ago
Seth Hillbrand
d1af5210e0
Libedit: Fix a few places where item could be NULL
Fixes: lp:1761058
* https://bugs.launchpad.net/kicad/+bug/1761058
8 years ago
Jon Evans
2cc5c6fd45
Add ERC check in component editor for conflicting multi-unit pins
Fixes: lp:1680638
* https://bugs.launchpad.net/kicad/+bug/1680638
8 years ago
Jeff Young
4b01c9e04e
Fix undo of pin edit.
Undo stashing must happen before modifications.
Fixes: lp:1750401
* https://bugs.launchpad.net/kicad/+bug/1750401
8 years ago
jean-pierre charras
8022f1cc01
fix code after renamin files
8 years ago
jean-pierre charras
795a36c9fe
Fix code after renaming files, and a bit of code cleanup (remove useless includes and multiple includes of the same files)
8 years ago
jean-pierre charras
6322c90c50
Symbol editor: Fix incorrect pin edition coupling for non interchangeable multi-units symbols.
Fixes: lp:1744680
https://bugs.launchpad.net/kicad/+bug/1744680
8 years ago
Maciej Suminski
8721f7ed70
Changed remaining occurences of 'part' to 'symbol' in the symbol editor
8 years ago