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 return types::UnconnectedLayerRemoval::ULR_START_END_ONLY;
264 wxCHECK_MSG(
false, types::UnconnectedLayerRemoval::ULR_UNKNOWN,
265 "Unhandled case in ToProtoEnum<PADSTACK::UNCONNECTED_LAYER_MODE>");
275 case types::UnconnectedLayerRemoval::ULR_UNKNOWN:
276 case types::UnconnectedLayerRemoval::ULR_KEEP:
279 case types::UnconnectedLayerRemoval::ULR_REMOVE:
282 case types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END:
285 case types::UnconnectedLayerRemoval::ULR_START_END_ONLY:
290 "Unhandled case in FromProtoEnum<types::UnconnectedLayerRemoval>");
305 wxCHECK_MSG(
false, types::IslandRemovalMode::IRM_UNKNOWN,
306 "Unhandled case in ToProtoEnum<ISLAND_REMOVAL_MODE>");
316 case types::IslandRemovalMode::IRM_UNKNOWN:
323 "Unhandled case in FromProtoEnum<types::IslandRemovalMode>" );
337 wxCHECK_MSG(
false, types::ZoneFillMode::ZFM_UNKNOWN,
338 "Unhandled case in ToProtoEnum<ZONE_FILL_MODE>");
348 case types::ZoneFillMode::ZFM_UNKNOWN:
354 "Unhandled case in FromProtoEnum<types::ZoneFillMode>" );
370 wxCHECK_MSG(
false, types::ZoneBorderStyle::ZBS_UNKNOWN,
371 "Unhandled case in ToProtoEnum<ZONE_BORDER_DISPLAY_STYLE>");
383 case types::ZoneBorderStyle::ZBS_UNKNOWN:
389 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
400 return types::PlacementRuleSourceType::PRST_SHEET_NAME;
403 return types::PlacementRuleSourceType::PRST_COMPONENT_CLASS;
406 return types::PlacementRuleSourceType::PRST_GROUP;
409 wxCHECK_MSG(
false, types::PlacementRuleSourceType::PRST_UNKNOWN,
410 "Unhandled case in ToProtoEnum<PLACEMENT_SOURCE_T>");
420 case types::PlacementRuleSourceType::PRST_UNKNOWN:
421 case types::PlacementRuleSourceType::PRST_SHEET_NAME:
424 case types::PlacementRuleSourceType::PRST_COMPONENT_CLASS:
427 case types::PlacementRuleSourceType::PRST_GROUP:
432 "Unhandled case in FromProtoEnum<types::PlacementRuleSourceType>" );
448 wxCHECK_MSG(
false, types::TeardropType::TDT_UNKNOWN,
449 "Unhandled case in ToProtoEnum<TEARDROP_TYPE>");
459 case types::TeardropType::TDT_UNKNOWN:
467 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
483 wxCHECK_MSG(
false, types::DimensionTextBorderStyle::DTBS_UNKNOWN,
484 "Unhandled case in ToProtoEnum<DIM_TEXT_BORDER>");
494 case types::DimensionTextBorderStyle::DTBS_UNKNOWN:
502 "Unhandled case in FromProtoEnum<types::DimensionTextBorderStyle>" );
517 wxCHECK_MSG(
false, types::DimensionUnitFormat::DUF_UNKNOWN,
518 "Unhandled case in ToProtoEnum<DIM_UNITS_FORMAT>");
528 case types::DimensionUnitFormat::DUF_UNKNOWN:
535 "Unhandled case in FromProtoEnum<types::DimensionUnitFormat>" );
549 wxCHECK_MSG(
false, types::DimensionArrowDirection::DAD_UNKNOWN,
550 "Unhandled case in ToProtoEnum<DIM_ARROW_DIRECTION>");
561 case types::DimensionArrowDirection::DAD_UNKNOWN:
566 "Unhandled case in FromProtoEnum<types::DimensionArrowDirection>" );
588 wxCHECK_MSG(
false, types::DimensionPrecision::DP_UNKNOWN,
589 "Unhandled case in ToProtoEnum<DIM_PRECISION>");
605 case types::DimensionPrecision::DP_UNKNOWN:
613 "Unhandled case in FromProtoEnum<types::DimensionPrecision>" );
628 wxCHECK_MSG(
false, types::DimensionTextPosition::DTP_UNKNOWN,
629 "Unhandled case in ToProtoEnum<DIM_TEXT_POSITION>");
639 case types::DimensionTextPosition::DTP_UNKNOWN:
646 "Unhandled case in FromProtoEnum<types::DimensionTextPosition>" );
662 wxCHECK_MSG(
false, types::DimensionUnit::DU_UNKNOWN,
663 "Unhandled case in ToProtoEnum<DIM_UNITS_MODE>");
676 case types::DimensionUnit::DU_UNKNOWN:
681 "Unhandled case in FromProtoEnum<types::DimensionUnit>" );
696 wxCHECK_MSG(
false, commands::InactiveLayerDisplayMode::ILDM_NORMAL,
697 "Unhandled case in ToProtoEnum<HIGH_CONTRAST_MODE>");
709 case commands::InactiveLayerDisplayMode::ILDM_UNKNOWN:
714 "Unhandled case in FromProtoEnum<commands::InactiveLayerDisplayMode>" );
729 wxCHECK_MSG(
false, commands::NetColorDisplayMode::NCDM_UNKNOWN,
730 "Unhandled case in ToProtoEnum<NET_COLOR_MODE>");
742 case commands::NetColorDisplayMode::NCDM_UNKNOWN:
747 "Unhandled case in FromProtoEnum<commands::NetColorDisplayMode>" );
761 wxCHECK_MSG(
false, commands::RatsnestDisplayMode::RDM_UNKNOWN,
762 "Unhandled case in ToProtoEnum<RATSNEST_MODE>");
773 case commands::RatsnestDisplayMode::RDM_UNKNOWN:
778 "Unhandled case in FromProtoEnum<commands::RatsnestDisplayMode>" );
796 wxCHECK_MSG(
false, BoardStackupLayerType::BSLT_UNKNOWN,
797 "Unhandled case in ToProtoEnum<BOARD_STACKUP_ITEM_TYPE>");
816 "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