jean-pierre charras
d52491c715
Custom pads: allows solid connection to zones.
...
The 2 options are now: no connection and solid connection
2018-03-11 20:39:29 +01:00
Maciej Suminski
ee6ac1af1d
Fix crash on custom shape pad primitive duplication
...
Fixes: lp:1750463
* https://bugs.launchpad.net/kicad/+bug/1750463
2018-02-20 13:00:57 +01:00
Maciej Suminski
be871c0f8c
Removed unused variables
2018-02-20 13:00:57 +01:00
Maciej Suminski
602acf1b7c
Fixed an assert
2018-02-20 13:00:57 +01:00
jean-pierre charras
07e939ed5a
Remove unused code.
2018-02-16 09:02:25 +01:00
jean-pierre charras
dded3429fd
Add missing hotkey to help menu
2018-02-15 09:23:42 +01:00
jean-pierre charras
c16af6f2ff
Pad properties dialogs: allow positive values for solder paste mask layer (unusual but existing case)
...
Footprint properties dialogs: add test for negative net clearance, similar to the Pad properties dialog test.
Add also a info message in dialogs, to avoid mistakes when setting the local clearances.
2018-02-14 17:52:21 +01:00
Jeff Young
2a9aa11422
Clean up Pad Properties layout
...
Fixes: lp:1684376
* https://bugs.launchpad.net/kicad/+bug/1684376
2018-02-12 11:10:41 -05:00
jean-pierre charras
ab73c80ee6
Dialog pad properties: minor fixes.
...
Fix incorrect text for non flipped footprints.
minor cosmetic enhancements.
2018-02-09 10:50:45 +01:00
Jeff Young
a6c436c2cd
Move Pad Properties flipped warning.
...
This makes it more visible and keeps it from messing up the layout
of the dialog.
Fixes: lp:1426756
* https://bugs.launchpad.net/kicad/+bug/1426756
2018-02-08 13:14:41 -05:00
jean-pierre charras
5d72aebd22
Fix code after renaming files
2018-01-29 16:40:22 +01:00
jean-pierre charras
270a63daac
DRAWSEGMENT, S_POLYGON shape: remove useless copies or conversion to std::vector<wxPoint> of SHPE_POLY_SET polygon shape.
...
Rename GetPolyPoint() to BuildPolyPointsList(), because GetPolyPoint() looks like an accessor, but it is not an accessor.
(Using it as accessor can creates a *very long calculation time* for very basic access to polygon vertices)
Fixes: lp:1745050
https://bugs.launchpad.net/kicad/+bug/1745050
2018-01-24 14:22:43 +01:00
jean-pierre charras
39dfc2c762
pad editor: add option to show pad in outline mode. better code and fix minor issues.
2018-01-13 17:09:01 +01:00
jean-pierre charras
79a9f401a3
Fix a minor issue in pad editor dialog: in GAL mode, the pad was sometimes shown in outline mode, sometimes in filled mode
...
Fixes: lp:1740668
https://bugs.launchpad.net/kicad/+bug/1740668
2018-01-12 19:58:32 +01:00
jean-pierre charras
90818afedd
Try to fix: pad editor: incorrect zoom scale of pad preview on some installs.
...
Fixes: lp:1670086
https://bugs.launchpad.net/kicad/+bug/1670086
2017-12-26 20:46:52 +01:00
jean-pierre charras
49cedf7950
Pad properties dialog: Disambiguate connection to zone options for custom shaped pads and predefined shaped pads
2017-12-21 10:23:37 +01:00
jean-pierre charras
766a9bec1e
Allows negative solder-mask margin in dialog pad properties.
...
However, this is not allowed for custom shapes pads, because it can create very strange solder mask shapes.
2017-12-16 20:43:47 +01:00
jean-pierre charras
7d24a576e4
Avoid drawing into a non valid gl context when closing the DIALOG_PAD_PROPERTIES dialog
...
Fixes: lp:1729843
https://bugs.launchpad.net/kicad/+bug/
2017-11-07 18:33:53 +01:00
jean-pierre charras
aefa0bf3b4
Avoid 0 sized grid in dialog_pad_properties.cpp
2017-11-07 10:18:13 +01:00
jean-pierre charras
107c895cfd
Pad editor: add tests to avoid incorrect values:
...
clearance must be >= 0
solder mask clearance must be >= 0
solder paste clearance must be <= 0
2017-10-20 10:25:17 +02:00
Maciej Suminski
985aed36c7
Moved FMT_UI & FMT_ANGLE macros to a separate header
2017-10-20 09:34:32 +02:00
Tomasz Włostowski
ac095b6724
pcbnew: tools for converting between custom-shaped pads and graphical shapes
2017-10-19 23:35:18 +02:00
jean-pierre charras
4b010ca129
Fix useless trailing and leading spaces in a few messages. Fix also capitalization in a few menus.
2017-10-02 09:25:48 +02:00
Maciej Suminski
6006b54dd9
Fixed a crash when editing a pad of a bottom layer module
...
Fixes: lp:1720007
* https://bugs.launchpad.net/kicad/+bug/1720007
2017-09-28 09:58:34 +02:00
jean-pierre charras
8d1d37beb0
Refinements in pad properties dialog
2017-09-20 16:14:23 +02:00
jean-pierre charras
7c1ac6fbcc
Refinements in pad properties dialog
2017-09-20 15:37:37 +02:00
jean-pierre charras
a43f3ab1fe
replace "BasicShape" by "Primitive" in code, a better name
2017-09-20 12:51:10 +02:00
Maciej Suminski
cca63801bf
Renamed D_PAD::{Set,Get}PadName() to D_PAD::{Set,Get}Name()
2017-09-19 18:23:50 +02:00
Maciej Suminski
85be485c34
Enable long names for pin numbers and pads
...
- pad names are stored as wxString instead of a char[4] & integer union
- removed pad name to string conversion functions
- fixed pad & pin properties dialog restrictions regarding the name
length
2017-09-19 18:19:49 +02:00
jean-pierre charras
e2d3fcec02
Add support for custom pad shape. Full support in DRC and PnS.
...
add option to use shape or convex hull as clearance area in zones.
simplify code to handle clearance area
2017-09-19 09:02:53 +02:00
Tomasz Włostowski
32185ddcd3
Multiple improvements concerning colors, configuration handling and legacy features in pcbnew:
...
- support for background color setting
- removed several global config settings (such as g_Drc_On)
- wrapped most of global config settings in PCB_GENERAL_SETTINGS class
- reorganized PCB general options dialog to clearly mark which options concern only the legacy canvas
- new GAL feature for legacy users: double-click (or E) to change track width available as an option.
Fixes: lp:1530543
* https://bugs.launchpad.net/kicad/+bug/1530543
Fixes: lp:1707145
* https://bugs.launchpad.net/kicad/+bug/1707145
2017-08-04 16:06:57 +02:00
jean-pierre charras
b8183a1aa5
Fix Coverity warnings
2017-05-30 09:07:18 +02:00
Jon Evans
3ec28e2acf
Refactor layer enumerations to all live in the same place
2017-03-30 16:01:48 -04:00
Maciej Suminski
fe4f02f5b9
Coverity fixes
...
CIDs:
- 153097
- 157120
- 157119
- 155148
- 155146
- 153103
- 153099
- 153095
- 153087
- 153086
2017-03-11 22:20:08 +01:00
Maciej Suminski
0dc88bb4cf
Changed COLOR4D defines to static consts
2017-02-22 17:35:00 +01:00
Jon Evans
a52250a91e
Change from EDA_COLOR_T to COLOR4D globally; arbitrary color support
...
eeschema now supports arbitrary colors for all object types, and
pcbnew does in GAL canvas. When switching from GAL to legacy canvas,
pcbnew will convert colors to the nearest legacy color.
2017-02-22 17:35:00 +01:00
jean-pierre charras
3f1bcf5be8
Pcbnew: Fix "push pad settings" segfault when no pad selected.
...
Fixes: lp: 1663915
https://bugs.launchpad.net/kicad/+bug/1663915
2017-02-12 08:09:21 +01:00
jean-pierre charras
0dc11936ad
Fixes: lp:1662702 (Pad Properties Dialog not responding to OK button when run from ModEdit toolbar)
...
https://bugs.launchpad.net/kicad/+bug/1662702
2017-02-08 09:27:52 +01:00
Diogo Condeco
75ffcbcef5
MACOS Setfocus and CancelButtonIssue moved into dialog_shim.
...
Setfocus now works on macos dialogs by setting DLGSHIM_USE_SETFOCUS.
This option is only enabled __WXMAC__ is defined.
FixOSXCancelButtonIssue() is now called inside DIALOG_SHIM::SHOW.
All other calls from within the dialogs were removed.
2017-01-29 23:51:35 +01:00
diogocondeco
b54e77e466
Macos SetFocus() and SetSelection moved into OnInitDialog
...
pcbnew/dialog_find and pcbnew/dialog_pad_properties modified so that SetFocus and SetSelection is handled once the dialog is initiated.
2017-01-23 12:30:59 -05:00
jean-pierre charras
b8b08dafd6
Code cleaning: remove pcbcommon.* which contains nothing really useful. The very few lines of code are moved to a better place.
2016-12-31 12:56:21 +01:00
Tomasz Włostowski
1c1f4e9a50
Refactoring of VIEW/VIEW_ITEM classes:
...
- Remove dependency of EDA_ITEM on VIEW
- VIEW_ITEM is now a pure virtual interface
2016-12-12 16:45:52 +01:00
Maciej Suminski
c4be379b31
Modified properties dialog to take advantage of BOARD_COMMIT class.
2016-09-12 11:50:06 +02:00
Maciej Suminski
09e0311d4e
Replaced Copy() method with operator=. Removed Copy() where default copy ctor was enough.
2016-09-12 11:50:06 +02:00
jean-pierre charras
fd42d76e2f
refinements in dialogs and OSX Cancel button fix. Dialog_pad_properties, pad viewer in GAL mode: better size of the drawing area. The scrollbars are now usable.
2016-07-19 11:16:16 +02:00
jean-pierre charras
01100a57e5
refinements in dialogs and OSX Cancel button fix
2016-07-18 18:28:02 +02:00
jean-pierre charras
e2d4118470
Eechema, Component editor: Fix a bug in Pin properties dialog: a parameter used to draw the pin in preview canvas was incorrect, due to code change in draw pin.
2016-05-19 18:38:36 +02:00
Chris Pavlina
4d77388216
Clean up wxValidator window association
...
wxValidator::SetWindow was used too many times due to me being a dunderhead who
can't read the docs.
2016-04-10 18:28:06 -04:00
Chris Pavlina
8325d6fdf0
Eliminate 0.1deg units in DIALOG_PAD_PROPERTIES
2016-04-10 18:14:28 -04:00
jean-pierre charras
f294834f4d
dialog_pad_properties: Some fixes. Dialog_edit_module_text: fix an issue related to displayed texts, which were deleted and replaced by the unit symbol only, and the name of the parameter was therefore lost.
2016-04-10 12:40:31 +02:00