32 bool aDropInsteadOfApproximate =
false );
40 bool aDropInsteadOfApproximate =
false );
46 const wxString& aVariant = wxEmptyString,
bool aDropInsteadOfApproximate =
false );
62 bool aDropInsteadOfApproximate =
false );
COMPATIBILITY_REPORT ClassifyBoardForDowngrade(const BOARD *aBoard, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate=false)
Report what a board would lose if exported to an older KiCad.
void SaveFootprintForTarget(FOOTPRINT *aFootprint, const wxString &aPath, const DOWNGRADE_TARGET &aTarget)
Save a single .kicad_mod footprint file for the target.
void DowngradeFootprintInPlace(FOOTPRINT *aFootprint, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate=false)
Footprint-scoped downgrade for standalone .kicad_mod files the board pass never sees.
int BoardDowngradeCoveredVersion()
The format the denylist was generated against. A format bump forces a review.
constexpr int FIRST_FP_CUSTOM_STACKUP
First board format that stores custom footprint stackups.
void DowngradeBoardInPlace(BOARD *aBoard, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate=false)
Approximate or remove, in place, what the target cannot represent.
bool ExportBoardToOlderVersion(const wxString &aSrcFile, const wxString &aDestFile, const DOWNGRADE_TARGET &aTarget, COMPATIBILITY_REPORT &aReport, wxString *aUnsupportedToken=nullptr, const wxString &aVariant=wxEmptyString, bool aDropInsteadOfApproximate=false)
Load a board, downgrade the copy, and write it stamped for the target.
void SaveBoardForTarget(BOARD *aBoard, const wxString &aPath, const DOWNGRADE_TARGET &aTarget)
Save a board stamped for the target, using the writer for that version.
DOWNGRADE_FILE_RESULT DowngradeFootprintFileToTemp(const wxString &aSrcFile, const wxString &aTmpFile, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate=false)
Load one .kicad_mod, classify it against the rule table, and write the downgraded copy to aTmpFile.
void FlattenBoardVariant(BOARD *aBoard, const wxString &aVariantName)
Bake a variant's overrides into the base footprint attributes.
constexpr int FIRST_PCB_VARIANTS
First board format that stores variants.
wxString FindUnsupportedBoardToken(const wxString &aSerialized, const DOWNGRADE_TARGET &aTarget)
Scan serialized board text for tokens the target cannot parse.
Information pertinent to a Pcbnew printed circuit board.
What an export to a given target will keep, approximate, drop, or block.
DOWNGRADE_FILE_RESULT
What a per-file converter did with one library file.
An older KiCad release we can export a project back to.