Wayne Stambaugh
5c8f4697ca
Common folder housekeeping part 1.
9 months ago
Jeff Young
beda29856d
Hide DesignBlock Migrate Libraries button (for now).
There aren't (yet) any legacy libraries to migrate.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19360
10 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
10 months ago
Jeff Young
753d385473
Reduce dependency on dynamic_cast.
Also switches to checking __clang__ instead of __WXMAC__.
11 months ago
Lucas Dumont
bb9a329ee4
Avoid wxWidgets alert when removing bottom to top
Fix assert ./src/generic/grid.cpp(5216): assert "idx >= 0 && idx < m_numRows" failed in GetRowPos(): invalid row index happening when selecting >= 3 row starting from the bottom last row. Even if not all row are selected.
This happen because wxGrid::DeleteRows will try to update the selected row between each call.
1 year ago
Mike Williams
2eec2489ea
design blocks: move globals behind accessor functions
Prepare for lazy loading
1 year ago
Mike Williams
b2dda11fae
design blocks: move table manager to common dialogs
Also add to schematic editor preferences.
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
Seth Hillbrand
7214ef1f14
Remove basic masking class map_string_utf8
This is just std::map<std::string, UTF8>, using the class just masks
what it is and adds unclear functions.
1 year ago
jean-pierre charras
91ad3d2a08
Pcbnew, Migrate libraries: do not stop migration when a footprint cannot be converted.
- Especially, in altium library migration, just skip not exportable footprints
- Display a list of skipped footprints (using a HTML Reporter)
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
b7161181e8
Hidden footprint libraries are not yet supported.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18183
1 year ago
jean-pierre charras
814e54af9b
Fix minor compil warnings
1 year ago
Seth Hillbrand
ae610bbe85
ADDED: Reset option for Library tables
This re-shows the option to reset the global library table to its
default, empty or specified state
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2309
1 year ago
Alex Shvartzkop
16e3692e71
Build time optimizations.
2 years ago
Roberto Fernandez Bautista
a4a99e3aff
kicad_cli: Allow upgrade of legacy and non-kicad footprint libraries
2 years ago
Jon Evans
7b0bb59b37
Remove hard-coded versioned env vars in most places
2 years ago
Wayne Stambaugh
92c2ddf77a
Do not parent dialogs to non top level windows in panels or widgets.
2 years ago
Wayne Stambaugh
2b1bf369f2
Do not parent file or directory dialogs to panels.
Parenting dialogs to child windows of top level windows is most likely
not defined behavior. It's also likely that this behavior varies across
platforms so it' best not to risk doing it. wxWidgets does not check if
the dialog parent is actually a top level window. There may be other
places we are doing this with our message dialogs so we should do an
audit.
2 years ago
Jeff Young
85f0dd279c
Push fileFilter callback function down a level.
(The GRID_CELL_PATH_EDITOR is shared by the whole column.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16707
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13959
2 years ago
Alex Shvartzkop
c8a0a58683
Fix PCB_FILE_T usage in FP_LIB_TABLE_GRID.
2 years ago
Alex Shvartzkop
4fac43d696
Fix variable substitutions in library tables.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16601
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
Marek Roszko
9a890cdba9
Kick the wildcards and file exts into a static class, export it from kicommon
2 years ago
Ian McInerney
f8688a922d
Unify IO library descriptors
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
Ian McInerney
be9c3b08b5
Fix library table file filters
The schematic librayr table was missing the Kicad Sexpr filter, and also
the filter inside the grid editor was never updated when the library
plugin type was changed in the grid, so a library of the new type could
not be selected.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16278
2 years ago
Alex Shvartzkop
6c21e0607b
Use wxFileName::Mkdir instead of wxMkDir.
wxMkDir is a CRT wrapper that doesn't actually return bool.
2 years ago
Jeff Young
6c6a7cf862
Provide a callback for supplying file filters just-in-time.
This allows us to make them dependent on the current plugin type in
the fp lib table.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13959
2 years ago
Wayne Stambaugh
6269453416
Coverity warning fixes.
2 years ago
Jon Evans
eb5b3db063
Add bitmap bundle support to BITMAP_SCALE
Change a bunch of buttons and toolbars to use it
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14119
2 years ago
Marek Roszko
6d3b846eb5
Add more missing destructor event cleanups
2 years ago
Marek Roszko
6b12a12b3e
On second thought rename PROJECT_PCBNEW to PROJECT_PCB
2 years ago
Marek Roszko
7e8b18035f
Eliminate the conditional pcbnew/cvpcb definition of PROJECT
2 years ago
Alex Shvartzkop
ff49d5ada9
Fix ambiguous overloads on wx 3.3
2 years ago
Alex Shvartzkop
a5a93f808e
Populate symbol library type choices from SCH_IO_MGR list.
2 years ago
Seth Hillbrand
fa15f8aa0c
Fix compile error
wxMkDir's mode is required for linux but not windows (yay)
2 years ago
Roberto Fernandez Bautista
32b6deb8b1
ADDED Migrate libraries button in Footprint Library Table
Allows easy migration of legacy and non-KiCad footprint libraries
2 years ago
Seth Hillbrand
db8e15ce88
Require wxWidgets 3.2
Removes old defines and work arounds for earlier wx versions and adds a
CMake requirement to use at least 3.2 (or the minimum matching wxPython
version)
2 years ago
Alex Shvartzkop
76e0d5981d
Import system refactor for PCB plugins.
2 years ago
Jon Evans
4c4bbdc8f3
Stricter API for LIB_TABLE
Prevent nickname map or row parent getting out of sync
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15315
2 years ago
jean-pierre charras
639da0eb5a
Fix a wxWidgets alert when deleting the last entry in a lib table.
2 years ago
Jeff Young
f3d3ade1dc
Increased mutex safety.
Don't even query the size() without having at least a shared_lock.
*May* prevent KICAD-4S, but seems unlikely.
2 years ago
Roberto Fernandez Bautista
a119bd604d
Refactor: Move DIALOG_PLUGIN_OPTIONS to common and use enum for event ID
2 years ago
Jeff Young
7252c7471c
Use enums for column ids.
(The nickname, in particular, is no longer column 1.)
Fixes https://gitlab.com/kicad/code/kicad/issues/14291
3 years ago
Roberto Fernandez Bautista
6f5321c481
ADDED: CADSTAR .cpa footprint libraries
3 years ago
Marek Roszko
dffd2da8c8
Fix the shared_lock added and micro-opt the reindex
3 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
Jeff Young
2a5bb71fbd
ADDED operating point text variables for labels and symbols.
ADDED formatting for cursors and operationg points
Also fixes a bunch of bugs to make the new cursors work with .ac sims.
Fixes https://gitlab.com/kicad/code/kicad/issues/11253
Fixes https://gitlab.com/kicad/code/kicad/issues/6965
3 years ago