Seth Hillbrand
d6b95236a4
gal: correct layer ordering
...
Net labels need to be rendered under the selected item.
Fixes: lp:1790016
* https://bugs.launchpad.net/kicad/+bug/1790016
2018-08-30 16:55:00 -07:00
Seth Hillbrand
fbe677e46e
pcbnew: Correcting commit f84bd0d83
for 5.0/release
...
Previous commit only functioned correctly in debug mode. Also cleanup a
left-over debug printf() and revert a changed translated string.
2018-08-30 13:25:18 -07:00
Seth Hillbrand
f84bd0d836
pcbnew: Fix Eagle UTF8 import error
...
Implicit convertion from wxString to std::string will use narrow strings
and drop UTF-8.
Fixes: lp:1789311
* https://bugs.launchpad.net/kicad/+bug/1789311
2018-08-30 13:07:33 -07:00
Seth Hillbrand
25b6604fc5
pcbnew: Swap all types of zones when swapping layers
...
This is a 5.0-only commit to implement correct layer swapping.
Fixes: lp:1789390
* https://bugs.launchpad.net/kicad/+bug/1789390
2018-08-30 09:45:39 -07:00
Ronnie Gaensli
fbd6654f9a
pcbnew: fix pan while moving mouse after cancelling selection box
...
Fixes: lp:1776648
* https://bugs.launchpad.net/kicad/+bug/1776648
2018-08-29 16:48:55 -07:00
Seth Hillbrand
b8ae4e0195
pcbnew: Only dp clearance matrix when routing dp
...
Fixes: lp:1787766
* https://bugs.launchpad.net/kicad/+bug/1787766
2018-08-29 10:25:51 -07:00
Seth Hillbrand
20ea486378
GAL: Add a selected item layer
...
The selected items should be displayed above the rest of the items but
below informational overlays.
Fixes: lp:1789505
* https://bugs.launchpad.net/kicad/+bug/1789505
2018-08-28 14:58:37 -07:00
Seth Hillbrand
0c94b3239d
pcbnew: keep selected zone highlighted when moding
...
When adding a cutout to a zone, it helps to have the zone highlighted so
that you can see when zone you are operating on.
2018-08-28 14:49:48 -07:00
Seth Hillbrand
d8e276bc4f
pcbnew: Adding some missing TypeOf() functions
...
Missing types were handled by the superclass (in the case of zones)
PCB_CONNECTED_ITEM, which incorrectly returned "true" when testing lines
against zones.
Fixes: lp:1789195
* https://bugs.launchpad.net/kicad/+bug/1789195
2018-08-28 13:16:34 -07:00
Seth Hillbrand
b7a321d143
modedit: clear the pcb when closing the window
...
Before closing the window in the footprint editor, we clear the existing
pcb, undo/redo stack and associated memory to prevent callbacks
double-freeing on destruction.
Fixes: lp:1784504
* https://bugs.launchpad.net/kicad/+bug/1784504
2018-08-28 12:35:17 -07:00
Seth Hillbrand
f6d9c3a733
pcbnew: set default soldermask clearance for footprint viewer
...
The default board soldermask clearance should not be used in the
footprint viewer. Setting the board's solder mask margin to 0 will
leave the footprint displayed with only the soldermask defined by
the pads or the footprint.
Thanks to Fabian Inostroza for pointing out the missing line.
Fixes: lp:1779979
* https://bugs.launchpad.net/kicad/+bug/1779979
2018-08-28 10:03:25 -07:00
jean-pierre charras
7ed07cae70
Pcbnew, Plot: fix incorrect plot of custom shapes, when the shape has holes (missing holes).
...
Fixes: lp:1789404
https://bugs.launchpad.net/kicad/+bug/1789404
2018-08-28 17:51:52 +02:00
jean-pierre charras
da4d9ee392
Footprint viewer: ensure all panes are always visible, regardless m_auimgr.LoadPerspective() has read.
...
Perspective is overzealous: it stores everything, so we need to be sure these panes are not hidden,
regardless what the perspective has stored.
Fixes: lp:1789254
https://bugs.launchpad.net/kicad/+bug/1789254
2018-08-27 20:32:45 +02:00
Jeff Young
3c87ab94a2
Fix fast grid switching for OSX and Footprint Editor.
...
Fixes: lp:1787066
* https://bugs.launchpad.net/kicad/+bug/1787066
2018-08-26 19:01:40 +01:00
Jeff Young
3587789ae2
Update canvas after changing netclass settings.
...
Fixes: lp:1786937
* https://bugs.launchpad.net/kicad/+bug/1786937
2018-08-25 23:20:46 +01:00
Jeff Young
7e2e39ce30
Handle separate parsing rules for ID_SCH and ID_PCB.
...
This removes the existing constructors so that all parsing must
be explicit and callers are made aware that they need to think
about illegal characters, malformed ids, etc.
Fixes: lp:1783474
* https://bugs.launchpad.net/kicad/+bug/1783474
Fixes: lp:1786819
* https://bugs.launchpad.net/kicad/+bug/1786819
2018-08-24 23:57:19 +01:00
Jeff Young
a45a8e8797
Warn before replacing edited footprint in footprint editor.
...
Fixes: lp:1786570
* https://bugs.launchpad.net/kicad/+bug/1786570
2018-08-11 20:36:51 +01:00
jean-pierre charras
c7d39d22db
FOOTPRINT_WIZARD_FRAME: ensure the draw panel is always visible, even if the config file is incorrect.
2018-08-10 13:44:21 +02:00
jean-pierre charras
b764bb1d6d
Fix a minor wxWidgets alert
2018-08-10 13:43:12 +02:00
Seth Hillbrand
0e946dad1a
Eagle: Fix NULL-dereference on malformed Eagle files
...
Eagle files that are edited may be missing required data. While we do
not need to handle these files, we do need to prevent segfaults in KiCad
when reading them.
2018-08-09 14:57:50 -07:00
Seth Hillbrand
1c2f06106d
PCBNEW: Re-add missing SWIG zone filler
...
Zone filler was factored out into a separate header. To allow python
access to zone filling, we need to include the revised signatures.
2018-08-08 12:23:32 -07:00
Ronnie Gaensli
9d241ba812
Cancel Add dimension leaves auto panning on
...
Fixes: lp:178551
* https://bugs.launchpad.net/kicad/+bug/178551
(cherry picked from commit 3ca84dca
)
2018-08-06 11:27:56 +02:00
Seth Hillbrand
016c02a42d
modedit: Store single copy of the footprint in undo
...
When changing elements in the module editor, each element shares the
same parent. Undo commits store a copy of the parent as it existed
before the change. For footprints with many elements, this creates
large, slow undo commits as a copy of the full footprint is stored for
each element being edited.
This keeps a single copy of the footprint in the undo stack per edit.
Fixes: lp:1780526
* https://bugs.launchpad.net/kicad/+bug/1780526
2018-08-01 11:00:49 -07:00
jean-pierre charras
d2aa976017
Fix many wxWidgets alerts, to avoid useless bug reports when kicad is compiled in Debug mode
2018-07-31 11:41:47 +02:00
jean-pierre charras
5e19ed29b8
Fix D_PAD::BuildPadShapePolygon() incorrect calculation for custom pad shapes.
...
Fixes: lp:1784340
https://bugs.launchpad.net/kicad/+bug/1784340
2018-07-30 16:58:20 +02:00
Maciej Suminski
35576adb73
Converted PNS Length Tuning dialog to use TransferData{From,To}Window()
...
Fixes: lp:1783694
* https://bugs.launchpad.net/kicad/+bug/1783694
(cherry-picked from commit dbf4bcdb
)
2018-07-26 10:36:21 +02:00
Maciej Suminski
30da1a3b02
pcbnew: Disabled UI update for pcbnew console menu item
...
UI update event handler updates toolbar button state for the scripting
console, but for the associated menu item it displays an assert saying that
the menu item that cannot be checked. To avoid that, the UI update event
handler returns early if event does not come from the toolbar.
(cherry picked from commit 45c1742a
)
2018-07-22 19:52:55 +02:00
Wayne Stambaugh
3dcf04fdb8
Apply footprint editor options when dialog OK button is clicked.
...
Fixes lp:1781977
https://bugs.launchpad.net/kicad/+bug/1781977
2018-07-18 08:45:43 -04:00
Wayne Stambaugh
eaf938c7e9
Pcbnew: fix missing undo when deleting footprint text object.
...
Fixes lp:1781224
https://bugs.launchpad.net/kicad/+bug/1781224
2018-07-12 09:36:13 -04:00
Carsten Schoenert
3e22e5ccd3
fix misspelled 'an other' -> 'another'
2018-07-11 10:35:35 -04:00
Carsten Schoenert
9f7109826d
fix misspelled 'allows to' -> 'allows one to'
...
Fixup small grammar issues around used 'allows to ...' almost in
code comments.
2018-07-11 10:35:03 -04:00
Maciej Suminski
0013e0cad1
DRC: test for items located on disabled layers
...
Fixes: lp:1779281
* https://bugs.launchpad.net/kicad/+bug/1779281
2018-07-10 18:24:15 +02:00
Baranovskiy Konstantin
5e1605af19
Values of argc and argv transfers to python environment.
2018-07-08 08:10:44 +02:00
Seth Hillbrand
101b68b610
pcbnew: Keep dp placer on initial layer
...
Changing the layer after starting the differential pair placer should
not change the inital track layer.
Fixes: lp:1779800
* https://bugs.launchpad.net/kicad/+bug/1779800
2018-07-03 08:23:16 -07:00
Seth Hillbrand
b3db6572e8
pcbnew: diff pair filter bugfix
...
Added required action on the std::remove_if construct to erase elements
matching the filter
2018-06-29 13:05:44 -07:00
Maciej Suminski
a14b552d89
Eagle PCB import: handle DRC rules where min value > max value
...
Fixes: lp:1779126
* https://bugs.launchpad.net/kicad/+bug/1779126
2018-06-29 19:53:20 +02:00
Maciej Suminski
b43b78bdd2
pcbnew: Prevent double items recaching on start
...
Thanks to Seth Hillbrand for pointing out the issue.
Fixes: lp:1779002
* https://bugs.launchpad.net/kicad/+bug/1779002
2018-06-29 08:51:46 +02:00
Seth Hillbrand
33075e55a4
pcbnew: Draw the clearance outline first
...
In Cairo, we don't have z-ordering implemented, so we need to draw the
clearance outline first otherwise it will draw a large, grey overlay
that hides the actual track while routing.
Fixes: lp:1779228
* https://bugs.launchpad.net/kicad/+bug/1779228
2018-06-28 20:28:12 -07:00
Seth Hillbrand
ce379f56af
pcbnew: Remove extraneous OpenMP shared decl
2018-06-28 12:22:41 -07:00
Seth Hillbrand
b0b5d91390
pcbnew: fix OpenMP synch issue
...
Fixes: lp:1778454
* https://bugs.launchpad.net/kicad/+bug/1778454
2018-06-28 09:28:52 -07:00
Seth Hillbrand
0748c118dd
pcbnew: Synchronize zone removal
...
After refilling zones, we need to unconditionally remove the filled
polys from the map because their fills map have changed. Left-over
filled polygons will not map to current polygons, creating "ghost"
islands in the connectivity. Removing these can overflow the polygon
count.
Fixes: lp:1778454
* https://bugs.launchpad.net/kicad/+bug/1778454
2018-06-28 08:12:55 -07:00
Jeff Young
246a9286a9
Fix dialogs with wxID_CANCEL as the window ID.
...
Fixes: lp:1778990
* https://bugs.launchpad.net/kicad/+bug/1778990
Fixes: lp:1778991
* https://bugs.launchpad.net/kicad/+bug/1778991
2018-06-28 08:38:12 -06:00
Wayne Stambaugh
7eea8f808d
Minor Pcbnew dialog fixes.
...
Fix get footprint by name dialog button sizer padding.
Fix export gencad dialog file name, options, and button sizer padding.
2018-06-27 14:28:18 -04:00
Maciej Suminski
80fa480388
Disable the DRC dialog while the checks are running
...
Closing the DRC dialog while zones are refilled leads to a crash.
Disabling the dialog prevents the crash.
2018-06-27 19:05:06 +02:00
Tomasz Wlostowski
01c2d93a81
pcbnew: don't rebuild dynamic ratsnest when moving items without a net (e.g. board outlines)
...
Fixes: lp:1778321
* https://bugs.launchpad.net/kicad/+bug/1778321
2018-06-25 16:30:16 +02:00
John Beard
847f4f50b1
Pcbnew python plugins: fix some pad arrays
...
Fixes some pad array init functions that were not calling the
class hierarchy's init functions correctly.
2018-06-25 09:34:32 -04:00
John Beard
930f3dd74f
Documentation: add logo to Doxygen pages
...
This adds a small KiCad logo in the top left of the Doxygen pages.
54px used as 55px is maximum recommended height for Doxygen logos.
For the main docs and the dev docs, this is easily done in the Doxyfile,
for the Python docs, as that is run from the binary dir, the source dir
is passed as an Environment variable.
2018-06-25 08:23:17 -04:00
Maciej Suminski
1751e4631c
Code formatting
2018-06-23 01:59:49 +02:00
Seth Hillbrand
dd436b658a
pcbnew: Thread safety for connections
...
Moving the mutex to the class from a local variable protects the
connectivity list against corruption from multiple threads computing the
ratsnest.
2018-06-21 09:34:56 -07:00
Seth Hillbrand
e2122db587
pcbnew: Clear unused code
2018-06-21 09:20:48 -07:00