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
Jeff Young
c07e9c834f
Validate new footprint / save as footprint info before exiting dialog.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13923
2 years ago
Jeff Young
1218f61d0a
Implement undo/redo for footprint children.
Our special-cases to handle the fact that we didn't do this had far
outgrown the code necessary to actually handle it.
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
jean-pierre charras
683a327200
Footprint editor: always export the currently loaded footprint.
Previously, it was not always the edited footprint, but a footprint
selected from the library tree.
It was especially annoying when the footprint was loaded from the board editor:
The footprint was not the loaded footprint, but its copy from library.
3 years ago
Marek Roszko
aacc9746e3
Yeet the last of wxSize/wxPoint to stop leaking gdicmn everywhere
3 years ago
Jon Evans
f7d59f2e89
Enable properties panel in footprint editor
3 years ago
Jeff Young
f45d44a639
Don't leave temp footprints attached to a board.
3 years ago
Jeff Young
4c63b4e061
Class name <-> file name sync.
3 years ago
Jeff Young
8eb68ee472
Add pin/unpin context menu to Symbol Chooser and Footprint Chooser.
Also moves some more code down into common so it can be shared.
Fixes https://gitlab.com/kicad/code/kicad/issues/12384
3 years ago
Jeff Young
09773e3e2e
Make sure dirty flag gets set, and leave save enabled regardless.
Fixes https://gitlab.com/kicad/code/kicad/issues/11824
3 years ago
Jeff Young
63386ba64d
Pointer safety for ERC/DRC dialogs.
Also makes the "Edit ingored violations" easier to find.
Fixes https://gitlab.com/kicad/code/kicad/issues/12308
3 years ago
Jeff Young
28f7221cc3
Allow selection of Footprint Checker markers.
(And do a cross-probe to the Footprint Checker dialog.)
3 years ago
Jeff Young
1f347582f8
Introduce new marker type so we can track DRC errors on the drawing sheet.
Fixes https://gitlab.com/kicad/code/kicad/issues/12221
3 years ago
jean-pierre charras
aabc3b3cc6
FP editor: fix crash when duplicating a footprint.
Fixes #12098
https://gitlab.com/kicad/code/kicad/issues/12098
3 years ago
jean-pierre charras
4d48376eae
Fix some warnings detected by PVS-STUDIO (not used vars)
3 years ago
Jeff Young
def87c969e
Redo the pinned-libraries storage architecture.
1) always use preferences directly
2) allow nicknames from either preferences or project
3) store-after-modify
Fixes https://gitlab.com/kicad/code/kicad/issues/12000
Fixes https://gitlab.com/kicad/code/kicad/issues/11892
3 years ago
Jeff Young
c98826c8b0
Open newly-pasted footprint on canvas of Footprint Editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/11398
3 years ago
Jeff Young
9b70308f5c
Nullptr defensive code.
Fixes https://gitlab.com/kicad/code/kicad/issues/11690
3 years ago
Jeff Young
90bfe2d94b
Remove Save Copy As from fp editor, and rename to Save a Copy elsewhere.
It's still used by Eeschema and PCBNew when not in stand-alone mode.
Fixes https://gitlab.com/kicad/code/kicad/issues/9185
4 years ago
Jeff Young
c6f83b6dec
ADDED Duplicate Footprint, Rename Symbol and Rename Footprint.
4 years ago
Jeff Young
b4c5e64db2
Exclusions for Unconnected Items; Markers & exclusions for Parity checks
Fixes https://gitlab.com/kicad/code/kicad/issues/5589
Fixes https://gitlab.com/kicad/code/kicad/issues/5504
4 years ago
Jeff Young
e363a0eedc
ADDED Edit Text and Graphics Properties for Footprint Editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/9650
4 years ago
Jeff Young
84e0feeee6
LibTree selection should follow footprint after Save As.
Fixes https://gitlab.com/kicad/code/kicad/issues/9913
4 years ago
Jeff Young
e3ef101ec9
Add missing view controls for FP Editor Appearance Manager.
4 years ago
Wayne Stambaugh
cf00319c85
More NULL expunging.
4 years ago
Marek Roszko
10e60acf34
Clean up including of board_design_settings.h
4 years ago
Ian McInerney
4f05262705
Cleanup includes in board.h and footprint.h
4 years ago
Ian McInerney
23f8851409
Remove pcb_group include from board header
4 years ago
Seth Hillbrand
f274a00c08
Remove PYTHON_* compile options
5 years ago
Seth Hillbrand
752ae4d519
Rename modification flag routines
Differentiates better between the EDA_ITEM IsModified(), referring to
items themselves changing and the EDA_SCREEN IsContentModified(),
referring to whether we have made any unsaved changes.
4 years ago
Jeff Young
baf868fce7
Add footprint repair tool (currently just for duplicate IDs).
4 years ago
Jon Evans
619a353c5e
Decouple 3D view dirty marking and refresh
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8154
5 years ago
Jeff Young
f6f31b7654
Get rid of save warning after Footprint Editor Save As.
Fixes https://gitlab.com/kicad/code/kicad/issues/8084
5 years ago
Jeff Young
f2e68e68d0
Add "Hide Tree" context menu options when tree has no selection.
Also cleans up some other code to be more consistent between symbol
editor and footprint editor.
Fixes https://gitlab.com/kicad/code/kicad/issues/8052
5 years ago
Jeff Young
91e876ce0d
Make sure the title is updated when file is saved/reverted/etc.
Fixes https://gitlab.com/kicad/code/kicad/issues/7626
5 years ago
Jeff Young
c2f68ca4da
Whittle down library tree context menus to be more contextual.
(From discussion on Zulip.)
5 years ago
Jeff Young
c2dbd28101
Simplify and harmonize symbol editor and footprint editor menus.
Some differences are due to difference between libraries being files
in symbol editor and directories in footprint editor, but this unifies
most of the rest.
It also dispenses with the save-to-library vs save-to-document distinction
in the GUI because it makes for too much variability in the GUI, was
implemented differently between the two editors, and isn't needed as much
anymore now that we have the highly visible infobar.
There was also an issue that the save-to-board icon occupies the same
location and has the same size/shape/colours as the Board Setup icon in
PCBNew.
Fixes https://gitlab.com/kicad/code/kicad/issues/7215
5 years ago
Jeff Young
a868fb97b6
Preserve Uuids when editing board footprints.
One way to do this would have been to keep the Uuids in the editor
copy. However, this opens us up to errors if we forget a Save As or
export path and end up writing the Uuids out somewhere else.
In the end, it felt safer to store a map of the original Uuids and
restore them if we happen to save the editor footprint back to the
board.
Fixes https://gitlab.com/kicad/code/kicad/issues/7312
5 years ago
Michael Kavanagh
479487ceb1
Tidy up context menus a bit
Try and put the common actions in the same places
5 years ago
Jeff Young
7a081b7c04
Naming consistency.
5 years ago
Jeff Young
fd5e1fbdd4
Formatting and cleanup.
5 years ago
Jeff Young
9c7c05c161
Mostly formatting cleanup but a few type-casting cleanups too.
5 years ago
Jeff Young
1391774f64
Re-factor boundary/courtyard checker error handling.
ADDED Footprint Checker dialog to display the results in.
Fixes https://gitlab.com/kicad/code/kicad/issues/6446
5 years ago
Jeff Young
61bca4aaa4
A bit of "module" erradication, nameing conventions, and formatting.
5 years ago
Jeff Young
bdbb68f813
MODULE -> FOOTPRINT.
5 years ago
Jeff Young
84dd5108ba
Remove some "class_" prefixes from files.
5 years ago
Jeff Young
812b714ccd
More Module -> Footprint and a bit of formatting cleanup.
5 years ago
Jeff Young
6e0a40e32e
Cleanup. Push more editing functions to toolset.
Also cleans up some more Module -> Footprint items.
5 years ago