Jon Evans
c04e19f9ac
Include optimization: move some things from common.h to point-of-use
5 years ago
jean-pierre charras
c08f74168c
3D viewer: BOARD_ADAPTER::createPadWithClearance() add missing handling of SH_ARC shape.
5 years ago
Jon Evans
18037e2f65
Rework bitmap system to load from archived PNGs
Bitmaps are now identified by an enum class instead of by pointers.
Bitmap loading and caching is now handled by a class in common, and
we no longer compile most bitmaps into the binary, so there is no
longer a bitmaps static library.
Instead, bitmaps are archived to a .tar.gz file which is installed
in ${KICAD_DATA}/resources/images.tar.gz
The source PNGs are checked in to Git as the original CPP files were,
so that people can build without the required dependencies to convert
SVGs to PNGs.
Initial support is also added for dark theme icons, although this
is not yet exposed in the GUI.
Stubs are present for multi-resolution image resources, but this is
not fully-baked yet and could use some refinement.
5 years ago
jean-pierre charras
fe02155b5a
3D viewer, DIALOG_3D_VIEW_OPTIONS_BASE: fix minor wxWidgets alerts and Add
minor cosmetic changes.
Fixes #7846
https://gitlab.com/kicad/code/kicad/issues/7846
5 years ago
Dominik Wernberger
e2aa7be4b3
Added a lot of consts and refactored a few lines
5 years ago
Jon Evans
720147d272
Remove transitive inclusion of bitmaps.h
5 years ago
Seth Hillbrand
283d176cdc
Use std::locale::classic() globally
This is a better alternative when imbuing streams
5 years ago
kamp
0a9a9d625e
Fix BBOX_3D documentation
5 years ago
Marek Roszko
907e282347
Silence some msvc warnings
- exception variables that were unused
- RAYSEG2D improperly foward declared with class instead of struct
- unused vars
5 years ago
Jeff Young
66b33834b5
Always enable save; move dirty bit to asterisk in title bar.
Also unifies PCB Editor and Schematic Editor names with other
locations in the GUI (which were still Pcbnew and Eeschema).
Fixes https://gitlab.com/kicad/code/kicad/issues/7587
Fixes https://gitlab.com/kicad/code/kicad/issues/7594
5 years ago
Jeff Young
b6a7981e62
Write changes back to grid after using file explorer.
Fixes https://gitlab.com/kicad/code/kicad/issues/7361
5 years ago
Marek Roszko
b609c7dcd6
Kick the osx specific path helpers into PATHS
5 years ago
Marek Roszko
2370ca1b0e
Minor code clean, standard "new" does not need to be null checked
Because it will bad_alloc exception you instead :D
Silence PVS Studio V668 Warnings
5 years ago
Marek Roszko
f2552d7bc1
Tweak the reported last render message slightly
5 years ago
Marek Roszko
f88be65825
Remove mention of FPS
We are not a real time rendering engine
5 years ago
Marek Roszko
36d8ca7954
Fix statusbar conflict in 3d viewer
Fix #7544
5 years ago
Marek Roszko
872184fe8b
Revert "Bump minimum required CMake version to 3.10"
This reverts commit a475f45753 .
5 years ago
Simon Richter
a475f45753
Bump minimum required CMake version to 3.10
This allows us to remove even more workarounds
6 years ago
Seth Hillbrand
624a231cc0
Remove unused line width option
You had to set the line width in the SVG export dialog in order to
change the displayed line width in the 3d viewer. The line width did
not affect the SVG export. Removing in favor of the Board design
settings for line widths
5 years ago
Roberto Fernandez Bautista
9aedeae5c3
Don't log error messages when using the clipboard
wxClipboard::GetData()and wxClipboard::SetData() both log a "wxLogSysError" error-level message (see for example: https://github.com/wxWidgets/wxWidgets/blob/v3.1.4/src/msw/clipbrd.cpp#L703 ). This logged message gets displayed as a messagebox to the user.
The logging can be disabled temporarily by creating a wxLogNull object. See https://docs.wxwidgets.org/3.0/classwx_log_null.html
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6956
5 years ago
Marek Roszko
bf2e7215a5
const SGPOINT::GetPoint args
5 years ago
Jeff Young
e72262a007
Don't render un-enabled layers.
Fixes https://gitlab.com/kicad/code/kicad/issues/7313
5 years ago
Marek Roszko
914568f1a0
Fix macos using the wrong 3d plugins path
5 years ago
Marek Roszko
daf9c4f319
Centralize the 3d cache path
5 years ago
Marek Roszko
7b5397f81f
Move PLUGINDIR to the make config.h
5 years ago
Marek Roszko
14327f3708
Cleanup the 3d plugins paths a little bit
5 years ago
Wayne Stambaugh
6ab1144ea3
Fix broken Doxygen comment specifiers.
Please note, ///> is not a valid Doxygen comment specifier. ///< is the
correct specifier to use for single line or short Doxygen comments.
5 years ago
Michael Kavanagh
b90eabd68b
Icons: out with the old, in with the new
+ remove icons where they dont make sense or are duplicated within the
same context
5 years ago
Michael Kavanagh
50e22de3ba
Remove empty option from 3D Viewer dropdown
5 years ago
Roberto Fernandez Bautista
49f454e32b
Line width already factored into polygon shapes
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7130
5 years ago
Jeff Young
ee6ec2c35c
Line width already factored in to rectangle polygon.
Fixes https://gitlab.com/kicad/code/kicad/issues/7113
5 years ago
Wayne Stambaugh
2d64613bbb
Coverity fixes.
Reports 314745, 316271, and 316269.
5 years ago
Wayne Stambaugh
6f0319e29f
Fix potential bug in 3D model selection dialog.
Calling EndModal or EndQuasiModal will cause KiCad to hang if the dialog
was not opened in the same manor. The modality of the dialog must be
checked and the appropriate end method must be called or emulate a button
click which allows the default dialog close method to be called to handle
shutting down the dialog correctly.
5 years ago
Seth Hillbrand
26524ef41e
Select model on double-click
Fixes https://gitlab.com/kicad/code/kicad/issues/7070
5 years ago
Jeff Young
751fdbf278
Simplify layout & terminology in 3D settings dialog.
Fixes https://gitlab.com/kicad/code/kicad/issues/6659
5 years ago
Wayne Stambaugh
926cc3a00d
3D Viewer: more code cleaning and naming improvements.
5 years ago
jean-pierre charras
86be755c83
Fix compil warning: do not use class instead of struct in forward declarations
5 years ago
Wayne Stambaugh
1c7a5c46e5
3D Viewer: member variable and method naming improvements.
A few build improvements thrown in for a good measure.
5 years ago
Michael Kavanagh
a7286ccc34
Icons: remove functional duplicate
5 years ago
Wayne Stambaugh
710e621c6a
3D Viewer: remove all instances of "c" prefix from file names.
5 years ago
Michael Kavanagh
791d1f513c
Icons: fix some 3D viewer icons
- remove old palette icon in favour of new one
- use dark grey in new icon (instead of light grey)
- use generic gear for 3D display options
5 years ago
Wayne Stambaugh
8416c1fc37
3D Viewer: remove all instances of "C" prefix from object names.
5 years ago
Seth Hillbrand
8de9cff4e0
Change environmental variables to human-readable
Versions specific variables that may point to objects that change
through versions, allowing multiple KiCad versions to operate correctly
(even on MSW) on the same machine.
5 years ago
Jeff Young
5ea88c897a
Go back to AuiMgr strategy for 3D-viewer infobar.
There some issue with using the 3D canvas as a parent in the new
strategy.
5 years ago
Jeff Young
0b6c524dda
Missing file from last commit.
5 years ago
Jeff Young
ef25c78a04
Separate polygonization error from chaining error.
This way we can report anything that doesn't exactly chain while still
applying a fudge factor for our own stuff.
Fixes https://gitlab.com/kicad/code/kicad/issues/1795
5 years ago
Dominik Wernberger
caf300aa33
Fix memory leak
5 years ago
Michael Kavanagh
eb1f07bade
Icons: standardise `export_png` to match set
5 years ago
Jeff Young
47ea51ec34
Allow both aui-manager-based infobars and window overlay infobars.
5 years ago
Wayne Stambaugh
f311831c27
Coverity fixes.
280252, 314742, 314745, 314747, 314755, 314756, 314757, 314758,
314935, 314936
5 years ago