Maciej Suminski
ea943ce605
Merged the netnames branch.
2014-01-28 11:59:04 +01:00
Dick Hollenbeck
c389c2f6e4
Add EDA_BASE_FRAME::Show() and call SaveSettings() only from there for all derived wxFrames. Remove calls to SaveSettings() elsewhere.
2014-01-27 19:29:26 -06:00
Dick Hollenbeck
edc2938fb8
Make KiCad compile with minimal warnings against SVN HEAD of wxWidgets as of today.
2014-01-07 19:34:04 -06:00
Maciej Suminski
e2e68aea74
Upstream merge.
2014-01-06 10:29:31 +01:00
Marco Serantoni
2fc8a05aec
[MacOSX] Adding better support for Retina Display (NSHighResolutionCapable)
2013-12-31 12:03:02 +01:00
jean-pierre charras
7e884e1eb1
Fix bugs 1264236, 1264238, 1264254
2013-12-29 12:01:54 +01:00
Maciej Suminski
ce1541e915
Added const modifiers where applicable (PICKED_ITEMS_LIST).
...
Added PICKED_ITEMS_LIST::FindItem().
2013-12-18 13:27:18 +01:00
jean-pierre charras
e259a150fb
All: GetBoundingBox returns now a const EDA_RECT.
...
Pcbnew: Code cleaning and bug fix in autoplace functions
Dialog exchange footprints has now a separate button to update the .cmp file, only on request.
2013-11-24 18:48:14 +01:00
jean-pierre charras
ca927e4227
Minor code cleaning: Remove unused file, remove obsolete or useless defines
2013-11-15 10:28:31 +01:00
Maciej Suminski
25919e8393
Merged upstream.
2013-10-28 21:34:06 +01:00
jean-pierre charras
731b356c95
3D board display: better rendering of the board: the board polygon outlines (generated by the specctra function) is now used to create the 3D body of the board.
2013-10-04 10:42:09 +02:00
jean-pierre charras
8a8ba43bde
Gerbview: fix incorrect printing of negative objects, when using black and white option.
...
Eeschema: better name for m_SheetList (changed to m_SheetPath) member of class NETLIST_OBJECT.
2013-09-29 20:24:38 +02:00
Maciej Suminski
a0a479eb53
Merged upstream.
2013-09-20 17:54:35 +02:00
Maciej Suminski
e839d1a129
Merged kicad-gal
2013-09-20 15:48:27 +02:00
Maciej Suminski
4551ded37e
Some more missing D()->DBG() changes.
2013-09-10 17:07:46 +02:00
jean-pierre charras
3124f8133a
Cleaning code for PCB_LAYER_BOX_SELECTOR class, and use it in edit dimension dialog.
2013-09-01 20:38:11 +02:00
Dick Hollenbeck
325d5a6bcd
*) retain grid origin in the BOARD and save it in legacy and kicad board files.
...
*) add hotkey for setting the grid origin as 'S', in board editor, module editor.
*) re-position the function interface for cursor movement from BASE_SCREEN into
class EDA_DRAW_FRAME. This is a prelude to getting rid of BASE_SCREEN or
splitting it up.
2013-08-03 00:15:23 -05:00
jean-pierre charras
a53b3d496c
Replace in EDA_TEXT::Draw the parameter EDA_DRAW_PANEL* aPanel by EDA_RECT* aClipBox, which is the actual parameter used by Draw.
...
This change make more easy to use this function when a EDA_DRAW_PANEL canvas is not used to draw texts.
Remove dead code in worksheet.cpp.
2013-06-29 11:52:22 +02:00
jean-pierre charras
7708753ed3
Gerbview: remove fully outdated code (about reading DCode files) and fix erroneous comments.
2013-06-28 12:49:43 +02:00
jean-pierre charras
fad35e7e00
Minor fixes. Gerbview: fix a collision name for GetLayout method.
2013-06-27 21:12:01 +02:00
Dick Hollenbeck
e3351a9686
1) Add "rules" to base of tree for copying into BZR_HOME/rules.
...
File "rules" has instructional text as comments near top.
2) Convert all text files in repo to LF line ending form.
Any checkout done with "rules" in play will convert the working
tree to native line ending, while keeping repo as LF line ending.
2013-05-25 23:36:44 -05:00
jean-pierre charras
a4cec09781
Worksheet code: cleanup and remove useless parameters.
2013-05-22 10:45:25 +02:00
jean-pierre charras
39c3a38e2d
Remove duplicate code to draw and to plot title blocks.
2013-05-21 09:18:25 +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
Dick Hollenbeck
dd14218c34
remove non-UTF8 encoded characters from source tree & format fix
2013-05-13 12:30:27 -05: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
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
Lorenzo Marcantonio
a70965eb6d
Moved utilities for angles in trigo.h
...
New conversion routines and sin/cos implementation for angles in decidegrees
2013-05-02 20:06:58 +02:00
Lorenzo Marcantonio
c36ab1c6ed
Angle and distances cleanup (preparing for angles in doubles)
...
- Removed spurious int casts (these are truncated anyway and will break
doubles)
- Applied the Distance, GetLineLength, EuclideanNorm, DEG2RAD, RAD2DEG
ArcTangente and NORMALIZE* functions where possible
- ArcTangente now returns double and handles the 0,0 case like atan2, so
it's no longer necessary to check for it before calling
- Small functions in trigo moved as inline
2013-05-01 19:32:36 +02:00
Dick Hollenbeck
df9502dd06
fix some compiler warnings
2013-04-18 12:03:47 -05:00
Lorenzo Marcantonio
beb8e76bb4
Removed ugly usage of an extra layer slot for the layer count in gerbview
...
Fixed layer picker for exporting to pcbnew
Realigned pcb layer name with class BOARD
2013-04-10 09:03:19 +02:00
Lorenzo Marcantonio
a985798a86
Better strings for the translators (converted concatenations to formats)
2013-04-09 19:49:01 +02:00
Lorenzo Marcantonio
3f52031b86
Factored out text anchor drawing
...
More layer classification cleanup
2013-04-09 18:00:46 +02:00
Lorenzo Marcantonio
f456a92f08
More cleanup on layer code usage
...
Better description for entities on right click menu and panel
Typo fixes and some comment reformats
2013-04-07 13:55:18 +02:00
jean-pierre charras
8014e0d993
Gerbview, layer manager: add option (popup menu) to always keep layers not visible but the active layer, even when the active layer is changed.
...
Pcbnew: fix swig warning for operator EDA_COLOR_T::++ (changed to function EDA_COLOR_T:: NextColor)
2013-04-06 14:01:53 +02:00
Lorenzo Marcantonio
30e31ff164
More work on EDA_COLOR_T and layers.
...
In particular the new mechanism for handling extended color palettes is in place,
included renaming the ini keys and saving the color name instead of its index; this means better forward compatibility with palette changes.
Since ini keys are changed, colors will be reset
2013-04-04 23:35:01 +02:00
Lorenzo Marcantonio
18f32cfbd6
Removed unused defines
2013-04-01 07:53:38 +02:00
Lorenzo Marcantonio
07fb2a3e93
Implemented the LAYER_NUM typedef (LAYER was already taken as a class name...) to represent a layer number.
2013-03-31 15:27:46 +02:00
Lorenzo Marcantonio
d9da8228d4
Minor flags and layer mask cleanup
2013-03-30 20:55:26 +01:00
Lorenzo Marcantonio
00bc96a2b7
- New typedef LAYER_MSK to encapsulate a layer bitmap
...
- Renamed ReturnMaskLayer to GetLayerMask (since it's a plain getter)
2013-03-30 18:24:04 +01:00
Lorenzo Marcantonio
0da9086397
Extremely trivial stuff (mostly cosmetics)
2013-03-28 07:40:19 +01:00
jean-pierre charras
98a77ee649
Pcbnew: print dialog: code cleanup and bug fixes (added some fixes from Sergey A. Borshch)
2013-03-11 20:30:58 +01:00
jean-pierre charras
7718bf6858
Gerbview: Minor fixes
2013-03-06 20:32:59 +01:00
jean-pierre charras
78a6ba31d8
Fix Bug #1132416 . Minor update in templates.
2013-02-24 18:31:18 +01:00
Wayne Stambaugh
490c8d856e
Minor dialog spacing, grammar, and sizer fixes.
2013-02-19 14:43:48 -05:00
Emmeran
c3e3fc4dba
converted linux to dos file endings for wxfb files
2013-02-12 05:30:28 +01:00
Emmeran
254ad1b26b
moved changes to dialogs into fbp files
2013-02-12 05:18:22 +01:00
Emmeran
2c642afd04
tabs converted to spaces except wxstruct.h
2013-02-12 04:56:46 +01:00
Emmeran
d2ed926077
added option to allow zooming around the crosshair instead of the center; can be enabled via options or by holding alt while using the mousewheel
2013-02-02 20:10:48 +01:00