Jeff Young
0659290417
Simplify hatch damage/rebuild and move it out of view.
There should be far fewer hatched objects than other
objects, so we're spending too much effort finding
all the possible damage when we probably should
just be auto-regenerating all the hatching.
This also moves it out of being done during redraw,
which was proving problematic. Plus the refill
zones architecture does it during commit, and has
a lot more miles behind it.
7 months ago
Mike Williams
40058ebe80
actions: move all basic selection operations to common actions
7 months ago
jean-pierre charras
eaa1e6d594
Fix a collision with a Windows define and our use of the same var name.
We use IN for INCH as units, but IN is defined in a Windows header
8 months ago
Jeff Young
f951497a4f
Code brevity.
8 months ago
Ian McInerney
85810510f4
Tweak toolbar settings a bit
* Manage the settings using the settings manager for better lifetimes
* Better architect the internals and JSON to make it easier to identify
the various tool types
8 months ago
Ian McInerney
548334b4e2
Load toolbar configuration from settings
8 months ago
Ian McInerney
7e2a81da15
Initial JSON work
9 months ago
Ian McInerney
784246575b
Move footprint viewer/cvpcb actions to tool framework
9 months ago
Ian McInerney
fc6f3f2332
Formatting tweak
9 months ago
Ian McInerney
7ad1103f55
Move toolbars to a serializable storage format
9 months ago
Ian McInerney
c24dbc17bf
Move toolbar setup flags into the action definition
This makes them centrally defined, and removes the need to specify them
when creating the toolbar.
9 months ago
Jeff Young
9083c9e6ab
Remove dead code.
9 months ago
Wayne Stambaugh
d53ed205f2
CvPcb and Eeschema part 1 housekeeping.
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
Marek Roszko
22d13546fb
Some DisplayError -> DisplayErrorMessage
11 months ago
Jeff Young
0bcf6000a4
Formatting.
11 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
2 years ago
Alex Shvartzkop
16e3692e71
Build time optimizations.
2 years 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