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>" );
186 wxCHECK_MSG(
false, types::ViaType::VT_UNKNOWN,
187 "Unhandled case in ToProtoEnum<VIATYPE>");
197 case types::ViaType::VT_UNKNOWN:
204 "Unhandled case in FromProtoEnum<types::ViaType>" );
221 wxCHECK_MSG(
false, types::ZoneConnectionStyle::ZCS_UNKNOWN,
222 "Unhandled case in ToProtoEnum<ZONE_CONNECTION>");
241 "Unhandled case in FromProtoEnum<types::ZoneConnectionStyle>" );
252 return types::UnconnectedLayerRemoval::ULR_KEEP;
255 return types::UnconnectedLayerRemoval::ULR_REMOVE;
258 return types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END;
261 wxCHECK_MSG(
false, types::UnconnectedLayerRemoval::ULR_UNKNOWN,
262 "Unhandled case in ToProtoEnum<PADSTACK::UNCONNECTED_LAYER_MODE>");
272 case types::UnconnectedLayerRemoval::ULR_UNKNOWN:
273 case types::UnconnectedLayerRemoval::ULR_KEEP:
276 case types::UnconnectedLayerRemoval::ULR_REMOVE:
279 case types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END:
284 "Unhandled case in FromProtoEnum<types::UnconnectedLayerRemoval>");
299 wxCHECK_MSG(
false, types::IslandRemovalMode::IRM_UNKNOWN,
300 "Unhandled case in ToProtoEnum<ISLAND_REMOVAL_MODE>");
310 case types::IslandRemovalMode::IRM_UNKNOWN:
317 "Unhandled case in FromProtoEnum<types::IslandRemovalMode>" );
331 wxCHECK_MSG(
false, types::ZoneFillMode::ZFM_UNKNOWN,
332 "Unhandled case in ToProtoEnum<ZONE_FILL_MODE>");
342 case types::ZoneFillMode::ZFM_UNKNOWN:
348 "Unhandled case in FromProtoEnum<types::ZoneFillMode>" );
364 wxCHECK_MSG(
false, types::ZoneBorderStyle::ZBS_UNKNOWN,
365 "Unhandled case in ToProtoEnum<ZONE_BORDER_DISPLAY_STYLE>");
377 case types::ZoneBorderStyle::ZBS_UNKNOWN:
383 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
394 return types::PlacementRuleSourceType::PRST_SHEET_NAME;
397 return types::PlacementRuleSourceType::PRST_COMPONENT_CLASS;
400 wxCHECK_MSG(
false, types::PlacementRuleSourceType::PRST_UNKNOWN,
401 "Unhandled case in ToProtoEnum<RULE_AREA_PLACEMENT_SOURCE_TYPE>");
411 case types::PlacementRuleSourceType::PRST_UNKNOWN:
412 case types::PlacementRuleSourceType::PRST_SHEET_NAME:
415 case types::PlacementRuleSourceType::PRST_COMPONENT_CLASS:
420 "Unhandled case in FromProtoEnum<types::PlacementRuleSourceType>" );
436 wxCHECK_MSG(
false, types::TeardropType::TDT_UNKNOWN,
437 "Unhandled case in ToProtoEnum<TEARDROP_TYPE>");
447 case types::TeardropType::TDT_UNKNOWN:
455 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
471 wxCHECK_MSG(
false, types::DimensionTextBorderStyle::DTBS_UNKNOWN,
472 "Unhandled case in ToProtoEnum<DIM_TEXT_BORDER>");
482 case types::DimensionTextBorderStyle::DTBS_UNKNOWN:
490 "Unhandled case in FromProtoEnum<types::DimensionTextBorderStyle>" );
505 wxCHECK_MSG(
false, types::DimensionUnitFormat::DUF_UNKNOWN,
506 "Unhandled case in ToProtoEnum<DIM_UNITS_FORMAT>");
516 case types::DimensionUnitFormat::DUF_UNKNOWN:
523 "Unhandled case in FromProtoEnum<types::DimensionUnitFormat>" );
537 wxCHECK_MSG(
false, types::DimensionArrowDirection::DAD_UNKNOWN,
538 "Unhandled case in ToProtoEnum<DIM_ARROW_DIRECTION>");
549 case types::DimensionArrowDirection::DAD_UNKNOWN:
554 "Unhandled case in FromProtoEnum<types::DimensionArrowDirection>" );
576 wxCHECK_MSG(
false, types::DimensionPrecision::DP_UNKNOWN,
577 "Unhandled case in ToProtoEnum<DIM_PRECISION>");
593 case types::DimensionPrecision::DP_UNKNOWN:
601 "Unhandled case in FromProtoEnum<types::DimensionPrecision>" );
616 wxCHECK_MSG(
false, types::DimensionTextPosition::DTP_UNKNOWN,
617 "Unhandled case in ToProtoEnum<DIM_TEXT_POSITION>");
627 case types::DimensionTextPosition::DTP_UNKNOWN:
634 "Unhandled case in FromProtoEnum<types::DimensionTextPosition>" );
650 wxCHECK_MSG(
false, types::DimensionUnit::DU_UNKNOWN,
651 "Unhandled case in ToProtoEnum<DIM_UNITS_MODE>");
664 case types::DimensionUnit::DU_UNKNOWN:
669 "Unhandled case in FromProtoEnum<types::DimensionUnit>" );
684 wxCHECK_MSG(
false, commands::InactiveLayerDisplayMode::ILDM_NORMAL,
685 "Unhandled case in ToProtoEnum<HIGH_CONTRAST_MODE>");
697 case commands::InactiveLayerDisplayMode::ILDM_UNKNOWN:
702 "Unhandled case in FromProtoEnum<commands::InactiveLayerDisplayMode>" );
717 wxCHECK_MSG(
false, commands::NetColorDisplayMode::NCDM_UNKNOWN,
718 "Unhandled case in ToProtoEnum<NET_COLOR_MODE>");
730 case commands::NetColorDisplayMode::NCDM_UNKNOWN:
735 "Unhandled case in FromProtoEnum<commands::NetColorDisplayMode>" );
749 wxCHECK_MSG(
false, commands::RatsnestDisplayMode::RDM_UNKNOWN,
750 "Unhandled case in ToProtoEnum<RATSNEST_MODE>");
761 case commands::RatsnestDisplayMode::RDM_UNKNOWN:
766 "Unhandled case in FromProtoEnum<commands::RatsnestDisplayMode>" );
784 wxCHECK_MSG(
false, BoardStackupLayerType::BSLT_UNKNOWN,
785 "Unhandled case in ToProtoEnum<BOARD_STACKUP_ITEM_TYPE>");
804 "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.
RULE_AREA_PLACEMENT_SOURCE_TYPE
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