|
KiCad PCB EDA Suite
|
#include "eeschema_jobs_handler.h"#include <diff_merge/merge_dispatch.h>#include <algorithm>#include <common.h>#include <pgm_base.h>#include <kiface_base.h>#include <kiway_player.h>#include <cli/exit_codes.h>#include <sch_plotter.h>#include <drawing_sheet/ds_proxy_view_item.h>#include <font/kicad_font_name.h>#include <jobs/job_export_bom.h>#include <jobs/job_export_sch_pythonbom.h>#include <jobs/job_export_sch_netlist.h>#include <jobs/job_export_sch_plot.h>#include <jobs/job_sch_erc.h>#include <jobs/job_sch_import.h>#include <jobs/job_sch_upgrade.h>#include <jobs/job_sch_downgrade.h>#include <downgrade_target.h>#include <downgrade/sch_downgrade.h>#include <downgrade_scan.h>#include <downgrade_copy.h>#include <bus_alias.h>#include <lib_symbol.h>#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr.h>#include <sch_sheet_path.h>#include <set>#include <wx/ffile.h>#include <jobs/job_import_utils.h>#include <jobs/job_sym_export_svg.h>#include <jobs/job_sym_upgrade.h>#include <schematic.h>#include <import_net_map.h>#include <schematic_settings.h>#include <sch_screen.h>#include <sch_sheet.h>#include <sch_commit.h>#include <symbol_import_reconciler.h>#include <save_project_utils.h>#include <tool/tool_manager.h>#include <project.h>#include <project/project_file.h>#include <wx/dir.h>#include <wx/file.h>#include <memory>#include <connection_graph.h>#include "eeschema_helpers.h"#include <filename_resolver.h>#include <kiway.h>#include <sch_painter.h>#include <locale_io.h>#include <erc/erc.h>#include <erc/erc_report.h>#include <erc/erc_settings.h>#include <wildcards_and_files_ext.h>#include <plotters/plotters_pslike.h>#include <drawing_sheet/ds_data_model.h>#include <paths.h>#include <reporter.h>#include <scoped_set_reset.h>#include <string_utils.h>#include <settings/settings_manager.h>#include <sch_file_versions.h>#include <sch_io/sch_io.h>#include <sch_io/kicad_sexpr/sch_io_kicad_sexpr_lib_cache.h>#include <netlist.h>#include <netlist_exporter_base.h>#include <netlist_exporter_orcadpcb2.h>#include <netlist_exporter_cadstar.h>#include <netlist_exporter_spice.h>#include <netlist_exporter_spice_model.h>#include <netlist_exporter_kicad.h>#include <netlist_exporter_xml.h>#include <netlist_exporter_pads.h>#include <netlist_exporter_allegro.h>#include <symbol_fields_data_model.h>#include <dialogs/dialog_export_netlist.h>#include <dialogs/dialog_plot_schematic.h>#include <dialogs/dialog_erc_job_config.h>#include <dialogs/dialog_symbol_fields_table.h>#include <confirm.h>#include <project_sch.h>#include <libraries/symbol_library_adapter.h>#include <diff_merge/diff_job_output.h>#include <diff_merge/diff_renderer_plotter.h>#include <diff_merge/diff_scene.h>#include <diff_merge/sch_differ.h>#include <diff_merge/sch_geometry_extractor.h>#include <diff_merge/project_file_patch.h>#include <diff_merge/kicad_diff_types.h>#include <settings/json_settings_internals.h>#include <jobs/job_sch_diff.h>#include <jobs/scratch_doc.h>#include <diff_merge/sym_lib_differ.h>#include <jobs/job_sym_diff.h>#include <dialogs/dialog_kicad_diff.h>#include <diff_merge/sch_diff_canvas_context.h>#include <widgets/widget_diff_canvas.h>#include <diff_merge/auto_resolution.h>#include <diff_merge/sch_merge_applier.h>#include <dialogs/dialog_kicad_merge_3way.h>#include <diff_merge/sym_lib_merge_applier.h>Go to the source code of this file.
Classes | |
| struct | TRANSIENT_PROJECT_GUARD |
| struct | SCH_DIFF_SIDES |
| class | SCH_DIFF_CANVAS_CONTEXT |
Functions | |
| static void | classifySymbolLibraries (const wxString &aDir, const DOWNGRADE_TARGET &aTarget, COMPATIBILITY_REPORT &aReport, bool aDropInsteadOfApproximate) |
| static wxString | downgradeSymbolLibraries (const wxString &aDir, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate, DOWNGRADE_FILE_TRANSACTION *aTransaction=nullptr, wxString *aRecoveryError=nullptr) |
| static SCRATCH_DOC< SCHEMATIC > | loadScratchSchematic (SETTINGS_MANAGER &aMgr, const wxString &aPath) |
| static SCRATCH_DOC< SCHEMATIC > | emptyScratchSchematic (SETTINGS_MANAGER &aMgr, const wxString &aTag) |
| static int | loadSymbolLibrarySide (const wxString &aPath, std::vector< std::unique_ptr< LIB_SYMBOL > > &aOwners, KICAD_DIFF::SYM_LIB_DIFFER::SYMBOL_MAP &aMap, bool aAllowEmpty, REPORTER &aReporter) |
| static KICAD_DIFF::DOCUMENT_GEOMETRY | symbolLibraryGeometry (const KICAD_DIFF::SYM_LIB_DIFFER::SYMBOL_MAP &aMap, const KIGFX::COLOR4D &aColor) |
| static int | loadSchDiffSides (SETTINGS_MANAGER &aMgr, REPORTER &aReporter, const wxString &aFileA, const wxString &aFileB, SCH_DIFF_SIDES &aSides) |
|
static |
Definition at line 1524 of file eeschema_jobs_handler.cpp.
References ClassifyLibSymbolForDowngrade(), SCH_IO_KICAD_SEXPR::EnumerateSymbolLib(), IsDowngradeWorkingArtifact(), and COMPATIBILITY_REPORT::Merge().
Referenced by EESCHEMA_JOBS_HANDLER::JobDowngrade().
|
static |
Definition at line 1556 of file eeschema_jobs_handler.cpp.
References convert, CONVERTED, DowngradeLibraryFilesInPlace(), DowngradeLibSymbolInPlace(), SCH_IO_KICAD_SEXPR::EnumerateSymbolLib(), DOWNGRADE_TARGET::m_symLibVersion, and SaveSymbolLibraryForTarget().
Referenced by EESCHEMA_JOBS_HANDLER::JobDowngrade().
|
static |
Definition at line 2732 of file eeschema_jobs_handler.cpp.
References LoadScratchDoc().
Referenced by loadSchDiffSides().
|
static |
Definition at line 2935 of file eeschema_jobs_handler.cpp.
References _, SCH_DIFF_SIDES::a, SCH_DIFF_SIDES::b, KICAD_DIFF::SCH_DIFFER::Diff(), SCH_DIFF_SIDES::diff, SCRATCH_DOC< DOC >::doc, SCH_DIFF_SIDES::emptyA, SCH_DIFF_SIDES::emptyB, emptyScratchSchematic(), CLI::EXIT_CODES::ERR_INVALID_INPUT_FILE, loadScratchSchematic(), REPORTER::Report(), RPT_SEVERITY_ERROR, SCH_DIFF_SIDES::schA, SCH_DIFF_SIDES::schB, and CLI::EXIT_CODES::SUCCESS.
Referenced by EESCHEMA_JOBS_HANDLER::AttachDiffCanvases(), and EESCHEMA_JOBS_HANDLER::OpenDiffDialog().
|
static |
Definition at line 2711 of file eeschema_jobs_handler.cpp.
References EESCHEMA_HELPERS::LoadSchematic(), and LoadScratchDoc().
Referenced by EESCHEMA_JOBS_HANDLER::JobSchDiff(), loadSchDiffSides(), and EESCHEMA_JOBS_HANDLER::runSchMerge().
|
static |
Definition at line 2819 of file eeschema_jobs_handler.cpp.
References _, CLI::EXIT_CODES::ERR_INVALID_INPUT_FILE, KICAD_DIFF::SYM_LIB_DIFFER::LoadLibrary(), REPORTER::Report(), RPT_SEVERITY_ERROR, CLI::EXIT_CODES::SUCCESS, and IO_ERROR::What().
Referenced by EESCHEMA_JOBS_HANDLER::JobSymDiff().
|
static |
Definition at line 2853 of file eeschema_jobs_handler.cpp.
References KICAD_DIFF::AppendGeometry(), KICAD_DIFF::ExtractSymbolGeometry(), and name.
Referenced by EESCHEMA_JOBS_HANDLER::JobSymDiff().