23#include <api/board/board_types.pb.h>
24#include <api/board/board_commands.pb.h>
50 wxCHECK_MSG(
false, types::PadType::PT_UNKNOWN,
51 "Unhandled case in ToProtoEnum<PAD_ATTRIB>");
61 case types::PadType::PT_UNKNOWN:
69 "Unhandled case in FromProtoEnum<types::PadType>" );
82 wxCHECK_MSG(
false, types::DrillShape::DS_UNKNOWN,
83 "Unhandled case in ToProtoEnum<PAD_DRILL_SHAPE>");
94 case types::DrillShape::DS_UNKNOWN:
98 "Unhandled case in FromProtoEnum<types::DrillShape>" );
116 wxCHECK_MSG(
false, types::PadStackShape::PSS_UNKNOWN,
117 "Unhandled case in ToProtoEnum<PAD_SHAPE>");
127 case types::PadStackShape::PSS_UNKNOWN:
138 "Unhandled case in FromProtoEnum<types::PadStackShape>" );
153 wxCHECK_MSG(
false, types::PadStackType::PST_UNKNOWN,
154 "Unhandled case in ToProtoEnum<PADSTACK::MODE>");
164 case types::PadStackType::PST_UNKNOWN:
171 "Unhandled case in FromProtoEnum<types::PadStackType>" );
187 wxCHECK_MSG(
false, types::ViaType::VT_UNKNOWN,
188 "Unhandled case in ToProtoEnum<VIATYPE>");
198 case types::ViaType::VT_UNKNOWN:
207 "Unhandled case in FromProtoEnum<types::ViaType>" );
224 wxCHECK_MSG(
false, types::ZoneConnectionStyle::ZCS_UNKNOWN,
225 "Unhandled case in ToProtoEnum<ZONE_CONNECTION>");
244 "Unhandled case in FromProtoEnum<types::ZoneConnectionStyle>" );
255 return types::UnconnectedLayerRemoval::ULR_KEEP;
258 return types::UnconnectedLayerRemoval::ULR_REMOVE;
261 return types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END;
264 return types::UnconnectedLayerRemoval::ULR_START_END_ONLY;
267 wxCHECK_MSG(
false, types::UnconnectedLayerRemoval::ULR_UNKNOWN,
268 "Unhandled case in ToProtoEnum<PADSTACK::UNCONNECTED_LAYER_MODE>");
278 case types::UnconnectedLayerRemoval::ULR_UNKNOWN:
279 case types::UnconnectedLayerRemoval::ULR_KEEP:
282 case types::UnconnectedLayerRemoval::ULR_REMOVE:
285 case types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END:
288 case types::UnconnectedLayerRemoval::ULR_START_END_ONLY:
293 "Unhandled case in FromProtoEnum<types::UnconnectedLayerRemoval>");
308 wxCHECK_MSG(
false, types::IslandRemovalMode::IRM_UNKNOWN,
309 "Unhandled case in ToProtoEnum<ISLAND_REMOVAL_MODE>");
319 case types::IslandRemovalMode::IRM_UNKNOWN:
326 "Unhandled case in FromProtoEnum<types::IslandRemovalMode>" );
340 wxCHECK_MSG(
false, types::ZoneFillMode::ZFM_UNKNOWN,
341 "Unhandled case in ToProtoEnum<ZONE_FILL_MODE>");
351 case types::ZoneFillMode::ZFM_UNKNOWN:
357 "Unhandled case in FromProtoEnum<types::ZoneFillMode>" );
373 wxCHECK_MSG(
false, types::ZoneBorderStyle::ZBS_UNKNOWN,
374 "Unhandled case in ToProtoEnum<ZONE_BORDER_DISPLAY_STYLE>");
386 case types::ZoneBorderStyle::ZBS_UNKNOWN:
392 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
403 return types::PlacementRuleSourceType::PRST_SHEET_NAME;
406 return types::PlacementRuleSourceType::PRST_COMPONENT_CLASS;
409 return types::PlacementRuleSourceType::PRST_GROUP;
412 return types::PlacementRuleSourceType::PRST_DESIGN_BLOCK;
415 wxCHECK_MSG(
false, types::PlacementRuleSourceType::PRST_UNKNOWN,
416 "Unhandled case in ToProtoEnum<PLACEMENT_SOURCE_T>");
426 case types::PlacementRuleSourceType::PRST_UNKNOWN:
427 case types::PlacementRuleSourceType::PRST_SHEET_NAME:
430 case types::PlacementRuleSourceType::PRST_COMPONENT_CLASS:
433 case types::PlacementRuleSourceType::PRST_GROUP:
436 case types::PlacementRuleSourceType::PRST_DESIGN_BLOCK:
441 "Unhandled case in FromProtoEnum<types::PlacementRuleSourceType>" );
457 wxCHECK_MSG(
false, types::TeardropType::TDT_UNKNOWN,
458 "Unhandled case in ToProtoEnum<TEARDROP_TYPE>");
468 case types::TeardropType::TDT_UNKNOWN:
476 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
492 wxCHECK_MSG(
false, types::DimensionTextBorderStyle::DTBS_UNKNOWN,
493 "Unhandled case in ToProtoEnum<DIM_TEXT_BORDER>");
503 case types::DimensionTextBorderStyle::DTBS_UNKNOWN:
511 "Unhandled case in FromProtoEnum<types::DimensionTextBorderStyle>" );
526 wxCHECK_MSG(
false, types::DimensionUnitFormat::DUF_UNKNOWN,
527 "Unhandled case in ToProtoEnum<DIM_UNITS_FORMAT>");
537 case types::DimensionUnitFormat::DUF_UNKNOWN:
544 "Unhandled case in FromProtoEnum<types::DimensionUnitFormat>" );
558 wxCHECK_MSG(
false, types::DimensionArrowDirection::DAD_UNKNOWN,
559 "Unhandled case in ToProtoEnum<DIM_ARROW_DIRECTION>");
570 case types::DimensionArrowDirection::DAD_UNKNOWN:
575 "Unhandled case in FromProtoEnum<types::DimensionArrowDirection>" );
597 wxCHECK_MSG(
false, types::DimensionPrecision::DP_UNKNOWN,
598 "Unhandled case in ToProtoEnum<DIM_PRECISION>");
614 case types::DimensionPrecision::DP_UNKNOWN:
622 "Unhandled case in FromProtoEnum<types::DimensionPrecision>" );
637 wxCHECK_MSG(
false, types::DimensionTextPosition::DTP_UNKNOWN,
638 "Unhandled case in ToProtoEnum<DIM_TEXT_POSITION>");
648 case types::DimensionTextPosition::DTP_UNKNOWN:
655 "Unhandled case in FromProtoEnum<types::DimensionTextPosition>" );
671 wxCHECK_MSG(
false, types::DimensionUnit::DU_UNKNOWN,
672 "Unhandled case in ToProtoEnum<DIM_UNITS_MODE>");
685 case types::DimensionUnit::DU_UNKNOWN:
690 "Unhandled case in FromProtoEnum<types::DimensionUnit>" );
705 wxCHECK_MSG(
false, commands::InactiveLayerDisplayMode::ILDM_NORMAL,
706 "Unhandled case in ToProtoEnum<HIGH_CONTRAST_MODE>");
718 case commands::InactiveLayerDisplayMode::ILDM_UNKNOWN:
723 "Unhandled case in FromProtoEnum<commands::InactiveLayerDisplayMode>" );
738 wxCHECK_MSG(
false, commands::NetColorDisplayMode::NCDM_UNKNOWN,
739 "Unhandled case in ToProtoEnum<NET_COLOR_MODE>");
751 case commands::NetColorDisplayMode::NCDM_UNKNOWN:
756 "Unhandled case in FromProtoEnum<commands::NetColorDisplayMode>" );
770 wxCHECK_MSG(
false, commands::RatsnestDisplayMode::RDM_UNKNOWN,
771 "Unhandled case in ToProtoEnum<RATSNEST_MODE>");
782 case commands::RatsnestDisplayMode::RDM_UNKNOWN:
787 "Unhandled case in FromProtoEnum<commands::RatsnestDisplayMode>" );
805 wxCHECK_MSG(
false, BoardStackupLayerType::BSLT_UNKNOWN,
806 "Unhandled case in ToProtoEnum<BOARD_STACKUP_ITEM_TYPE>");
825 "Unhandled case in FromProtoEnum<BoardStackupLayerType>" );
types::PadType ToProtoEnum(PAD_ATTRIB aValue)
PAD_ATTRIB FromProtoEnum(types::PadType aValue)
HIGH_CONTRAST_MODE
Determine how inactive layers should be displayed.
@ NORMAL
Inactive layers are shown normally (no high-contrast mode)
@ HIDDEN
Inactive layers are hidden.
@ DIMMED
Inactive layers are dimmed (old high-contrast mode)
@ RATSNEST
Net/netclass colors are shown on ratsnest lines only.
@ ALL
Net/netclass colors are shown on all net copper.
@ OFF
Net (and netclass) colors are not shown.
@ VISIBLE
Ratsnest lines are drawn to items on visible layers only.
@ ALL
Ratsnest lines are drawn to items on all layers (default)
@ BS_ITEM_TYPE_SILKSCREEN
@ BS_ITEM_TYPE_DIELECTRIC
@ BS_ITEM_TYPE_SOLDERPASTE
@ BS_ITEM_TYPE_SOLDERMASK
MODE
! Copper geometry mode: controls how many unique copper layer shapes this padstack has
@ NORMAL
Shape is the same on all layers.
@ CUSTOM
Shapes can be defined on arbitrary layers.
@ FRONT_INNER_BACK
Up to three shapes can be defined (F_Cu, inner copper layers, B_Cu)
UNCONNECTED_LAYER_MODE
! Whether or not to remove the copper shape for unconnected layers
@ REMOVE_EXCEPT_START_AND_END
PAD_DRILL_SHAPE
The set of pad drill shapes, used with PAD::{Set,Get}DrillShape()
PAD_ATTRIB
The set of pad shapes, used with PAD::{Set,Get}Attribute().
@ NPTH
like PAD_PTH, but not plated mechanical use only, no connection allowed
@ SMD
Smd pad, appears on the solder paste layer (default)
@ PTH
Plated through hole pad.
@ CONN
Like smd, does not appear on the solder paste layer (default) Note: also has a special attribute in G...
PAD_SHAPE
The set of pad shapes, used with PAD::{Set,Get}Shape()
DIM_TEXT_POSITION
Where to place the text on a dimension.
@ OUTSIDE
Text appears outside the dimension line (default)
@ MANUAL
Text placement is manually set by the user.
@ INLINE
Text appears in line with the dimension line.
DIM_UNITS_FORMAT
How to display the units in a dimension's text.
DIM_UNITS_MODE
Used for storing the units selection in the file because EDA_UNITS alone doesn't cut it.
DIM_ARROW_DIRECTION
Used for dimension's arrow.
DIM_TEXT_BORDER
Frame to show around dimension text.
TEARDROP_TYPE
define the type of a teardrop: on a via or pad, or a track end
Class ZONE_SETTINGS used to handle zones parameters in dialogs.
ISLAND_REMOVAL_MODE
Whether or not to remove isolated islands from a zone.
ZONE_BORDER_DISPLAY_STYLE
Zone border styles.
ZONE_CONNECTION
How pads are covered by copper in zone.
@ THERMAL
Use thermal relief for pads.
@ THT_THERMAL
Thermal relief only for THT pads.
@ NONE
Pads are not covered.
@ FULL
pads are covered by copper