Wayne Stambaugh
f14dc8f2be
Pcbnew: fix epic footprint editor DXF import fail.
...
The unfortunate combination of using static_cast to promote board items
to module items then using the assignment operator without any thought as
to what would happen in MODULE::Add() caused the board objects to not be
added to the module. This is expected because board items cannot be in
modules. Did this ever work or did someone have a colossal brain cramp?
If it did work, who ever changed it did not test it because in debug
builds, you would have gotten and assertion on every object imported. On
release builds nothing is imported silently.
Add module object types to the DXF importer and code to choose which type
of object to import.
Remove offending static casts and assignment operator and pass the correct
object directly to the MODULE::Add() function when importing DXF in the
footprint editor.
The usual coding policy fixes.
2016-10-07 21:10:51 -04:00
Wayne Stambaugh
abf33cce68
Pcbnew: fix drill file naming issue.
...
On windows when the project path include a remote volume name (\\NAME),
the volume name does not get cleared by calling wxFileName.SetDir( "" ).
This caused the volume name to be prepended to the file name when
calling wxFileName::GetFullPath(). Use wxFileName::GetFullName()
which resolves the issue.
Fix some minor grammar errors.
Fix some minor coding policy issues.
Fixes lp:1606240
https://bugs.launchpad.net/kicad/+bug/1606240
2016-10-07 10:58:48 -04:00
Jean-Pierre Charras
e0fb7f89f4
Pcbnew: additional scripting build warning fixes.
...
Add pcbnewPYTHON_wrap.cxx to the list of files to apply -Wno-suggest-override
compiler flag to prevent compiler warnings on file that is generated by SWIG.
2016-10-06 09:06:42 -04:00
John Beard
93a843c022
Add override specifier in scripting dialog
2016-10-05 15:07:06 -04:00
John Beard
6504b7b55c
Disable -Wsuggest-override for scripting files, but not other files
...
This allows the warning to be active for code which would benefit from
it, but not spew hundreds of warnings for code over which KiCad does not
have control of the override specifiers.
2016-10-05 10:43:56 -04:00
jean-pierre charras
4505896634
A few zone outline context menu commands missing after creating a keepout area
...
( partial fix of lp:1630368 )
2016-10-05 15:12:10 +02:00
Chris Pavlina
b9abcc309f
Fix Validate hiding overloaded virtual in 3D viewer dialog
2016-09-30 22:32:24 -04:00
jean-pierre charras
67faa5e656
clean.cpp: better code.
2016-09-30 18:33:46 +02:00
jean-pierre charras
b5839893d0
Pcbnew, clean board: fix issues and add option in dialog to remove bad track segments (short circuit between 2 nets)
2016-09-30 11:11:52 +02:00
jean-pierre charras
1ebac06d2f
Pcbnew, undo redo: fix a crash in legacy mode when undo a footprint change (for instance a 45 degrees rotation)
2016-09-30 11:11:52 +02:00
Heikki Pulkkinen
ab0cf7dee1
clean.cpp little bug fix
2016-09-30 11:11:52 +02:00
jean-pierre charras
502d0a38be
Fix a missing parameter initialization (arc angle) in footprint DXF import
2016-09-30 11:11:52 +02:00
Maciej Suminski
abbd47e2f2
Remove an unused variable and a debug printf
2016-09-30 09:31:40 +02:00
Tomasz Włostowski
3257f1a863
pns: fixed inline drag grid snapping & undo-related assertion failure
...
Fixes: lp:1628697
* https://bugs.launchpad.net/kicad/+bug/1628697
2016-09-30 09:29:49 +02:00
Tomasz Włostowski
4bc4dc80b6
pns: unique_ptr for BOARD_COMMIT member
2016-09-30 09:05:58 +02:00
Chris Pavlina
2b7e6e73ec
Fix uninitialized variable in drawing_tool.cpp
2016-09-30 09:04:18 +02:00
Chris Pavlina
7454f5565f
Dismiss unused variable warning in ratsnest_data.cpp
2016-09-30 09:04:14 +02:00
Jean-Samuel Reynaud
91479bebf8
Fix for compilation error on Ubuntu 14.04 (has no effect on 16.04, and on Windows/msys2, certainly due to more recent swig and cmake versions)
2016-09-27 16:50:22 +02:00
Maciej Suminski
18695751e8
Fixed a footprint editor crash on DXF import
...
Fixes: lp:1627422
* https://bugs.launchpad.net/kicad/+bug/1627422
2016-09-27 13:36:52 +02:00
jean-pierre charras
673b094b2b
Fix a few missing override qualifiers and shadowed vars.
2016-09-27 10:58:05 +02:00
Maciej Suminski
f2462925ec
Fixed a crash when adding/removing pads
...
Fixes: lp:1627296
* https://bugs.launchpad.net/kicad/+bug/1627296
2016-09-27 09:30:32 +02:00
Chris Pavlina
52aa4ecdf4
Unify window title formats
...
Most window titles are now of the format "Application — file [info]",
with adaptations as necessary. Version information has been removed from
titles.
2016-09-26 17:28:25 -04:00
jean-pierre charras
41735b6563
Add missing override keywords.
2016-09-26 19:58:33 +02:00
Simon Richter
ad088db6d2
Add more "override" markers.
2016-09-25 13:59:41 -04:00
Maciej Suminski
83c805e8fb
Simplified code for adding/removing items in RN_DATA
2016-09-25 19:37:51 +02:00
John Beard
6b7c2685b2
Protect against uninitialised netcodes when adding to RN_DATA
2016-09-25 19:37:51 +02:00
Cirilo Bernardo
bf4b26d73f
Remove STEP diagnostic print
...
This patch removes a stdcerr print which was accidentally left in the code.
2016-09-25 10:08:13 -04:00
jean-pierre charras
48c18604fc
Layers manager: add (in context menu) show all layers and hide all layers, and code cleanup.
2016-09-25 13:08:04 +02:00
dino
33e1a4e884
pcbnew: Added 'show all layers' and 'hide all layers' option in layers manager
2016-09-25 10:57:33 +02:00
Wayne Stambaugh
8b59350e44
Pcbnew: fix override release build error.
...
NETINFO_ITEM::Show() method was not wrapped in #ifdef DEBUG/#endif causing
an error in release builds.
2016-09-24 16:00:09 -04:00
Simon Richter
59c81976dc
Explicitly mark overriding functions.
2016-09-24 14:53:15 -04:00
Wayne Stambaugh
9490b02cb8
Pcbnew: fix board I/O plugin formatter build warnings.
...
Internally time stamps are defined as unsigned long. On some platforms,
time_t is defined as unsigned long long. Cast all time_t instances to
unsigned long to prevent the compiler from complaining.
2016-09-24 11:53:22 -04:00
Simon Wells
3a50f7367f
Modified path on osx due to GetExecutablePath() pointing to the root of the .app bundle
2016-09-23 10:24:52 -04:00
Dick Hollenbeck
374808ac5b
Cleanup SWIG's board.i, remove scrap *.{ref,orig} files, and add .pyc to .gitignore
2016-09-23 08:04:12 -04:00
Maciej Suminski
3623421912
Fixed a PNS crash after undoing the last operation while routing
2016-09-23 13:58:33 +02:00
decimad
6a9c1cb6a1
Split the undo/redo event into the two stages "pre" and "post" for convenient synchronization of dependent state.
2016-09-23 13:29:25 +02:00
Cirilo Bernardo
8ea643cefc
Fix export_vrml.cpp warnings and removes the few instances of wxT() in that file.
2016-09-23 09:55:33 +02:00
Dick Hollenbeck
b8dc6af706
fix swig warning
2016-09-22 15:42:42 -04:00
Dick Hollenbeck
45f6f8b305
Remove experimental code added during swig work.
2016-09-22 10:51:29 -04:00
Cirilo Bernardo
8b8626ceeb
Removed wxT() from kicad2step modules and made modifications to the STEP Export GUI
2016-09-22 08:37:16 -04:00
Cirilo Bernardo
ba65c39b40
Fixed error in setting Windows extension on executable file
2016-09-22 08:37:16 -04:00
Cirilo Bernardo
88cdb8bbbe
Removed dialog, instead the autosave() is always invoked for a dirty PCB
2016-09-22 08:37:16 -04:00
Cirilo Bernardo
8b259f2837
Fixed typo preventing compilation on MSWin
2016-09-22 08:37:16 -04:00
Cirilo Bernardo
fb59a7416a
Added option to remove Virtual Components from STEP assembly
2016-09-22 08:37:16 -04:00
Cirilo Bernardo
33948e572d
Added STEP Export menu item and supporting code
2016-09-22 08:37:16 -04:00
Dick Hollenbeck
29be200843
Add SWIG support for NETCLASSPTR. Reduce SWIG visibility from C++ headers.
2016-09-21 19:52:04 -04:00
Dick Hollenbeck
85ef7ee467
Remove BOARD::Add() from board.i, since it is inherited from board_item_container.i
2016-09-21 19:12:45 -04:00
Gustav Bergquist
061a7b8450
Cast TOOL_EVENT parameter type to intptr_t
2016-09-21 21:22:19 +02:00
Cirilo Bernardo
d3771d53ef
Updated VRML exporter and fixed some VRML related bugs
2016-09-21 09:31:52 -04:00
Maciej Suminski
65821328d2
Fix a crash when dragging a via attached to a locked track (PNS)
...
Fixes: lp:1625835
* https://bugs.launchpad.net/kicad/+bug/1625835
2016-09-21 14:47:14 +02:00