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
Dick Hollenbeck
5634bc3381
move PCB_PARSER into PCB_IO as a member
2012-10-24 13:20:33 -05:00
Dick Hollenbeck
484eb55ae8
DSN_LEXER underneath PCB_PARSER does not own the LINE_READER it receives, fix memory leak
2012-10-24 12:38:10 -05:00
Wayne Stambaugh
1e772280b9
Fix compile error against wxWidgets 2.8 brach.
2012-10-23 13:20:22 -04:00
Dick Hollenbeck
28f238e36b
pcbnew import footprint fixed for legacy nanometer format
2012-10-22 15:41:26 -05:00
jean-pierre charras
292c1f0912
Kicad: bug fix in menubar when changing the selected locale.
...
fctsys.h: remove useless define.
Fix minor issues and add minor enhancements.
2012-10-18 21:31:40 +02:00
Dick Hollenbeck
9e41a8127d
more fp_lib_table work
2012-10-18 10:28:50 -05:00
Wayne Stambaugh
f3cc32f9e2
Put KiCad on a diet to remove the uncessary slices of pi. (fixes 1066194)
2012-10-17 16:59:05 -04:00
Dick Hollenbeck
58299fc921
more fp_lib_table work
2012-10-17 10:12:17 -05:00
jean-pierre charras
f03b9048fe
Fix a minor compatibility issue in .pro file for new boards, between decimils and nanometers versions of Pcbnew.
2012-10-17 12:57:21 +02:00
Dick Hollenbeck
69dbeab90f
decouple wxGridTableBase from FP_LIB_TABLE, this was poor information hiding
2012-10-16 20:00:25 -05:00
Dick Hollenbeck
fb43f4ad6f
fp_lib_table dialog work
2012-10-16 01:56:57 -05:00
Dick Hollenbeck
ae19bbfa33
add dialog for fp_lib_table
2012-10-15 17:30:01 -05:00
Wayne Stambaugh
77e1a4c03c
Initial commit of footprint library table code.
2012-10-14 21:38:32 -04:00
jean-pierre charras
621a43c4ad
Eeschema: always stores sheet filename in unix-like notation, and fix a bug when editing sheet file name.
...
Pcbnew: add PDF format for drill map generation.
Plotter classes: tweaking code.
2012-10-13 20:54:33 +02:00
Wayne Stambaugh
fc9c8cc0ec
Fix footprint library file extension bug in CvPcb and Pcbnew due to s-expression changes, fixes lp:1064593.
2012-10-09 15:18:12 -04:00
Dick Hollenbeck
44c25d14ec
eeschema erc dialog extends from DIALOG_SHIM
2012-10-08 14:34:04 -05:00
Wayne Stambaugh
7d08facb45
Convert footpint library log functions to trace functions to reduce debug output.
2012-10-07 18:26:17 -04:00
Wayne Stambaugh
1468a4ae31
Pcbnew s-experssion footprint library implementation.
...
* Add footprint methods to PCB_IO.
* Add FP_CACHE and FP_CACHE_ITEM for handling new footprint library design.
* Add code to save legacy libraries in new format.
* Change behavior of BOARD_ITEM::GetLayerName() to return the default layer
name when the item does not have a BOARD as a parent.
* Minor changes to the module output formatter when writing to module library
files (no BOARD as parent).
* Add new (and some that I forgot along the way) CMake flags to
EDA_BASE_FRAME::CopyVersionInfoToClipboard().
* Add -Wno-narrowing to GCC flags to stop GCC 4.7 from complaining about
a conversion from int to unsigned in the Boost polygon library.
* Add INPUT_STREAM_READER to richio.cpp to allow using any object derived
from wxInputStream as a LINE_READER (needs to be validated).
2012-10-07 11:37:25 -04:00
jean-pierre charras
8031e512e6
Dialog drill file: remove precision choice, because only one choice was acceptable
...
(the option with the smallest number of digits for coordinates created unacceptable truncation coordinates in Excellon drill files)
2012-10-05 21:04:17 +02:00
jean-pierre charras
c41bb774e4
Pcbnew: drill files creation: better dialog to create driil files, map files and report file. Code cleaning
2012-10-05 14:25:12 +02:00
jean-pierre charras
5951a7f9bc
Pcbnew: fix an issue when collecting vias (for instance when left clicking on a via, it was not always detected)
...
This bug was mainly noticeable when using buried vias (some were never detected)
Minor other fixes (typos, strings hard to translate ...)
2012-10-04 19:47:28 +02:00
jean-pierre charras
7c0af1bf9d
More dialogs derived from DIALO_SHIM
2012-10-04 08:57:15 +02:00
jean-pierre charras
bae892dfe5
Pcbnew: make all dialogs derived from DIALOG_SHIM.
2012-10-03 13:25:30 +02:00
jean-pierre charras
0e941708f4
Make scripting version compilable under Windows
2012-09-30 19:50:17 +02:00
marco.
0355119044
[MacOSX] Updated Icons - Document ones still missing :(
2012-09-27 19:20:44 +02:00
jean-pierre charras
5fa61ecd25
Finishing code cleaning in plot functions.
2012-09-25 09:49:29 +02:00
jean-pierre charras
2d49ced742
Pcbnew: fix compil warning and a minor bug in plot negative (frame fer plotted in white therefore not visible).
...
minor code cleaning
2012-09-24 18:03:03 +02:00
jean-pierre charras
cc47e88b9e
Pcbnew, plot functions: fix bug in SVG plotter, fix a minor other bug when using PS plotter (trcak width fine adjust not working)
...
and plot code cleaning continued
2012-09-24 08:39:59 +02:00
jean-pierre charras
b660b033ad
All: remove macros MAX, MIN, ABS from macros.h and replace these macros by std::max, std::min and std::abs (mainly found in old code).
2012-09-22 13:19:37 +02:00
Dick Hollenbeck
210a7036db
switch all <math.h> includes to <cmath> includes on an attempt to dodge some abiguous references to atan2()
2012-09-21 12:02:54 -05:00
jean-pierre charras
eb94e66c9d
Pcbnew: some code cleanup in plot functions.
2012-09-21 10:20:38 +02:00
jean-pierre charras
b1c9c54221
Fix incorrect titles in SVG export dialog
2012-09-20 21:15:14 +02:00
jean-pierre charras
9e0960615a
dcsvg (and therefore KicadSVGFileDC) is now unused. Use SVG plotter only to export a board SVG file.
...
SVG export does not use no more wxWidgets wxDC.
In pcbnew SVG files can be created by plot menu (in B&W) or export SVG menu (B&W or Color).
Export SVG menu is more suitable to create a view of a board, and plot menu is better to create a B&W document of silkscreen layers.
(In the future, the 2 menus could be merged, because they are not very different).
Note: pcbnew plot code is cleaned, mainly in dialog files, but still needs more cleanup.
2012-09-20 20:58:41 +02:00
Craig Southeren
534c8a8944
Fix MSVC compile errors caused by struct forward declared as class
2012-09-20 08:38:50 -05:00
Dick Hollenbeck
136d84ef3c
fmin() was giving grief to MSVC, switch to std::min()
2012-09-20 08:22:33 -05:00
Marco Mattila
3ed33e3912
Move pcbnew pcb edge layer plot checkbox to common plot options
2012-09-17 21:14:41 +03:00
jean-pierre charras
a9744e3f84
Pcbnew: added: SVG plotter. Need refinements, but works.
...
Mainly to plot drill maps, but can be used to plot boards, for documentation.
The print svg still exists, but the plot SVG has more options (mirroring, holes in pads),
however print svg allows color print, and full board printing, and plot does not.
2012-09-15 14:13:03 +02:00
jean-pierre charras
a2b9241ea3
Pcbnew: fix minor issue when loading a foorprint: if the footprint name has lower case letters, the name was asked twice
2012-09-13 14:15:24 +02:00
jean-pierre charras
819589cf05
All: fix most of Doxygen warnings.
2012-09-12 19:28:55 +02:00
jean-pierre charras
3ff16a0b14
Pcbnew: fix compil error I created in my previous commit.
...
All: fix some Doxygen warnings
2012-09-12 13:11:30 +02:00
jean-pierre charras
93ebdb2cd0
All: better code to handle opened frames libview, libedit, modview, modedit.
...
Other minor fixes.
2012-09-12 11:53:11 +02:00
jean-pierre charras
b810135e4e
Code cleaning, minor fixes and minor coding style fixes. wxWidgets 2.9.4 compatibility fix( deprecated function MakeModal )
2012-09-11 21:03:21 +02:00
jean-pierre charras
bb6795ddf1
Pcbnew: drag functions: serious cleanup and better code. Use now the connectivity functions to find tracks connected to pads,
...
and therefore tracks are now dragged when a end point is inside a pad, not necessary on the pad position.
However, drag functions still need more cleanup.
2012-09-11 09:33:17 +02:00
jean-pierre charras
3668f4ccc3
Pcbnew: cleanup functions: now, cleanup uses same algorithm as connectivity calculations to detect pads connections, and is faster.
...
therefore tracks which have a end point inside a pad, but not necessaryexactly to the pad position are seen as connected, and are no more removed.
Side effect: reconnect to pads option is removed, because it is useless.
TODO: use this algorithm in drag functions.
Minor other fixes
2012-09-07 21:29:44 +02:00
Lorenzo Marcantonio
7d154606be
Substituted the few remaining uses of long instead of time_t
2012-09-05 14:13:33 +02:00
Lorenzo Marcantonio
e771112259
Enforced EDA_COLOR_T type and minor const-ification
2012-09-02 14:06:47 +02:00
Lorenzo Marcantonio
082d901d60
Encapsulated drawmode as an enum for type checking
2012-09-01 15:38:27 +02:00
jean-pierre charras
f301b196ab
Modedit: very minor enhancements.
2012-08-31 21:19:48 +02:00
Marco Mattila
eaf4919ef8
Take pad clearance into account in intersection detection during pcbnew zone filling.
2012-08-31 21:43:09 +03:00
jean-pierre charras
e6dd5128fa
Pcbnew: fix bug: deleting a cutout in a zone was not undoable.
2012-08-31 17:59:14 +02:00
jean-pierre charras
92b43c7407
Fix 0 length segment in outline zone creation, that breaks zone chamfer option.
2012-08-31 15:58:23 +02:00
jean-pierre charras
37ee239449
Pcbnew: in SVG export, add option to export only the board area, not the full page.
...
dialog plot functions: fix compil warnings with wxWidgets 2.8
2012-08-31 09:43:37 +02:00
Lorenzo Marcantonio
ba6da604cc
Refactored PCB plot infrastructure
...
Removed filename from the BASE_SCREEN class
Scripting support for board plot
2012-08-30 21:25:12 +02:00
Lorenzo Marcantonio
137066e53c
Fully encapsulated with accessors PCB_PLOT_PARAMS
2012-08-30 20:06:13 +02:00
Lorenzo Marcantonio
7cef5395b3
Minor plot driver enhancements
2012-08-29 22:13:47 +02:00
Lorenzo Marcantonio
b44d719446
Removed PCB_BASE_FRAME::m_printBorderAndTitleBlock (all dead code)
2012-08-29 20:34:34 +02:00
Lorenzo Marcantonio
94fdc674aa
Added 'parachute' std::exception handling to python interface
2012-08-29 19:32:14 +02:00
Lorenzo Marcantonio
a2c75829f9
Fixed compilation with unicode (wxString to printf without GetChars)
2012-08-29 19:28:33 +02:00
Lorenzo Marcantonio
fef8347176
Script plotting patch
2012-08-29 18:59:50 +02:00
jean-pierre charras
79d55c0460
Minor cosmetic enhancements.
...
Kicad manager: shows now svg files in tree files.
Pcbnew: fix incorrect printing (board out of page) when creating drill map in postscript format ( noticeable mainly for small boards)
2012-08-29 14:40:09 +02:00
Lorenzo Marcantonio
96bf0a5460
Missing a wxT in call to LogDebug
2012-08-29 13:28:37 +02:00
Dick Hollenbeck
5b9c354759
wxFileName::CreateTemporaryFile() is switching to /tmp directory when no preceding path is present
2012-08-28 10:41:08 -05:00
jean-pierre charras
a4de3018d7
Pcbnew: Fix bug 1042394 and very minor code cleaning.
2012-08-28 08:51:18 +02:00
jean-pierre charras
b19cc14ef2
3d-viewer and polygon functions: remove duplicate code about conversion from basic shapes to polygons.
2012-08-23 21:15:58 +02:00
Marco Mattila
2dbb428b23
Fix pcbnew thermal stub removal for pads with locally defined thermal properties.
2012-08-22 23:16:21 +03:00
jean-pierre charras
0ebc3f063e
3D-viewer: code cleanup.
...
Eeschema: annotate and netlist dialogs: enhancements.
Minor coding policy fixes and changes.
2012-08-21 12:45:54 +02:00
Dick Hollenbeck
367bfb4e14
fix problem with eeschema print dialog showing up on missing monitor
2012-08-15 12:55:48 -05:00
Dick Hollenbeck
6bb2fce7d9
legacy plugin fully support text horiz/vert justification, eagle plugin text fixes
2012-08-11 14:14:45 -05:00
jean-pierre charras
abe5c08e20
3D-viewer: code cleaning. Added option in menu: show a 3D grid.
...
All: press ctrl+shift key when moving the mouse allows the graphic cursor to be moved outside the grid.
(useful to place graphic objects, texts in any position, regardless the current grid)
2012-08-11 14:52:13 +02:00
Dick Hollenbeck
7c3f47ec5a
fixes for plugins
2012-08-11 00:50:17 -05:00
Miguel Angel Ajo
f80357cb1a
pcbnew: Show/Hide button for scripting console
2012-08-10 23:53:50 +02:00
Miguel Angel Ajo
c7d6dad7e0
pcbnew: fix bug 1033510 that crashes pcbnew when no footprint wizard is selected
2012-08-06 22:41:41 +02:00
Miguel Angel Ajo
ccb74b99d3
pcbnew: footprint wizards now can export the output module to the library or board
2012-08-05 00:15:57 +02:00
jean-pierre charras
9d5e271334
Pcbnew: fix a minor issue in non copper zones when creating the solid filled areas.
2012-08-04 18:33:04 +02:00
jean-pierre charras
1f277fd66d
Remove Kbool from Kicad. Use Clipper instead.
2012-08-04 11:43:27 +02:00
jean-pierre charras
7fd24c7f03
Very minor fixes.
2012-08-03 17:43:15 +02:00
jean-pierre charras
4ff3a78de0
Eeschema: fix crash when changing a label type to an other label type during creation.
...
Pcbnew: code cleaning in polygon functions
2012-08-02 19:36:14 +02:00
Miguel Angel Ajo
4d2def3593
scripting + pcbnew: Merged with scripting branch, now it supports -DKICAD_SCRIPTING_WXPYTHON for full wx integration with python
2012-08-02 19:31:39 +02:00
Miguel Angel Ajo
89dd074841
pcbnew scripting: cleanup, renamed KICAD_SCRIPTING_EXPERIMENT to KICAD_SCRIPTING_WXPYTHON, now every flavour compiles
2012-08-02 19:24:53 +02:00
jean-pierre charras
3b56ea6732
Eeschema: fix crash when changing a label type to a global label during creation.
...
Pcbnew: code cleaning in polygons
2012-08-02 15:23:53 +02:00
Miguel Angel Ajo
b0881d8ec5
scripting: fixed kicad compilation, cleanups
2012-08-02 09:47:30 +02:00
Miguel Angel Ajo
5140c348cd
pcbnew: wxPyBeginBlockThreads before every python call
2012-08-01 14:50:21 +02:00
Miguel Angel Ajo
beec323603
Double Python initialization fixed
2012-08-01 13:54:20 +02:00
jean-pierre charras
ef39c5f38e
PolyLine and math_for_graphics code cleanup: remove arc support in CPolyLine class:
...
This is an obscure legacy code from FreePCB, never used, never tested, never maintained.
2012-08-01 10:08:37 +02:00
jean-pierre charras
90a6daa722
Cleanup math_for_graphic code
2012-08-01 09:07:56 +02:00
Miguel Angel Ajo
474128a445
pcbnew scripting: fixed for coding style policy
2012-07-31 23:00:33 +02:00
jean-pierre charras
dfdd2cfdbf
Remove freepcb arc legacy code from PolyLine.
2012-07-31 19:51:58 +02:00
jean-pierre charras
ae05cd80c3
Remove arcs support in zone outlines: this is a legacy code from FreePCB, never used, never tested, never maintained.
2012-07-31 15:12:51 +02:00
jean-pierre charras
f96d557e73
Fix issues in zones creation (DRC and merging) I created in 3658.1
2012-07-30 09:40:25 +02:00
Miguel Angel Ajo
1c9433fb31
merged divertion
2012-07-30 00:24:40 +02:00
Miguel Angel Ajo
a8e4f8b0ed
pcbnew: scripting, Capacitive Touch Slider Wizard
2012-07-29 23:40:41 +02:00
jean-pierre charras
99b90d2fa3
More work on a better support of polygons in Kicad (code cleaning).
2012-07-25 20:46:25 +02:00
jean-pierre charras
ef5f1b9e6b
Start work on a better support of polygons in Kicad (code cleaning).
...
Some coding style policy fix.
2012-07-25 09:36:56 +02:00
Miguel Angel Ajo
9259b21ffa
Footprint wizard converts from user units to internal units back and forth, so user can type in mm or mils now
2012-07-23 00:23:17 +02:00
Miguel Angel Ajo
894e6eb5ea
.dso -> .pyd is the right extension for python .dll WIN32
2012-07-22 14:19:52 +02:00
Miguel Angel Ajo
5d0dee1364
Adam Vašíček patches for WIN32 compilation of kicad scripting
2012-07-22 14:15:38 +02:00
jean-pierre charras
9d8c684a4a
Libedit and Modedit: fix minor, but annoying issues when editing items
2012-07-17 17:29:29 +02:00
Miguel Angel Ajo
465dabd919
Fixes Win32 compilation that my previous commit broke, thanks to JP
2012-07-16 16:48:51 +02:00
jean-pierre charras
aaabdeaed7
Pcbnew: Fix crash after opening footprint wizard
2012-07-16 15:34:08 +02:00
jean-pierre charras
a3ea46d0e4
Fix compil issues under mingw
2012-07-16 11:19:23 +02:00
Miguel Angel Ajo
829e952e49
Python scripting and fixes for non-scripting compilation
2012-07-16 07:53:22 +02:00
Miguel Angel Ajo
863c1b4823
Merged with testing
2012-07-15 22:38:25 +02:00
Miguel Angel Ajo
2a9b8df888
Support for nanometer build, extra example
2012-07-15 22:01:05 +02:00
jean-pierre charras
f20bf0d217
Pcbnew: more about keepout areas: remove keepout for pads option and add keepout for copper zones option.
...
Export keepout to Specctra DSN file.
2012-07-14 18:27:25 +02:00
jean-pierre charras
018b080001
Pcbnew: Add keepout areas (Copper zones without tracks or/and vias).
...
This is *a work in progress*, so some features are missing, and/or could be modified.
Mainly keepout zones are not yet exported to autorouters, and pads are not taken in account.
Some code cleanup in polygon.*
2012-07-13 20:55:29 +02:00
jean-pierre charras
af0d21474d
Pcbnew: commit Lorenzo Marcantonio's patch for THT thermals (added loading/saving using S. expr).
...
Fix incorrect import of smd pads from Gpcb.
Very minor change in dialog print.
2012-07-09 09:10:07 +02:00
Marco Mattila
096f4a1080
Add rotation field to pcbnew text item property dialog.
2012-07-09 01:02:00 +03:00
Dick Hollenbeck
1da099dd1f
fix for bug 1022026
2012-07-07 13:27:44 -05:00
Miguel Angel Ajo
974fe74f66
Cleanup toward test-merge
2012-07-06 21:10:55 +02:00
Wayne Stambaugh
04a17d3347
Save and load print parameters and minor code cleaning in new Pcbnew file format.
2012-07-05 13:02:45 -04:00
jean-pierre charras
0459b4dafa
Pcbnew: fix incorrect detection of arcs having angles != 90 degrees
2012-07-05 11:29:42 +02:00
Marco Mattila
b7c5649463
Add copy to text items in pcbnew. Automatically mirror text items added to back silkscreen (bug 1017446).
2012-07-04 22:50:47 +03:00
jean-pierre charras
1f1a7703d9
Pcbnew, gen Excellon files: fix truncation coordinates in decimal format, units = inches (old bug)
...
Coordinates were using always 3 digits (1/1000 inch for mantissa). Uses now 4 digits max in inches and 3 digits max in mm
The resolution is therefore 1/10000 inch or 1/1000 mm. Note this is a limitation of Excellon format.
2012-07-03 15:46:58 +02:00
jean-pierre charras
c7f6343bb4
Pcbnew: fix 2 minor issues, noticeable only in debug mode.
...
When reading board files, the net 0 was stored twice.
It creates only log messges in debug mode, because the list of nets is rebuild after reading files.
2012-06-30 10:20:04 +02:00
Miguel Angel Ajo
08af577218
code cleanup and comments
2012-06-27 23:19:19 +02:00
jean-pierre charras
91b0191a02
Pcbnew: save/load .kicad_pcb files: fix 2 minor issues.
...
Use now English layers names to build filenames in plot functions (for techical layers), because translated names create sometimes problems in filenames.
(should do not change anything for English users)
2012-06-27 22:07:37 +02:00
jean-pierre charras
a6bc4a0dc6
Pcbnew: fix compil issue under wxGTK 2.8.12
2012-06-26 22:18:01 +02:00
jean-pierre charras
047bb44ef5
Pcbnew: minor changes in pcb-parser.cpp and kicad_plugin.cpp to make translations easier.
...
Code cleaning in autoroute functions.
2012-06-26 19:57:37 +02:00
Jean-Pierre Charras
1b08d1874f
Commit JP's custom page size fix for Pcbnew s-expressions file format with minor changes. Thanks JP.
2012-06-25 19:52:57 -04:00
jean-pierre charras
0c946870c5
All: fix a truncation issue in ReturnValueFromString that creates sometimes a small error for values entered in dialogs.
...
Pcbnew: fix a compatibility issue with nano version for zones parameters.
2012-06-25 22:59:19 +02:00
Miguel Angel Ajo
db427cb2cd
merge with lp:kicad
2012-06-25 22:51:19 +02:00
Dick Hollenbeck
f94a95ab5b
use the same format string in the test program as in LEGACY_PLUGIN for record keeping purposes
2012-06-25 09:44:47 -05:00
Dick Hollenbeck
e5452a7a39
remove "long double" dependency, mingw was falling over when using it.
2012-06-24 13:41:37 -05:00
Wayne Stambaugh
4019284e66
Minor Pcbnew s-expression improvements.
...
* Put text effects on a single line.
* Remove size token when defining drill sizes.
* Don't save net in pad definition when pad has no connection.
2012-06-23 21:19:41 -04:00
Dick Hollenbeck
4b596cc5f3
legacy_plugin was not round tripping nanometers, add test program to verify new conversion strategy
2012-06-23 18:21:03 -05:00
jean-pierre charras
025d550955
Pcbnew: small cosmetic enhancement: add a bitmap for zone duplicate command.
2012-06-20 11:57:36 +02:00
jean-pierre charras
52ee7c6e2a
Pcbnew: fix incorrect arc export in SVG file export.
...
Very minor other fixes.
2012-06-19 21:25:41 +02:00
Dick Hollenbeck
0588092184
DIMENSION::m_Value not being saved in LEGACY_PLUGIN using scaling, DIMENSION::AdjustDimensionDetails() uses arrowz appropriate to build
2012-06-18 23:53:08 -05:00
Dick Hollenbeck
8975fd3cf4
a) (zone (fill (mode was wrong, b) put fill on one line
2012-06-18 23:23:42 -05:00
Dick Hollenbeck
5d415c4c4b
parsing problem was unbalanced (smoothing) element
2012-06-18 23:08:00 -05:00
jean-pierre charras
1f50b2c767
Pcbnew: Fix an other compatibility issue in kicad nanometers.
2012-06-17 20:29:11 +02:00
jean-pierre charras
0028c05484
Pcbnew: fix issues in kicad nanometer in zone ediition and detection.
...
autoroute functions: code cleaning
2012-06-17 18:06:12 +02:00
Wayne Stambaugh
8c72db6631
Pcbnew s-expression file parser bug fixes and file size improvements.
...
* Use index when saving layers to handle translated layer names.
* Add LOCALE_IO switcher when loading s-expression format.
* Make SEGVIA default to through hole to improve file size.
* Don't save default orientation of 0 degrees in TEXTE_MODULE and TEXTE_PCB.
* Don't save default zone configuration parameters.
* Save multiple zone corners on a single line.
* Fixed missing ( check in graphic and module arc parsers.
* Consistency improvements for DRAWSEGMENT and EDGE_MODULE objects.
* Minor tweaks to D_PAD formatting.
2012-06-16 18:49:24 -04:00
jean-pierre charras
d9ed8a3085
Pcbnew: automatic selection of plugin when loading a file with .kicad_pcb extension from history list.
...
Very minor other fixes
2012-06-14 21:10:32 +02:00
jean-pierre charras
b59cebb2a7
fix incorrect use of KIROUND instead of KiROUND in parseBoardUnits( const char* aExpected ) (see comments in .h file)
...
very minor fix in pcb_parser.cpp
Fix scaling issue with nanometers in gpcb footprint import.
2012-06-14 08:29:54 +02:00
Andrey Fedorushkov
0c4a026e70
pcbnew: minor fix printf in pcb_parser
2012-06-14 09:34:18 +04:00
Wayne Stambaugh
3b2be428f4
Pcbnew s-expression file parser bug fixes.
...
* Change save order of drawings to match legacy file format object order.
* Set end point of SEGVIA to start point so the round trip back to legacy
format is the same.
* Fixed bug saving and loading oval pad drill parameters.
* Fixed bug saving and loading rectangular pad deltas.
* Fixed missing layer for PCB_TARGET.
* Fixed EDA_TEXT italic bug. Thanks Dick!
* Remove some left over debug logging statements.
2012-06-13 19:04:42 -04:00
Andrey Fedorushkov
f7755bdcec
pcbnew: show clearance when move or drag via
2012-06-13 17:32:43 +04:00
jean-pierre charras
c4c2cd3acd
Pcbnew: fix issue about order of tracks this order was modified when reading and writing a board, even without any change in board.
...
Fix compil warnings and wx28 compatibility.
code cleaning in autoroute functions.
2012-06-11 14:04:34 +02:00
jean-pierre charras
8b210d05ec
fix compil warnings
2012-06-11 07:40:52 +02:00
Dick Hollenbeck
a71857baaa
Commit Dick's Pcbnew s-expression file parser bug fixes.
...
* Apply Dick's patch along with a few minor changes to fix some clashes with
changes in my branch. Thanks Dick!
* Added missing DRAWSEGMENT line angle.
* Fix thru hole pad layer mask issue.
2012-06-10 20:47:15 -04:00
jean-pierre charras
9fea98dd2f
Pcbnew: Fix compil issues with wxWidgets 2.8.12
...
Some code cleaning in autoroute functions.
2012-06-10 18:21:18 +02:00
Dick Hollenbeck
b34d8e2150
There was no reason for insertBeforeMe on track loading.
...
Tracks should be loaded in the same order as they were saved, no exceptions.
This is for the version control system user.
But even with this objective now implemented in LEGACY_PLUGIN, the TRACKS
are still going through a food processor after they are loaded, and the poor
version control system user has no relief, even with this patch.
TRACKS are always modified after being loaded, and I think this needs to be fixed still.
2012-06-09 19:39:40 -05:00
Wayne Stambaugh
2d0d805014
Add Pcbnew s-expression file parser.
...
* Add s-expression file parser object and keyword files.
* Fix minor issues with s-expression file formatting.
* Fix a minor bug the zone container fill state parsing in the legacy plugin.
* Move EDA_TEXT visibility definition to eda_text.h.
* Add minor BOARD_ITEM object improvements to support s-expression file
parser.
2012-06-09 13:00:13 -04:00
jean-pierre charras
de471744cd
Fix some minor bugs in plot functions
2012-06-09 11:38:58 +02:00
jean-pierre charras
7f07b48e88
Pcbnew: Update incorrect or incomplete copyrights in many files.
...
Minor code cleaning in autoroute files.
2012-06-08 11:56:42 +02:00
Dick Hollenbeck
4f471eb569
EAGLE_PLUGIN::Load() is now completed.
2012-06-06 20:49:43 -05:00
jean-pierre charras
be832f8855
Pcbnew: move files relative to autoroute/autoplace to autorouter folder.
...
fix nanometer compatibility.
minor code and comments cleaning (although theses files need a lot of code cleaning)
2012-06-05 21:07:33 +02:00
Marco Mattila
64c1ea5cec
Add missing checks and undo support to pcbnew zone duplication.
2012-06-05 14:44:22 +03:00
Dick Hollenbeck
27d6310cbf
EAGLE_PLUGIN: read a portion of the design rules and calculate
...
pad and via sizes from those settings when diameter is not given
in the local object. Calculation algorithms are inferred from the
UI help of the Eagle program.
For edge connector type of footprints, some copper pads can be on the
back side even within packages.
Flipping of packages to back was not being done correctly, but I think this
is working now.
There are still remaining issues with text positioning that I am working on.
2012-06-04 23:39:37 -05:00
Marco Mattila
e7817f3e84
Add zone duplication to pcbnew.
2012-06-04 22:04:12 +03:00
Miguel Angel Ajo
b5c0cada0d
merges tip, conflict resolved
2012-06-03 22:21:53 +02:00
Miguel Angel Ajo
30e251bfba
merge 1 with tip
2012-06-03 22:06:51 +02:00
jean-pierre charras
2475b2b6f7
Fix eagle_plugin issue (File not found) under Windows.
2012-06-03 17:47:53 +02:00
Marco Mattila
2455a6cc3b
Do some ZONE_CONTAINED encapsulation.
2012-06-03 00:19:17 +03:00
Dick Hollenbeck
57acee0d4e
EAGLE_PLUGIN: finish xpath error reporting mechanism for XML document traversal
2012-06-02 12:07:30 -05:00
Dick Hollenbeck
16e5866611
EAGLE_PLUGIN: load layer definitions, zone parameters, text positions.
...
Sketch for BOARD::Move(). Pass page_width and page_height to PLUGIN::Save().
2012-06-01 02:39:32 -05:00
Dick Hollenbeck
c5869705f4
EAGLE_PLUGIN add mechanical "hole" support for both MODULEs and BOARD
2012-05-31 10:18:55 -05:00
jean-pierre charras
808020b1eb
Eeschema, Libedit: Fix bug that can crashes Eeschema: In libedit 2 mandatory fields could be deleted. Fixed now.
...
Very minor other fixes.
2012-05-31 15:47:02 +02:00
Dick Hollenbeck
69905af749
EAGLE_PLUGIN now positions text correct for most cases
2012-05-30 16:40:32 -05:00
Marco Mattila
7bdcad155a
Add flip to pcbnew text fields.
2012-05-30 20:38:52 +03:00
Dick Hollenbeck
b3fd915f59
add translation to static file filters, comments
2012-05-30 09:14:42 -05:00
Dick Hollenbeck
b68fa7cdfd
generalize the BOARD loading process PCB_EDIT_FRAME::LoadOnePcbFile() to use any supported PLUGIN
2012-05-29 16:01:17 -05:00
Marco Mattila
ad86e50a69
Derive pcbnew find dialog from DIALOG_SHIM.
2012-05-29 23:43:17 +03:00
Dick Hollenbeck
f2bd20ab34
Mostly EAGLE_PLUGIN work:
...
* Derive the pcbnew copper zone and non-copper zone dialog windows from DIAG_SHIM,
which injects some template code.
* Update UIpolicies.txt to talk about DIALOG_SHIM support.
* Add zone support to eagle_plugin.
* Organize ZONE_CONTAINER class declaration for future privacy and accessors.
2012-05-29 13:10:56 -05:00
jean-pierre charras
52318f6988
Pcbnew: menu Edit/Reset modules fields size: Add dialog to select what modules are modified.
2012-05-29 14:25:10 +02:00
Marco Mattila
fd8bfe0cb1
Move pcbnew find dialog into dialogs subdirectory and use wxFormBuilder for it.
2012-05-28 23:01:51 +03:00
jean-pierre charras
e6ec9f0a32
Pcbnew: fix crash in legacy_plugin.cpp when reading old lib files.
...
fix a compil warning.
CvPcb: fix regressions :
Shows now a void field instead of the dummy footprint name $nonane (whenthere is no footprint selected in netlist).
The active footprint selection changes only if a new component is selected from the component file,
and does not change just when the next component is automatically selected, after a footprint selection.
Speed up delete association and auto associe.
2012-05-25 08:58:52 +02:00
Lorenzo Marcantonio
925774760c
Rationalize numeric time stamps to type time_t.
2012-05-24 21:52:04 -04:00
Dick Hollenbeck
6e78a592f2
more amazing free eagle_plugin work
2012-05-24 10:00:59 -05:00
brian.
afdf5258f3
Commit patch from Brian Sidebotham (Bus width value option)
2012-05-24 08:51:52 +02:00
Dick Hollenbeck
76765f2269
more eagle plugin work
2012-05-23 20:18:30 -05:00
Andrey Fedorushkov
43caa734ac
Pcbnew: fix control data valid in design rules when define USE_PCBNEW_NANOMETRES
2012-05-23 18:25:15 +04:00
Dick Hollenbeck
aac1010636
more eagle_plugin work
2012-05-22 12:51:18 -05:00
Dick Hollenbeck
cb210042b8
fix bug added two revisions ago by me
2012-05-21 13:50:46 -05:00
Dick Hollenbeck
5cda6bc1a6
eagle plugin first work
2012-05-20 08:14:46 -05:00
jean-pierre charras
ea467e6730
Pcbnew: fix bug Bug #1001107 (Solder Mask Ratio Clearance bad value)
...
Because this bug could create bad values in footprint libraries, this parameter is now checked
when reading a footprint description in legacy format
2012-05-18 10:33:57 +02:00
Miguel Angel Ajo
70df15175b
Footprint wizard, plus fixes
2012-05-16 11:35:18 +02:00
Dick Hollenbeck
ab001b902a
bring in skeleton for eagle_plugin and update boost for use of RapidXML within property_tree
2012-05-15 21:27:27 -05:00
Dick Hollenbeck
84c782fba7
try to delete a footprint library before exporting or creating, quietly
2012-05-15 08:58:55 -05:00
jean-pierre charras
40c5a46f38
Libedit: fix Bug #994014 .
...
Pcbnew: fix Pcbnew name capitalization in messages.
About dialog: add a link to kicad-pcb.org
2012-05-13 17:31:58 +02:00
jean-pierre charras
9f41cac041
Remove PCB_INTERNAL_UNIT define because it is no more used in code.
...
3D viewer: fix incorrect scaling factor when using nanometers.
Very minor other fixes
2012-05-11 11:02:35 +02:00
Miguel Angel Ajo
4dc70b2fc8
wxGrid instead of list, now we do really have values...
2012-05-11 00:30:26 +02:00
Miguel Angel Ajo
4ead38a83d
Cosmetic fixes, before moving to wxGrid
2012-05-10 22:49:07 +02:00
Miguel Angel Ajo
351e08c8a9
Footprint wizard UI gets the module from python wizard, and show it
2012-05-10 10:53:05 +02:00
Miguel Angel Ajo
eff5023287
* Read string array results from python methods~
2012-05-10 08:44:08 +02:00
jean-pierre charras
f6551172d2
Fix capitalization issues in title bar and config files (broken by bzr rev 3543)
2012-05-10 08:25:27 +02:00
Miguel Angel Ajo
c051c1a4a9
footprint wizard UI and footprint wizard lists
2012-05-10 01:04:08 +02:00
Miguel Angel Ajo
23bec4b80b
* Footprint wizard UI: Added to module editor.
...
* Footprint wizard C++ generic classes
* Footprint wizard C++ to python wrappers
* Automatic plugin loader from ~/.kicad/plugins
* Python plugin architecture: Footprint wizards
2012-05-09 19:37:25 +02:00
Dick Hollenbeck
2e0941a1de
Fix some comments. Enhance LEGACY_PLUGIN such that it can tolerate, then fix bad legacy footprint libraries containing duplicate footprint names.
...
This may have been an undocumented bug from more than a year ago, which manifested itself in *.mod files containing duplicate names.
LEGACY_PLUGIN loads those now quietly, but appends "_v2", "_v3", etc. to each succeeding duplicate sharing the same name.
2012-05-08 19:26:15 -05:00
Dick Hollenbeck
40ccdd5763
Fix Pcbnew markers in nanometer build with proper scaling factor. Use double in Zoom()
2012-05-07 16:47:25 -05:00
Dick Hollenbeck
fb9e1ea010
Make drawframe.cpp's StatusBar use field widths which are dynamically determined
...
base on expected text and current window font.
Expand the virtual world to 2.14 meters in the nanometer build of PCBNEW.
This seems to be holding up for now.
2012-05-06 18:32:01 -05:00
Dick Hollenbeck
86e04b4fb3
more nanometer work, see comment at line 66 of pcbnew/classpcb.cpp
2012-05-06 15:10:43 -05:00
Miguel Angel Ajo
edee5dc1ce
KiCad scripting plugin architecture, footprint wizards first
2012-05-05 22:18:47 +02:00
Jerry Jacobs
5f5c504288
Cosmetic UI changes mostly for Mac OS X, see CHANGELOG.txt
2012-05-05 18:02:09 +02:00
Dick Hollenbeck
173c93969d
Remove zip library by switching to wxZlibOutputStream for PDF plotter.
...
Delete LEGACY_PLUGIN cache after deleting library of same name.
Remove automatically generted freerouter help header.
Add Normalize() to BOX2.
Clamp some values in the virtual space of drawframe.cpp
2012-05-04 23:55:36 -05:00
jean-pierre charras
4125ea7789
Gerbview: remove dependencies from Pcbnew.
...
Should allow Pcbnew code easier to change and Gerbview code more understandable and easier to maintain.
Code cleaning (remove dead code, add comments).
Minor other enhancements.
2012-05-04 19:44:42 +02:00
jean-pierre charras
61acac28e1
Add patch from Lorenzo Marcantonio. Fix some warning issues, and zlib issue under Windows (zlib sources added)
2012-05-03 20:37:56 +02:00
Miguel Angel Ajo
f114e800a4
support for footprint library operations
2012-05-01 17:13:36 +02:00
Miguel Angel Ajo
f35037238c
merged to testing, fixed some scripting imports
2012-04-30 18:05:22 +02:00
Dick Hollenbeck
3fa7c200b7
Add tools/parser_gen.cpp which is the beginnings of an s-expression parser
...
generation tool. For now, it is just an s-expression beautifier using
our "non-specctra mode" version of s-expressions.
2012-04-29 21:57:48 -05:00
jean-pierre charras
e96f1aeb3d
Remove valeur_param(), that does not work in Kicad Nanometer
2012-04-27 16:15:11 +02:00
jean-pierre charras
9d6c1d12ed
Fix some (not all) bad values displayed in NANOMETER mode.
2012-04-27 08:11:41 +02:00
jean-pierre charras
cdaa5ceac7
missing change.
2012-04-27 00:04:09 +02:00
jean-pierre charras
758f22161a
All: change MILS_TO_IU_SCALING_FACTOR constant to IU_PER_MILS ( and MM_TO_IU_SCALING_FACTOR to IU_PER_MM)
...
Also fix bug 985654.
2012-04-26 23:34:20 +02:00
jean-pierre charras
3b671e09d1
All: change MILS_TO_IU_SCALING_FACTOR constant to MILS_PER_IU ( and MM_TO_IU_SCALING_FACTOR to MM_PER_IU)
...
Also fix bug 985654.
2012-04-26 22:21:31 +02:00
jean-pierre charras
fa3ebc4043
Define MM_TO_IU_SCALING_FACTOR (scaling factor from mm to internal units) only in convert_to_biu.h
...
Other scaling factors (MILS_TO_IU_SCALING_FACTOR and DECIMILS_TO_IU_SCALING_FACTOR)
also defined only in convert_to_biu.h.
Allows different scaling value for Gerbview.
Needs more tests.
2012-04-25 21:33:24 +02:00
Miguel Angel Ajo
b939f3bc2f
C++ plugin exceptions correctly handled now
2012-04-24 22:28:23 +02:00
Dick Hollenbeck
33616f3051
* Add DRECT, DPOINT, and DSIZE (double rect, point, and size) using Torsten's vector2d.h
...
as a starting point
* Make double Distance() take double arguments and remove internal range checking.
* Start on EDA_DRAW_FRAME::AdjustScrollBars() and use "double" for most all calculations
in anticipation of setting INT_MAX INT_MIN limits eventually.
2012-04-23 16:56:26 -05:00
Miguel Angel Ajo
d719282aaf
wxArrayString typemaps, class missing yet
2012-04-23 08:59:37 +02:00
Wayne Stambaugh
d8b60a14e1
Pcbnew s-expression file format improvements.
...
* Move board item object Format() functions into PCB_IO object.
* Change file format to use layer names instead of numbers.
* Change file extension to kicad_pcb.
2012-04-22 11:16:39 -04:00
Miguel Angel Ajo
5157657eba
merged to last testing, also added automatic file extension detection on save/load
2012-04-22 13:14:58 +02:00
Miguel Angel Ajo
aef92a345c
Merged to testing, needs some fixes
2012-04-21 22:04:02 +02:00
Miguel Angel Ajo
42fad8a754
Exceptions handled on board Load/Save
2012-04-20 23:20:56 +02:00
Dick Hollenbeck
c24863c078
// Dick Hollenbeck's KiROUND R&D
...
// This provides better project control over rounding to int from double
// than wxRound() did. This scheme provides better logging in Debug builds
// and it provides for compile time calculation of constants.
#include <stdio.h>
#include <assert.h>
#include <limits.h>
//-----<KiROUND KIT>------------------------------------------------------------
/**
* KiROUND
* rounds a floating point number to an int using
* "round halfway cases away from zero".
* In Debug build an assert fires if will not fit into an int.
*/
#if defined( DEBUG )
// DEBUG: a macro to capture line and file, then calls this inline
static inline int KiRound( double v, int line, const char* filename )
{
v = v < 0 ? v - 0.5 : v + 0.5;
if( v > INT_MAX + 0.5 )
{
printf( "%s: in file %s on line %d, val: %.16g too ' > 0 ' for int\n", __FUNCTION__, filename, line, v );
}
else if( v < INT_MIN - 0.5 )
{
printf( "%s: in file %s on line %d, val: %.16g too ' < 0 ' for int\n", __FUNCTION__, filename, line, v );
}
return int( v );
}
#define KiROUND( v ) KiRound( v, __LINE__, __FILE__ )
#else
// RELEASE: a macro so compile can pre-compute constants.
#define KiROUND( v ) int( (v) < 0 ? (v) - 0.5 : (v) + 0.5 )
#endif
//-----</KiROUND KIT>-----------------------------------------------------------
// Only a macro is compile time calculated, an inline function causes a static constructor
// in a situation like this.
// Therefore the Release build is best done with a MACRO not an inline function.
int Computed = KiROUND( 14.3 * 8 );
int main( int argc, char** argv )
{
for( double d = double(INT_MAX)-1; d < double(INT_MAX)+8; d += 2.0 )
{
int i = KiROUND( d );
printf( "t: %d %.16g\n", i, d );
}
return 0;
}
2012-04-19 01:55:45 -05:00
Dick Hollenbeck
9a6612c6ec
use a block scope to invoke wxFFile's destructor before renaming temporary file
2012-04-18 07:24:40 -05:00
Dick Hollenbeck
47a41f9c66
PLUGIN API Doxygen comments
2012-04-17 09:54:48 -05:00
Dick Hollenbeck
72d4b2353b
uncrustify math_for_graphics, add copyright legacy_plugin.h
2012-04-17 09:18:14 -05:00
Dick Hollenbeck
597833b55e
touch ups
2012-04-17 01:13:22 -05:00
Dick Hollenbeck
e88bc8e58b
LEGACY_PLUGIN is now in full use:
...
*) for footprint access into *.mod files and
*) BOARD save/load
The item_io.cpp and ioascii.cpp have been set off to the side for reference
as *.notused, for awhile.
The CMake options USE_NEW_PCBNEW_LOAD and USE_NEW_PCBNEW_SAVE are gone,
this is now the mandatory usage of the LEGACY_PLUGIN. This should reduce
code maintenance for awhile until the s-expression plugin comes into
play. But at least for legacy format, there is not two code bodies
to maintain any more.
A new LEGACY_PLUGIN footprint library caching scheme is in place which
needs some testing. It should not be any faster, but might give better
results in a networked environment if there is *.mod files on the server.
2012-04-16 22:12:53 -05:00
Dick Hollenbeck
51a83a7a66
cvpcb LEGACY_PLUGIN usage factoring
2012-04-16 21:58:03 -05:00
Dick Hollenbeck
3341669fc6
more footprint support for LEGACY_PLUGIN
2012-04-16 20:35:43 -05:00