|
KiCad PCB EDA Suite
|
#include <downgrade/board_downgrade.h>#include <downgrade_scan.h>#include <settings/settings_manager.h>#include <wildcards_and_files_ext.h>#include <algorithm>#include <cctype>#include <functional>#include <memory>#include <set>#include <string>#include <vector>#include <wx/ffile.h>#include <wx/filefn.h>#include <base_units.h>#include <board.h>#include <board_design_settings.h>#include <footprint.h>#include <constraints/pcb_constraint.h>#include <pad.h>#include <pcb_barcode.h>#include <pcb_shape.h>#include <pcb_table.h>#include <pcb_tablecell.h>#include <pcb_textbox.h>#include <pcb_track.h>#include <pcb_point.h>#include <pcb_reference_image.h>#include <zone.h>#include <zone_settings.h>#include <netinfo.h>#include <eda_group.h>#include <eda_shape.h>#include <pcb_group.h>#include <pcb_dimension.h>#include <pcb_generator.h>#include <pcb_text.h>#include <project.h>#include <common.h>#include <text_eval/text_eval_wrapper.h>#include <board_stackup_manager/board_stackup.h>#include <layer_ids.h>#include <lset.h>#include <io/kicad/legacy_tuning_pattern.h>#include <geometry/shape_ellipse.h>#include <geometry/shape_poly_set.h>#include <pcb_io/kicad_sexpr/pcb_io_kicad_sexpr.h>#include <pcb_io/kicad_sexpr/writers/pcb_writer_v9.h>#include <pcb_io/kicad_sexpr/writers/pcb_writer_v10.h>Go to the source code of this file.
Classes | |
| struct | TEXT_DOWNGRADE_PLAN |
| struct | BOARD_RULE |
Functions | |
| static bool | isEllipse (const BOARD_ITEM *aItem) |
| static bool | isHatchedShape (const BOARD_ITEM *aItem) |
| static bool | isHatchedCopperShape (const BOARD_ITEM *aItem) |
| static bool | isHatchedInkShape (const BOARD_ITEM *aItem) |
| static void | detachFromGroup (BOARD_ITEM *aItem) |
| static void | ellipseToPolygon (PCB_SHAPE *aShape, int aMaxError) |
| static int | footprintMaxError (const FOOTPRINT *aFootprint) |
| static void | forEachPadPrimitive (FOOTPRINT *aFootprint, const std::function< void(PCB_SHAPE *)> &aFunc) |
| static void | lowerEllipsesFp (FOOTPRINT *aFootprint) |
| static void | setHatchedFillsFp (FOOTPRINT *aFootprint, const std::function< bool(const BOARD_ITEM *)> &aMatches, FILL_T aFill) |
| static std::vector< PCB_SHAPE * > | barcodeToShapes (PCB_BARCODE *aBarcode, BOARD_ITEM_CONTAINER *aParent) |
| static void | lowerBarcodesFp (FOOTPRINT *aFootprint) |
| static void | dropPcbPointsFp (FOOTPRINT *aFootprint) |
| static void | dropExtrudedBodiesFp (FOOTPRINT *aFootprint) |
| static void | dropPadSimTypesFp (FOOTPRINT *aFootprint) |
| static void | dropUnitInfoFp (FOOTPRINT *aFootprint) |
| static void | dropJumperPadsFp (FOOTPRINT *aFootprint) |
| static void | dropPcbVariantsFp (FOOTPRINT *aFootprint) |
| static void | dropPostMachiningFp (FOOTPRINT *aFootprint) |
| static void | dropPressFitPadsFp (FOOTPRINT *aFootprint) |
| static void | dropDieDelaysFp (FOOTPRINT *aFootprint) |
| static void | dropGroupDesignBlocksFp (FOOTPRINT *aFootprint) |
| static int | countNetChains (const BOARD *aBoard) |
| static void | dropNetChains (BOARD *aBoard) |
| static int | countEllipses (const BOARD *aBoard) |
| static void | lowerEllipses (BOARD *aBoard) |
| static int | countExtrudedBodies (const BOARD *aBoard) |
| static void | dropExtrudedBodies (BOARD *aBoard) |
| static int | countThievingZones (const BOARD *aBoard) |
| static int | countPadSimTypes (const BOARD *aBoard) |
| static void | dropPadSimTypes (BOARD *aBoard) |
| static int | countUnitInfo (const BOARD *aBoard) |
| static void | dropUnitInfo (BOARD *aBoard) |
| static int | countBarcodes (const BOARD *aBoard) |
| static void | lowerBarcodes (BOARD *aBoard) |
| static int | countPcbVariants (const BOARD *aBoard) |
| static void | dropPcbVariants (BOARD *aBoard) |
| static int | countJumperPads (const BOARD *aBoard) |
| static void | dropJumperPads (BOARD *aBoard) |
| static bool | hasBackdrill (const PADSTACK &aPadstack) |
| static int | countBackdrills (const BOARD *aBoard) |
| static bool | hasPostMachining (const PADSTACK &aPadstack) |
| static int | countPostMachining (const BOARD *aBoard) |
| static void | dropPostMachining (BOARD *aBoard) |
| static int | countPressFitPads (const BOARD *aBoard) |
| static void | dropPressFitPads (BOARD *aBoard) |
| static int | countBuriedVias (const BOARD *aBoard) |
| static void | lowerBuriedVias (BOARD *aBoard) |
| static int | countZoneDefaults (const BOARD *aBoard) |
| static void | dropZoneDefaults (BOARD *aBoard) |
| static int | countSkipVias (const BOARD *aBoard) |
| static void | lowerSkipVias (BOARD *aBoard) |
| static int | countDieDelays (const BOARD *aBoard) |
| static void | dropDieDelays (BOARD *aBoard) |
| static int | countHatchedFills (const BOARD *aBoard, const std::function< bool(const BOARD_ITEM *)> &aMatches) |
| static void | setHatchedFills (BOARD *aBoard, const std::function< bool(const BOARD_ITEM *)> &aMatches, FILL_T aFill) |
| static int | countPcbPoints (const BOARD *aBoard) |
| static void | dropPcbPoints (BOARD *aBoard) |
| static int | countHighUserLayers (const BOARD *aBoard) |
| static bool | hasViaProtection (const PCB_VIA *aVia) |
| static int | countViaProtection (const BOARD *aBoard) |
| static void | dropViaProtection (BOARD *aBoard) |
| static int | countDielectricModels (const BOARD *aBoard) |
| static void | dropDielectricModels (BOARD *aBoard) |
| static int | countGroupDesignBlocks (const BOARD *aBoard) |
| static void | dropGroupDesignBlocks (BOARD *aBoard) |
| static int | countScaledFootprints (const BOARD *aBoard) |
| static bool | isRoundedRect (const BOARD_ITEM *aItem) |
| static void | roundedRectToPolygon (PCB_SHAPE *aShape, int aMaxError) |
| static int | countRoundedRectsFp (const FOOTPRINT *aFootprint) |
| static void | lowerRoundedRectsFp (FOOTPRINT *aFootprint) |
| static int | countRoundedRects (const BOARD *aBoard) |
| static void | lowerRoundedRects (BOARD *aBoard) |
| static int | countKnockoutTextBoxesFp (const FOOTPRINT *aFootprint) |
| static void | dropKnockoutTextBoxesFp (FOOTPRINT *aFootprint) |
| static int | countKnockoutTextBoxes (const BOARD *aBoard) |
| static void | dropKnockoutTextBoxes (BOARD *aBoard) |
| static int | countKnockoutCellsIn (const BOARD_ITEM *aItem) |
| static int | countKnockoutTableCells (const BOARD *aBoard) |
| static void | dropKnockoutCellsIn (BOARD_ITEM *aItem) |
| static void | dropKnockoutTableCellsFp (FOOTPRINT *aFootprint) |
| static void | dropKnockoutTableCells (BOARD *aBoard) |
| static int | countZoneLayerProperties (const BOARD *aBoard) |
| static void | dropZoneLayerPropertiesFp (FOOTPRINT *aFootprint) |
| static void | dropZoneLayerProperties (BOARD *aBoard) |
| static bool | hasGroupPlacementLinkage (const ZONE *aZone) |
| static int | countGroupPlacementAreas (const BOARD *aBoard) |
| static void | dropGroupPlacementLinkage (ZONE *aZone) |
| static void | dropGroupPlacementAreasFp (FOOTPRINT *aFootprint) |
| static void | dropGroupPlacementAreas (BOARD *aBoard) |
| static int | countCustomFpStackups (const BOARD *aBoard) |
| static void | omitGraphicsFp (FOOTPRINT *aFootprint, const std::function< bool(const BOARD_ITEM *)> &aMatches) |
| static void | omitGraphics (BOARD *aBoard, const std::function< bool(const BOARD_ITEM *)> &aMatches) |
| static void | omitPadPrimitives (FOOTPRINT *aFootprint, const std::function< bool(const BOARD_ITEM *)> &aMatches) |
| static void | omitEllipsesFp (FOOTPRINT *aFootprint) |
| static void | omitEllipses (BOARD *aBoard) |
| static bool | isBarcode (const BOARD_ITEM *aItem) |
| static void | omitBarcodesFp (FOOTPRINT *aFootprint) |
| static void | omitBarcodes (BOARD *aBoard) |
| static bool | isKnockoutTextBox (const BOARD_ITEM *aItem) |
| static void | omitKnockoutTextBoxesFp (FOOTPRINT *aFootprint) |
| static void | omitKnockoutTextBoxes (BOARD *aBoard) |
| static void | omitRoundedRectsFp (FOOTPRINT *aFootprint) |
| static void | omitRoundedRects (BOARD *aBoard) |
| static void | omitKnockoutCellContents (BOARD_ITEM *aItem) |
| static void | omitKnockoutTableCellsFp (FOOTPRINT *aFootprint) |
| static void | omitKnockoutTableCells (BOARD *aBoard) |
| static int | countConstraints (const BOARD *aBoard) |
| static void | dropConstraintsFp (FOOTPRINT *aFootprint) |
| static void | dropConstraints (BOARD *aBoard) |
| static bool | isGrid (const BOARD_ITEM *aItem) |
| static bool | isDrillDrawing (const BOARD_ITEM *aItem) |
| static int | countDrawings (const BOARD *aBoard, const std::function< bool(const BOARD_ITEM *)> &aMatches) |
| static int | countGrids (const BOARD *aBoard) |
| static void | dropGrids (BOARD *aBoard) |
| static int | countDrillDrawings (const BOARD *aBoard) |
| static void | dropDrillDrawings (BOARD *aBoard) |
| static int | countDrillSymbolConfiguration (const BOARD *aBoard) |
| static void | dropDrillSymbolConfiguration (BOARD *aBoard) |
| static int | countGenerators (const BOARD *aBoard, const wxString &aType) |
| static void | dropGenerators (BOARD *aBoard, const std::function< bool(const PCB_GENERATOR *)> &aMatches) |
| static void | dropGenerators (BOARD *aBoard, const wxString &aType) |
| static bool | isTimeDomainTuning (const PCB_GENERATOR *aGenerator) |
| static int | countTimeDomainTuning (const BOARD *aBoard) |
| static void | dropTimeDomainTuning (BOARD *aBoard) |
| static int | countUnreviewedTuningProperties (const BOARD *aBoard) |
| static int | countUnknownGenerators (const BOARD *aBoard) |
| static bool | isUnreviewedDrawing (const BOARD_ITEM *aItem) |
| static int | countUnreviewedDrawings (const BOARD *aBoard) |
| static void | visitFootprintItems (const FOOTPRINT *aFootprint, const std::function< void(BOARD_ITEM *)> &aVisit) |
| static void | visitBoardItems (const BOARD *aBoard, const std::function< void(BOARD_ITEM *)> &aVisit) |
| static int | countCustomProperties (const BOARD *aBoard) |
| static void | dropCustomPropertiesFp (FOOTPRINT *aFootprint) |
| static void | dropCustomProperties (BOARD *aBoard) |
| static int | countSimulationExclusions (const BOARD *aBoard) |
| static void | dropSimulationExclusionsFp (FOOTPRINT *aFootprint) |
| static void | dropSimulationExclusions (BOARD *aBoard) |
| static bool | hasLineEndings (const BOARD_ITEM *aItem) |
| static bool | unsafeLineEndings (const PCB_SHAPE *aShape) |
| static int | countLineEndings (const BOARD *aBoard, bool aUnsafeOnly=false) |
| static void | clearLineEndings (PCB_SHAPE *aShape) |
| static void | lowerLineEndingShape (PCB_SHAPE *aShape, int aMaxError) |
| static void | transformLineEndingsFp (FOOTPRINT *aFootprint, bool aOmit) |
| static void | transformLineEndings (BOARD *aBoard, bool aOmit) |
| static int | titleFieldIndex (const wxString &aName) |
| static const wxString & | titleFieldText (const TITLE_BLOCK &aTitle, int aIndex) |
| static bool | postTargetText (const wxString &aText, const BOARD *aBoard, int aTargetVersion, std::set< wxString > &aDependencies, int aDepth=0) |
| static bool | postTargetText (const wxString &aText, const BOARD *aBoard, int aTargetVersion) |
| static bool | hasActiveExpression (const wxString &aText) |
| static void | planTextItem (BOARD_ITEM *aItem, int aTargetVersion, TEXT_DOWNGRADE_PLAN &aPlan, const std::function< bool(wxString *)> *aResolver=nullptr) |
| static TEXT_DOWNGRADE_PLAN | planBoardText (const BOARD *aBoard, int aTargetVersion) |
| static void | applyTextPlan (const TEXT_DOWNGRADE_PLAN &aPlan) |
| static std::vector< BOARD_RULE > | boardRules () |
| COMPATIBILITY_REPORT | ClassifyBoardForDowngrade (const BOARD *aBoard, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate) |
| Report what a board would lose if exported to an older KiCad. | |
| static void | compensateImageScale (PCB_REFERENCE_IMAGE *aImage) |
| static void | compensateReferenceImageScalesFp (FOOTPRINT *aFootprint) |
| static void | compensateReferenceImageScales (BOARD *aBoard) |
| void | DowngradeBoardInPlace (BOARD *aBoard, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate) |
| Approximate or remove, in place, what the target cannot represent. | |
| void | DowngradeFootprintInPlace (FOOTPRINT *aFootprint, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate) |
| 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. | |
| void | SaveBoardForTarget (BOARD *aBoard, const wxString &aPath, const DOWNGRADE_TARGET &aTarget) |
| Save a board stamped for the target, using the writer for that version. | |
| void | SaveFootprintForTarget (FOOTPRINT *aFootprint, const wxString &aPath, const DOWNGRADE_TARGET &aTarget) |
| Save a single .kicad_mod footprint file for the target. | |
| static bool | containsGroupPlacementSource (const std::string &aText) |
| wxString | FindUnsupportedBoardToken (const wxString &aSerialized, const DOWNGRADE_TARGET &aTarget) |
| Scan serialized board text for tokens the target cannot parse. | |
| void | FlattenBoardVariant (BOARD *aBoard, const wxString &aVariantName) |
| Bake a variant's overrides into the base footprint attributes. | |
| DOWNGRADE_FILE_RESULT | DowngradeFootprintFileToTemp (const wxString &aSrcFile, const wxString &aTmpFile, const DOWNGRADE_TARGET &aTarget, bool aDropInsteadOfApproximate) |
| Load one .kicad_mod, classify it against the rule table, and write the downgraded copy to aTmpFile. | |
| bool | ExportBoardToOlderVersion (const wxString &aSrcFile, const wxString &aDestFile, const DOWNGRADE_TARGET &aTarget, COMPATIBILITY_REPORT &aReport, wxString *aUnsupportedToken, const wxString &aVariant, bool aDropInsteadOfApproximate) |
| Load a board, downgrade the copy, and write it stamped for the target. | |
Variables | |
| static constexpr int | VER_USER_LAYERS = 20241229 |
| static constexpr int | VER_TEXTBOX_KNOCKOUT = 20250210 |
| static constexpr int | VER_SHAPE_HATCH = 20250222 |
| static constexpr int | VER_VIA_PROTECTION = 20250228 |
| static constexpr int | VER_ZONE_DEFAULTS = 20250302 |
| static constexpr int | VER_JUMPER_PADS = 20250324 |
| static constexpr int | VER_VIA_SPLIT = 20250926 |
| static constexpr int | VER_SKIP_VIA = 20250801 |
| static constexpr int | VER_PRESSFIT = 20250811 |
| static constexpr int | VER_POST_MACHINING = 20251101 |
| static constexpr int | VER_PCB_POINTS = 20250901 |
| static constexpr int | VER_ROUNDED_RECT = 20250829 |
| static constexpr int | VER_FP_UNITS = 20250909 |
| static constexpr int | VER_BARCODE = 20250914 |
| static constexpr int | VER_PAD_DIE_DELAY = 20250401 |
| static constexpr int | VER_TIME_DOMAIN_TUNING = 20250401 |
| static constexpr int | VER_GROUP_PLACEMENT = 20250401 |
| static constexpr int | VER_CELL_KNOCKOUT = 20260603 |
| static constexpr int | VER_BACKDRILL = 20251101 |
| static constexpr int | VER_EXTRUDED_BODY = 20260410 |
| static constexpr int | VER_ELLIPSE = 20260508 |
| static constexpr int | VER_THIEVING = 20260513 |
| static constexpr int | VER_NET_CHAINS = 20260512 |
| static constexpr int | VER_PAD_SIM = 20260521 |
| static constexpr int | VER_DIELECTRIC = 20260511 |
| static constexpr int | VER_GROUP_LIB_ID = 20250513 |
| static constexpr int | VER_IMAGE_PPI = 20260623 |
| static constexpr int | VER_CONSTRAINTS = 20260624 |
| static constexpr int | VER_GRIDS = 20260728 |
| static constexpr int | VER_VIA_STITCH = 20260816 |
| static constexpr int | VER_PROPERTY_VARIABLES = 20260817 |
| static constexpr int | VER_LINE_ENDINGS = 20260818 |
| static constexpr int | VER_SIM_EXCLUSION = 20260828 |
| static constexpr int | VER_VIA_STACK = 20260830 |
| static constexpr int | VER_CUSTOM_PROPERTIES = 20260831 |
| static constexpr int | VER_DRILL_DRAWINGS = 20260901 |
| static constexpr int | BOARD_DOWNGRADE_COVERED = 20260901 |
| static constexpr DATED_TOKEN | BOARD_TOKENS [] |
| static constexpr DATED_TOKEN | BOARD_VALUES [] |
|
static |
Definition at line 2380 of file board_downgrade.cpp.
References BOARD::GetTitleBlock(), TEXT_DOWNGRADE_PLAN::m_board, TEXT_DOWNGRADE_PLAN::m_replacements, TEXT_DOWNGRADE_PLAN::m_titleReplacements, TITLE_BLOCK::SetComment(), TITLE_BLOCK::SetCompany(), TITLE_BLOCK::SetDate(), TITLE_BLOCK::SetRevision(), TITLE_BLOCK::SetTitle(), and text.
Referenced by DowngradeBoardInPlace(), and DowngradeFootprintInPlace().
|
static |
Definition at line 240 of file board_downgrade.cpp.
References SHAPE_POLY_SET::AddOutline(), ERROR_INSIDE, FILLED_SHAPE, SHAPE_POLY_SET::Fracture(), BOARD_ITEM::GetLayer(), BOARD_ITEM::IsLocked(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), POLY, EDA_SHAPE::SetFillMode(), PCB_SHAPE::SetLayer(), BOARD_ITEM::SetLocked(), PCB_SHAPE::SetPolyShape(), PCB_SHAPE::SetWidth(), SHAPE_POLY_SET::Simplify(), and PCB_BARCODE::TransformShapeToPolygon().
Referenced by lowerBarcodes(), and lowerBarcodesFp().
| int BoardDowngradeCoveredVersion | ( | ) |
The format the denylist was generated against. A format bump forces a review.
Definition at line 2876 of file board_downgrade.cpp.
References BOARD_DOWNGRADE_COVERED.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 2429 of file board_downgrade.cpp.
References _, BLOCK, countBackdrills(), countBarcodes(), countBuriedVias(), countConstraints(), countCustomFpStackups(), countCustomProperties(), countDieDelays(), countDielectricModels(), countDrillDrawings(), countDrillSymbolConfiguration(), countEllipses(), countExtrudedBodies(), countGenerators(), countGrids(), countGroupDesignBlocks(), countGroupPlacementAreas(), countHatchedFills(), countHighUserLayers(), countJumperPads(), countKnockoutTableCells(), countKnockoutTextBoxes(), countLineEndings(), countNetChains(), countPadSimTypes(), countPcbPoints(), countPcbVariants(), countPostMachining(), countPressFitPads(), countRoundedRects(), countScaledFootprints(), countSimulationExclusions(), countSkipVias(), countThievingZones(), countTimeDomainTuning(), countUnitInfo(), countUnknownGenerators(), countUnreviewedDrawings(), countUnreviewedTuningProperties(), countViaProtection(), countZoneDefaults(), countZoneLayerProperties(), DROP, dropConstraints(), dropConstraintsFp(), dropCustomProperties(), dropCustomPropertiesFp(), dropDieDelays(), dropDieDelaysFp(), dropDielectricModels(), dropDrillDrawings(), dropDrillSymbolConfiguration(), dropExtrudedBodies(), dropExtrudedBodiesFp(), dropGenerators(), dropGrids(), dropGroupDesignBlocks(), dropGroupDesignBlocksFp(), dropGroupPlacementAreas(), dropGroupPlacementAreasFp(), dropJumperPads(), dropJumperPadsFp(), dropKnockoutTableCells(), dropKnockoutTableCellsFp(), dropKnockoutTextBoxes(), dropKnockoutTextBoxesFp(), dropNetChains(), dropPadSimTypes(), dropPadSimTypesFp(), dropPcbPoints(), dropPcbPointsFp(), dropPcbVariants(), dropPcbVariantsFp(), dropPostMachining(), dropPostMachiningFp(), dropPressFitPads(), dropPressFitPadsFp(), dropSimulationExclusions(), dropSimulationExclusionsFp(), dropTimeDomainTuning(), dropUnitInfo(), dropUnitInfoFp(), dropViaProtection(), dropZoneDefaults(), dropZoneLayerProperties(), dropZoneLayerPropertiesFp(), FILLED_SHAPE, FIRST_FP_AFFINE_TRANSFORM, FIRST_FP_CUSTOM_STACKUP, FIRST_PCB_VARIANTS, isHatchedCopperShape(), isHatchedInkShape(), LOWER, lowerBarcodes(), lowerBarcodesFp(), lowerBuriedVias(), lowerEllipses(), lowerEllipsesFp(), lowerRoundedRects(), lowerRoundedRectsFp(), lowerSkipVias(), NO_FILL, omitBarcodes(), omitBarcodesFp(), omitEllipses(), omitEllipsesFp(), omitKnockoutTableCells(), omitKnockoutTableCellsFp(), omitKnockoutTextBoxes(), omitKnockoutTextBoxesFp(), omitRoundedRects(), omitRoundedRectsFp(), setHatchedFills(), setHatchedFillsFp(), transformLineEndings(), transformLineEndingsFp(), VER_BACKDRILL, VER_BARCODE, VER_CELL_KNOCKOUT, VER_CONSTRAINTS, VER_CUSTOM_PROPERTIES, VER_DIELECTRIC, VER_DRILL_DRAWINGS, VER_ELLIPSE, VER_EXTRUDED_BODY, VER_FP_UNITS, VER_GRIDS, VER_GROUP_LIB_ID, VER_GROUP_PLACEMENT, VER_JUMPER_PADS, VER_LINE_ENDINGS, VER_NET_CHAINS, VER_PAD_DIE_DELAY, VER_PAD_SIM, VER_PCB_POINTS, VER_POST_MACHINING, VER_PRESSFIT, VER_ROUNDED_RECT, VER_SHAPE_HATCH, VER_SIM_EXCLUSION, VER_SKIP_VIA, VER_TEXTBOX_KNOCKOUT, VER_THIEVING, VER_TIME_DOMAIN_TUNING, VER_USER_LAYERS, VER_VIA_PROTECTION, VER_VIA_SPLIT, VER_VIA_STACK, VER_VIA_STITCH, and VER_ZONE_DEFAULTS.
Referenced by ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), and DowngradeFootprintInPlace().
| 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.
Does not modify the board. aDropInsteadOfApproximate reports LOWER features as DROP and selects their omission transforms.
Definition at line 2641 of file board_downgrade.cpp.
References _, COMPATIBILITY_REPORT::Add(), BLOCK, BOARD_DOWNGRADE_COVERED, boardRules(), countLineEndings(), DROP, PCB_PLOT_PARAMS::GetFormat(), BOARD::GetPlotOptions(), LOWER, DOWNGRADE_TARGET::m_boardVersion, planBoardText(), PNG, SEXPR_BOARD_FILE_VERSION, text, VER_LINE_ENDINGS, and VER_PROPERTY_VARIABLES.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), checkTransformedBoardUsesOnlyKnownTokens(), classifyFootprintLibraries(), DowngradeFootprintFileToTemp(), ExportBoardToOlderVersion(), and PCBNEW_JOBS_HANDLER::JobDowngrade().
|
static |
Definition at line 1934 of file board_downgrade.cpp.
References EDA_SHAPE::SetEndEnding(), and EDA_SHAPE::SetStartEnding().
Referenced by lowerLineEndingShape(), transformLineEndings(), and transformLineEndingsFp().
|
static |
Definition at line 2705 of file board_downgrade.cpp.
References REFERENCE_IMAGE::GetImage(), REFERENCE_IMAGE::GetImageScale(), BITMAP_BASE::GetLegacyPPI(), BITMAP_BASE::GetPPI(), PCB_REFERENCE_IMAGE::GetReferenceImage(), and REFERENCE_IMAGE::SetImageScale().
Referenced by compensateReferenceImageScales(), and compensateReferenceImageScalesFp().
|
static |
Definition at line 2725 of file board_downgrade.cpp.
References compensateImageScale(), compensateReferenceImageScalesFp(), BOARD::Drawings(), BOARD::Footprints(), and PCB_REFERENCE_IMAGE_T.
Referenced by DowngradeBoardInPlace().
|
static |
Definition at line 2715 of file board_downgrade.cpp.
References compensateImageScale(), FOOTPRINT::GraphicalItems(), and PCB_REFERENCE_IMAGE_T.
Referenced by compensateReferenceImageScales(), and DowngradeFootprintInPlace().
|
static |
Definition at line 2906 of file board_downgrade.cpp.
References end, path, StripSexprStrings(), and text.
Referenced by FindUnsupportedBoardToken().
|
static |
Definition at line 656 of file board_downgrade.cpp.
References BOARD::GetPads(), hasBackdrill(), pad, PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 551 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), and PCB_BARCODE_T.
Referenced by boardRules().
|
static |
Definition at line 747 of file board_downgrade.cpp.
References BURIED, PCB_VIA::GetViaType(), PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 1555 of file board_downgrade.cpp.
References BOARD::Constraints(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1388 of file board_downgrade.cpp.
References EXPAND_INNER_LAYERS, and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1818 of file board_downgrade.cpp.
References EDA_ITEM::HasCustomProperties(), and visitBoardItems().
|
static |
Definition at line 824 of file board_downgrade.cpp.
References BOARD::GetPads(), and pad.
Referenced by boardRules().
|
static |
Definition at line 985 of file board_downgrade.cpp.
References BS_ITEM_TYPE_DIELECTRIC, CONSTANT, BOARD::GetDesignSettings(), BOARD_STACKUP::GetList(), and BOARD_DESIGN_SETTINGS::GetStackupDescriptor().
Referenced by boardRules().
|
static |
Definition at line 1606 of file board_downgrade.cpp.
References BOARD::Drawings().
Referenced by countDrillDrawings(), countGrids(), and countUnreviewedDrawings().
|
static |
Definition at line 1624 of file board_downgrade.cpp.
References countDrawings(), and isDrillDrawing().
Referenced by boardRules().
|
static |
Definition at line 1636 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::GetDrillSymbolProfile().
Referenced by boardRules().
|
static |
Definition at line 418 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), forEachPadPrimitive(), and isEllipse().
|
static |
Definition at line 463 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1648 of file board_downgrade.cpp.
References BOARD::Generators().
Referenced by boardRules().
|
static |
Definition at line 1612 of file board_downgrade.cpp.
References countDrawings(), and isGrid().
Referenced by boardRules().
|
static |
Definition at line 1022 of file board_downgrade.cpp.
References BOARD::Footprints(), group, and BOARD::Groups().
Referenced by boardRules().
|
static |
Definition at line 1349 of file board_downgrade.cpp.
References BOARD::Footprints(), hasGroupPlacementLinkage(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 845 of file board_downgrade.cpp.
References BOARD::Drawings(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 907 of file board_downgrade.cpp.
References LSET::Contains(), BOARD::GetEnabledLayers(), User_10, and User_45.
Referenced by boardRules().
|
static |
Definition at line 629 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1238 of file board_downgrade.cpp.
References PCB_TABLE_T, and EDA_ITEM::Type().
Referenced by countKnockoutTableCells().
|
static |
Definition at line 1255 of file board_downgrade.cpp.
References countKnockoutCellsIn(), BOARD::Drawings(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1208 of file board_downgrade.cpp.
References countKnockoutTextBoxesFp(), BOARD::Drawings(), BOARD::Footprints(), and PCB_TEXTBOX_T.
Referenced by boardRules().
|
static |
Definition at line 1184 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems(), and PCB_TEXTBOX_T.
Referenced by countKnockoutTextBoxes().
|
static |
Definition at line 1920 of file board_downgrade.cpp.
References hasLineEndings(), unsafeLineEndings(), and visitBoardItems().
Referenced by boardRules(), and ClassifyBoardForDowngrade().
|
static |
Definition at line 384 of file board_downgrade.cpp.
References BOARD::GetNetInfo().
Referenced by boardRules().
|
static |
Definition at line 507 of file board_downgrade.cpp.
References BOARD::GetPads(), NONE, and pad.
Referenced by boardRules().
|
static |
Definition at line 881 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::Points().
Referenced by boardRules().
|
static |
Definition at line 605 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::GetVariantNames().
Referenced by boardRules().
|
static |
Definition at line 687 of file board_downgrade.cpp.
References BOARD::GetPads(), hasPostMachining(), pad, PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 726 of file board_downgrade.cpp.
References BOARD::GetPads(), pad, and PRESSFIT.
Referenced by boardRules().
|
static |
Definition at line 1152 of file board_downgrade.cpp.
References countRoundedRectsFp(), BOARD::Drawings(), BOARD::Footprints(), and isRoundedRect().
|
static |
Definition at line 1112 of file board_downgrade.cpp.
References forEachPadPrimitive(), FOOTPRINT::GraphicalItems(), and isRoundedRect().
Referenced by countRoundedRects().
|
static |
Definition at line 1055 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1853 of file board_downgrade.cpp.
References BOARD::Footprints(), and name.
Referenced by boardRules().
|
static |
Definition at line 789 of file board_downgrade.cpp.
References PCB_VIA::Padstack(), PCB_VIA_T, START_END_ONLY, BOARD::Tracks(), and PADSTACK::UnconnectedLayerMode().
Referenced by boardRules().
|
static |
Definition at line 484 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 1700 of file board_downgrade.cpp.
References BOARD::Generators(), and isTimeDomainTuning().
Referenced by boardRules().
|
static |
Definition at line 528 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1727 of file board_downgrade.cpp.
References BOARD::Generators(), and BOARD::IsItemIndexedById().
Referenced by boardRules().
|
static |
Definition at line 1780 of file board_downgrade.cpp.
References countDrawings(), BOARD::Footprints(), and isUnreviewedDrawing().
Referenced by boardRules().
|
static |
Definition at line 1712 of file board_downgrade.cpp.
References BOARD::Generators().
Referenced by boardRules().
|
static |
Definition at line 935 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), hasViaProtection(), BOARD_DESIGN_SETTINGS::m_CapVias, BOARD_DESIGN_SETTINGS::m_CoverViasBack, BOARD_DESIGN_SETTINGS::m_CoverViasFront, BOARD_DESIGN_SETTINGS::m_FillVias, BOARD_DESIGN_SETTINGS::m_PlugViasBack, BOARD_DESIGN_SETTINGS::m_PlugViasFront, PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 777 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties.
Referenced by boardRules().
|
static |
Definition at line 1302 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 152 of file board_downgrade.cpp.
References EDA_ITEM::GetParentGroup(), and group.
Referenced by dropConstraintsFp(), dropPcbPointsFp(), lowerBarcodesFp(), and omitGraphicsFp().
| void DowngradeBoardInPlace | ( | BOARD * | aBoard, |
| const DOWNGRADE_TARGET & | aTarget, | ||
| bool | aDropInsteadOfApproximate = false ) |
Approximate or remove, in place, what the target cannot represent.
When aDropInsteadOfApproximate is true, omit LOWER features without generating replacements.
Definition at line 2738 of file board_downgrade.cpp.
References applyTextPlan(), boardRules(), compensateReferenceImageScales(), GERBER, PCB_PLOT_PARAMS::GetFormat(), BOARD::GetPlotOptions(), LOWER, DOWNGRADE_TARGET::m_boardVersion, planBoardText(), PNG, PCB_PLOT_PARAMS::SetFormat(), BOARD::SetPlotOptions(), VER_IMAGE_PPI, and VER_PROPERTY_VARIABLES.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ExportBoardToOlderVersion().
| 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.
Refuses when a block rule fires.
Definition at line 2978 of file board_downgrade.cpp.
References BOARD::Add(), ClassifyBoardForDowngrade(), CONVERTED, DowngradeFootprintInPlace(), PCB_IO_KICAD_SEXPR::ImportFootprint(), REFUSED, BOARD::Remove(), SaveFootprintForTarget(), EDA_ITEM::SetParent(), and SKIPPED.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), checkNativeFootprintGolden(), and downgradeFootprintLibraries().
| void DowngradeFootprintInPlace | ( | FOOTPRINT * | aFootprint, |
| const DOWNGRADE_TARGET & | aTarget, | ||
| bool | aDropInsteadOfApproximate ) |
Footprint-scoped downgrade for standalone .kicad_mod files the board pass never sees.
Definition at line 2771 of file board_downgrade.cpp.
References applyTextPlan(), boardRules(), compensateReferenceImageScalesFp(), LOWER, DOWNGRADE_TARGET::m_boardVersion, planTextItem(), text, VER_IMAGE_PPI, VER_PROPERTY_VARIABLES, and visitFootprintItems().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and DowngradeFootprintFileToTemp().
|
static |
Definition at line 1579 of file board_downgrade.cpp.
References BOARD::Constraints(), dropConstraintsFp(), BOARD::Footprints(), and BOARD::Remove().
Referenced by boardRules().
|
static |
Definition at line 1566 of file board_downgrade.cpp.
References FOOTPRINT::Constraints(), detachFromGroup(), and FOOTPRINT::Remove().
Referenced by boardRules(), and dropConstraints().
|
static |
Definition at line 1842 of file board_downgrade.cpp.
References EDA_ITEM::ClearCustomProperties(), and visitBoardItems().
|
static |
Definition at line 1831 of file board_downgrade.cpp.
References EDA_ITEM::ClearCustomProperties(), and visitFootprintItems().
Referenced by boardRules().
|
static |
Definition at line 838 of file board_downgrade.cpp.
References dropDieDelaysFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 370 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by boardRules(), and dropDieDelays().
|
static |
Definition at line 1007 of file board_downgrade.cpp.
References BS_ITEM_TYPE_DIELECTRIC, CONSTANT, BOARD::GetDesignSettings(), BOARD_STACKUP::GetList(), and BOARD_DESIGN_SETTINGS::GetStackupDescriptor().
Referenced by boardRules().
|
static |
Definition at line 1630 of file board_downgrade.cpp.
References isDrillDrawing(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1642 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::GetDrillSymbolProfile().
Referenced by boardRules().
|
static |
Definition at line 477 of file board_downgrade.cpp.
References dropExtrudedBodiesFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 312 of file board_downgrade.cpp.
References FOOTPRINT::ClearExtrudedBody().
Referenced by boardRules(), and dropExtrudedBodies().
|
static |
Definition at line 1658 of file board_downgrade.cpp.
References EDA_GROUP::AddItem(), BOARD::Generators(), EDA_GROUP::GetItems(), and BOARD::Remove().
Referenced by boardRules(), dropGenerators(), and dropTimeDomainTuning().
|
static |
Definition at line 1683 of file board_downgrade.cpp.
References dropGenerators(), and PCB_GENERATOR::GetGeneratorType().
|
static |
Definition at line 1618 of file board_downgrade.cpp.
References isGrid(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1045 of file board_downgrade.cpp.
References dropGroupDesignBlocksFp(), BOARD::Footprints(), group, and BOARD::Groups().
Referenced by boardRules().
|
static |
Definition at line 377 of file board_downgrade.cpp.
References group, and FOOTPRINT::Groups().
Referenced by boardRules(), and dropGroupDesignBlocks().
|
static |
Definition at line 1378 of file board_downgrade.cpp.
References dropGroupPlacementAreasFp(), dropGroupPlacementLinkage(), BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 1371 of file board_downgrade.cpp.
References dropGroupPlacementLinkage(), and FOOTPRINT::Zones().
Referenced by boardRules(), and dropGroupPlacementAreas().
|
static |
Definition at line 1360 of file board_downgrade.cpp.
References ZONE::GetPlacementAreaSourceType(), GROUP_PLACEMENT, ZONE::SetPlacementAreaEnabled(), ZONE::SetPlacementAreaSource(), ZONE::SetPlacementAreaSourceType(), and SHEETNAME.
Referenced by dropGroupPlacementAreas(), and dropGroupPlacementAreasFp().
|
static |
Definition at line 643 of file board_downgrade.cpp.
References dropJumperPadsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 331 of file board_downgrade.cpp.
References JUMPER_GROUP_SET::Clear(), FOOTPRINT::JumperPadGroups(), and FOOTPRINT::SetDuplicatePadNumbersAreJumpers().
Referenced by boardRules(), and dropJumperPads().
|
static |
Definition at line 1272 of file board_downgrade.cpp.
References PCB_TABLE_T, and EDA_ITEM::Type().
Referenced by dropKnockoutTableCells(), and dropKnockoutTableCellsFp().
|
static |
Definition at line 1292 of file board_downgrade.cpp.
References BOARD::Drawings(), dropKnockoutCellsIn(), dropKnockoutTableCellsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1285 of file board_downgrade.cpp.
References dropKnockoutCellsIn(), and FOOTPRINT::GraphicalItems().
Referenced by boardRules(), and dropKnockoutTableCells().
|
static |
Definition at line 1225 of file board_downgrade.cpp.
References BOARD::Drawings(), dropKnockoutTextBoxesFp(), BOARD::Footprints(), and PCB_TEXTBOX_T.
Referenced by boardRules().
|
static |
Definition at line 1198 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems(), and PCB_TEXTBOX_T.
Referenced by boardRules(), and dropKnockoutTextBoxes().
|
static |
Definition at line 399 of file board_downgrade.cpp.
References chain, BOARD::GetNetChainColors(), BOARD::GetNetInfo(), BOARD::SetNetChainColor(), and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by boardRules().
|
static |
Definition at line 521 of file board_downgrade.cpp.
References dropPadSimTypesFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 318 of file board_downgrade.cpp.
References NONE, pad, and FOOTPRINT::Pads().
Referenced by boardRules(), and dropPadSimTypes().
|
static |
Definition at line 892 of file board_downgrade.cpp.
References dropPcbPointsFp(), BOARD::Footprints(), BOARD::Points(), and BOARD::Remove().
Referenced by boardRules().
|
static |
Definition at line 300 of file board_downgrade.cpp.
References detachFromGroup(), and FOOTPRINT::Points().
Referenced by boardRules(), and dropPcbPoints().
|
static |
Definition at line 619 of file board_downgrade.cpp.
References dropPcbVariantsFp(), BOARD::Footprints(), BOARD::SetCurrentVariant(), and BOARD::SetVariantNames().
Referenced by boardRules().
|
static |
Definition at line 338 of file board_downgrade.cpp.
References FOOTPRINT::DeleteVariant(), FOOTPRINT::GetVariants(), and name.
Referenced by boardRules(), and dropPcbVariants().
|
static |
Definition at line 707 of file board_downgrade.cpp.
References clear(), dropPostMachiningFp(), BOARD::Footprints(), PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 350 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by boardRules(), and dropPostMachining().
|
static |
Definition at line 740 of file board_downgrade.cpp.
References dropPressFitPadsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 360 of file board_downgrade.cpp.
References NONE, pad, FOOTPRINT::Pads(), and PRESSFIT.
Referenced by boardRules(), and dropPressFitPads().
|
static |
Definition at line 1881 of file board_downgrade.cpp.
References dropSimulationExclusionsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1872 of file board_downgrade.cpp.
References FOOTPRINT::GetVariant(), FOOTPRINT::GetVariants(), name, FOOTPRINT::SetExcludedFromSim(), and FOOTPRINT_VARIANT::SetExcludedFromSim().
Referenced by boardRules(), and dropSimulationExclusions().
|
static |
Definition at line 1706 of file board_downgrade.cpp.
References dropGenerators(), and isTimeDomainTuning().
Referenced by boardRules().
|
static |
Definition at line 544 of file board_downgrade.cpp.
References dropUnitInfoFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 325 of file board_downgrade.cpp.
References FOOTPRINT::SetUnitInfo().
Referenced by boardRules(), and dropUnitInfo().
|
static |
Definition at line 957 of file board_downgrade.cpp.
References PADSTACK::BackOuterLayers(), PADSTACK::Drill(), PADSTACK::FrontOuterLayers(), BOARD::GetDesignSettings(), PADSTACK::MASK_LAYER_PROPS::has_covering, PADSTACK::MASK_LAYER_PROPS::has_plugging, PADSTACK::DRILL_PROPS::is_capped, PADSTACK::DRILL_PROPS::is_filled, BOARD_DESIGN_SETTINGS::m_CapVias, BOARD_DESIGN_SETTINGS::m_CoverViasBack, BOARD_DESIGN_SETTINGS::m_CoverViasFront, BOARD_DESIGN_SETTINGS::m_FillVias, BOARD_DESIGN_SETTINGS::m_PlugViasBack, BOARD_DESIGN_SETTINGS::m_PlugViasFront, PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 783 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties.
Referenced by boardRules().
|
static |
Definition at line 1332 of file board_downgrade.cpp.
References dropZoneLayerPropertiesFp(), BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 1325 of file board_downgrade.cpp.
References FOOTPRINT::Zones().
Referenced by boardRules(), and dropZoneLayerProperties().
|
static |
Definition at line 159 of file board_downgrade.cpp.
References SHAPE_POLY_SET::AddOutline(), chain, SHAPE_ELLIPSE::ConvertToPolyline(), ELLIPSE_ARC, ERROR_INSIDE, FILLED_SHAPE, SHAPE_POLY_SET::Fracture(), EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetShape(), PCB_SHAPE::GetWidth(), POLY, EDA_SHAPE::SetFillMode(), PCB_SHAPE::SetPolyShape(), PCB_SHAPE::SetShape(), PCB_SHAPE::SetWidth(), and SHAPE_POLY_SET::Simplify().
Referenced by lowerEllipses(), and lowerEllipsesFp().
| 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.
Fails closed and removes the output if the result would not open there. aUnsupportedToken receives the offending token.
Definition at line 3010 of file board_downgrade.cpp.
References ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), FlattenBoardVariant(), SETTINGS_MANAGER::GetProject(), COMPATIBILITY_REPORT::IsBlocked(), PCB_IO::LoadBoard(), SETTINGS_MANAGER::LoadProject(), DOWNGRADE_TARGET::m_boardVersion, FILEEXT::ProjectFileExtension, SaveBoardForTarget(), and VerifyDowngradedFile().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), checkCustomPadArcSurvives(), checkExportUsesOnlyKnownTokens(), checkNativeBoardGolden(), checkTransformedBoardUsesOnlyKnownTokens(), and PCBNEW_JOBS_HANDLER::JobDowngrade().
| wxString FindUnsupportedBoardToken | ( | const wxString & | aSerialized, |
| const DOWNGRADE_TARGET & | aTarget ) |
Scan serialized board text for tokens the target cannot parse.
Returns the first such token, or empty if the output is safe. Non-empty means refuse the export.
Definition at line 2944 of file board_downgrade.cpp.
References BOARD_TOKENS, BOARD_VALUES, containsGroupPlacementSource(), FindUnsupportedToken(), DOWNGRADE_TARGET::m_boardVersion, SEXPR_BOARD_FILE_VERSION, and VER_GROUP_PLACEMENT.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
| void FlattenBoardVariant | ( | BOARD * | aBoard, |
| const wxString & | aVariantName ) |
Bake a variant's overrides into the base footprint attributes.
Run before the variant registry is dropped, so the exported board matches the chosen variant.
Definition at line 2957 of file board_downgrade.cpp.
References BOARD::Footprints(), and name.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), ExportBoardToOlderVersion(), and PCBNEW_JOBS_HANDLER::JobDowngrade().
|
static |
Definition at line 198 of file board_downgrade.cpp.
References BOARD_ITEM::GetBoard(), BOARD::GetDesignSettings(), BOARD_DESIGN_SETTINGS::m_MaxError, and pcbIUScale.
Referenced by lowerEllipsesFp(), lowerRoundedRectsFp(), and transformLineEndingsFp().
|
static |
Definition at line 1098 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by countEllipses(), countRoundedRectsFp(), lowerEllipsesFp(), and lowerRoundedRectsFp().
|
static |
Definition at line 2160 of file board_downgrade.cpp.
Referenced by planTextItem().
|
static |
Definition at line 650 of file board_downgrade.cpp.
References PADSTACK::SecondaryDrill(), PADSTACK::DRILL_PROPS::size, PADSTACK::TertiaryDrill(), and VECTOR2< T >::x.
Referenced by countBackdrills(), PCB_IO_IPC2581::ensureBackdrillSpecs(), and DIALOG_PAD_PROPERTIES::OnDrillShapeSelected().
|
static |
Definition at line 1342 of file board_downgrade.cpp.
References ZONE::GetIsRuleArea(), ZONE::GetPlacementAreaEnabled(), ZONE::GetPlacementAreaSource(), ZONE::GetPlacementAreaSourceType(), and GROUP_PLACEMENT.
Referenced by countGroupPlacementAreas().
|
static |
Definition at line 1888 of file board_downgrade.cpp.
References EDA_SHAPE::GetEndEndingStyle(), EDA_SHAPE::GetStartEndingStyle(), NONE, PCB_SHAPE_T, and EDA_ITEM::Type().
Referenced by countLineEndings(), transformLineEndings(), and transformLineEndingsFp().
|
static |
Definition at line 676 of file board_downgrade.cpp.
References PADSTACK::BackPostMachining(), PADSTACK::FrontPostMachining(), and NOT_POST_MACHINED.
Referenced by countPostMachining().
|
static |
Definition at line 923 of file board_downgrade.cpp.
References PADSTACK::BackOuterLayers(), PADSTACK::Drill(), PADSTACK::FrontOuterLayers(), PADSTACK::MASK_LAYER_PROPS::has_covering, PADSTACK::MASK_LAYER_PROPS::has_plugging, PADSTACK::DRILL_PROPS::is_capped, PADSTACK::DRILL_PROPS::is_filled, and PCB_VIA::Padstack().
Referenced by countViaProtection().
|
static |
Definition at line 1477 of file board_downgrade.cpp.
References PCB_BARCODE_T, and EDA_ITEM::Type().
Referenced by omitBarcodes(), and omitBarcodesFp().
|
static |
Definition at line 1600 of file board_downgrade.cpp.
References PCB_DRILL_CHART_T, PCB_DRILL_MAP_T, and EDA_ITEM::Type().
Referenced by countDrillDrawings(), and dropDrillDrawings().
|
static |
Definition at line 120 of file board_downgrade.cpp.
References ELLIPSE, ELLIPSE_ARC, PCB_SHAPE_T, and EDA_ITEM::Type().
Referenced by countEllipses(), lowerEllipses(), and lowerEllipsesFp().
|
static |
Definition at line 1594 of file board_downgrade.cpp.
References PCB_GRID_ITEM_T, and EDA_ITEM::Type().
Referenced by countGrids(), and dropGrids().
|
static |
Definition at line 138 of file board_downgrade.cpp.
References BOARD_ITEM::GetLayer(), IsCopperLayer(), and isHatchedShape().
Referenced by boardRules().
|
static |
Definition at line 144 of file board_downgrade.cpp.
References BOARD_ITEM::GetLayer(), IsCopperLayer(), and isHatchedShape().
Referenced by boardRules().
|
static |
Definition at line 130 of file board_downgrade.cpp.
References PCB_SHAPE_T, and EDA_ITEM::Type().
Referenced by isHatchedCopperShape(), and isHatchedInkShape().
|
static |
Definition at line 1490 of file board_downgrade.cpp.
References BOARD_ITEM::IsKnockout(), PCB_TEXTBOX_T, and EDA_ITEM::Type().
Referenced by omitKnockoutTextBoxes(), and omitKnockoutTextBoxesFp().
|
static |
Definition at line 1069 of file board_downgrade.cpp.
References EDA_SHAPE::GetCornerRadius(), EDA_SHAPE::GetShape(), PCB_SHAPE_T, RECTANGLE, and EDA_ITEM::Type().
Referenced by countRoundedRects(), countRoundedRectsFp(), lowerRoundedRects(), and lowerRoundedRectsFp().
|
static |
Definition at line 1693 of file board_downgrade.cpp.
References EDA_GROUP::GetItems().
Referenced by countTimeDomainTuning(), and dropTimeDomainTuning().
|
static |
Definition at line 1754 of file board_downgrade.cpp.
References PCB_BARCODE_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_DRILL_CHART_T, PCB_DRILL_MAP_T, PCB_FIELD_T, PCB_GRID_ITEM_T, PCB_REFERENCE_IMAGE_T, PCB_SHAPE_T, PCB_TABLE_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TEXTBOX_T, and EDA_ITEM::Type().
Referenced by countUnreviewedDrawings().
|
static |
Definition at line 574 of file board_downgrade.cpp.
References BOARD::Add(), barcodeToShapes(), BOARD::Drawings(), BOARD::Footprints(), group, lowerBarcodesFp(), PCB_BARCODE_T, and BOARD::Remove().
Referenced by boardRules().
|
static |
Definition at line 271 of file board_downgrade.cpp.
References FOOTPRINT::Add(), barcodeToShapes(), detachFromGroup(), FOOTPRINT::GraphicalItems(), group, PCB_BARCODE_T, and FOOTPRINT::Remove().
Referenced by boardRules(), and lowerBarcodes().
|
static |
Definition at line 762 of file board_downgrade.cpp.
References BLIND, BURIED, PCB_VIA_T, BOARD::Tracks(), and via.
Referenced by boardRules().
|
static |
Definition at line 448 of file board_downgrade.cpp.
References BOARD::Drawings(), ellipseToPolygon(), BOARD::Footprints(), BOARD::GetDesignSettings(), isEllipse(), lowerEllipsesFp(), and BOARD_DESIGN_SETTINGS::m_MaxError.
|
static |
Definition at line 208 of file board_downgrade.cpp.
References ellipseToPolygon(), footprintMaxError(), forEachPadPrimitive(), FOOTPRINT::GraphicalItems(), and isEllipse().
Referenced by boardRules(), and lowerEllipses().
|
static |
Definition at line 1941 of file board_downgrade.cpp.
References BOARD_ITEM_CONTAINER::Add(), SHAPE_POLY_SET::AddOutline(), clearLineEndings(), SHAPE_POLY_SET::COutline(), end, ERROR_INSIDE, FILLED_SHAPE, SHAPE_POLY_SET::Fracture(), EDA_SHAPE::GetLineEndingEndpoints(), BOARD_ITEM::GetParent(), EDA_ITEM::GetParentGroup(), group, EDA_ITEM::m_Uuid, SHAPE_POLY_SET::OutlineCount(), POLY, EDA_SHAPE::SetFillMode(), EDA_SHAPE::SetLineStyle(), EDA_ITEM::SetParentGroup(), PCB_SHAPE::SetPolyShape(), PCB_SHAPE::SetShape(), PCB_SHAPE::SetWidth(), SHAPE_POLY_SET::Simplify(), SOLID, and EDA_SHAPE::TransformWithLineEndingsToPolygon().
Referenced by transformLineEndings(), and transformLineEndingsFp().
|
static |
Definition at line 1169 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), BOARD::GetDesignSettings(), isRoundedRect(), lowerRoundedRectsFp(), BOARD_DESIGN_SETTINGS::m_MaxError, and roundedRectToPolygon().
|
static |
Definition at line 1133 of file board_downgrade.cpp.
References footprintMaxError(), forEachPadPrimitive(), FOOTPRINT::GraphicalItems(), isRoundedRect(), and roundedRectToPolygon().
Referenced by boardRules(), and lowerRoundedRects().
|
static |
Definition at line 809 of file board_downgrade.cpp.
References PCB_VIA_T, REMOVE_EXCEPT_START_AND_END, PADSTACK::SetUnconnectedLayerMode(), START_END_ONLY, BOARD::Tracks(), and PADSTACK::UnconnectedLayerMode().
Referenced by boardRules().
|
static |
Definition at line 1485 of file board_downgrade.cpp.
References isBarcode(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1481 of file board_downgrade.cpp.
References isBarcode(), and omitGraphicsFp().
Referenced by boardRules().
|
static |
Definition at line 1469 of file board_downgrade.cpp.
References BOARD::Footprints(), isEllipse(), omitGraphics(), and omitPadPrimitives().
|
static |
Definition at line 1464 of file board_downgrade.cpp.
References isEllipse(), omitGraphicsFp(), and omitPadPrimitives().
Referenced by boardRules().
|
static |
Definition at line 1423 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), omitGraphicsFp(), and BOARD::Remove().
Referenced by dropDrillDrawings(), dropGrids(), omitBarcodes(), omitEllipses(), omitKnockoutTextBoxes(), and omitRoundedRects().
|
static |
Definition at line 1404 of file board_downgrade.cpp.
References detachFromGroup(), FOOTPRINT::GraphicalItems(), and FOOTPRINT::Remove().
Referenced by omitBarcodesFp(), omitEllipsesFp(), omitGraphics(), omitKnockoutTextBoxesFp(), and omitRoundedRectsFp().
|
static |
Definition at line 1521 of file board_downgrade.cpp.
References PCB_TABLE_T, and EDA_ITEM::Type().
Referenced by omitKnockoutTableCells(), and omitKnockoutTableCellsFp().
|
static |
Definition at line 1545 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), omitKnockoutCellContents(), and omitKnockoutTableCellsFp().
Referenced by boardRules().
|
static |
Definition at line 1538 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems(), and omitKnockoutCellContents().
Referenced by boardRules(), and omitKnockoutTableCells().
|
static |
Definition at line 1499 of file board_downgrade.cpp.
References isKnockoutTextBox(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1495 of file board_downgrade.cpp.
References isKnockoutTextBox(), and omitGraphicsFp().
Referenced by boardRules().
|
static |
Definition at line 1444 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by omitEllipses(), omitEllipsesFp(), omitRoundedRects(), and omitRoundedRectsFp().
|
static |
Definition at line 1512 of file board_downgrade.cpp.
References BOARD::Footprints(), isRoundedRect(), omitGraphics(), and omitPadPrimitives().
|
static |
Definition at line 1505 of file board_downgrade.cpp.
References isRoundedRect(), omitGraphicsFp(), and omitPadPrimitives().
Referenced by boardRules().
|
static |
Definition at line 2343 of file board_downgrade.cpp.
References BOARD::GetProject(), BOARD::GetTitleBlock(), INTERNAL, TEXT_DOWNGRADE_PLAN::m_blocked, TEXT_DOWNGRADE_PLAN::m_replacements, plan(), planTextItem(), BOARD::ResolveTextVar(), EDA_TEXT::SetText(), PROJECT::TextVarResolver(), TITLE_BLOCK::TextVarResolver(), titleFieldText(), and visitBoardItems().
Referenced by ClassifyBoardForDowngrade(), and DowngradeBoardInPlace().
|
static |
Definition at line 2185 of file board_downgrade.cpp.
References EXPRESSION_EVALUATOR::Evaluate(), ExpandTextVars(), FinalizeTextVarExpansion(), PCB_WRITER_V9::FORMAT_VERSION, BOARD_ITEM::GetBoard(), BOARD_ITEM::GetLayer(), BOARD::GetLayerName(), PCB_DIMENSION_BASE::GetOverrideText(), PCB_DIMENSION_BASE::GetOverrideTextEnabled(), BOARD_ITEM::GetParent(), BOARD_ITEM::GetParentFootprint(), PCB_TEXT::GetShownText(), PCB_BARCODE::GetText(), PCB_TABLECELL::GetUnwrappedShownText(), hasActiveExpression(), EXPRESSION_EVALUATOR::HasErrors(), INTERNAL, TEXT_DOWNGRADE_PLAN::m_blocked, TEXT_DOWNGRADE_PLAN::m_replacements, postTargetText(), BOARD::ResolveTextVar(), FOOTPRINT::ResolveTextVar(), result, BOARD_ITEM::SetLayer(), EDA_TEXT::SetText(), table, and text.
Referenced by DowngradeFootprintInPlace(), and planBoardText().
|
static |
Definition at line 2144 of file board_downgrade.cpp.
References postTargetText().
|
static |
Definition at line 2055 of file board_downgrade.cpp.
References ExtractTextVarReferences(), FinalizeTextVarExpansion(), PCB_WRITER_V9::FORMAT_VERSION, BOARD::GetProject(), BOARD::GetProperties(), PROJECT::GetTextVars(), BOARD::GetTitleBlock(), INTERNAL, name, postTargetText(), TITLE_BLOCK::TextVarResolver(), and titleFieldIndex().
Referenced by planTextItem(), postTargetText(), and postTargetText().
|
static |
Definition at line 1079 of file board_downgrade.cpp.
References SHAPE_POLY_SET::Append(), SHAPE_POLY_SET::Fillet(), EDA_SHAPE::GetCornerRadius(), EDA_SHAPE::GetRectCorners(), SHAPE_POLY_SET::NewOutline(), POLY, radius, PCB_SHAPE::SetCornerRadius(), PCB_SHAPE::SetPolyShape(), and PCB_SHAPE::SetShape().
Referenced by lowerRoundedRects(), and lowerRoundedRectsFp().
| void SaveBoardForTarget | ( | BOARD * | aBoard, |
| const wxString & | aPath, | ||
| const DOWNGRADE_TARGET & | aTarget ) |
Save a board stamped for the target, using the writer for that version.
Definition at line 2884 of file board_downgrade.cpp.
References PCB_WRITER_V10::FORMAT_VERSION, PCB_WRITER_V9::FORMAT_VERSION, DOWNGRADE_TARGET::m_boardVersion, PCB_WRITER_V10::SaveBoard(), and PCB_WRITER_V9::SaveBoard().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ExportBoardToOlderVersion().
| void SaveFootprintForTarget | ( | FOOTPRINT * | aFootprint, |
| const wxString & | aPath, | ||
| const DOWNGRADE_TARGET & | aTarget ) |
Save a single .kicad_mod footprint file for the target.
Definition at line 2895 of file board_downgrade.cpp.
References PCB_WRITER_V10::FORMAT_VERSION, PCB_WRITER_V9::FORMAT_VERSION, DOWNGRADE_TARGET::m_boardVersion, PCB_WRITER_V10::SaveFootprintFile(), and PCB_WRITER_V9::SaveFootprintFile().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and DowngradeFootprintFileToTemp().
|
static |
Definition at line 868 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), and setHatchedFillsFp().
Referenced by boardRules().
|
static |
Definition at line 227 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems().
Referenced by boardRules(), and setHatchedFills().
|
static |
Definition at line 2026 of file board_downgrade.cpp.
Referenced by postTargetText().
|
static |
Definition at line 2042 of file board_downgrade.cpp.
References TITLE_BLOCK::GetComment(), TITLE_BLOCK::GetCompany(), TITLE_BLOCK::GetDate(), TITLE_BLOCK::GetRevision(), and TITLE_BLOCK::GetTitle().
Referenced by planBoardText().
|
static |
Definition at line 2006 of file board_downgrade.cpp.
References clearLineEndings(), BOARD::GetDesignSettings(), hasLineEndings(), lowerLineEndingShape(), BOARD_DESIGN_SETTINGS::m_MaxError, unsafeLineEndings(), and visitBoardItems().
Referenced by boardRules().
|
static |
Definition at line 1986 of file board_downgrade.cpp.
References clearLineEndings(), footprintMaxError(), hasLineEndings(), lowerLineEndingShape(), unsafeLineEndings(), and visitFootprintItems().
Referenced by boardRules().
|
static |
Definition at line 1899 of file board_downgrade.cpp.
References DEFAULT, end, EDA_SHAPE::GetEffectiveWidth(), EDA_SHAPE::GetEndEnding(), EDA_SHAPE::GetLineEndingEndpoints(), EDA_SHAPE::GetLineStyle(), EDA_SHAPE::GetStartEnding(), LINE_ENDING::GetStroke(), SOLID, and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by countLineEndings(), transformLineEndings(), and transformLineEndingsFp().
|
static |
Definition at line 1800 of file board_downgrade.cpp.
References BOARD::Generators(), name, RECURSE, and BOARD::RunOnChildren().
Referenced by countCustomProperties(), countLineEndings(), dropCustomProperties(), planBoardText(), and transformLineEndings().
|
static |
Definition at line 1793 of file board_downgrade.cpp.
References RECURSE, and FOOTPRINT::RunOnChildren().
Referenced by DowngradeFootprintInPlace(), dropCustomPropertiesFp(), and transformLineEndingsFp().
|
staticconstexpr |
Definition at line 117 of file board_downgrade.cpp.
Referenced by BoardDowngradeCoveredVersion(), and ClassifyBoardForDowngrade().
|
staticconstexpr |
Definition at line 2806 of file board_downgrade.cpp.
Referenced by FindUnsupportedBoardToken().
|
staticconstexpr |
Definition at line 2870 of file board_downgrade.cpp.
Referenced by FindUnsupportedBoardToken().
|
staticconstexpr |
Definition at line 94 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 88 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 93 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 103 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 110 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 100 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 111 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 96 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 95 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 87 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 104 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 101 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 92 of file board_downgrade.cpp.
Referenced by boardRules(), and FindUnsupportedBoardToken().
|
staticconstexpr |
Definition at line 102 of file board_downgrade.cpp.
Referenced by DowngradeBoardInPlace(), and DowngradeFootprintInPlace().
|
staticconstexpr |
Definition at line 80 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 107 of file board_downgrade.cpp.
Referenced by boardRules(), and ClassifyBoardForDowngrade().
|
staticconstexpr |
Definition at line 98 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 89 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 99 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 85 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 84 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 83 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 106 of file board_downgrade.cpp.
Referenced by ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), and DowngradeFootprintInPlace().
|
staticconstexpr |
Definition at line 86 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 77 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 108 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 82 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 76 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 97 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 90 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 75 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 78 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 81 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 109 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 105 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 79 of file board_downgrade.cpp.
Referenced by boardRules().