|
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_stackup_table.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 <board_tables/generated_table_refresh.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 | dropFootprintHeightsFp (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 | countFootprintHeights (const BOARD *aBoard) |
| static void | dropFootprintHeights (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 int | countNonComponentPads (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 bool | isStackupTable (const BOARD_ITEM *aItem) |
| static int | countStackupTables (const BOARD *aBoard) |
| static void | omitStackupTables (BOARD *aBoard) |
| static PCB_TABLE * | stackupTableToTable (const PCB_STACKUP_TABLE *aTable, BOARD_ITEM *aParent) |
| Cells are cloned, not moved, because a table deletes its own cells. | |
| static void | lowerStackupTables (BOARD *aBoard) |
| static int | countReferenceImageRotations (const BOARD *aBoard) |
| static int | countReferenceImageOpacities (const BOARD *aBoard) |
| static void | dropReferenceImageOpacities (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 | countLinkedPlacementAreas (const BOARD *aBoard) |
| static void | dropLinkedPlacementAreas (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. | |
| int | FootprintLibDowngradeCoveredVersion () |
| The footprint library format the rules were reviewed against. Moves independently of the board. | |
| 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 | VER_FOOTPRINT_HEIGHT = 20261017 |
| static constexpr int | VER_LINKED_PLACEMENT = 20261018 |
| static constexpr int | VER_IMAGE_ROTATION = 20261025 |
| static constexpr int | VER_IMAGE_OPACITY = 20261025 |
| static constexpr int | VER_FP_LIB_HEADER = 20261028 |
| static constexpr int | VER_STACKUP_TABLE = 20261030 |
| static constexpr int | VER_NON_COMPONENT_PAD = 20261031 |
| static constexpr int | BOARD_DOWNGRADE_COVERED = 20261031 |
| static constexpr int | FOOTPRINT_LIB_DOWNGRADE_COVERED = 20261031 |
| static constexpr DATED_TOKEN | BOARD_TOKENS [] |
| static constexpr DATED_TOKEN | BOARD_VALUES [] |
|
static |
Definition at line 2644 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 259 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 3211 of file board_downgrade.cpp.
References BOARD_DOWNGRADE_COVERED.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 2693 of file board_downgrade.cpp.
References _, BLOCK, countBackdrills(), countBarcodes(), countBuriedVias(), countConstraints(), countCustomFpStackups(), countCustomProperties(), countDieDelays(), countDielectricModels(), countDrillDrawings(), countDrillSymbolConfiguration(), countEllipses(), countExtrudedBodies(), countFootprintHeights(), countGenerators(), countGrids(), countGroupDesignBlocks(), countGroupPlacementAreas(), countHatchedFills(), countHighUserLayers(), countJumperPads(), countKnockoutTableCells(), countKnockoutTextBoxes(), countLineEndings(), countLinkedPlacementAreas(), countNetChains(), countNonComponentPads(), countPadSimTypes(), countPcbPoints(), countPcbVariants(), countPostMachining(), countPressFitPads(), countReferenceImageOpacities(), countReferenceImageRotations(), countRoundedRects(), countScaledFootprints(), countSimulationExclusions(), countSkipVias(), countStackupTables(), countThievingZones(), countTimeDomainTuning(), countUnitInfo(), countUnknownGenerators(), countUnreviewedDrawings(), countUnreviewedTuningProperties(), countViaProtection(), countZoneDefaults(), countZoneLayerProperties(), DROP, dropConstraints(), dropConstraintsFp(), dropCustomProperties(), dropCustomPropertiesFp(), dropDieDelays(), dropDieDelaysFp(), dropDielectricModels(), dropDrillDrawings(), dropDrillSymbolConfiguration(), dropExtrudedBodies(), dropExtrudedBodiesFp(), dropFootprintHeights(), dropFootprintHeightsFp(), dropGenerators(), dropGrids(), dropGroupDesignBlocks(), dropGroupDesignBlocksFp(), dropGroupPlacementAreas(), dropGroupPlacementAreasFp(), dropJumperPads(), dropJumperPadsFp(), dropKnockoutTableCells(), dropKnockoutTableCellsFp(), dropKnockoutTextBoxes(), dropKnockoutTextBoxesFp(), dropLinkedPlacementAreas(), dropNetChains(), dropPadSimTypes(), dropPadSimTypesFp(), dropPcbPoints(), dropPcbPointsFp(), dropPcbVariants(), dropPcbVariantsFp(), dropPostMachining(), dropPostMachiningFp(), dropPressFitPads(), dropPressFitPadsFp(), dropReferenceImageOpacities(), 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(), lowerStackupTables(), NO_FILL, omitBarcodes(), omitBarcodesFp(), omitEllipses(), omitEllipsesFp(), omitKnockoutTableCells(), omitKnockoutTableCellsFp(), omitKnockoutTextBoxes(), omitKnockoutTextBoxesFp(), omitRoundedRects(), omitRoundedRectsFp(), omitStackupTables(), 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_FOOTPRINT_HEIGHT, VER_FP_UNITS, VER_GRIDS, VER_GROUP_LIB_ID, VER_GROUP_PLACEMENT, VER_IMAGE_OPACITY, VER_IMAGE_ROTATION, VER_JUMPER_PADS, VER_LINE_ENDINGS, VER_LINKED_PLACEMENT, VER_NET_CHAINS, VER_NON_COMPONENT_PAD, 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_STACKUP_TABLE, 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 2945 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(), 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 2172 of file board_downgrade.cpp.
References EDA_SHAPE::SetEndEnding(), and EDA_SHAPE::SetStartEnding().
Referenced by lowerLineEndingShape(), transformLineEndings(), and transformLineEndingsFp().
|
static |
Definition at line 3023 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 3043 of file board_downgrade.cpp.
References compensateImageScale(), compensateReferenceImageScalesFp(), BOARD::Drawings(), BOARD::Footprints(), and PCB_REFERENCE_IMAGE_T.
Referenced by DowngradeBoardInPlace().
|
static |
Definition at line 3033 of file board_downgrade.cpp.
References compensateImageScale(), FOOTPRINT::GraphicalItems(), and PCB_REFERENCE_IMAGE_T.
Referenced by compensateReferenceImageScales(), and DowngradeFootprintInPlace().
|
static |
Definition at line 3247 of file board_downgrade.cpp.
References end, path, StripSexprStrings(), and text.
Referenced by FindUnsupportedBoardToken().
|
static |
Definition at line 702 of file board_downgrade.cpp.
References BOARD::GetPads(), hasBackdrill(), pad, PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 597 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), and PCB_BARCODE_T.
Referenced by boardRules().
|
static |
Definition at line 795 of file board_downgrade.cpp.
References BURIED, PCB_VIA::GetViaType(), PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 1621 of file board_downgrade.cpp.
References BOARD::Constraints(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1439 of file board_downgrade.cpp.
References EXPAND_INNER_LAYERS, and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 2031 of file board_downgrade.cpp.
References EDA_ITEM::HasCustomProperties(), and visitBoardItems().
|
static |
Definition at line 873 of file board_downgrade.cpp.
References BOARD::GetPads(), and pad.
Referenced by boardRules().
|
static |
Definition at line 1035 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 1672 of file board_downgrade.cpp.
References BOARD::Drawings().
Referenced by countDrillDrawings(), countGrids(), countStackupTables(), and countUnreviewedDrawings().
|
static |
Definition at line 1836 of file board_downgrade.cpp.
References countDrawings(), and isDrillDrawing().
Referenced by boardRules().
|
static |
Definition at line 1848 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::GetDrillSymbolProfile().
Referenced by boardRules().
|
static |
Definition at line 443 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), forEachPadPrimitive(), and isEllipse().
|
static |
Definition at line 488 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 509 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1860 of file board_downgrade.cpp.
References BOARD::Generators().
Referenced by boardRules().
|
static |
Definition at line 1678 of file board_downgrade.cpp.
References countDrawings(), and isGrid().
Referenced by boardRules().
|
static |
Definition at line 1072 of file board_downgrade.cpp.
References BOARD::Footprints(), group, and BOARD::Groups().
Referenced by boardRules().
|
static |
Definition at line 1400 of file board_downgrade.cpp.
References BOARD::Footprints(), hasGroupPlacementLinkage(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 894 of file board_downgrade.cpp.
References BOARD::Drawings(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 956 of file board_downgrade.cpp.
References LSET::Contains(), BOARD::GetEnabledLayers(), User_10, and User_45.
Referenced by boardRules().
|
static |
Definition at line 675 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1288 of file board_downgrade.cpp.
References PCB_TABLE_T, and EDA_ITEM::Type().
Referenced by countKnockoutTableCells().
|
static |
Definition at line 1305 of file board_downgrade.cpp.
References countKnockoutCellsIn(), BOARD::Drawings(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1258 of file board_downgrade.cpp.
References countKnockoutTextBoxesFp(), BOARD::Drawings(), BOARD::Footprints(), and PCB_TEXTBOX_T.
Referenced by boardRules().
|
static |
Definition at line 1234 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems(), and PCB_TEXTBOX_T.
Referenced by countKnockoutTextBoxes().
|
static |
Definition at line 2158 of file board_downgrade.cpp.
References hasLineEndings(), unsafeLineEndings(), and visitBoardItems().
Referenced by boardRules(), and ClassifyBoardForDowngrade().
|
static |
Definition at line 2066 of file board_downgrade.cpp.
References niluuid, and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 409 of file board_downgrade.cpp.
References BOARD::GetNetInfo().
Referenced by boardRules().
|
static |
Definition at line 1453 of file board_downgrade.cpp.
References BOARD::Footprints(), NON_COMPONENT, and pad.
Referenced by boardRules().
|
static |
Definition at line 553 of file board_downgrade.cpp.
References BOARD::GetPads(), NONE, and pad.
Referenced by boardRules().
|
static |
Definition at line 930 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::Points().
Referenced by boardRules().
|
static |
Definition at line 651 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::GetVariantNames().
Referenced by boardRules().
|
static |
Definition at line 734 of file board_downgrade.cpp.
References BOARD::GetPads(), hasPostMachining(), pad, PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 774 of file board_downgrade.cpp.
References BOARD::GetPads(), pad, and PRESSFIT.
Referenced by boardRules().
|
static |
Definition at line 1795 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), REFERENCE_IMAGE::GetOpacity(), PCB_REFERENCE_IMAGE::GetReferenceImage(), and PCB_REFERENCE_IMAGE_T.
Referenced by boardRules().
|
static |
Definition at line 1773 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), REFERENCE_IMAGE::GetOrientation(), PCB_REFERENCE_IMAGE::GetReferenceImage(), EDA_ANGLE::IsZero(), and PCB_REFERENCE_IMAGE_T.
Referenced by boardRules().
|
static |
Definition at line 1202 of file board_downgrade.cpp.
References countRoundedRectsFp(), BOARD::Drawings(), BOARD::Footprints(), and isRoundedRect().
|
static |
Definition at line 1162 of file board_downgrade.cpp.
References forEachPadPrimitive(), FOOTPRINT::GraphicalItems(), and isRoundedRect().
Referenced by countRoundedRects().
|
static |
Definition at line 1105 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 2090 of file board_downgrade.cpp.
References BOARD::Footprints(), and name.
Referenced by boardRules().
|
static |
Definition at line 837 of file board_downgrade.cpp.
References PCB_VIA_T, START_END_ONLY, BOARD::Tracks(), and via.
Referenced by boardRules().
|
static |
Definition at line 1696 of file board_downgrade.cpp.
References countDrawings(), and isStackupTable().
Referenced by boardRules().
|
static |
Definition at line 530 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 1912 of file board_downgrade.cpp.
References BOARD::Generators(), and isTimeDomainTuning().
Referenced by boardRules().
|
static |
Definition at line 574 of file board_downgrade.cpp.
References BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1939 of file board_downgrade.cpp.
References BOARD::Generators(), and BOARD::IsItemIndexedById().
Referenced by boardRules().
|
static |
Definition at line 1993 of file board_downgrade.cpp.
References countDrawings(), BOARD::Footprints(), and isUnreviewedDrawing().
Referenced by boardRules().
|
static |
Definition at line 1924 of file board_downgrade.cpp.
References BOARD::Generators().
Referenced by boardRules().
|
static |
Definition at line 985 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 825 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties.
Referenced by boardRules().
|
static |
Definition at line 1352 of file board_downgrade.cpp.
References BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 171 of file board_downgrade.cpp.
References EDA_ITEM::GetParentGroup(), and group.
Referenced by dropConstraintsFp(), dropPcbPointsFp(), lowerBarcodesFp(), lowerStackupTables(), 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 3056 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(), 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 3319 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 3092 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 1645 of file board_downgrade.cpp.
References BOARD::Constraints(), dropConstraintsFp(), BOARD::Footprints(), and BOARD::Remove().
Referenced by boardRules().
|
static |
Definition at line 1632 of file board_downgrade.cpp.
References FOOTPRINT::Constraints(), detachFromGroup(), and FOOTPRINT::Remove().
Referenced by boardRules(), and dropConstraints().
|
static |
Definition at line 2055 of file board_downgrade.cpp.
References EDA_ITEM::ClearCustomProperties(), and visitBoardItems().
|
static |
Definition at line 2044 of file board_downgrade.cpp.
References EDA_ITEM::ClearCustomProperties(), and visitFootprintItems().
Referenced by boardRules().
|
static |
Definition at line 887 of file board_downgrade.cpp.
References dropDieDelaysFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 395 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by boardRules(), and dropDieDelays().
|
static |
Definition at line 1057 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 1842 of file board_downgrade.cpp.
References isDrillDrawing(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1854 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::GetDrillSymbolProfile().
Referenced by boardRules().
|
static |
Definition at line 502 of file board_downgrade.cpp.
References dropExtrudedBodiesFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 331 of file board_downgrade.cpp.
References FOOTPRINT::ClearBody().
Referenced by boardRules(), and dropExtrudedBodies().
|
static |
Definition at line 523 of file board_downgrade.cpp.
References dropFootprintHeightsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 337 of file board_downgrade.cpp.
References FOOTPRINT::SetHeight().
Referenced by boardRules(), and dropFootprintHeights().
|
static |
Definition at line 1870 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 1895 of file board_downgrade.cpp.
References dropGenerators(), and PCB_GENERATOR::GetGeneratorType().
|
static |
Definition at line 1684 of file board_downgrade.cpp.
References isGrid(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1095 of file board_downgrade.cpp.
References dropGroupDesignBlocksFp(), BOARD::Footprints(), group, and BOARD::Groups().
Referenced by boardRules().
|
static |
Definition at line 402 of file board_downgrade.cpp.
References group, and FOOTPRINT::Groups().
Referenced by boardRules(), and dropGroupDesignBlocks().
|
static |
Definition at line 1429 of file board_downgrade.cpp.
References dropGroupPlacementAreasFp(), dropGroupPlacementLinkage(), BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 1422 of file board_downgrade.cpp.
References dropGroupPlacementLinkage(), and FOOTPRINT::Zones().
Referenced by boardRules(), and dropGroupPlacementAreas().
|
static |
Definition at line 1411 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 689 of file board_downgrade.cpp.
References dropJumperPadsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 356 of file board_downgrade.cpp.
References JUMPER_GROUP_SET::Clear(), FOOTPRINT::JumperPadGroups(), and FOOTPRINT::SetDuplicatePadNumbersAreJumpers().
Referenced by boardRules(), and dropJumperPads().
|
static |
Definition at line 1322 of file board_downgrade.cpp.
References PCB_TABLE_T, and EDA_ITEM::Type().
Referenced by dropKnockoutTableCells(), and dropKnockoutTableCellsFp().
|
static |
Definition at line 1342 of file board_downgrade.cpp.
References BOARD::Drawings(), dropKnockoutCellsIn(), dropKnockoutTableCellsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 1335 of file board_downgrade.cpp.
References dropKnockoutCellsIn(), and FOOTPRINT::GraphicalItems().
Referenced by boardRules(), and dropKnockoutTableCells().
|
static |
Definition at line 1275 of file board_downgrade.cpp.
References BOARD::Drawings(), dropKnockoutTextBoxesFp(), BOARD::Footprints(), and PCB_TEXTBOX_T.
Referenced by boardRules().
|
static |
Definition at line 1248 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems(), and PCB_TEXTBOX_T.
Referenced by boardRules(), and dropKnockoutTextBoxes().
|
static |
Definition at line 2080 of file board_downgrade.cpp.
References niluuid, and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 424 of file board_downgrade.cpp.
References chain, BOARD::GetNetChainColors(), BOARD::GetNetInfo(), BOARD::SetNetChainColor(), and KIGFX::COLOR4D::UNSPECIFIED.
Referenced by boardRules().
|
static |
Definition at line 567 of file board_downgrade.cpp.
References dropPadSimTypesFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 343 of file board_downgrade.cpp.
References NONE, pad, and FOOTPRINT::Pads().
Referenced by boardRules(), and dropPadSimTypes().
|
static |
Definition at line 941 of file board_downgrade.cpp.
References dropPcbPointsFp(), BOARD::Footprints(), BOARD::Points(), and BOARD::Remove().
Referenced by boardRules().
|
static |
Definition at line 319 of file board_downgrade.cpp.
References detachFromGroup(), and FOOTPRINT::Points().
Referenced by boardRules(), and dropPcbPoints().
|
static |
Definition at line 665 of file board_downgrade.cpp.
References dropPcbVariantsFp(), BOARD::Footprints(), BOARD::SetCurrentVariant(), and BOARD::SetVariantNames().
Referenced by boardRules().
|
static |
Definition at line 363 of file board_downgrade.cpp.
References FOOTPRINT::DeleteVariant(), FOOTPRINT::GetVariants(), and name.
Referenced by boardRules(), and dropPcbVariants().
|
static |
Definition at line 754 of file board_downgrade.cpp.
References clear(), dropPostMachiningFp(), BOARD::Footprints(), PCB_VIA_T, and BOARD::Tracks().
Referenced by boardRules().
|
static |
Definition at line 375 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by boardRules(), and dropPostMachining().
|
static |
Definition at line 788 of file board_downgrade.cpp.
References dropPressFitPadsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 385 of file board_downgrade.cpp.
References NONE, pad, FOOTPRINT::Pads(), and PRESSFIT.
Referenced by boardRules(), and dropPressFitPads().
|
static |
Definition at line 1817 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), PCB_REFERENCE_IMAGE_T, and PCB_REFERENCE_IMAGE::SetOpacity().
Referenced by boardRules().
|
static |
Definition at line 2118 of file board_downgrade.cpp.
References dropSimulationExclusionsFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 2109 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 1918 of file board_downgrade.cpp.
References dropGenerators(), and isTimeDomainTuning().
Referenced by boardRules().
|
static |
Definition at line 590 of file board_downgrade.cpp.
References dropUnitInfoFp(), and BOARD::Footprints().
Referenced by boardRules().
|
static |
Definition at line 350 of file board_downgrade.cpp.
References FOOTPRINT::SetUnitInfo().
Referenced by boardRules(), and dropUnitInfo().
|
static |
Definition at line 1007 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 831 of file board_downgrade.cpp.
References BOARD::GetDesignSettings(), and BOARD_DESIGN_SETTINGS::m_ZoneLayerProperties.
Referenced by boardRules().
|
static |
Definition at line 1382 of file board_downgrade.cpp.
References dropZoneLayerPropertiesFp(), BOARD::Footprints(), and BOARD::Zones().
Referenced by boardRules().
|
static |
Definition at line 1375 of file board_downgrade.cpp.
References FOOTPRINT::Zones().
Referenced by boardRules(), and dropZoneLayerProperties().
|
static |
Definition at line 178 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 3351 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(), 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 3285 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 3298 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().
| int FootprintLibDowngradeCoveredVersion | ( | ) |
The footprint library format the rules were reviewed against. Moves independently of the board.
Definition at line 3217 of file board_downgrade.cpp.
References FOOTPRINT_LIB_DOWNGRADE_COVERED.
Referenced by BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 217 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 1148 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by countEllipses(), countRoundedRectsFp(), lowerEllipsesFp(), and lowerRoundedRectsFp().
|
static |
Definition at line 2414 of file board_downgrade.cpp.
Referenced by planTextItem().
|
static |
Definition at line 696 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 1392 of file board_downgrade.cpp.
References ZONE::GetIsRuleArea(), ZONE::GetPlacementAreaEnabled(), ZONE::GetPlacementAreaSource(), ZONE::GetPlacementAreaSourceType(), and GROUP_PLACEMENT.
Referenced by countGroupPlacementAreas().
|
static |
Definition at line 2125 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 722 of file board_downgrade.cpp.
References PADSTACK::BackPostMachining(), PADSTACK::FrontPostMachining(), and NOT_POST_MACHINED.
Referenced by countPostMachining().
|
static |
Definition at line 972 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 1543 of file board_downgrade.cpp.
References PCB_BARCODE_T, and EDA_ITEM::Type().
Referenced by omitBarcodes(), and omitBarcodesFp().
|
static |
Definition at line 1666 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 139 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 1660 of file board_downgrade.cpp.
References PCB_GRID_ITEM_T, and EDA_ITEM::Type().
Referenced by countGrids(), and dropGrids().
|
static |
Definition at line 157 of file board_downgrade.cpp.
References BOARD_ITEM::GetLayer(), IsCopperLayer(), and isHatchedShape().
Referenced by boardRules().
|
static |
Definition at line 163 of file board_downgrade.cpp.
References BOARD_ITEM::GetLayer(), IsCopperLayer(), and isHatchedShape().
Referenced by boardRules().
|
static |
Definition at line 149 of file board_downgrade.cpp.
References PCB_SHAPE_T, and EDA_ITEM::Type().
Referenced by isHatchedCopperShape(), and isHatchedInkShape().
|
static |
Definition at line 1556 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 1119 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 1690 of file board_downgrade.cpp.
References PCB_STACKUP_TABLE_T, and EDA_ITEM::Type().
Referenced by countStackupTables(), lowerStackupTables(), and omitStackupTables().
|
static |
Definition at line 1905 of file board_downgrade.cpp.
References EDA_GROUP::GetItems().
Referenced by countTimeDomainTuning(), and dropTimeDomainTuning().
|
static |
Definition at line 1966 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_STACKUP_TABLE_T, PCB_TABLE_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TEXTBOX_T, and EDA_ITEM::Type().
Referenced by countUnreviewedDrawings().
|
static |
Definition at line 620 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 290 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 810 of file board_downgrade.cpp.
References BLIND, BURIED, PCB_VIA_T, BOARD::Tracks(), and via.
Referenced by boardRules().
|
static |
Definition at line 473 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 227 of file board_downgrade.cpp.
References ellipseToPolygon(), footprintMaxError(), forEachPadPrimitive(), FOOTPRINT::GraphicalItems(), and isEllipse().
Referenced by boardRules(), and lowerEllipses().
|
static |
Definition at line 2179 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, SHAPE_POLY_SET::OutlineCount(), POLY, polygon(), SHAPE_POLY_SET::Simplify(), SOLID, and EDA_SHAPE::TransformWithLineEndingsToPolygon().
Referenced by transformLineEndings(), and transformLineEndingsFp().
|
static |
Definition at line 1219 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 1183 of file board_downgrade.cpp.
References footprintMaxError(), forEachPadPrimitive(), FOOTPRINT::GraphicalItems(), isRoundedRect(), and roundedRectToPolygon().
Referenced by boardRules(), and lowerRoundedRects().
|
static |
Definition at line 858 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 1743 of file board_downgrade.cpp.
References BOARD::Add(), detachFromGroup(), BOARD::Drawings(), group, isStackupTable(), RefreshGeneratedTables(), BOARD::Remove(), and stackupTableToTable().
Referenced by boardRules().
|
static |
Definition at line 1551 of file board_downgrade.cpp.
References isBarcode(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1547 of file board_downgrade.cpp.
References isBarcode(), and omitGraphicsFp().
Referenced by boardRules().
|
static |
Definition at line 1535 of file board_downgrade.cpp.
References BOARD::Footprints(), isEllipse(), omitGraphics(), and omitPadPrimitives().
|
static |
Definition at line 1530 of file board_downgrade.cpp.
References isEllipse(), omitGraphicsFp(), and omitPadPrimitives().
Referenced by boardRules().
|
static |
Definition at line 1491 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), omitGraphicsFp(), and BOARD::Remove().
Referenced by dropDrillDrawings(), dropGrids(), omitBarcodes(), omitEllipses(), omitKnockoutTextBoxes(), omitRoundedRects(), and omitStackupTables().
|
static |
Definition at line 1472 of file board_downgrade.cpp.
References detachFromGroup(), FOOTPRINT::GraphicalItems(), and FOOTPRINT::Remove().
Referenced by omitBarcodesFp(), omitEllipsesFp(), omitGraphics(), omitKnockoutTextBoxesFp(), and omitRoundedRectsFp().
|
static |
Definition at line 1587 of file board_downgrade.cpp.
References PCB_TABLE_T, and EDA_ITEM::Type().
Referenced by omitKnockoutTableCells(), and omitKnockoutTableCellsFp().
|
static |
Definition at line 1611 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), omitKnockoutCellContents(), and omitKnockoutTableCellsFp().
Referenced by boardRules().
|
static |
Definition at line 1604 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems(), and omitKnockoutCellContents().
Referenced by boardRules(), and omitKnockoutTableCells().
|
static |
Definition at line 1565 of file board_downgrade.cpp.
References isKnockoutTextBox(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 1561 of file board_downgrade.cpp.
References isKnockoutTextBox(), and omitGraphicsFp().
Referenced by boardRules().
|
static |
Definition at line 1512 of file board_downgrade.cpp.
References pad, and FOOTPRINT::Pads().
Referenced by omitEllipses(), omitEllipsesFp(), omitRoundedRects(), and omitRoundedRectsFp().
|
static |
Definition at line 1578 of file board_downgrade.cpp.
References BOARD::Footprints(), isRoundedRect(), omitGraphics(), and omitPadPrimitives().
|
static |
Definition at line 1571 of file board_downgrade.cpp.
References isRoundedRect(), omitGraphicsFp(), and omitPadPrimitives().
Referenced by boardRules().
|
static |
Definition at line 1702 of file board_downgrade.cpp.
References isStackupTable(), and omitGraphics().
Referenced by boardRules().
|
static |
Definition at line 2603 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 2439 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 2398 of file board_downgrade.cpp.
References postTargetText().
|
static |
Definition at line 2293 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 1129 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 3225 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 3236 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 917 of file board_downgrade.cpp.
References BOARD::Drawings(), BOARD::Footprints(), and setHatchedFillsFp().
Referenced by boardRules().
|
static |
Definition at line 246 of file board_downgrade.cpp.
References FOOTPRINT::GraphicalItems().
Referenced by boardRules(), and setHatchedFills().
|
static |
Cells are cloned, not moved, because a table deletes its own cells.
The copy keeps the UUID, so repeated exports of one board stay identical.
Definition at line 1712 of file board_downgrade.cpp.
References PCB_TABLE::GetBorderStroke(), PCB_TABLE::GetBorderWidth(), PCB_TABLE::GetCells(), PCB_TABLE::GetColCount(), PCB_TABLE::GetColWidth(), BOARD_ITEM::GetLayer(), PCB_TABLE::GetRowCount(), PCB_TABLE::GetRowHeight(), PCB_TABLE::GetSeparatorsStroke(), BOARD_ITEM::IsLocked(), rows, PCB_TABLE::StrokeColumns(), PCB_TABLE::StrokeExternal(), PCB_TABLE::StrokeHeaderSeparator(), PCB_TABLE::StrokeRows(), and table.
Referenced by lowerStackupTables().
|
static |
Definition at line 2264 of file board_downgrade.cpp.
Referenced by postTargetText().
|
static |
Definition at line 2280 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 2244 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 2224 of file board_downgrade.cpp.
References clearLineEndings(), footprintMaxError(), hasLineEndings(), lowerLineEndingShape(), unsafeLineEndings(), and visitFootprintItems().
Referenced by boardRules().
|
static |
Definition at line 2136 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 2013 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 2006 of file board_downgrade.cpp.
References RECURSE, and FOOTPRINT::RunOnChildren().
Referenced by DowngradeFootprintInPlace(), dropCustomPropertiesFp(), and transformLineEndingsFp().
|
staticconstexpr |
Definition at line 132 of file board_downgrade.cpp.
Referenced by BoardDowngradeCoveredVersion(), and ClassifyBoardForDowngrade().
|
staticconstexpr |
Definition at line 3130 of file board_downgrade.cpp.
Referenced by FindUnsupportedBoardToken().
|
staticconstexpr |
Definition at line 3201 of file board_downgrade.cpp.
Referenced by FindUnsupportedBoardToken().
|
staticconstexpr |
Definition at line 136 of file board_downgrade.cpp.
Referenced by FootprintLibDowngradeCoveredVersion().
|
staticconstexpr |
Definition at line 96 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 95 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 112 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 102 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 113 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 98 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 114 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 118 of file board_downgrade.cpp.
|
staticconstexpr |
Definition at line 89 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 106 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 94 of file board_downgrade.cpp.
Referenced by boardRules(), and FindUnsupportedBoardToken().
|
staticconstexpr |
Definition at line 117 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 104 of file board_downgrade.cpp.
Referenced by DowngradeBoardInPlace(), and DowngradeFootprintInPlace().
|
staticconstexpr |
Definition at line 116 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 109 of file board_downgrade.cpp.
Referenced by boardRules(), and ClassifyBoardForDowngrade().
|
staticconstexpr |
Definition at line 115 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 120 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 91 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 87 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 86 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 108 of file board_downgrade.cpp.
Referenced by ClassifyBoardForDowngrade(), DowngradeBoardInPlace(), and DowngradeFootprintInPlace().
|
staticconstexpr |
Definition at line 88 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 79 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 84 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 119 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 99 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 92 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 80 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 111 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 107 of file board_downgrade.cpp.
Referenced by boardRules().
|
staticconstexpr |
Definition at line 81 of file board_downgrade.cpp.
Referenced by boardRules().