diff --git a/common/plugins/cadstar/cadstar_archive_parser.h b/common/plugins/cadstar/cadstar_archive_parser.h index 8760a0ca02..b9b7a40057 100644 --- a/common/plugins/cadstar/cadstar_archive_parser.h +++ b/common/plugins/cadstar/cadstar_archive_parser.h @@ -27,7 +27,7 @@ #define CADSTAR_ARCHIVE_PARSER_H_ #include -#include +#include #include #include #include @@ -422,7 +422,7 @@ public: struct TRANSFORM { - virtual wxPoint Apply( POINT aCadstarPoint ) = 0; + virtual VECTOR2I Apply( POINT aCadstarPoint ) = 0; }; diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp index a425d01743..37611ebed0 100644 --- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp +++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2020-2021 Roberto Fernandez Bautista - * Copyright (C) 2020-2022 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the diff --git a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.h b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.h index 1054fdbd8a..ba3bb1ac33 100644 --- a/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.h +++ b/eeschema/sch_plugins/cadstar/cadstar_sch_archive_loader.h @@ -31,14 +31,18 @@ #include // SCH_LAYER_ID #include // PLOT_DASH_TYPE #include // ELECTRICAL_PINTYPE -#include + +#include + #include +#include class BUS_ALIAS; class EDA_TEXT; class TEXT_SPIN_STYLE; class LIB_FIELD; class LIB_SYMBOL; +class REPORTER; class SCH_SYMBOL; class SCH_ITEM; class SCH_FIELD; @@ -96,23 +100,26 @@ private: REPORTER* m_reporter; SCHEMATIC* m_schematic; SCH_SHEET* m_rootSheet; - wxPoint m_designCenter; ///< Used for calculating the required - ///< offset to apply to the Cadstar design - ///< so that it fits in KiCad canvas - std::map m_sheetMap; ///< Map between Cadstar and KiCad Sheets - std::map - m_sheetPinMap; ///< Map between Cadstar and KiCad Sheets Pins - std::map m_partMap; ///< Map between Cadstar and KiCad Parts + + /** + * Required for calculating the offset to apply to the Cadstar design so that it fits + * in the KiCad canvas + */ + VECTOR2I m_designCenter; + + std::map m_sheetMap; ///< Cadstar->KiCad Sheets + std::map m_sheetPinMap; ///< Cadstar->KiCad Sheet Pins + std::map m_partMap; ///< Cadstar->KiCad Parts + std::map m_symDefMap; ///< Cadstar->KiCad Loaded Lib Symbols + std::map m_powerSymMap; ///< Cadstar->KiCad Loaded Power Symbols + std::map m_powerSymLibMap; ///< NetName->KiCad Power Lib Symbol + std::map m_globalLabelsMap; ///< Cadstar->KiCad Global Labels + std::map> m_busesMap; ///< Cadstar->KiCad Buses + std::map m_pinNumsMap; ///< Cadstar Part->KiCad Pin number map + std::vector m_loadedSymbols; ///< Loaded symbols so far std::map m_partSymbolsMap; ///< Map holding the symbols loaded so far /// for a particular PART_ID and GATE_ID - std::map m_pinNumsMap; ///< Map of pin numbers in CADSTAR parts - std::map m_powerSymLibMap; ///< Map of KiCad Power Symbol Library items - std::map - m_powerSymMap; ///< Map between Cadstar and KiCad Power Symbols - std::map - m_globalLabelsMap; ///< Map between Cadstar and KiCad Global Labels - std::map> m_busesMap; ///< Map of Cadstar and KiCad Buses void loadSheets(); void loadHierarchicalSheetPins();