Jeff Young
c11ee69499
Save 3D prefs after editing, and load some of them into FP Props.
Fixes https://gitlab.com/kicad/code/kicad/issues/8712
4 years ago
Marek Roszko
eff75b630f
Get rid of anonymous struct typedefs
We are using C++14 where there is no reason for this and is banned in C++20 under P1766R1. MSVC generates a warning under C++14 as a reminder.
4 years ago
Wayne Stambaugh
b579d004ad
3D Viewer: minor display options panel layout improvements.
4 years ago
Maurice
d9a11c30ef
3d viewer fix for 3d single material object Diffuse Only opacity
4 years ago
Jeff Young
3347531f70
Better zoom defaults for 3D viewer.
Also includes a fix for 3D model viewer in the file dialog for Retina
(and possibly other HIDPI) displays.
Fixes https://gitlab.com/kicad/code/kicad/issues/6144
4 years ago
Jeff Young
73b91a1a92
More sensible zoom defaults for 3D viewers.
Also fixes a bug where the model viewer in the file picker was using
only 1/4 of the screen on HIDPI displays.
4 years ago
Jeff Young
4aa8318dc2
More error message regularization.
4 years ago
Jeff Young
5c21f93803
Consistency in progress and error messages.
4 years ago
Jeff Young
89718dd3ba
Naming conventions.
4 years ago
Jeff Young
16047b7419
3D preferences bug fixes.
1) Make sure prefs get saved when closing parent frame.
2) Add camera projection mode to settings.
Fixes https://gitlab.com/kicad/code/kicad/issues/8110
Fixes https://gitlab.com/kicad/code/kicad/issues/8626
4 years ago
Seth Hillbrand
3269ca3201
Fix compile error on BSD
The cast here should actually be from '0' and not 'NULL' as we are
getting an integer value of 0 for the bbox_idx_count
Fixes https://gitlab.com/kicad/code/kicad/issues/8580
4 years ago
Jeff Young
5d9c1dd75a
Better names for 3D material properties rendering modes.
(Also restores the legacy behaviour of ignoring transparency in
diffuse mode.)
Fixes https://gitlab.com/kicad/code/kicad/issues/8437
4 years ago
Jeff Young
096e342386
Prefix TRACK, ARC and VIA.
4 years ago
Jeff Young
16b0147af8
Prefix DIMENSION types.
4 years ago
jean-pierre charras
6ab995d6a4
3d-viewer preferences: fix incorrect parent of a panel.
4 years ago
Jeff Young
44086ff2b2
Pull 3D preferences into KiCad preferences architecture.
Fixes https://gitlab.com/kicad/code/kicad/issues/5187
4 years ago
jean-pierre charras
1c3df973d6
Coverity warnings fixes.
5 years ago
luz paz
5f1e9bc8a7
Fix typos in source code
5 years ago
luz paz
f968fc8719
Fix source comment / documentation typos
5 years ago
Marek Roszko
d946d6e68f
Cleanup some pgm_base.h includes
5 years ago
Marek Roszko
8377ebb0e1
Fix msvc warnings
5 years ago
Marek Roszko
10e60acf34
Clean up including of board_design_settings.h
5 years ago
Ian McInerney
dc27079b71
cleanup tool event and tool action includes
5 years ago
Marek Roszko
4712d7a918
Remove a leaky wx/msgdlg.h include
5 years ago
Jon Evans
c9a660a80c
Rework JSON integration to speed up build
5 years ago
david-beinder
86add3bb85
Fix MSVC C4312 warnings when casting 32bit ints to pointer types on 64bit builds
5 years ago
Marek Roszko
25678ee00d
Fix msvc 16.10 build error
5 years ago
Marek Roszko
4df3cb912d
Remove another leaky wx/log.h header
5 years ago
Marek Roszko
24cb0e77eb
Fix MSVC builds after recent changes
5 years ago
Ian McInerney
d56251fdac
Remove universal include of wx.h in 3d viewer OpenGL file
5 years ago
jean-pierre charras
a06f965ffa
3Dviewer: fix incorrect drawing of a 3d model hovered by the mouse pointer.
Was due to a recent change in 3D code.
5 years ago
jean-pierre charras
d1061b9683
3D viewer: Fix broken handling of text thickness, thus creating erroneous item positions
Especially, texts having a not centered justification were shown with artifacts.
5 years ago
Jeff Young
7bcd524fbd
Fix typo.
5 years ago
Jeff Young
ac58a3f9f0
Add preference for 3d-model-highlight-on-rollover.
Fixes https://gitlab.com/kicad/code/kicad/issues/8349
5 years ago
Wayne Stambaugh
d2a7f81b10
Debugging improvements and clean up.
* Remove unused wxLogDebug calls.
* Add add application level character tracing to detect unhandled key
events.
* Catch unhandled exceptions in KiCad main event loop like single top
applications.
5 years ago
jean-pierre charras
0427bda768
Remove useless wx/wx.h include, that create sometimes compil warnings on msys.
wx/wx.h includes all wxWidgets .h files, and sometimes creates collision
names in #define between kicad and windows headers
Moreover, blindly including a lot of useless files is compil time consuming
5 years ago
Marek Roszko
03cf2b517f
Enum class PAD_ATTR_T
Renamed such that python stays the same
5 years ago
Marek Roszko
b243c2280d
enum class PAD_SHAPE_T
5 years ago
Marek Roszko
21fde9b629
enum class PCB_SHAPE_TYPE_T
5 years ago
Marek Roszko
a69256e15b
Remove extraneous #include
5 years ago
Ian McInerney
ecd9bf696e
Be consistent about using nullptr instead of 0
0 can be too easily overloaded into an int, so ensure we use nullptr
when we mean pointers.
5 years ago
Mario Luzeiro
e92dc96767
3D-Viewer: fix issue with solder mask
Fixes https://gitlab.com/kicad/code/kicad/issues/8272
5 years ago
Mario Luzeiro
cdc8fd3804
3D-Viewer: improve edge texture clamping of end segments
Fixes https://gitlab.com/kicad/code/kicad/issues/8245
5 years ago
david-beinder
e0f69ad28b
3D viewer: Fix gap between plating and annulus copper
Hide transition by ending layer copper withing the annulus of the cylinder. Also always use hole wall thickness and set more realistic solder mask thickness
5 years ago
Wayne Stambaugh
2ae264751f
Rename class_board_stackup.{h|cpp} to board_stackup.{h|cpp}.
5 years ago
Mikolaj Wielgus
744e70df36
3D Viewer: Fix mouse panning in orthographic projection mode
Fixes https://gitlab.com/kicad/code/kicad/issues/5561
5 years ago
Jon Evans
c1573744be
Lock project files when opening; open locked projects read-only
Also clean up an include-what-you-use problem
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8037
5 years ago
Ian McInerney
0a0935e0f3
Remove ACTIONS::TranslateLegacyId and TOOL_DISPATCHER::DispatchWxCommand
After commit 9535153f9e there were no more IDs inside the legacy ID
system. Therefore the entire system for dispatching and looking up
the legacy ideas and handling those events can now be removed and
the tool dispatcher simplified (it no longer needs to know about
the ACTIONS class).
5 years ago
jean-pierre charras
23667fc4c4
3D viewer: make solder paste layer thickness bigger than the mask layer.
Some specific footprints need shapes on paste layer covering the mask layer,
so ensure these shapes are visible.
Fixes #8041
https://gitlab.com/kicad/code/kicad/issues/8041
5 years ago
Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
5 years ago