kicad/eeschema/libedit
Wayne Stambaugh 7183e9f97e Make the new schematic and symbol library file formats the default.
This is a very large and potentially disruptive change so this will be an
unusually long and detailed commit message.

The new file formats are now the default in both the schematic and symbol
library editors.  Existing symbol libraries will be saved in their current
format until new features are added to library symbols.  Once this happens,
both the legacy schematic and symbol file formats will be no longer be
savable and existing libraries will have to be converted.  Saving to the
legacy file formats is still available for round robin testing and should
not be used for normal editing.

When loading the legacy schematic file, it is imperative that the schematic
library symbols are rescued and/or remapped to valid library identifiers.
Otherwise, there will be no way to link to the original library symbol and
the user will be required manually set the library identifier.  The cached
symbol will be saved in the schematic file so the last library symbol in
the cache will still be used but there will be no way to update it from the
original library.

The next save after loading a legacy schematic file will be converted to
the s-expression file format.  Schematics with hierarchical sheets will
automatically have all sheet file name extensions changed to .kicad_sym
and saved to the new format as well.

Appending schematics requires that the schematic to append has already been
converted to the new file format.  This is required to ensure that library
symbols are guaranteed to be valid for the appended schematic.

The schematic symbol library symbol link resolution has been moved out of
the SCH_COMPONENT object and move into the SCH_SCREEN object that owns the
symbol.  This was done to ensure that there is a single place where the
library symbol links get resolved rather than the dozen or so different
code paths that previously existed.  It also removes the necessity of the
SCH_COMPONENT object of requiring any knowledge of the symbol library table
and/or the cache library.

When opening an s-expression schematic, the legacy cache library is not
loaded so any library symbols not rescued cannot be loaded.  Broken library
symbol links will have to be manually resolved by adding the cache library
to the symbol library table and changing the links in the schematic symbol.

Now that the library symbols are embedded in the schematic file, the
SCH_SCREEN object maintains the list of library symbols for the schematic
automatically.  No external manipulation of this library cache should ever
occur.

ADDED: S-expression schematic and symbol library file formats.
2020-05-04 12:40:03 +00:00
..
lib_edit_frame.cpp More window sizing fixes 2020-04-27 00:14:12 +01:00
lib_edit_frame.h Remove a bunch of globals. 2020-04-16 17:34:46 +01:00
lib_export.cpp Implement simple inheritance for library symbols. 2019-12-06 11:33:52 -05:00
lib_manager.cpp Eeschema: implement new symbol library file s-expression formatter. 2020-03-03 08:06:22 -05:00
lib_manager.h Eeschema: implement new symbol library file s-expression formatter. 2020-03-03 08:06:22 -05:00
libedit.cpp Make the new schematic and symbol library file formats the default. 2020-05-04 12:40:03 +00:00
libedit_plot_component.cpp Change super/subscript syntax to ^{foo} and _{foo}. 2020-04-18 21:04:41 +01:00
libedit_settings.cpp Eeschema: move some default values to default_values.h. 2020-04-14 20:15:18 +02:00
libedit_settings.h Remove some problematic global variables. 2020-04-05 16:17:04 +01:00
libedit_undo_redo.cpp Remove confused dynamic_cast 2020-01-16 06:17:04 -08:00
menubar_libedit.cpp eeschema: Remove unused include of eeschema_id.h 2020-01-03 16:04:54 +00:00
symbedit.cpp Symbol editor: fix inherited symbol editing bug. 2019-12-13 16:51:59 -05:00
toolbars_libedit.cpp Switch to scoped enums 2019-12-20 14:11:39 +00:00