Wayne Stambaugh
2538262531
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
453a135a3e
fix bug
2012-12-14 13:58:50 -06:00
Dick Hollenbeck
0cfa6d8097
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
7e77f3b902
Kicad manager: shows *.kicad_pcb files the project tree.
2012-12-14 20:37:51 +01:00
Dick Hollenbeck
71d2467963
minor file save as fixes, move legacy header into its plugin
2012-12-14 12:14:28 -06:00
Dick Hollenbeck
a6140c799d
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
cc45f4f212
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
d95710f8e0
allow . in layer names
2012-12-10 23:39:36 -06:00
Wayne Stambaugh
b3703f1f91
Fix FreeRoute launcher Java executable path error on Windows (fixes lp:1087589)
2012-12-10 21:44:20 -05:00
jean-pierre charras
104d63fd7c
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
df994764a5
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
764ef2dcc9
note that the clipboard format is spreadsheet compatible
2012-12-09 14:53:46 -06:00
Dick Hollenbeck
1dddc22a9b
embellish fp_lib_table editor with beginnings of cut, copy, paste
2012-12-09 14:51:42 -06:00
Dick Hollenbeck
ebac5c4a70
change spelling to jive with my email on developers list
2012-12-08 23:34:12 -06:00
Dick Hollenbeck
59a3715e40
more fp_lib_table work, enhance parser
2012-12-08 17:58:03 -06:00
jean-pierre charras
eb370afe4a
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
fc06b1762f
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
a1fed86b28
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
unknown
a96a265a7b
MacOSX: fixes refresh of lines and outlines when drawing
2012-12-06 19:10:58 +01:00
Marco Mattila
8042d6f892
Update board modified state when (un)locking a module in pcbnew.
2012-12-06 12:13:19 +02:00
jean-pierre charras
c4d874cdb1
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
4e96cc4bbb
Pcbnew: minor coding style fixes. Very minor fixes. Minor enhancements. Fix bug #1085523
2012-12-02 12:38:00 +01:00
jean-pierre charras
78f928544f
Pcbnew: minor enhancements.
2012-12-01 21:03:33 +01:00
Heikki Pulkkinen
f8020f4728
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
23bded5697
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
9df7292af6
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
bcb05fbc14
merge in evolving fp lib_table work
2012-11-28 09:24:53 -06:00
Dick Hollenbeck
4acb97e02e
reverse throw() clauses to quiet SWIG errors
2012-11-27 13:57:38 -06:00
Dick Hollenbeck
9577736788
start using FILE_LINE_READER( const wxString& )
2012-11-27 08:14:15 -06:00
Dick Hollenbeck
f7ec499ee9
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
a64e1b3397
Fix dangling open file introduced as recent workaround
2012-11-27 06:42:28 -06:00
unknown
63362c97f5
MacOSX: a strange bug with setvbuf in FILE_LINE_READER disalign the netlist reader.
2012-11-25 13:17:02 +01:00
unknown
b07b214293
MacOSX: Crash in pcbnew during edit footprint and changing layer from dialog ( Fixes : #764678 )
2012-11-25 09:08:25 +01:00
unknown
e368ae3230
MacOSX: now editing Text on PCBNEW works nicelly as expected.
2012-11-25 00:23:36 +01:00
unknown
9cf627a656
MacOSX: Fixes Crash when adding text on pcbnew (bug #891347 )
2012-11-24 23:03:30 +01:00
Marco Mattila
5d383f1885
Fix saving of local thermal parameters in pcbnew legacy_plugin.
2012-11-24 18:02:10 +02:00
jean-pierre charras
a2a44bb7ef
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
8867bf262b
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
0543670734
Try to fix a compil issue with some wxWidget versions.
2012-11-19 15:32:34 +01:00
jean-pierre charras
9c66afb6fe
Pcbnew: enhanced dialog for SVG export
2012-11-16 15:13:31 +01:00
Dick Hollenbeck
0dc8241605
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
7ca5c4099e
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
e40c8fa164
Pcbnew: fix incorrect filenames when plotting layers
2012-11-15 11:47:23 +01:00
Dick Hollenbeck
f73e785662
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
1bb685cc57
pcbnew: fix minor issues.
...
pcb_calculator: fix a compil warning (gcc 4.7)
2012-11-12 17:19:10 +01:00
Dick Hollenbeck
5d4da5ede9
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
fe295788e7
footprint save to use untranslated (English) layer names
2012-11-09 13:00:00 -06:00
Dick Hollenbeck
f8b3eaedb5
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
28a35c9883
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
d8a6c7c1bf
Add a min width parameter to plot solder mask layers.
2012-11-05 21:20:34 +01:00
Dick Hollenbeck
8bf57814a4
implement move up, move down in lib table editor
2012-10-31 09:41:47 -05:00
Dick Hollenbeck
c2d4338024
remove unused #include <wxfstream.h> from several places
2012-10-29 16:56:18 -05:00
Marco Mattila
146adbf831
Do not force vias to be substracted from silkscreen in pcbnew gerber plot
2012-10-28 22:51:47 +02:00
Dick Hollenbeck
4b7c3010e0
switch from STREAM_OUTPUTFORMATTER to FILE_OUTPUTFORMATTER mostly throughout,and minor richio factoring
2012-10-25 10:41:20 -05:00
Dick Hollenbeck
4ce6362f4c
streamline the FILE_OUTPUTFORMATTER API for ease of use
2012-10-25 02:10:59 -05:00
Dick Hollenbeck
5765ebef08
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
a3eb501225
move wxString constructor outside loop for speed
2012-10-24 13:59:37 -05:00
Dick Hollenbeck
82706bf152
fix ownership issue in wxFFile vs. FILE_LINE_READER
2012-10-24 13:42:39 -05:00
Dick Hollenbeck
5e852ba1fd
move PCB_PARSER into PCB_IO as a member
2012-10-24 13:20:33 -05:00
Dick Hollenbeck
d49cdb2ded
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
a8ad1f8097
Fix compile error against wxWidgets 2.8 brach.
2012-10-23 13:20:22 -04:00
Dick Hollenbeck
d1e3bad24f
pcbnew import footprint fixed for legacy nanometer format
2012-10-22 15:41:26 -05:00
jean-pierre charras
912d308b9d
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
0b71e4a98a
more fp_lib_table work
2012-10-18 10:28:50 -05:00
Wayne Stambaugh
900bef9ccf
Put KiCad on a diet to remove the uncessary slices of pi. (fixes 1066194)
2012-10-17 16:59:05 -04:00
Dick Hollenbeck
7106d1e605
more fp_lib_table work
2012-10-17 10:12:17 -05:00
jean-pierre charras
6840ec0d09
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
0e8e811b14
decouple wxGridTableBase from FP_LIB_TABLE, this was poor information hiding
2012-10-16 20:00:25 -05:00
Dick Hollenbeck
3dc986bbf6
fp_lib_table dialog work
2012-10-16 01:56:57 -05:00
Dick Hollenbeck
395338f46a
add dialog for fp_lib_table
2012-10-15 17:30:01 -05:00
Wayne Stambaugh
2c0619f69d
Initial commit of footprint library table code.
2012-10-14 21:38:32 -04:00
jean-pierre charras
03128b7530
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
86b83ddbc9
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
3db19ba2eb
eeschema erc dialog extends from DIALOG_SHIM
2012-10-08 14:34:04 -05:00
Wayne Stambaugh
baee140518
Convert footpint library log functions to trace functions to reduce debug output.
2012-10-07 18:26:17 -04:00
Wayne Stambaugh
bed29749f2
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
e57cbd3348
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
2f788445a9
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
d4e55c69c1
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
d07351c8ba
More dialogs derived from DIALO_SHIM
2012-10-04 08:57:15 +02:00
jean-pierre charras
2412caf494
Pcbnew: make all dialogs derived from DIALOG_SHIM.
2012-10-03 13:25:30 +02:00
jean-pierre charras
a4b2a6537c
Make scripting version compilable under Windows
2012-09-30 19:50:17 +02:00
unknown
0d7510c129
[MacOSX] Updated Icons - Document ones still missing :(
2012-09-27 19:20:44 +02:00
jean-pierre charras
30d41b33d1
Finishing code cleaning in plot functions.
2012-09-25 09:49:29 +02:00
jean-pierre charras
2ce06cfe08
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
93cdfb566b
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
f5643f2332
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
38e5d961f6
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
5be15bed82
Pcbnew: some code cleanup in plot functions.
2012-09-21 10:20:38 +02:00
jean-pierre charras
deb6aa8cc5
Fix incorrect titles in SVG export dialog
2012-09-20 21:15:14 +02:00
jean-pierre charras
3b3e19ee8a
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
abbc83bd51
Fix MSVC compile errors caused by struct forward declared as class
2012-09-20 08:38:50 -05:00
Dick Hollenbeck
7d4aaa8cdb
fmin() was giving grief to MSVC, switch to std::min()
2012-09-20 08:22:33 -05:00
Marco Mattila
7db3834f0b
Move pcbnew pcb edge layer plot checkbox to common plot options
2012-09-17 21:14:41 +03:00
jean-pierre charras
3f2a258930
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
550d36dc33
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
46b9d9e359
All: fix most of Doxygen warnings.
2012-09-12 19:28:55 +02:00
jean-pierre charras
3e084a3b0e
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
391a663360
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
068ae2f344
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