1) Don't set user layer count right after we've
cleared the enabled user layers. (It will
always be 0 by then.)
2) Allow un-enabled layers in some layer
selectors. (Currently this is just the private
layers selector.
3) Reset the appearance panel layers each time a
footprint is loaded. Also, auto-enable any user
layers that the footprint already has.
4) Footprint editor layer visibility is stored in
the view, not in the boars (as is usual).
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20022
We use IN for INCH as units, but IN is defined in a Windows header
(cherry picked from commit b0fe4df3c565027801cbbac56c6ee0da254bd74a)
(cherry picked from commit 0acdabd1eb1a2d5ab9b6aa9f71df31c8cf088de8)
(cherry picked from commit eaa1e6d59464e8356d24afd1d29148335010f67a)
(Symbol Editor doesn't have the issue of the properties
being overwritten.)
Fixes https://gitlab.com/kicad/code/kicad/-/issues/20066
(cherry picked from commit 797de67c6c21d6295e32c340a4eca97685fa370a)
Footprints in orgs have standard naming. We need to allow designers to
keep their standard namings outside of boards where they are fixed.
This belongs in the preferences as a set-once for local standards
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
Useful both as a confusion reduction measure when confronted with the
inforbar message, and also useful when you pressed Ctrl+E, not
Ctrl+Shift+E.
Also bind Ctrl+Shift+E in the editor to perform this action
(again, useful when you used the wrong hotkey).
When creating a footprint from the main menu, as opposed to from
a library context menu, there is no library set until it's saved
(the user will get a save-as dialog to set the library at that
point). So lack of a library doesn't mean 'read-only'.
So, don't show the 'read only library' warning in that case -
the user will not be able to save the footprint "in place" as there is
no "place" yet, but it's a reasonable and consistent workflow (like
editing a File->New'd file in a text editor).
Counterpart to the sym editor change. It will only copy
the FP in question, rather than also offer to to copy the whole
library, as that function isn't obviously available.
Relates-To: https://gitlab.com/kicad/code/kicad/-/issues/18370
Schematics, symbols, boards and footprints all get the ability to store
files inside their file structures. File lookups now have a
kicad-embed:// URI to allow various parts of KiCad to refer to files
stored in this manner.
kicad-embed://datasheet.pdf references the file named "datasheet.pdf"
embedded in the document. Embeds are allowed in schematics, boards,
symbols and footprints. Currently supported embeddings are Datasheets,
3D Models and drawingsheets
Fixes https://gitlab.com/kicad/code/kicad/-/issues/6918
Fixes https://gitlab.com/kicad/code/kicad/-/issues/2376
Fixes https://gitlab.com/kicad/code/kicad/-/issues/17827
On GTK, the selected item is checked for its parent when being
unselected. This breaks if the parent has been removed by the Sync()
call, so we need to ensure that the unselect all call happens prior
The default hotkey is Ctrl+L, as this is not bound by
default in the FP or symbol editor, and it is the hotkey
that is used to focus the address bar in web browsers,
which is a similar kind of action.
Previously, although the fp editor preferences has an option to select the canvas type,
it was read from the the PCBNEW_SETTINGS config, using Kiface().KifaceSettings().