kicad/eeschema
Roberto Fernandez Bautista 5822cd85c4 Fix eeschema copy/paste: save and load sheet and symbol instances
Save sheet and symbol instance information to the clipboard on copy

Load sheet and symbol instance information from the clipboard on paste
and renumber page numbers after loading.

Correctly handle pasting in a multiple hierarchy by ensuring symbol and
sheet instances are updated for all instances of the destination sheet.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8207
2021-05-03 19:38:31 +01:00
..
dialogs Fix wxWidgets alerts 2021-05-02 16:02:33 +02:00
netlist_exporters Formatting. 2021-04-22 12:38:29 +01:00
plotters Worksheet -> (industry standard) Drawing Sheet. 2021-02-22 17:35:46 +00:00
plugins Fix a install issue after changing a plugin filename (by commit a0f57d6) 2021-03-07 20:57:09 +01:00
sch_plugins Fix eeschema copy/paste: save and load sheet and symbol instances 2021-05-03 19:38:31 +01:00
sim Don't crash when trying to save sim settings during shutdown. 2021-05-01 21:49:40 +01:00
symbol_editor Remove useless wx/wx.h include, that create sometimes compil warnings on msys. 2021-05-01 19:32:15 +02:00
tools Fix eeschema copy/paste: save and load sheet and symbol instances 2021-05-03 19:38:31 +01:00
widgets Split lib tree initialization into a two-pass affair. 2021-04-01 10:51:29 +01:00
CMakeLists.txt Pcbnew: remove update schematic option for geographical annotation dialog. 2021-04-22 12:45:59 -04:00
annotate.cpp CHANGED: Reannotation in eeschema now always keeps symbol units 2021-04-30 11:03:21 +00:00
autoplace_fields.cpp Fixes for autoplace fields. 2021-03-15 02:23:29 +00:00
bom_plugins.cpp BOM dialog: explain when we can't find scripts 2021-02-25 22:41:12 -05:00
bom_plugins.h BOM dialog: explain when we can't find scripts 2021-02-25 22:41:12 -05:00
bus-wire-junction.cpp Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
bus_alias.cpp Use kicad_algo directly rather than common.h 2020-10-24 08:53:11 -04:00
bus_alias.h Use wxArrayString instead of vector<wxString> in BUS_ALIAS 2019-11-29 21:11:44 -05:00
class_library.cpp Make sure pasted symbols get new pin UUIDs 2021-04-18 21:53:38 -04:00
class_library.h Implement thread safety for symbol loading routines 2021-04-18 18:39:46 +01:00
cmp_library.keywords
cmp_library_lexer.cpp
component_references_lister.cpp Refactor saving sheet and symbol instances in SCH_SEXPR_PLUGIN::Format 2021-05-03 16:54:42 +01:00
connection_graph.cpp Eeschema: split out SCH_SHEET_PIN declarations into separate header. 2021-04-06 17:15:49 -04:00
connection_graph.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
cross-probing.cpp Pcbnew: remove update schematic option for geographical annotation dialog. 2021-04-22 12:45:59 -04:00
default_values.h Hook up EE_GRID_HELPER to some more tools. 2020-12-03 15:16:34 +00:00
ee_collectors.cpp Naming conventions. 2021-03-29 11:46:05 +01:00
ee_collectors.h Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
eeschema.cpp Don't hardcode the file extensions where possible 2021-03-03 01:13:59 +00:00
eeschema.icns Update icon resource sets 2020-12-22 15:16:33 -08:00
eeschema_config.cpp Make drawing sheet loading slightly smarter 2021-05-01 14:11:31 -04:00
eeschema_doc.icns Update icon resource sets 2020-12-22 15:16:33 -08:00
eeschema_id.h Symbol editor: remove duplicate legacy code path 2021-01-17 11:14:44 +00:00
eeschema_settings.cpp Save annotation settings in preferences. 2021-04-26 16:05:22 +01:00
eeschema_settings.h Save annotation settings in preferences. 2021-04-26 16:05:22 +01:00
erc.cpp Eeschema: split out SCH_SHEET_PIN declarations into separate header. 2021-04-06 17:15:49 -04:00
erc.h Round 2 of Worksheet -> Drawing Sheet. 2021-02-23 11:57:44 +00:00
erc_item.cpp Fold annotation error reporting into ERC. 2021-01-24 23:01:24 +00:00
erc_item.h Fold annotation error reporting into ERC. 2021-01-24 23:01:24 +00:00
erc_settings.cpp Added a lot of consts and refactored a few lines 2021-03-08 12:49:48 -08:00
erc_settings.h Added a lot of consts and refactored a few lines 2021-03-08 12:49:48 -08:00
fields_grid_table.cpp Fix missing includes on Linux after commit 0427bda7 2021-05-01 20:05:01 +02:00
fields_grid_table.h Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
files-io.cpp Try to catch memory allocation errors in pcbnew and eeschema 2021-05-01 13:11:10 -04:00
general.h Move Eeschema globals to new SCHEMATIC object 2020-05-18 13:04:56 -04:00
generate_alias_info.cpp Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
generate_alias_info.h
getpart.cpp Naming conventions and other cleanup. 2021-03-19 23:06:19 +00:00
hierarch.cpp Fix SortByPageNumbers: use Sheet Name when page numbers are equal 2021-05-03 16:54:42 +01:00
hierarch.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
invoke_sch_dialog.h Move ERC dialog to EE_INSPECTION_TOOL and kill when resetting. 2020-11-03 20:27:44 +00:00
lib_arc.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
lib_arc.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
lib_bezier.cpp Added a lot of consts and refactored a few lines 2021-03-08 12:49:48 -08:00
lib_bezier.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
lib_circle.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
lib_circle.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
lib_field.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
lib_field.h Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
lib_item.cpp Eeschema: fix false positive library symbol changed ERC errors. 2021-03-04 17:59:24 -05:00
lib_item.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
lib_pin.cpp Be consistent about using nullptr instead of 0 2021-04-22 22:20:34 +01:00
lib_pin.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
lib_polyline.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
lib_polyline.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
lib_rectangle.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
lib_rectangle.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
lib_symbol.cpp Fixes for autoplace fields. 2021-03-15 02:23:29 +00:00
lib_symbol.h CADSTAR Schematic: Fix loading of symbol attributes 2021-03-30 13:03:56 +00:00
lib_text.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
lib_text.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
libarch.cpp Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
menubar.cpp Cleanup ACTION_MENU creation in some places 2021-03-27 19:16:58 +00:00
pin_number.cpp More component -> symbol. 2020-11-15 20:23:15 +00:00
pin_number.h
pin_type.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
pin_type.h Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
project_rescue.cpp Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
project_rescue.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
sch_base_frame.cpp Apply Eeschema cursor updating architecture to PCBNew. 2021-04-12 11:11:11 +01:00
sch_base_frame.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
sch_bitmap.cpp Consistent naming. 2021-03-19 23:06:19 +00:00
sch_bitmap.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
sch_bus_entry.cpp Consistent naming. 2021-03-19 23:06:19 +00:00
sch_bus_entry.h Consistent naming. 2021-03-19 23:06:19 +00:00
sch_connection.cpp Properly handle mixed-up group buses 2021-03-11 18:24:39 -05:00
sch_connection.h Naming conventions. 2021-03-29 11:46:05 +01:00
sch_draw_panel.cpp Make the GAL responsible for the native cursor management 2021-04-05 02:36:12 +01:00
sch_draw_panel.h Fix more broken Doxygen comment specifiers. 2021-01-26 12:17:52 -05:00
sch_edit_frame.cpp Don't crash when trying to save sim settings during shutdown. 2021-05-01 21:49:40 +01:00
sch_edit_frame.h CHANGED: Reannotation in eeschema now always keeps symbol units 2021-04-30 11:03:21 +00:00
sch_field.cpp Make sure find/replace respects different values in the hierarchy. 2021-04-30 18:39:21 +01:00
sch_field.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
sch_file_versions.h Eeschema: fix root sheet UUID changing in project file. 2021-04-06 14:28:01 -04:00
sch_io_mgr.cpp Move importers from wxLog to REPORTER. 2021-03-31 22:54:30 +01:00
sch_io_mgr.h Move importers from wxLog to REPORTER. 2021-03-31 22:54:30 +01:00
sch_item.cpp Added a lot of consts and refactored a few lines 2021-03-08 12:49:48 -08:00
sch_item.h Persist fields_autoplaced information. 2021-04-02 17:08:58 +01:00
sch_junction.cpp Consistent naming. 2021-03-19 23:06:19 +00:00
sch_junction.h Eeschema header housekeeping round 1. 2021-03-25 10:08:06 -04:00
sch_line.cpp Consistent naming. 2021-03-19 23:06:19 +00:00
sch_line.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
sch_marker.cpp Consistent naming. 2021-03-19 23:06:19 +00:00
sch_marker.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
sch_no_connect.cpp Consistent naming. 2021-03-19 23:06:19 +00:00
sch_no_connect.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
sch_painter.cpp Eeschema: split out SCH_SHEET_PIN declarations into separate header. 2021-04-06 17:15:49 -04:00
sch_painter.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
sch_pin.cpp Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
sch_pin.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
sch_plugin.cpp Mostly formatting cleanup but a few type-casting cleanups too. 2020-11-24 22:16:41 +00:00
sch_preview_panel.cpp Round 2 of Worksheet -> Drawing Sheet. 2021-02-23 11:57:44 +00:00
sch_preview_panel.h Fix more broken Doxygen comment specifiers. 2021-01-26 12:17:52 -05:00
sch_reference_list.h Refactor saving sheet and symbol instances in SCH_SEXPR_PLUGIN::Format 2021-05-03 16:54:42 +01:00
sch_rtree.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
sch_screen.cpp Eeschema: split out SCH_SHEET_PIN declarations into separate header. 2021-04-06 17:15:49 -04:00
sch_screen.h Eeschema: fix root sheet UUID changing in project file. 2021-04-06 14:28:01 -04:00
sch_sheet.cpp Fix SortByPageNumbers: use Sheet Name when page numbers are equal 2021-05-03 16:54:42 +01:00
sch_sheet.h Eeschema: split out SCH_SHEET_PIN declarations into separate header. 2021-04-06 17:15:49 -04:00
sch_sheet_path.cpp Fix eeschema copy/paste: save and load sheet and symbol instances 2021-05-03 19:38:31 +01:00
sch_sheet_path.h Fix eeschema copy/paste: save and load sheet and symbol instances 2021-05-03 19:38:31 +01:00
sch_sheet_pin.cpp Eeschema: split out SCH_SHEET_PIN declarations into separate header. 2021-04-06 17:15:49 -04:00
sch_sheet_pin.h Eeschema: split out SCH_SHEET_PIN declarations into separate header. 2021-04-06 17:15:49 -04:00
sch_symbol.cpp null check for non-schematic symbol 2021-04-22 17:53:45 -07:00
sch_symbol.h Don't confuse annotation prefix *letters* with root annotation. 2021-04-17 12:30:40 +01:00
sch_text.cpp Show field children when creating new labels. 2021-04-02 15:15:07 +01:00
sch_text.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
sch_text_help.md Replace tabs with spaces 2021-04-05 01:13:39 +00:00
sch_validators.cpp Don't nag the user about file extensions. Just fix it. 2021-03-29 22:11:35 +01:00
sch_validators.h Naming conventions. 2021-03-29 11:46:05 +01:00
sch_view.cpp Round 2 of Worksheet -> Drawing Sheet. 2021-02-23 11:57:44 +00:00
sch_view.h Round 2 of Worksheet -> Drawing Sheet. 2021-02-23 11:57:44 +00:00
schematic.cpp Eeschema: fix build issue when spice simulator build is disabled. 2021-03-22 17:45:49 -04:00
schematic.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
schematic.keywords Persist fields_autoplaced information. 2021-04-02 17:08:58 +01:00
schematic_settings.cpp Include optimization: move some things from common.h to point-of-use 2021-03-20 12:09:18 -04:00
schematic_settings.h Spice simulator: add Ngspce model behavior mode settings. 2021-03-18 15:31:02 -04:00
schematic_undo_redo.cpp Fix eeschema copy/paste: save and load sheet and symbol instances 2021-05-03 19:38:31 +01:00
sheet.cpp Remove useless wx/wx.h include, that create sometimes compil warnings on msys. 2021-05-01 19:32:15 +02:00
symbol_async_loader.cpp Remove m_props from symbol library plugins. It's not thread-safe. 2021-03-26 21:57:32 +00:00
symbol_async_loader.h Add threaded library load to symbol editor 2021-03-19 20:23:54 -04:00
symbol_lib_table.cpp Eeschema: use symbol nomenclature for object file naming. 2021-02-24 08:48:02 -05:00
symbol_lib_table.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
symbol_tree_model_adapter.cpp Use HTML report window for symbol loading issues 2021-04-02 19:50:50 -04:00
symbol_tree_model_adapter.h Use threading for loading symbol libraries 2021-03-19 00:56:26 +00:00
symbol_tree_synchronizing_adapter.cpp Refresh lib trees after editing library tables. 2021-03-17 14:54:18 +00:00
symbol_tree_synchronizing_adapter.h Remove and re-add saved-as libraries when Syncing tree. 2021-01-31 23:00:17 +00:00
symbol_viewer_frame.cpp Remove ACTIONS::TranslateLegacyId and TOOL_DISPATCHER::DispatchWxCommand 2021-03-30 23:20:22 +00:00
symbol_viewer_frame.h Eeschema header housekeeping round 2. 2021-03-25 17:55:16 -04:00
toolbars_sch_editor.cpp Use standard mirror icons & terminology. 2021-02-16 21:11:36 +00:00
toolbars_symbol_viewer.cpp Rework bitmap system to load from archived PNGs 2021-03-11 08:37:35 -05:00
transform.cpp Refactor all math into a new kimath library 2020-01-07 17:12:59 +00:00
transform.h Comment-only changes 2020-01-10 16:43:01 -08:00