Jeff Young
ddae7d5437
Don't leak design blocks.
(cherry picked from commit 9ef0e7fb01 )
6 months ago
Jeff Young
5a6793f9fb
Formatting.
(cherry picked from commit cedb97c4c3 )
10 months ago
Jeff Young
9083c9e6ab
Remove dead code.
10 months ago
Wayne Stambaugh
5c8f4697ca
Common folder housekeeping part 1.
11 months ago
Jon Evans
6858561731
Fixes for building against recent wxWidgets 3.3
11 months ago
Ian McInerney
6be3401b92
Add more global extensions and switch archiver to use them
11 months ago
Seth Hillbrand
0b2d4d4879
Revise Copyright statement to align with TLF
Recommendation is to avoid using the year nomenclature as this
information is already encoded in the git repo. Avoids needing to
repeatly update.
Also updates AUTHORS.txt from current repo with contributor names
11 months ago
Jeff Young
753d385473
Reduce dependency on dynamic_cast.
Also switches to checking __clang__ instead of __WXMAC__.
12 months ago
Mike Williams
f25c5756dc
design blocks: look for correct extension when doing PCM dir traversal
1 year ago
Mike Williams
2eec2489ea
design blocks: move globals behind accessor functions
Prepare for lazy loading
1 year ago
Mike Williams
2c99bc6c6d
new feature: Schematic Design Blocks
Added to advanced config, default to off.
EnableDesignBlocks=1 in kicad_advanced to test
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/2263
2 years ago
Jeff Young
431087fc7c
Don't deadlock when adding rows.
1 year ago
Jeff Young
0f099ac65e
Use lock when clearing and loading libTables.
Also make sure it's re-indexed after loading.
1 year ago
Jeff Young
9e1330184c
Patch another dynamic_cast-across-compile-unit-boundaries issue.
2 years ago
Jeff Young
a53bc9e026
Attempt to prevent KICAD-YP.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17560
2 years ago
Lucas Dumont
13c647ef6f
Fix resources leak reported by coverity
For unique_ptr, release only set the ownership to null, but don't free the resource behind. On the other hand, reset do.
Closes Coverity ID 483269
Closes Coverity ID 471974
Closes Coverity ID 471973
2 years ago
Jon Evans
7b0bb59b37
Remove hard-coded versioned env vars in most places
2 years ago
Ian McInerney
f2702b223c
Introduce base IO_MGR class and unify RELEASER objects
The IO_RELEASER is a thin-wrapper around a std::unique_ptr, but done
this way to allow easier addition of a custom deleter in the future if
something needs to call back into the IO_MGR.
2 years ago
Ian McInerney
743e9d669a
Push library management into IO_BASE
2 years ago
Ian McInerney
d8b47d18d3
Initial rename of file plugin infrastructure components to IO
2 years ago
Marek Roszko
121ea99824
Move the settings path to PATHS to allow shifting other classes into kicommon
2 years ago
jean-pierre charras
1c11a2c7bd
Capture exceptions thrown by FP_LIB_TABLE::FindRow() in some places.
FindRow() exception is unfortunately not captured in all places using it.
The result is the application closes.
2 years ago
qu1ck
2975f53647
PCM: auto reload global libs after dialog is run
This adds Reset() method to KIFACE to reload global libs stored in
global static vars.
Also refactors some lib reload code in various frames to have
common MAIL_RELOAD_LIB handler.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12500
3 years ago
Jon Evans
d04cda35c5
Handle hidden attribute in fp-lib-table
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13689
3 years ago
Jeff Young
51293858b3
Allow empty lib tables.
Fixes https://gitlab.com/kicad/code/kicad/issues/13653
3 years ago
Seth Hillbrand
442ee52905
Add versioning to lib tables
Sets lib table version to allow easier migration between versions
3 years ago
Seth Hillbrand
efe12f2da5
Cleanup variable naming
Also remove ancient/unused code for lazy resolving
3 years ago
Seth Hillbrand
a9ed47f06c
Update KICAD6->KICAD7
3 years ago
Marek Roszko
0ff32d20cd
wxS more things
3 years ago
Marek Roszko
ac94995f70
Some more wxS
3 years ago
jean-pierre charras
bd28bd7a00
fix a few compil warnings
3 years ago
qu1ck
6ebb3baa3b
PCM: autoload libs from installed packages to global lib tables
Fixes: https://gitlab.com/kicad/code/kicad/-/issues/9713
4 years ago
Jeff Young
b84d1456d5
KIFACE_I -> KIFACE_BASE.
4 years ago
Wayne Stambaugh
bcd6bddfd4
Start expunging NULL.
Given that KiCad is a C++ project, we should really be using nullptr
instead of NULL.
4 years ago
Jeff Young
a1dfc36233
More error message regularization.
4 years ago
Jeff Young
062c4fda62
More error message regularization (and translatability improvements).
4 years ago
jean-pierre charras
6eb2e2a6e3
Fp editor: do not change item UUIDs when loading a footprint from library.
Fixes #8066
https://gitlab.com/kicad/code/kicad/issues/8066
5 years ago
Wayne Stambaugh
1eee72ec65
Fix library tree behavior when duplicate project table entry is disabled.
Fixes https://gitlab.com/kicad/code/kicad/issues/5438
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
1c0d4ac02d
Simplify some error messages.
5 years ago
Jeff Young
bdbb68f813
MODULE -> FOOTPRINT.
5 years ago
Jeff Young
84dd5108ba
Remove some "class_" prefixes from files.
5 years ago
Ian McInerney
31e626f279
Cleanup creation of all our smart pointers
5 years ago
jean-pierre charras
f6b4b66a86
Avoid include wx/wx.h in many files that do not actually use this include.
Including wx.h includes the full set of wxWidgets include files, that is not good,
and can create some conflicts with some Windows headers on msys2.
5 years ago
jean-pierre charras
36bc44e6d7
more cleanup about removing useless include
5 years ago
Jeff Young
dd0f33bcbb
Get rid of extraneous char conversion.
5 years ago
Jeff Young
33480ecad1
Show all symbol libraries by default.
Also fixes an issue where the plugin wasn't getting reset if the
library type was changed.
5 years ago
Jon Evans
e59a3d981e
Implement a new settings framework across all of KiCad
CHANGED: Settings are now stored in versioned sub-directories
ADDED: First-run dialog for migrating settings from a previous version
CHANGED: Settings are now stored as JSON files instead of wxConfig-style INI files
CHANGED: Color settings are now all stored in a separate settings file
CHANGED: The symbol editor and footprint editor now have their own settings files
CHANGED: Color settings are no longer exposed through BOARD object
CHANGED: Page layout editor now uses Eeschema's color scheme
Settings are now managed through a central SETTINGS_MANAGER held by PGM_BASE.
Existing settings will be migrated from the wxConfig format on first run of each application.
Per-application settings are now stored in one class for each application.
6 years ago
Jeff Young
e269b5d1b9
Workaround an issue where a throw terminates (even when there's a catch for it).
You can trigger it before this fix by running Cvpcb when a .kicad_mod file is
incorrectly set as "Legacy" in your footprint table.
6 years ago
Jeff Young
20036f8105
Add FootprintExists() which can be more careful about FS differences.
(And in particular, MSW's case-insensitive FS.)
Fixes: lp:1835999
* https://bugs.launchpad.net/kicad/+bug/1835999
6 years ago