|
KiCad PCB EDA Suite
|
Property keys and codec threaded through IMPORT_PROJ_HELPER::m_properties to coordinate a non-KiCad project import across the schematic and PCB editors. More...
Functions | |
| wxString | ManagedCacheOption () |
| Options string identifying a library-table row as a generated import cache. | |
| wxString | JoinList (const wxArrayString &aItems) |
| Encode library nicknames into a single list-property value. | |
| std::vector< wxString > | SplitList (const wxString &aValue) |
| Decode a list-property value back into nicknames, dropping empties. | |
| wxString | JoinNetNameMap (const std::map< wxString, wxString > &aNames) |
| Encode source-to-imported net names as a single property value. | |
| std::optional< std::map< wxString, wxString > > | SplitNetNameMap (const wxString &aValue) |
| Decode a net-name map property value, or nothing when the value is not one. | |
| void | ReadFootprintProps (const std::map< std::string, UTF8 > *aProps, wxString &aCacheNickname, std::vector< wxString > &aSourceFpLibs) |
| Read the footprint-import coordination properties out of a properties map. | |
| void | ReadSymbolProps (const std::map< std::string, UTF8 > *aProps, wxString &aCacheNickname, std::vector< wxString > &aSourceSymLibs) |
| Read the symbol-import coordination properties out of a properties map. | |
| wxString | MakeCacheNickname (const wxString &aStem) |
| Derive the generated footprint-cache nickname from a project or file stem. | |
| wxString | MakeSymbolCacheNickname (const wxString &aStem) |
| Derive the generated symbol-cache nickname from a project or file stem. | |
Variables | |
| constexpr char | FP_CACHE_NICKNAME [] = "import_fp_cache_nickname" |
| constexpr char | SOURCE_FP_LIBS [] = "import_source_fp_libs" |
| constexpr char | SYM_CACHE_NICKNAME [] = "import_sym_cache_nickname" |
| constexpr char | SOURCE_SYM_LIBS [] = "import_source_sym_libs" |
| constexpr char | NET_NAME_MAP [] = "import_net_name_map" |
| constexpr char | LIST_SEPARATOR = '\x1f' |
| Separator joining a list value within a single property. | |
| constexpr char | MANAGED_CACHE_KEY [] = "kicad_import_cache" |
| Library-table row option key marking a row as a generated import cache. | |
| constexpr char | NET_NAME_MAP_TAG [] = "netmap" |
| Leading field marking a value as an encoded net-name map, so a design that maps no nets is still distinguishable from an import that never ran. | |
Property keys and codec threaded through IMPORT_PROJ_HELPER::m_properties to coordinate a non-KiCad project import across the schematic and PCB editors.
Values ride the MAIL_IMPORT_FILE payload, whose framing forbids '
' inside a value, so list values join with the unit-separator control character (a library nickname cannot contain it). The codec lives here next to the contract so the manager (encode) and both editor frames (decode) cannot drift.
|
inline |
Encode library nicknames into a single list-property value.
Definition at line 61 of file import_proj_properties.h.
References LIST_SEPARATOR.
Referenced by IMPORT_PROJ_HELPER::EasyEDAProProjectHandler(), JoinNetNameMap(), and IMPORT_PROJ_HELPER::joinSourceLibNicknames().
|
inline |
Encode source-to-imported net names as a single property value.
Definition at line 85 of file import_proj_properties.h.
References JoinList(), and NET_NAME_MAP_TAG.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_EDIT_FRAME::KiwayMailIn().
|
inline |
Derive the generated footprint-cache nickname from a project or file stem.
Definition at line 144 of file import_proj_properties.h.
References LIB_ID::FixIllegalChars(), and UTF8::wx_str().
Referenced by ReconcileImportedFootprints(), and IMPORT_PROJ_HELPER::setImportCacheNickname().
|
inline |
Derive the generated symbol-cache nickname from a project or file stem.
Definition at line 150 of file import_proj_properties.h.
References LIB_ID::FixIllegalChars(), and UTF8::wx_str().
Referenced by ReconcileImportedSymbols().
|
inline |
Options string identifying a library-table row as a generated import cache.
Definition at line 55 of file import_proj_properties.h.
References MANAGED_CACHE_KEY.
Referenced by FOOTPRINT_IMPORT_RECONCILER::registerCacheRow(), and SYMBOL_IMPORT_RECONCILER::registerCacheRow().
|
inline |
Read the footprint-import coordination properties out of a properties map.
Definition at line 116 of file import_proj_properties.h.
References FP_CACHE_NICKNAME, SOURCE_FP_LIBS, and SplitList().
Referenced by SCH_EDIT_FRAME::importFile(), and ReconcileImportedFootprints().
|
inline |
Read the symbol-import coordination properties out of a properties map.
Definition at line 130 of file import_proj_properties.h.
References SOURCE_SYM_LIBS, SplitList(), and SYM_CACHE_NICKNAME.
Referenced by ReconcileImportedSymbols().
|
inline |
Decode a list-property value back into nicknames, dropping empties.
Definition at line 67 of file import_proj_properties.h.
References LIST_SEPARATOR.
Referenced by ReadFootprintProps(), and ReadSymbolProps().
|
inline |
Decode a net-name map property value, or nothing when the value is not one.
Definition at line 100 of file import_proj_properties.h.
References LIST_SEPARATOR, and NET_NAME_MAP_TAG.
Referenced by BOOST_AUTO_TEST_CASE(), IMPORT_PROJ_HELPER::doImport(), and PCB_EDIT_FRAME::OpenProjectFiles().
|
inlineconstexpr |
Definition at line 42 of file import_proj_properties.h.
Referenced by ReadFootprintProps(), and IMPORT_PROJ_HELPER::setImportCacheNickname().
|
inlineconstexpr |
Separator joining a list value within a single property.
Definition at line 49 of file import_proj_properties.h.
Referenced by JoinList(), SplitList(), and SplitNetNameMap().
|
inlineconstexpr |
Library-table row option key marking a row as a generated import cache.
Definition at line 52 of file import_proj_properties.h.
Referenced by ManagedCacheOption().
|
inlineconstexpr |
Definition at line 46 of file import_proj_properties.h.
Referenced by IMPORT_PROJ_HELPER::doImport(), PCB_EDIT_FRAME::OpenProjectFiles(), and IMPORT_PROJ_HELPER::OrcadProjectHandler().
|
inlineconstexpr |
Leading field marking a value as an encoded net-name map, so a design that maps no nets is still distinguishable from an import that never ran.
Definition at line 82 of file import_proj_properties.h.
Referenced by JoinNetNameMap(), and SplitNetNameMap().
|
inlineconstexpr |
Definition at line 43 of file import_proj_properties.h.
Referenced by IMPORT_PROJ_HELPER::AltiumProjectHandler(), IMPORT_PROJ_HELPER::EasyEDAProProjectHandler(), and ReadFootprintProps().
|
inlineconstexpr |
Definition at line 45 of file import_proj_properties.h.
Referenced by ReadSymbolProps().
|
inlineconstexpr |
Definition at line 44 of file import_proj_properties.h.
Referenced by ReadSymbolProps().