Jeff Young
0bcf6000a4
Formatting.
10 months ago
Jeff Young
6ff79ae78a
Fix typo.
1 year ago
Jeff Young
94f995c49e
Reduce dependency on dynamic_cast.
(Especially where it is no-worky on MacOS.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17245
1 year ago
Jeff Young
535aca7a8d
Remove redundant tooltips.
Also fixes grammar and capitalisation in a few tooltips.
Also standardises some terminology, such as
"Add" vs "Draw"/"Place" and "Assignment" vs "Association".
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17694
1 year ago
Tomasz Wlostowski
9963b9dd9f
TOOL_INTERACTIVE: only create the context menu when we are running in GUI mode
TOOL_MENU::m_menu was unconditionally created by the TOOL_INTERACTIVE constructor, resulting in crashes if
we wanted to run the TOOLs in headless mode, e.g. in unit tests. This commits makes
the creation of the menu object dependent on Pgm::IsGui().
1 year ago
Jeff Young
b8819b4636
Another reduction in asserts.
1 year ago
Jeff Young
02bc093b55
Use consistent sorting for footprint libs.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17731
1 year ago
Jeff Young
fa78c24a16
Formatting.
1 year ago
Jeff Young
a99377c1ec
The user can cancel the opening of many editors.
Don't play dice with the devil.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17989
1 year ago
Alex Shvartzkop
16e3692e71
Build time optimizations.
1 year ago
Marek Roszko
94847e89c3
Static cast some more enum usage
2 years ago
Jeff Young
bf2b3b0b0f
Deconflict some LIB_TREE_ITEM APIs so they can remain non-const.
(The non-const is required by FOOTPRINT_INFO, which must load
footrpints to get some of the data.)
2 years ago
Marek Roszko
83ef5fd7d6
Move PGM_BASE to kicommon
2 years ago
Jeff Young
72ba31ba27
Pass symbol's netlist to footprint preview widget.
This allows us to show the pin functions on the corresponding
pads.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17349
2 years ago
Jeff Young
9ff66d0e71
Don't capture references to local variables for CallAfter.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16934
(cherry picked from commit 9d40374baf
)
2 years ago
Marek Roszko
6a37f99e94
Fix crash if we exit lib table setup
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16917
2 years ago
Jeff Young
7cc663ad77
Schematic parity checking for CLI DRC.
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
dd933b7d0e
Update CERN copyrights
2 years ago
Ian McInerney
171458a27b
Introduce action friendly names
Friendly names can be used to display action information that is clearer
in non-hierarchical contexts (e.g. not in menus).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8075
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
bee6e6be01
AddMenuLanguageList should live in EDA_BASE_FRAME, its only user
2 years ago
Jeff Young
31c488bc23
NETINFO_ITEMs are owned by BOARD.
Lifecylce management must go through BOARD_COMMIT (or at least
the frame's undo/redo lists).
2 years ago
Marek Roszko
ce672f926c
Unbind some cvpcb frame events in destructor
2 years ago
Jeff Young
23033451b1
Cleanup.
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
Marek Roszko
37e8a008ab
Remove obsolete config_params.h includes
2 years ago
Jeff Young
17df55951d
Beautify Manage Footprint Association Files dialog.
2 years ago
Jon Evans
d371bb06ae
New macOS installation scripts
Replaces BundleUtilities that got broken by recent updates
and is basically unmaintained by cmake.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15376
2 years ago
Alex Shvartzkop
1decd31baf
Vertically center wxGrid cells by default.
2 years ago
Alex Shvartzkop
ff49d5ada9
Fix ambiguous overloads on wx 3.3
2 years ago
Marek Roszko
11de95778b
Unwrap the FROM_UTF8 macro in favor of direct function
The extern just gets annoying to try to export the func later. We also yeet TO_UTF8 to string_utils.h for parity.
2 years ago
Marek Roszko
bd3aca2887
Cleanup the kiface dll export declaration slightly
Why in the bloody world would you pass in the return type as part of the macro for export/import preprocessing
2 years ago
Marek Roszko
1a6d459fb1
Fix wrong path slash
2 years ago
Marek Roszko
5da88d1d0e
Move UTF8 to core
2 years ago
Marek Roszko
4d77fd48ef
Shove thread_pool to core
2 years ago
Jeff Young
4fefd95e0c
Move grid definitions to Prefs and grid origin to a separate dlg.
Grid origin is document-wide, while grid definitions are app-wide.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2262
2 years ago
Ian McInerney
a3a701a95e
Move preferences to an action instead of a wx event
2 years ago
Ian McInerney
2fb6f19a84
Separate immediate and delayed action dispatch
Using a boolean argument just leads to a lot of trailing booleans in the
function calls and is not user friendly. Instead, introduce PostAction()
to send an action that runs after the coroutine (equivalent to passing
false or the default argument), and leave RunAction as the immediate
execution function.
2 years ago
Ian McInerney
9b63c57f5f
Switch remainder of cvpcb actions to new args system
3 years ago
Ian McInerney
b04e54dbea
Switch TOOL_EVENT and TOOL_ACTION to have a std::any parameter
Using std::any from C++17 allows for proper type handling in the
parameter field, removing the need for casting to void* and then casting
the void* to the desired type.
3 years ago
Jeff Young
cf4f0723f8
Select first unassigned symbol when running CvPCB.
Also cleans up some dead code, and makes more use of sharing.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/9938
2 years ago
jean-pierre charras
8ad7736f5e
Cvpcb: fix crash when trying to associate a footprint to a symbol.
(the undo/redo list is specific to Cvpcb and does not use a
UNDO_REDO_CONTAINER container).
Fixes #14948
https://gitlab.com/kicad/code/kicad/-/issues/14948
2 years ago
Jeff Young
bae8a077b9
Remove double call to Destroy() for DISPLAY_FOOTPRINTS_FRAME.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/14928
2 years ago
Seth Hillbrand
14f6e32c74
ADDED: Change watcher for libraries
When editing or viewing library symbols, the files are watched for
underlying changes. If any occur, the user is either prompted to reload
(if reloading would overwrite their current edits) or the file is
silently updated to the current version on disk.
This also sets a custom assertion handler to avoid unneeded crashes when
recieving invalid SAMBA packets and turns off assertions entirely when
running in release (non-debug) mode
2 years ago
jean-pierre charras
a54f60a728
Cvpcb: the footprint viewer use the settings of pcbnew, and the code in _pcbnew.dll/so
So ensure they are loaded before creating the footprint viewer.
Fixes #14850
https://gitlab.com/kicad/code/kicad/-/issues/14850
2 years ago
jean-pierre charras
1406341d2d
Fix a few doxygen errors (no actual code change)
3 years ago
qu1ck
0c049eccc7
Fix a bunch of compiler warnings
3 years ago
Jeff Young
374d3d52ef
Rollback wxChoice -> wxComboBox changes for now.
wxComboBox still has serious issues on macOS.
Fixes https://gitlab.com/kicad/code/kicad/issues/14399
Fixes https://gitlab.com/kicad/code/kicad/issues/14413
3 years ago