Marek Roszko
16e3e59495
Split out arrayDim and MIRROR templates from macros.h
These were not macros
5 years ago
Jeff Young
ef3b7052e0
Remove layer nag dialogs and just ignore non-shapes on Edge_Cuts.
Fixes https://gitlab.com/kicad/code/kicad/issues/5812
5 years ago
Ian McInerney
5482307ac8
Allow edge cuts to be drawn in the footprint editor
6 years ago
Wayne Stambaugh
564f363c57
Pcbnew: fix user defined layer bugs.
5 years ago
Wayne Stambaugh
188232de6f
Pcbnew: add user defined layers and allow all layers to have user names.
This changes the file format. All previous copper layers that had a user
defined name are forced back to the canonical name and the user defined
name is stored as an optional quoted string in the layer definition and
only used for UI and plotting purposes. All copper object layer names
are now the canonical name for internal file use.
ADDED: Nine new user definable non-copper layers that can be optionally
added to the board layer stack.
CHANGED: All board layers can now be renamed by the user.
CHANGED: User defined layer names can now contain space characters.
Fixes https://gitlab.com/kicad/code/kicad/issues/1969
5 years ago
Jon Evans
8945f8865b
Add PCB_LAYER_IDs to LayerName() and reformat for readability
LayerName() can now be called to get the default, translatable name
for any board layer. LSET::Name() is used for the untranslated
names required for parsing board files.
5 years ago
Jon Evans
f5a6492f85
Fix load/save of layer presets
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5322
5 years ago
Wayne Stambaugh
ede39780e2
Remove all debugging output that cannot be disabled.
The use of printf, wxLogDebug, and std::err/std::out causes excessive
debugging output which makes finding specific debugging messages more
difficult than it needs to be.
There is still some debugging output in test code that really needs to
be moved into a unit test.
Add debugging output section to the coding policy regarding debugging
output.
5 years ago
Jon Evans
bd14f8a82a
ADDED: New appearance control widget for PcbNew
Featuring:
- Layer view presets
- Per-type opacity for tracks, vias, pads, zones
- Net and netclass color and visibility controls
CHANGED: Simplified object visibilty controls
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1951
Fixes https://gitlab.com/kicad/code/kicad/-/issues/1981
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2003
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2173
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2254
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4325
5 years ago
Jeff Young
9716c62e32
Performance enhancements for PCBNew scrolling and zooming.
Fixes https://gitlab.com/kicad/code/kicad/issues/5136
5 years ago
jean-pierre charras
8226e5f0e2
Minor fix: add Fab layers to the assembly layers list.
6 years ago
Stefan
7e6b2211e0
Add Assembly pcbview to pcb_layer_widget
6 years ago
Ian McInerney
13b6028e1b
Refactor all math into a new kimath library
* Split up the thirdparty code into the thirdparty folder (#3637 )
* Create a new kimath static library containing all the math functions
This is part of cleaning the build system for #1906 .
6 years ago
jean-pierre charras
3543de039b
More about code cleaning.
Remove useless includes and dead code
6 years ago
Mark Roszko
d4dee3c5a0
Inner loop iterator should be size_t as well
6 years ago
Mark Roszko
a418242ca7
Prevent oob on LSET::FmtHex call when BITSET size is not a multiple of 4 (which it isn't usually)
6 years ago
Jon Evans
2ea565473f
LSET: Prevent assertion in MSW when size is not a multiple of 4
6 years ago
Seth Hillbrand
4d2e953f42
Cleanup: Replace C-only deprecated headers
This replaces headers deprecated by C++14 with their equivalent
replacement
6 years ago
Seth Hillbrand
1e5ba6f1b1
Replace DIM() macro
The standard DIM() macro was not typesafe as it happily deferred errors
to runtime that can be caught at compile time. Replacing it with a
generic C++11 constexpr allows for typecasting, comparison and compile
time error checking.
7 years ago
Jeff Young
78daaa8825
Allow cancel, delete or rescue when opening pcbs with undefined layers.
Fixes: lp:1796596
* https://bugs.launchpad.net/kicad/+bug/1796596
7 years ago
Jeff Young
d7ff3f8af5
Allow text on margin layer.
7 years ago
Jeff Young
a860a8db54
Enable user layers in footprint editor.
Fixes: lp:1746279
* https://bugs.launchpad.net/kicad/+bug/1746279
7 years ago
Jeff Young
d10bfb13d6
Re-enable text layers now that DRC & zone fills are fixed.
Fixes: lp:1788268
* https://bugs.launchpad.net/kicad/+bug/1788268
7 years ago
Andrew Zonenberg
60a55d75fa
Split prohibited text layers for footprints and the rest of the PCB
Fixes: lp:1788268
* https://bugs.launchpad.net/kicad/+bug/1788268
7 years ago
Jeff Young
aab97c8385
Consolidate design rules UI.
Implement new Board Setup paged dialog which includes:
Layers Setup
Design Rules
Solder Mask & Paste
Text & Drawings
Moves line width and text properties to a layer-class-based
system. Renames unlocked to upright (which also reverses the
logic).
New Edit Text and Graphic Properties dialog which replaces
Edit Footprint Text and adds layer-class-based editing and the
italic, upright and visibility properties.
Adds Import Settings functionality which allows settings to
be imported from another project at page granularity.
Also UNIT_BINDERizes the dialog and adds editing of pcb text.
Fixes: lp:1731952
* https://bugs.launchpad.net/kicad/+bug/1731952
Fixes: lp:1743464
* https://bugs.launchpad.net/kicad/+bug/1743464
Fixes: lp:1664761
* https://bugs.launchpad.net/kicad/+bug/1664761
Fixes: lp:1753362
* https://bugs.launchpad.net/kicad/+bug/1753362
Fixes: lp:1545427
* https://bugs.launchpad.net/kicad/+bug/1545427
Fixes: lp:1753775
* https://bugs.launchpad.net/kicad/+bug/1753775
Fixes: lp:1777692
* https://bugs.launchpad.net/kicad/+bug/1777692
Fixes: lp:1780670
* https://bugs.launchpad.net/kicad/+bug/1780670
Fixes: lp:1519601
* https://bugs.launchpad.net/kicad/+bug/1519601
(cherry picked from commit 3944a5e)
8 years ago
Jeff Young
ae2cb331b1
Merge PCBnew text edit dialogs.
(cherry picked from commit 63b7738)
8 years ago
Jeff Young
0010ad37d1
In-place editing for footprint TEXTE_MODULEs.
Fixes: lp:1102168
* https://bugs.launchpad.net/kicad/+bug/1102168
Fixes: lp:1779913
* https://bugs.launchpad.net/kicad/+bug/1779913
(cherry picked from commit 83781ab)
8 years ago
Seth Hillbrand
eeb273faa0
Partial revert of 3804f6 to correct assert change
ToLayerID function converts to PCB_LAYER_ID and needs to check against
that enum instead of GAL_LAYER_ID.
8 years ago
Jeff Young
e1c01e1e7f
Render transparent layer colors over the correct background.
This fixes the layer comboboxes, the copper zones properties
dialog, and the differental-pair icon in the htoolbar.
Fixes: lp:1741049
* https://bugs.launchpad.net/kicad/+bug/1741049
8 years ago
Jon Evans
6eb5733a0b
LSET::UIOrder and LSET::Technicals now match layer widget order
Fixes: lp:1673792
* https://bugs.launchpad.net/kicad/+bug/1673792
8 years ago
jean-pierre charras
b4a59eb96d
Fix minor issues in DIALOG_KEEPOUT_AREA_PROPERTIES.
Fix keepout zone creation in legacy canvas.
Add a comment in lset.cpp
8 years ago
Oliver Walters
363fc598c0
Fixed bug in FlipLayerMask
- Offset for internal copper layers was incorrect
- Incorrect mask was used
8 years ago
Oliver Walters
0f6ec7632b
Enable multi-layer for keepout zones
- Load / save from PCB file correctly
- Doesn't display properly yet
- Keepout only actually applies to one layer (for now)
8 years ago
Jon Evans
3ec28e2acf
Refactor layer enumerations to all live in the same place
9 years ago
Chris Pavlina
200c3f78a0
LSET: undefined behavior in va_start()
9 years ago
jean-pierre charras
6edee2ae1d
Prepare Plot Gerber file to include advanced aperture and net attributes.
This option is not yet activated because the net attributes are not yet fully fixed by Ucamco, in Gerber file format specifications.
(To activate it, see dialog_plot.cpp, line 43)
9 years ago
jean-pierre charras
9d994663f1
Fix Bug #1527446 (Flipping a block in pcbnew doesn't flip inner layers nor their connected microvias).
Also fix a few typos and remove dead code.
10 years ago
unknown
84a985f8af
Pcbnew: Commit patch (with very minor changes) about SVG file export with the layers ordered from bottom to top. ( bug 1286646 ), from Thiadmer Riemersma.
11 years ago
Dick Hollenbeck
d6a8696a99
typo on B_CrtYd, F_CrtYd, B_Fab, F_Fab
12 years ago
Lorenzo Marcantonio
89f14906a4
- Added the courtyard/fabrication layer to the layer combo and layer
panel
- Corrected handling of scrollability in layer panel (fixes 1336996)
12 years ago
Dick Hollenbeck
06bf0821b9
fix LSET() constructors, formatting
12 years ago
Dick Hollenbeck
add4d5eb6f
re-work the LSET(int,...) constructor
12 years ago
Dick Hollenbeck
ad750defb6
LAYER_ID work
12 years ago
Dick Hollenbeck
8b6c569aef
copyright
12 years ago
Dick Hollenbeck
b76d0c533b
add lset.cpp
12 years ago