John Beard
dd17f24c04
Libeval: consistent formatting for NaN
...
On some platforms like MSVC, NaN prints as "-nan(ind)". This
is a bit needlessly ugly, so print "NaN" on all platforms
consistently.
This fixes a test failure on MSVC.
2019-04-08 16:27:45 +01:00
jean-pierre charras
3b194d6993
Fix a collision name between lib_pin.cpp and a Windows header.
2019-04-08 17:10:55 +02:00
jean-pierre charras
0997ecf446
Fix incorrect conversion from wxString to std::string
2019-04-08 17:10:54 +02:00
John Beard
3f32dc9a64
QA: numeric evaluator: add a context to tests
...
This allows a failing test to report which case failed more clearly.
Add a quick helper to make an "in -> out" context string.
2019-04-08 15:56:19 +01:00
jean-pierre charras
0b33df8831
Pcbnew,DIALOG_SELECT_NET_FROM_LIST: fix a crash and the not working net selection.
...
It was due to changes in code, and related to escaping the '/' in net labels.
2019-04-08 15:36:55 +02:00
John Beard
8548e69382
3D viewer: update icons from common settings
...
Use the icon scaling logic and call a toolbar rebuild when the
common settings change (echos the handling in Pcbnew and friends).
Remove an unused function.
2019-04-08 14:29:15 +01:00
John Beard
124dd5e59a
3D viewer: use hi-DPI settings for canvases
...
The 3D viewer also uses OpenGL, so it also needs to
adjust based on DPI scale factors.
This patch moves the 3D viewer common config code solely
within the 3D viewer, and adds handling of the DPI scale. This
also avoids duplicated logic in PCB_BASE_FRAME::CommonSettingsChanged.
For now, as EDA_3D_VIEWER is not included in the Kiway settings
dispatch, still manually invoke the settings update from
PCB_BASE_FRAME.
The PANEL_3D_PREV gets a similar function to read the config, but
it doesn't have a listener for the update, so it's set just once
at dialog init, just like the existing pan settings.
Fixes: lp:1823681
* https://bugs.launchpad.net/kicad/+bug/1823681
2019-04-08 14:29:15 +01:00
Jeff Young
d361e68d0e
Condense the DRC dialog a bit.
...
The messages title doesn't really provide useful info anyway.
2019-04-08 13:26:26 +01:00
Jeff Young
a1c162e59f
Reimplement footprint checking on top of DRC architecture.
...
This allows Import Netlist and Update PCB from Schematic to
share the same checking code, and expose it through the DRC
dialog.
Fixes: lp:1685516
* https://bugs.launchpad.net/kicad/+bug/1685516
Fixes: lp:1809293
* https://bugs.launchpad.net/kicad/+bug/1809293
2019-04-08 13:26:17 +01:00
Jeff Young
77f15eeeaf
Support synchronous messaging over KIWAY EXPRESS.
...
This allows us to make the various netlist and pcb update routines
more atomic and less reliant on carefully sequenced asynchronous
messages.
This is also a prelude to adding support for footprint testing
without a netlist.
2019-04-08 13:26:09 +01:00
Jeff Young
52e3a1d7c4
Trim zone fills to board outline.
...
Fixes: lp:1820306
* https://bugs.launchpad.net/kicad/+bug/1820306
2019-04-08 13:10:29 +01:00
Jeff Young
b6c0aeb608
Move cut/copy/paste part (in libedit tree) to real clipboard.
...
Fixes: lp:1821547
* https://bugs.launchpad.net/kicad/+bug/1821547
2019-04-08 11:21:58 +01:00
Seth Hillbrand
cf63ae7ae2
pcbnew: Show clearance when editing tracks
...
When requested by display options, we should show the track clearance
when dragging tracks.
Fixes: lp:1818343
* https://bugs.launchpad.net/kicad/+bug/1818343
2019-04-07 21:25:28 -07:00
Seth Hillbrand
c8118e3ce4
pcbnew: Allow click+drag of tracks
...
This behavior existed in 5.0.x but did not properly exit the edit tool
in 5.1. This removes stops the edit tool when we begin dragging a track
using the interactive router.
Fixes: lp:1820312
* https://bugs.launchpad.net/kicad/+bug/1820312
2019-04-07 20:59:06 -07:00
Jon Evans
bd487d2c25
Rework logic for linking local subgraphs together
2019-04-07 23:54:47 -04:00
Jon Evans
2162b53d72
Allow selecting more items for highlighting
2019-04-07 23:54:47 -04:00
Jon Evans
c07de84c05
Suppress false ERC warnings for invisible power pins
2019-04-07 23:54:47 -04:00
Tomasz Włostowski
e5753b79d4
pcbnew: Hyperlynx Exporter - initial version
2019-04-08 02:56:02 +02:00
Jeff Young
a81512ca96
Adjust justified text for rotation.
...
Fixes: lp:1823090
* https://bugs.launchpad.net/kicad/+bug/1823090
2019-04-07 22:17:59 +01:00
Michael Kavanagh
27e6f5b9e8
Change "Switch track width to previous" default hotkey from Ctrl+W to Shift+W
...
Tiny improvement in consistency.
Fixes lp:1785842
https://bugs.launchpad.net/kicad/+bug/1785842
2019-04-07 10:50:59 -07:00
jean-pierre charras
3cb6dc69f0
Update demos to use recent footprints.
2019-04-07 17:07:57 +02:00
Seth Hillbrand
a300ae105d
pcbnew: Freeze the netclasses dialog on init
...
Prevents the size events from firing on Mac when we set up the netclass
panel
Fixes: lp:1819426
* https://bugs.launchpad.net/kicad/+bug/1819426
2019-04-07 07:07:55 -07:00
jean-pierre charras
196ddec81c
Update demos to use recent footprints.
2019-04-07 16:06:53 +02:00
Seth Hillbrand
24bf838392
pcbnew: Allow arc editing via midpoint
...
This permits changing the radius of the arc by adjusting the center
point of the arc. The arc end points are fixed in this operation.
2019-04-07 06:50:25 -07:00
Jeff Young
4a9f82109a
Uniformly quote strings which may have user content.
...
Fixes: lp:1655193
* https://bugs.launchpad.net/kicad/+bug/1655193
2019-04-07 00:24:10 +01:00
Jeff Young
684bb62fd8
Escape slashes in labels and netnames.
...
Also re-allows spaces, as they can already come in through sheet
names.
Fixes: lp:1798621
* https://bugs.launchpad.net/kicad/+bug/1798621
2019-04-07 00:24:10 +01:00
Jeff Young
97063440bb
Adjust left- or right-justified text for mirroring.
2019-04-07 00:24:10 +01:00
Wayne Stambaugh
615c49315f
Minor symbol library rescue dialog fixes.
...
Adjust the sizer proportions slightly to eliminate the reported bug.
This may not be the ideal way to do this and there could be some issues
on other platforms but it does resolve the issue on gtk3.
Fixes lp:1820084
https://bugs.launchpad.net/kicad/+bug/1820084
2019-04-06 08:15:44 -04:00
Jeff Young
1ae47b6069
Implement a copper-to-edge-clearance setting.
...
For legacy boards, the setting is picked up from the board outline
thickness. If the board outline has mixed thicknesses, then the
max is used and a warning is displayed.
Fixes: lp:1797787
* https://bugs.launchpad.net/kicad/+bug/1797787
2019-04-05 22:18:44 +01:00
Wayne Stambaugh
b6a0bf1142
Minor drill file dialog improvements.
2019-04-05 16:49:08 -04:00
Wayne Stambaugh
dfee7bddd3
Minor footprint position dialog improvements.
2019-04-05 16:15:16 -04:00
Jeff Young
d928aa9780
Infer pin properties from last pin and default pin pitch.
...
Fixes: lp:1822183
* https://bugs.launchpad.net/kicad/+bug/1822183
2019-04-05 18:52:51 +01:00
Jeff Young
87f303319c
Implement a dry run for Cleanup Tracks and Vias.
...
Uses the DRC architecture to support inspection of the changes to
be made (right click on items, hover over them in the menu to
highlight them on the board).
Fixes: lp:1571305
* https://bugs.launchpad.net/kicad/+bug/1571305
Fixes: lp:1809474
* https://bugs.launchpad.net/kicad/+bug/1809474
2019-04-05 18:52:51 +01:00
Jeff Young
e563184eac
Add Gerbers to Fabrication Outputs menu.
...
Fixes: lp:1817124
* https://bugs.launchpad.net/kicad/+bug/1817124
2019-04-05 16:12:45 +01:00
Jeff Young
ea43866563
Move legacy netlist read/write to import/export.
...
Fixes: lp:1610529
* https://bugs.launchpad.net/kicad/+bug/1610529
2019-04-05 16:11:15 +01:00
Jeff Young
2aad4a5e57
Remove dead code from removal of eeschema legacy canvas.
2019-04-05 15:54:31 +01:00
Michael Kavanagh
1ccef6dc80
Invert maximum and minimum endpoints on color picker sliders
...
Put the maximum values at the "top" of the sliders.
Fixes: lp:1823196
* https://bugs.launchpad.net/kicad/+bug/1823196
2019-04-05 14:37:46 +01:00
John Beard
0f39d4907f
Regenerate DIALOG_COLOR_PICKER_BASE wxFB files
...
This avoids the wxFB automatic changes hiding substantive changes
to be made in later commits.
2019-04-05 14:37:46 +01:00
Jeff Young
30f7d6a2c1
Clean up some translation issues.
...
(As in coordinate translation, not I18N.)
2019-04-05 11:42:45 +01:00
Wayne Stambaugh
ee14da3093
Minor schematic formatter fix.
...
Apparently at some point in KiCad's development, a '~' character was
prefixed to the symbol name to indicate that it was not visible. The
visibility state is now saved in the name field so remove the prefix.
The parser was kept unchanged.
Fixes lp:1632048
https://bugs.launchpad.net/kicad/+bug/1632048
2019-04-04 10:43:04 -04:00
jean-pierre charras
0aa8458d04
DIALOG_PAD_PROPERTIES: Fix incorrect calculation of Round Rect Radius Ratio, when inches are selected.
...
Fixes: lp:1822720
https://bugs.launchpad.net/kicad/+bug/1822720
2019-04-04 15:40:29 +02:00
jean-pierre charras
de4b2dea77
Pcbnew: DIALOG_IMPORT_GFX_BASE: fix a minor wxWidgets alert.
2019-04-04 13:46:09 +02:00
Jeff Young
3a1b412fbf
Use a bigger hammer when refreshing fields in table.
...
Fixes: lp:1823050
* https://bugs.launchpad.net/kicad/+bug/1823050
2019-04-04 12:26:29 +01:00
Jeff Young
95635804bf
Replace pin mark/sweep with method that doesn't invalidate iterators.
...
Also removes some no-longer-used drawing code (the Draw() routines
are only used for printing with the modern eeschema canvas in place).
2019-04-04 12:08:33 +01:00
Jon Evans
ec2c571abb
Fix merging of subgraphs with multiple labels
2019-04-03 23:15:45 -04:00
Jon Evans
ff8b7cc6c1
Fix SCH_PIN location calculation
2019-04-03 23:15:22 -04:00
Jon Evans
99e57724e6
Hierarchical ports count as strong drivers
2019-04-03 22:58:14 -04:00
Jon Evans
5a0944e9a0
Don't de-conflict subgraphs across sheets
2019-04-03 22:58:14 -04:00
Jon Evans
d5990100e1
Promote locally-labeled nets to global when tied to global buses
...
Fixes: lp:1822964
* https://bugs.launchpad.net/kicad/+bug/1822964
2019-04-03 22:58:14 -04:00
Seth Hillbrand
ce254d1061
pcbnew: Allow Missing legacy option
...
LEGACY is disabled for GTK3, so we may not find the menu item
Fixes: lp:1822877
* https://bugs.launchpad.net/kicad/+bug/1822877
2019-04-03 15:54:54 -07:00