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
jean-pierre charras
64dfea78b8
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
3bbcd30396
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
fdd0e02c35
Substituted the few remaining uses of long instead of time_t
2012-09-05 14:13:33 +02:00
Lorenzo Marcantonio
5f86a70891
Enforced EDA_COLOR_T type and minor const-ification
2012-09-02 14:06:47 +02:00
Lorenzo Marcantonio
c73ca9a6da
Encapsulated drawmode as an enum for type checking
2012-09-01 15:38:27 +02:00
jean-pierre charras
e467e58857
Modedit: very minor enhancements.
2012-08-31 21:19:48 +02:00
Marco Mattila
bb73777a4a
Take pad clearance into account in intersection detection during pcbnew zone filling.
2012-08-31 21:43:09 +03:00
jean-pierre charras
a63a62f827
Pcbnew: fix bug: deleting a cutout in a zone was not undoable.
2012-08-31 17:59:14 +02:00
jean-pierre charras
1c6574e69d
Fix 0 length segment in outline zone creation, that breaks zone chamfer option.
2012-08-31 15:58:23 +02:00
jean-pierre charras
313785b421
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
b6261f3d80
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
3dc4de85b5
Fully encapsulated with accessors PCB_PLOT_PARAMS
2012-08-30 20:06:13 +02:00
Lorenzo Marcantonio
bb0711eb3f
Minor plot driver enhancements
2012-08-29 22:13:47 +02:00
Lorenzo Marcantonio
5a0c37e2b9
Removed PCB_BASE_FRAME::m_printBorderAndTitleBlock (all dead code)
2012-08-29 20:34:34 +02:00
Lorenzo Marcantonio
e6095e6fd8
Added 'parachute' std::exception handling to python interface
2012-08-29 19:32:14 +02:00
Lorenzo Marcantonio
28af99d95d
Fixed compilation with unicode (wxString to printf without GetChars)
2012-08-29 19:28:33 +02:00
Lorenzo Marcantonio
619c8e689a
Script plotting patch
2012-08-29 18:59:50 +02:00
jean-pierre charras
c03355d67f
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
417572f3c5
Missing a wxT in call to LogDebug
2012-08-29 13:28:37 +02:00
Dick Hollenbeck
c5ed76f104
wxFileName::CreateTemporaryFile() is switching to /tmp directory when no preceding path is present
2012-08-28 10:41:08 -05:00
jean-pierre charras
5721a279c8
Pcbnew: Fix bug 1042394 and very minor code cleaning.
2012-08-28 08:51:18 +02:00
jean-pierre charras
22defb9ad4
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
37cb4d00df
Fix pcbnew thermal stub removal for pads with locally defined thermal properties.
2012-08-22 23:16:21 +03:00
jean-pierre charras
a48c0ece4b
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
ed42ae5a79
fix problem with eeschema print dialog showing up on missing monitor
2012-08-15 12:55:48 -05:00
Dick Hollenbeck
20f83297ce
legacy plugin fully support text horiz/vert justification, eagle plugin text fixes
2012-08-11 14:14:45 -05:00
jean-pierre charras
896dc0fcf6
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
f8a238e670
fixes for plugins
2012-08-11 00:50:17 -05:00
Miguel Angel Ajo
3b8f2a551b
pcbnew: Show/Hide button for scripting console
2012-08-10 23:53:50 +02:00
Miguel Angel Ajo
2263633df8
pcbnew: fix bug 1033510 that crashes pcbnew when no footprint wizard is selected
2012-08-06 22:41:41 +02:00
Miguel Angel Ajo
59b7a8ff8f
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
9e6b63e3da
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
f7047d3cfa
Remove Kbool from Kicad. Use Clipper instead.
2012-08-04 11:43:27 +02:00
jean-pierre charras
cb16951519
Very minor fixes.
2012-08-03 17:43:15 +02:00
jean-pierre charras
14dc5709ee
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
33f7d83c71
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
e469a6b3d8
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
2971ea6564
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
02ced9a339
scripting: fixed kicad compilation, cleanups
2012-08-02 09:47:30 +02:00
Miguel Angel Ajo
1960a8768e
pcbnew: wxPyBeginBlockThreads before every python call
2012-08-01 14:50:21 +02:00
Miguel Angel Ajo
f4c8abb1b4
Double Python initialization fixed
2012-08-01 13:54:20 +02:00
jean-pierre charras
ab9630b825
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
e79d6ae971
Cleanup math_for_graphic code
2012-08-01 09:07:56 +02:00
Miguel Angel Ajo
0348e13258
pcbnew scripting: fixed for coding style policy
2012-07-31 23:00:33 +02:00
jean-pierre charras
40c7c7dae8
Remove freepcb arc legacy code from PolyLine.
2012-07-31 19:51:58 +02:00
jean-pierre charras
396695c866
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
a07ae76bcc
Fix issues in zones creation (DRC and merging) I created in 3658.1
2012-07-30 09:40:25 +02:00
Miguel Angel Ajo
0221700226
merged divertion
2012-07-30 00:24:40 +02:00
Miguel Angel Ajo
d8f3424554
pcbnew: scripting, Capacitive Touch Slider Wizard
2012-07-29 23:40:41 +02:00
jean-pierre charras
623234c7c2
More work on a better support of polygons in Kicad (code cleaning).
2012-07-25 20:46:25 +02:00
jean-pierre charras
49aff4eba3
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
9281d15c70
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
e482826ac3
.dso -> .pyd is the right extension for python .dll WIN32
2012-07-22 14:19:52 +02:00