jean-pierre charras
0e28b55184
worksheet code cleaning and fix plot sheet filenames bug (mainly under Linux) (Bug #1182891 )
2013-05-22 17:43:22 +02:00
jean-pierre charras
afccbbe04d
worksheetcode cleaning and fix plot sheet filename bug under Linux.
2013-05-22 17:08:57 +02:00
jean-pierre charras
a4cec09781
Worksheet code: cleanup and remove useless parameters.
2013-05-22 10:45:25 +02:00
jean-pierre charras
54d70ec738
Remove duplicate code to draw and to plot title blocks (more than 1500 duplicate lines). Note: this is a work in progress.
...
Code cleanup
2013-05-21 09:44:46 +02:00
jean-pierre charras
39c3a38e2d
Remove duplicate code to draw and to plot title blocks.
2013-05-21 09:18:25 +02:00
Wayne Stambaugh
699897ddf8
Pcbnew footprint library table work in progress.
...
* Add code for loading, modifying, and saving the global and project
footprint library tables.
* Add code to load MODULE objects using the footprint library table to
the footprint viewer.
* Add static methods to FP_LIB_TABLE to support loading footprint library
tables.
2013-05-20 10:49:20 -04:00
jean-pierre charras
00d3af4816
Code cleaning and move worksheet code specific to title block and frame references shape in title_block_shapes.h and title_block_shapes_gost.h
2013-05-19 21:35:49 +02:00
jean-pierre charras
ceadbbcdc1
Gerbview: fix bug #1176538 (incorrect flashed items size, when defined by aperture macros)
2013-05-18 18:56:03 +02:00
jean-pierre charras
e703b53b3a
Eeschema: fix Bug #1180902 (Libedit creates empty svg images)
2013-05-18 11:38:23 +02:00
jean-pierre charras
f037cc3c74
3D viewer: Add more options, to show/hide technical layers.
2013-05-16 21:04:21 +02:00
Maciej Suminski
7dec942ef7
Different way of rendering groups (with a single DrawElements call) in OpenGL GAL.
2013-05-16 18:43:25 +02:00
Maciej Suminski
1d0ca22572
Different way of measuring render time.
2013-05-16 17:17:35 +02:00
Dick Hollenbeck
a6decc3cc7
compiler warning from mailing list
2013-05-16 09:40:46 -05:00
Maciej Suminski
b58cc107e6
Changed functions for adding vertices in VBO mode to make code easier to read and understand.
2013-05-16 14:47:34 +02:00
Maciej Suminski
a593306a06
Fixed time measuring functions (only for profiling in debug)
2013-05-16 13:46:00 +02:00
Maciej Suminski
0177590699
Faster way of caching items for OPENGL GAL.
2013-05-16 10:35:16 +02:00
Maciej Suminski
787fe28fd0
Added functionality for transformation of VBO vertices, extended functions like translate, rotate, scale using glm library. Removed D() macro, as it was not used, but in conflict with glm library. Added VBO_ITEMs for circles, semicircles. Now almost everything is drawn using VBO (besides polygons and grid).
2013-05-15 16:48:10 +02:00
Maciej Suminski
541568e09f
Layer depth is set during items caching (so now they are rendered on proper layers).
2013-05-15 16:47:17 +02:00
Maciej Suminski
5dd7ef6895
Assured that there are no excessive initializations
2013-05-15 16:47:01 +02:00
Dick Hollenbeck
153df79699
replace BOM dialog with a pointer to FAQ https://answers.launchpad.net/kicad/+faq/2265
2013-05-15 05:32:41 -05:00
Maciej Suminski
4ad9af71f5
All kind of items are loaded on SetBoard() again.
2013-05-15 09:17:48 +02:00
Maciej Suminski
d76671a601
Items are not recached until GAL is changed (earlier it was done on every rendering backend switch).
2013-05-15 09:17:42 +02:00
Maciej Suminski
ea094a4fbc
Added some debug informations.
2013-05-15 09:17:36 +02:00
jean-pierre charras
cb11dad4de
Pcbnew: fix bug 1179877, due a bad default copy constructor, after my changes about CPOLYGONS_LIST class.
...
More about CPOLYGONS_LIST work.
2013-05-14 20:47:01 +02:00
Maciej Suminski
817cf192c8
Fixed build for eeschema.
2013-05-14 10:46:43 +02:00
Maciej Suminski
aec00ab96f
Removed double freeing of some of Cairo paths.
2013-05-14 10:42:56 +02:00
Maciej Suminski
48b288cdc2
Modified SetOffset (VBO_ITEM/OpenGL GAL) function.
2013-05-14 10:41:05 +02:00
Maciej Suminski
66d257f620
Drawing tracks using PushVertices, added some comments, fixed formatting.
2013-05-14 10:38:25 +02:00
Dick Hollenbeck
dd14218c34
remove non-UTF8 encoded characters from source tree & format fix
2013-05-13 12:30:27 -05:00
Maciej Suminski
918231795b
Added possibility of adding multiple vertices to VBO_ITEM at once
2013-05-13 11:14:35 +02:00
Maciej Suminski
9f71172437
Fixed Cairo issues and some possible memory leaks
2013-05-13 10:55:35 +02:00
Wayne Stambaugh
69e3b23960
Decouple PLOT_CONTROLLER from UI dependencies.
2013-05-10 15:22:29 -04:00
Maciej Suminski
7b426e8103
Fixed memleak, removed excessive recaching, still there is a problem with Cairo caching
2013-05-10 16:05:40 +02:00
Wayne Stambaugh
27e1043fc4
Fix footprint library search path bug. (fixes lp:1178427
2013-05-09 21:51:55 -04:00
jean-pierre charras
76518712c4
More work on CPOLYGONS_LIST class.
...
Pcbnew: fix minor bug about plot line width.
2013-05-09 21:08:12 +02:00
Wayne Stambaugh
64843d6b0a
Footprint library table work, minor fixes, and code cleaning.
...
* Fix a bug when full file name and path are passed to FOOTPRINT_INFO::
ReadFootprintFiles() which I created in bug fix lp:593989.
* Fix a wxString debug assertion in EDA_APP::InitEDA_Appl() when the KICAD
environment variable is defined as an empty string.
* Add error dialog when libraries cannot be found in system search path
when loading footprint using the select footprint dialog.
* Add footprint library name column to the EDA_LIST_DIALOG when selecting
footprints from the list.
* Allow reading all columns from the selected row in EDA_LIST_DIALOG.
* Remove redundant sort from EDA_LIST_DIALOG constructor
* Add library name member variable and accessors to FOOTPRINT_INFO.
* Make headers translatable for Eeschema select component from list dialog.
* Add some helper methods to FPID for identifying the FPID type and validity.
* Remove a bunch of trailing whitespace and add missing license comments.
2013-05-08 16:47:23 -04:00
jean-pierre charras
87fa661591
More work on CPOLYGONS_LIST class.
2013-05-08 20:20:58 +02:00
jean-pierre charras
2ec6d22131
Eechema: fix bug : when saving the schematic project, the lib cache was saved under the current sheet opened, not the root sheet.
...
Pcbnew: clamp default plot line width between 0.02 and 2 mm. the other bug (saving this parameter in internal units instead of mm is not fixed)
2013-05-07 20:32:06 +02:00
Lorenzo Marcantonio
f6ac92dc39
Removed some spurious float casts
...
(explanation: float is implicitly promoted to double anyway, it's only useful
for storage; also a fp variable forces conversion of other int in the expression
without needing a cast)
Typo fixes in some comments 'floatting' -> 'floating' :D
2013-05-07 19:31:52 +02:00
Wayne Stambaugh
be69f7ad20
Fix bug when footprint library file names contain dots. (fixes lp:593989)
2013-05-06 13:57:18 -04:00
Lorenzo Marcantonio
9a7cc494f7
Closes bug 1176915
...
Mass parameters in gerbers can't use scientific notation (altough some software
allow it), so the %g format was not correct.
2013-05-06 19:47:01 +02:00
jean-pierre charras
8c3d4d4eda
Eeschema: fix incorrect move command for bitmap items.
2013-05-06 15:38:14 +02:00
Lorenzo Marcantonio
636ca7a74b
Removed Show code from BOARD_ITEM derived classes (as requested by Dick)
2013-05-05 12:23:18 +02:00
Lorenzo Marcantonio
c57c1e94d1
Fixed LAYER_NUM usage in the specctra code.
...
A specctra layer is not a LAYER_NUM, so that's probably why it was difficult to use.
2013-05-05 12:11:30 +02:00
Lorenzo Marcantonio
1e1c2cbb7d
Migrated the interfaces accepting angles to the double type
...
The plan goes like this:
- eeschema still uses int in decidegrees
- all the other things internally use double in decidegrees (or radians
in temporaries)
- in pcbnew UI the unit is *still* int in decidegrees
The idea is to have better precision everywhere while keeping the user with int i
angles. Hopefully, if a fractional angle doesn't come in from the outside, everything
should *look* like an integer angle (unless I forgot something and it broke)
When the time comes, simply updating the UI for allowing doubles from the user should
be enough to get arbitrary angles in pcbnew.
2013-05-05 09:17:48 +02:00
Lorenzo Marcantonio
5399b6f438
More int casts to rounding conversions
2013-05-04 13:57:09 +02:00
jean-pierre charras
41b6c8434a
All: use CPOLYGONS_LIST, a typedef of std::vector<CPolyPt> to handle a Corners Polygons List.
...
This is a starting point of some code enhancements relative to polygons in Pcbew and 3D viewer.
2013-05-03 19:51:10 +02:00
Felix Morgner
3031b9e6a5
Fixes implementation of MacOpenFile( const wxString& ) in KiCad.
...
Adds "kicad_pcb" to the list of file-extensions for PCBnew in its Info.plist
to make Launch Services recognize the file associations.
Change 8 bit string to UTF8 so fancy mew in "um" can be shown.
2013-05-02 23:04:30 -05:00
Lorenzo Marcantonio
0d5331df59
Fixed bad computation in eeschema/transform (my fault)
...
Note: ArcTangente gives a double but *takes* ints, so it's not good to
use for nontrivial things
2013-05-02 22:53:12 +02:00
jean-pierre charras
bca75d4930
Fix compil issue in Debug mode.
2013-05-02 20:42:08 +02:00