jean-pierre charras
ac64da651d
Pcbnew: fix a minor bug I created in rev 3912.
...
Still try to find a better fix for Bug #1100876 , however I am thinking the bug is not in Kicad:
looks like a buggy version of wxWidgets is used, which sends sometimes an unwanted wxCommandEvent event,
when an event::Check() is called inside a function called by a wxUpdateUIEvent event.
2013-01-19 16:01:17 +01:00
jean-pierre charras
7b8c89149b
Pcbnew: Fix Bug #1097345 <module editor "change body item width (current)" does nothing.>
2013-01-19 13:58:54 +01:00
jean-pierre charras
81f9f743d3
Pcbnew: fix bug Bug #1101399 (Custom page size gets reset after restarting pcbnew) (bug also in eeschema)
...
Try to find a better fix for Bug #1100876
2013-01-19 10:58:25 +01:00
jean-pierre charras
129f93b8d3
Try to fix Bug #1100876< Modes (track/footprint) not available.>
...
It could be a race condition when setting the tools state on and off in PCB_EDIT_FRAME::OnSelectAutoPlaceMode( wxCommandEvent& aEvent ) on some Linux/wxWidgets versions
(does not happen on my computer)
2013-01-18 15:12:57 +01:00
jean-pierre charras
24f73eb87c
Pcbnew: fix a minor bug: shape 3D filename not displayed in msg panel when clicking on a footprint.
2013-01-17 18:34:03 +01:00
jean-pierre charras
cfa75bb828
Scripting: fix erroneous extension for Sexp board files
...
Make scripting version compilable on platforms where the python executable is not python2 (define it by -DPYTHON_EXECUTABLE=<python executable filename>)
2013-01-16 13:38:30 +01:00
jean-pierre charras
de78b60dda
Pcbnew: store in configuration the default line width (now in mm), under a new keyword, to avoid a strange behavior of pcbnew in decimils version (old pcbnew versions), after running pcbnew in nanometers.
2013-01-15 10:31:11 +01:00
jean-pierre charras
7819efacf6
Kicad manager: fix a recent bug: project tree not updated when kicad is launched by a command line with a project name to open.
...
pcbnew: export vrml:
* move dialog functions in a new file: dialog_export_vrml.cpp.
* fix coding style issues
* patch add from cirilo Bernardo.
2013-01-13 17:55:07 +01:00
Dick Hollenbeck
8d5479ca1c
pcbnew/CMakeLists.txt formatting and librt fix
2013-01-12 18:34:16 -06:00
Heikki Pulkkinen
3e18fa422c
protect data in class_track.h, switch to using member accessors
2013-01-12 18:04:00 -06:00
Wayne Stambaugh
f8a56d446f
Base object decoupling improvements.
...
* Improve MSG_PANEL_ITEM to handle message panel information.
* Create containers for passing message panel items between objects and
the message panel.
* Rename EDA_ITEM::DisplayInfo to EDA_ITEM::GetMsgPanelInfo.
* Remove all direct manipulation of EDA_DRAW_FRAME from all objects derived
from EDA_ITEM.
2013-01-12 12:32:24 -05:00
jean-pierre charras
5c2efcbf3e
3D viewer: allows import of models created with openscad and convertedvia meshconv to wrl (thanks to Georg Gast <georg@schorsch-tech.de>)
...
Export VRML: fix scaling issue for pcbnew - nanometers.
2013-01-12 11:35:08 +01:00
Miguel Angel Ajo
0fedf6b3eb
MacOSX compilation fixes
2013-01-10 23:10:05 +01:00
jean-pierre charras
ccfd2369b9
EDA_LIST_DIALOG: add a filter option to select names to display is list, from a kamil zorychta's patch <kamil.zorychta@gmail.com>
...
Use wxFormBuilder to create EDA_LIST_DIALOG_BASE, like other dialogs.
Minor code cleanup (remove unused functions and coding style fixes) and minor bug fixes.
2013-01-10 13:18:43 +01:00
Wayne Stambaugh
8a5ea7ec0d
Pcbnew BOARD object encapsulation improvements.
2013-01-09 13:52:44 -05:00
jean-pierre charras
8b6d5cb42f
Pcbnew: Enhancement in connections calculations:
...
Until now, 2 tracks were seen as connected only if one end of the first track is *exactly* on one end of the other track.
Now the 2 ends are seen as connected when they are "near" i.e. the distance between the 2 ends is < track width/2
2013-01-08 18:58:06 +01:00
jean-pierre charras
518fdb93e5
Pcbnew: Fix unwanted selection clarification popmenu in board editor after double clicking on a DRC Unconnected error
...
(For DRC clearance error, it was fixed in bzr 3838, but forgotten for DRC Unconnected error)
2013-01-07 21:52:15 +01:00
jean-pierre charras
0cb7b84880
Pcbnew: Fix Bug #1096766 ( Can't create filled zones after keepout zones)
2013-01-07 08:46:01 +01:00
Dick Hollenbeck
f1af605d6c
when linking a DSO, require all symbols to be resolved
2013-01-04 17:02:10 -06:00
jean-pierre charras
840e38de59
Pcbnew: fix link issue (undefined Read_GPCB_Descr symbol) in scripting mode.
2013-01-04 23:00:05 +01:00
Jacobo Aragunde Perez
3821472ad8
Prevent Pcbnew from opening the same file twice.
2013-01-04 18:47:59 +01:00
Wayne Stambaugh
16402d8180
Remove unused Geda footprint import source code file.
2013-01-03 16:51:26 -05:00
Wayne Stambaugh
ade6ec3256
Doxygen warning fixes.
2013-01-03 15:21:40 -05:00
Dick Hollenbeck
7ae228d70e
add eagle *.lbr lib path extension for future use
2013-01-03 10:33:22 -06:00
jean-pierre charras
5436798e51
Kicad: Fix compil issue under Linux, and minor code cleaning, about wxFileWatcher
2013-01-02 22:49:56 +01:00
Dick Hollenbeck
45bd443184
1) Implement EAGLE_PLUGIN::FootprintLoad(), FootprintEnumerate(), and IsFootprintWritable().
...
2) Add PCAD_PLUGIN to _pcbnew.so for scripting, fixing a linking bug.
2013-01-01 22:05:48 -06:00
Wayne Stambaugh
6789e62210
Fix Pcbnew s-expr file parser bug.
2012-12-30 10:40:05 -05:00
Alexander Lunef
40f4304b2f
Pcbnew: Add pcad2kicad pcb plugin, to import PCAD boards ( .pcb ASCII data file PCad 2000 format ) from Alexander Lunef
2012-12-29 10:54:25 +01:00
Wayne Stambaugh
7c86749ca6
Add Pcbnew GEDA PCB module plugin support.
...
* Create new GEDA PCB plug in.
* Add support for opening GEDA PCB footprints with module editor.
* Make import footprint file dialog remember last selected footprint
type during current session.
* Update module editor file import to use new GEDA PCB plug in.
* Let IO_MGR know about GEDA PCB plug in.
* Create a WHITESPACE_FILTER_READER to simplify parsing GEDA PCB footprint
files.
2012-12-28 15:52:12 -05:00
jean-pierre charras
8653e362b2
Pcbnew: board editor: allows pad edition by hotkey 'E' (was accessible only by mouse button right click)
...
All: minor code cleaning and very minor bug fixes.
2012-12-27 17:42:41 +01:00
marco.
6c867989ca
MacOSX: fixing possible crash
2012-12-23 11:55:24 +01:00
marco.
9ba242bc1f
MacOSX: refresh overlay with new-deleted objects
2012-12-23 11:53:54 +01:00
jean-pierre charras
143debdd61
Pcbnew: Rework on recovery files menu
2012-12-21 08:58:51 +01:00
Dick Hollenbeck
75072f4330
extend fp_lib_table on multiple row paste
2012-12-20 23:29:40 -06:00
jean-pierre charras
bde103f5be
Pcbnew: fix issue when loading a recovery backup board file.
...
Because now there are 2 formats, board backup files extensions are .brd-bak or .kicad_pcb-bak instead of the old .000 extension, depending on the initial file format.
2012-12-20 21:20:56 +01:00
jean-pierre charras
96f302c958
Pcbnew: fix bug: missing call to SetFileFormatVersionAtLoad after loading a board, in legacy format.
2012-12-20 19:05:18 +01:00
Dick Hollenbeck
09b1748bc4
fix a fairly serious bug which would leave SOLDERMASK_LAYER_FRONT layer turned off in PADs, when loading *.kicad_pcb files
2012-12-20 00:56:17 -06:00
jean-pierre charras
a674dd6581
Pcbnew: class DIMENSION: code cleaning
2012-12-19 20:31:36 +01:00
jean-pierre charras
ea603c4deb
Pcbnew: fix minor bugs. Fix bug 1091593 and 1091693 . Minor code cleaning
2012-12-18 18:50:00 +01:00
Wayne Stambaugh
63b884558a
Doxygen warning fixes.
2012-12-18 08:54:44 -05:00
jean-pierre charras
87e5b6b874
Pcbnew: allows pcbnew to open a .kicad_pcb or a .brd file, from the command line.
2012-12-16 14:48:54 +01:00
jean-pierre charras
3c315005ee
Pcbnew: add a dialog to load a legacy file in "old" projects, when the .kicad_pcb file is not existing, and the correspoinding .brd file exists.
...
Fix also an issue in pcb_parser when a netclass name is just a number (like a track width as name)
2012-12-15 14:39:36 +01:00
Wayne Stambaugh
97ea4e83f7
Fix angle scaling error in Pcbnew s-expr file format parser. (fixes the arc bug part of lp:1090524)
2012-12-14 16:37:59 -05:00
Dick Hollenbeck
cd62be66e7
fix bug
2012-12-14 13:58:50 -06:00
Dick Hollenbeck
1b4f7d6ce5
fix pcbnew file save as problem, if previous file by same basename did not exist. Show default file ext.
2012-12-14 13:42:38 -06:00
jean-pierre charras
760d02e4d2
Kicad manager: shows *.kicad_pcb files the project tree.
2012-12-14 20:37:51 +01:00
Dick Hollenbeck
a564d2f865
minor file save as fixes, move legacy header into its plugin
2012-12-14 12:14:28 -06:00
Dick Hollenbeck
79b4846200
Switch over to *.kicad_pcb format as the default BOARD format.
...
Add KiCadPcbFileExt global.
2012-12-14 10:54:54 -06:00
jean-pierre charras
b4f0230658
Pcbnew: fix Bug #1089120 . Also change "Length Die" expression to "Length Pad To Die" in code
2012-12-12 12:57:17 +01:00
Dick Hollenbeck
a9ccf49580
allow . in layer names
2012-12-10 23:39:36 -06:00
Wayne Stambaugh
2f41c40163
Fix FreeRoute launcher Java executable path error on Windows (fixes lp:1087589)
2012-12-10 21:44:20 -05:00
jean-pierre charras
1886082fce
Eeschema: Erc dialog: enhancement. Now not modal.
...
Pcbnew: Drc dialog: fix a old very minor bug.
Added: single click on an item in marker list moves the board graphic cursor on the corresponding marker location on the board
Double clicking is not modified.
2012-12-10 20:08:09 +01:00
jean-pierre charras
4a26d543d5
Pcbnew: Add a minimal test for illegal chars in footprints libname (like space and dir separtor)
...
Also a minor cosmetic enhancement
2012-12-10 12:18:42 +01:00
Dick Hollenbeck
ee48de6744
note that the clipboard format is spreadsheet compatible
2012-12-09 14:53:46 -06:00
Dick Hollenbeck
f477464f77
embellish fp_lib_table editor with beginnings of cut, copy, paste
2012-12-09 14:51:42 -06:00
Dick Hollenbeck
9a806749ea
change spelling to jive with my email on developers list
2012-12-08 23:34:12 -06:00
Dick Hollenbeck
063907211e
more fp_lib_table work, enhance parser
2012-12-08 17:58:03 -06:00
jean-pierre charras
ba05519662
Eeschema: Add hotkey 'U' to edit reference. Better filtering for hotheys V, F, U: now the corresponding field is selected without selection list between component and the field.
2012-12-08 18:24:49 +01:00
jean-pierre charras
1671432ac1
All: Fix an usually unwanted behavior in kicad: When closing a dialog (mainly ERC, DRC and recently a component selection by the library viewer on a double click) the mouse release left button event (which is seen by the parent after closing the dialog, becuse it is actually made in the parent) generate an unwanted command (item selection, component place ...)
...
This event can be now skipped if needed by calling EDA_DRAW_FRAME::SkipNextLeftButtonReleaseEvent() from the dialog.
Very minor other fixes
2012-12-07 11:05:19 +01:00
jean-pierre charras
14fcf7f933
Try to fix an unwanted left mouse release button event, when closing a dialog on a click or double click,
...
and therefore when the mouse butoon is released in the parent window
Minor other fixes.
2012-12-06 22:53:00 +01:00
marco.
3e7c4a7624
MacOSX: fixes refresh of lines and outlines when drawing
2012-12-06 19:10:58 +01:00
Marco Mattila
c648806703
Update board modified state when (un)locking a module in pcbnew.
2012-12-06 12:13:19 +02:00
jean-pierre charras
ac41e7009e
Pcbnew: plot solder mask layer with min width value specified: algorithm modified to reduce artifacts.
2012-12-03 15:27:34 +01:00
jean-pierre charras
affbb8a8e0
Pcbnew: minor coding style fixes. Very minor fixes. Minor enhancements. Fix bug #1085523
2012-12-02 12:38:00 +01:00
jean-pierre charras
8f52ba14db
Pcbnew: minor enhancements.
2012-12-01 21:03:33 +01:00
Heikki Pulkkinen
23c1c4a067
Pcbnew: commit patch from Heikki Pulkkinen (via displayed with its right size and clearance during track creation/edition)
2012-11-29 20:27:08 +01:00
Wayne Stambaugh
84c7b07e02
Pcbnew print fixes and improvements.
...
* Fix offset errors when scale factor greater is than one.
* Changed behavior of fit in page when not drawing border and
title block to fit board outline in page.
* Fix offset errors when mirroring (still not 100% correct on MSW with
wxWidgets 2.9.4).
* Lots of the usual code cleaning and simplifying.
2012-11-28 20:50:58 -05:00
jean-pierre charras
70ca712c81
Pcbvew: fix a strange bug which swap x and y values for pad offsets when reading a s expr *.kicad_pcb board file.
2012-11-28 19:04:57 +01:00
Dick Hollenbeck
6ad94a4912
merge in evolving fp lib_table work
2012-11-28 09:24:53 -06:00
Dick Hollenbeck
5155c35a71
reverse throw() clauses to quiet SWIG errors
2012-11-27 13:57:38 -06:00
Dick Hollenbeck
9ae4e60911
start using FILE_LINE_READER( const wxString& )
2012-11-27 08:14:15 -06:00
Dick Hollenbeck
98086a8891
Change READ_LINE classes to use less virtual functions, and READ_LINE::ReadLine() to return char*
...
which can eliminate a subsequent call to READ_LINE::Line() for a small performance gain.
2012-11-27 07:50:01 -06:00
Dick Hollenbeck
e5c1959dcd
Fix dangling open file introduced as recent workaround
2012-11-27 06:42:28 -06:00
marco.
c00a93e94f
MacOSX: a strange bug with setvbuf in FILE_LINE_READER disalign the netlist reader.
2012-11-25 13:17:02 +01:00
marco.
126a7c103c
MacOSX: Crash in pcbnew during edit footprint and changing layer from dialog ( Fixes : #764678 )
2012-11-25 09:08:25 +01:00
marco.
dd5661e5a8
MacOSX: now editing Text on PCBNEW works nicelly as expected.
2012-11-25 00:23:36 +01:00
marco.
b95ab35534
MacOSX: Fixes Crash when adding text on pcbnew (bug #891347 )
2012-11-24 23:03:30 +01:00
Marco Mattila
cbb28977a2
Fix saving of local thermal parameters in pcbnew legacy_plugin.
2012-11-24 18:02:10 +02:00
jean-pierre charras
22645084bb
Pcbnew: fix bug1082146 (Keep-out areas get destroyed by "export settings to other zones" )
...
Eeschema: fix bug 1082107 (error message" component not found" when no component selected from select component dialog box)
2012-11-23 10:10:37 +01:00
Dick Hollenbeck
2aa27122b0
Eliminate many assumptions in Pcbnew's library manager, pertaining to locality of libraries and
...
their type, by using the more abstract PLUGIN::Footprint*() functions.
This is an intermediate phase only, other changes will be necessary as library table support comes in.
Encapsulate usage of library path searching, since that will go away as library table support comes in.
Add FOOTPRINT_EDIT_FRAME::{get,set}LibPath() and FOOTPRINT_EDIT_FRAME::{get,set}LibNickName() functions
to provide this encapsulation.
2012-11-19 10:19:38 -06:00
jean-pierre charras
cb62f5c8ba
Try to fix a compil issue with some wxWidget versions.
2012-11-19 15:32:34 +01:00
jean-pierre charras
b080f860c9
Pcbnew: enhanced dialog for SVG export
2012-11-16 15:13:31 +01:00
Dick Hollenbeck
e435a104c9
Add *.kicad_mod as default import footprint extension. Turn on all Cu layers for thru hole pads in case loading non-wildcard s-expression footprint files.
2012-11-15 10:46:43 -06:00
Dick Hollenbeck
a93637b14f
remove -std=c++0x compiler option since nobody is ready for it, and accordingly back into auto_ptr from unique_ptr
2012-11-15 10:04:10 -06:00
jean-pierre charras
4794d3774a
Pcbnew: fix incorrect filenames when plotting layers
2012-11-15 11:47:23 +01:00
Dick Hollenbeck
9bbff22d96
1) Switch to boost hashtable support from wx macros which did not handle std::string.
...
This required the additional compiler command line option "-std=c++0x".
2) Switch to unique_ptr from auto_ptr which is C++ deprecated.
3) Change to new English layer names per mailing list discussion, see class_board.cpp.
4) When saving to *.kicad_pcb or *.kicad_mod, identify opportunities to use wildcard
layer sets, for pads so far.
5) Switch to two std::string hashtables in pcb_parser.cpp, away from one wxString based one
for layer names and layer sets mapping. One hashtable holds the mask, the other the index.
Layer sets are only in the mask table.
6) Move "LOCALE_IO toggle" into PCB_IO::Format() since it is a public API function and
caller should find it as convenient as possible to use. LOCALE_IO should handle
nesting OK in the case where public Format() is called from one of the Footprint*()
functions.
7) Drop support for "export module to new library". Creating new libraries will have to
be handled in concert with library table entries, and we've talked recently about
creating a better footprint library manager, one that resides in a DLL/DSO. So
this kind of functionality needs to be handled in there in the near future.
8) Change name of exported PCB_IO module/footprint to *.kicad_mod and not *.emp.
2012-11-14 01:15:59 -06:00
jean-pierre charras
89a40eeb80
pcbnew: fix minor issues.
...
pcb_calculator: fix a compil warning (gcc 4.7)
2012-11-12 17:19:10 +01:00
Dick Hollenbeck
4612ef9d50
switch to new s-expression format for footprint exports, use english layernames for naked footprints, dodge conflict with pythons HAVE_GETC_UNLOCKED
2012-11-10 00:39:18 -06:00
Dick Hollenbeck
d378dcc734
footprint save to use untranslated (English) layer names
2012-11-09 13:00:00 -06:00
Dick Hollenbeck
272936ef21
populate PCB_PARSER::m_layerMap with English layernames so footprints
...
can be parsed, since they do not have an overriding layer name map
like a BOARD does.
Avoid doubly looking up hashtable entries in m_layerMap.
Minor code reformatting.
2012-11-09 00:58:00 -06:00
jean-pierre charras
96a77d7618
Pcbnew: Add a min width parameter to plot solder mask layers.
...
* If this param is set to 0, the previous behavior is used.
* Else the solder mask is plotted as polygon, with shapes near than this min width value are merged.
Pcbnew in nanometer version: fix a serious rounding issue due to the fact dialogs were using 4 digits for mantissa.
* This is not enough for nanometer coordinates ( 8 are needed to display a value in inches),
* so sometimes after closing a dialog, some coordinates were modified, although no new value was entered.
Minor other bug fixed.
2012-11-06 18:58:53 +01:00
jean-pierre charras
703293fa30
Add a min width parameter to plot solder mask layers.
2012-11-05 21:20:34 +01:00
Dick Hollenbeck
e0cc8a2f11
implement move up, move down in lib table editor
2012-10-31 09:41:47 -05:00
Dick Hollenbeck
dd519d68ea
remove unused #include <wxfstream.h> from several places
2012-10-29 16:56:18 -05:00
Marco Mattila
efa0286f26
Do not force vias to be substracted from silkscreen in pcbnew gerber plot
2012-10-28 22:51:47 +02:00
Dick Hollenbeck
7c5e42b4d0
switch from STREAM_OUTPUTFORMATTER to FILE_OUTPUTFORMATTER mostly throughout,and minor richio factoring
2012-10-25 10:41:20 -05:00
Dick Hollenbeck
d32333a012
streamline the FILE_OUTPUTFORMATTER API for ease of use
2012-10-25 02:10:59 -05:00
Dick Hollenbeck
9cd011abbb
add class FILE_OUTPUTFORMATTER and use it in PCB_IO, since it is about 8-10 faster than STREAM_OUTPUTFORMATTER
2012-10-25 00:52:55 -05:00
Dick Hollenbeck
ea4b3877e2
move wxString constructor outside loop for speed
2012-10-24 13:59:37 -05:00
Dick Hollenbeck
28222961dd
fix ownership issue in wxFFile vs. FILE_LINE_READER
2012-10-24 13:42:39 -05:00