23#include <api/board/board_types.pb.h>
24#include <api/board/board_commands.pb.h>
49 wxCHECK_MSG(
false, types::PadType::PT_UNKNOWN,
50 "Unhandled case in ToProtoEnum<PAD_ATTRIB>");
60 case types::PadType::PT_UNKNOWN:
68 "Unhandled case in FromProtoEnum<types::PadType>" );
81 wxCHECK_MSG(
false, types::DrillShape::DS_UNKNOWN,
82 "Unhandled case in ToProtoEnum<PAD_DRILL_SHAPE>");
93 case types::DrillShape::DS_UNKNOWN:
97 "Unhandled case in FromProtoEnum<types::DrillShape>" );
115 wxCHECK_MSG(
false, types::PadStackShape::PSS_UNKNOWN,
116 "Unhandled case in ToProtoEnum<PAD_SHAPE>");
126 case types::PadStackShape::PSS_UNKNOWN:
137 "Unhandled case in FromProtoEnum<types::PadStackShape>" );
152 wxCHECK_MSG(
false, types::PadStackType::PST_UNKNOWN,
153 "Unhandled case in ToProtoEnum<PADSTACK::MODE>");
163 case types::PadStackType::PST_UNKNOWN:
170 "Unhandled case in FromProtoEnum<types::PadStackType>" );
185 wxCHECK_MSG(
false, types::ViaType::VT_UNKNOWN,
186 "Unhandled case in ToProtoEnum<VIATYPE>");
196 case types::ViaType::VT_UNKNOWN:
203 "Unhandled case in FromProtoEnum<types::ViaType>" );
220 wxCHECK_MSG(
false, types::ZoneConnectionStyle::ZCS_UNKNOWN,
221 "Unhandled case in ToProtoEnum<ZONE_CONNECTION>");
240 "Unhandled case in FromProtoEnum<types::ZoneConnectionStyle>" );
251 return types::UnconnectedLayerRemoval::ULR_KEEP;
254 return types::UnconnectedLayerRemoval::ULR_REMOVE;
257 return types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END;
260 wxCHECK_MSG(
false, types::UnconnectedLayerRemoval::ULR_UNKNOWN,
261 "Unhandled case in ToProtoEnum<PADSTACK::UNCONNECTED_LAYER_MODE>");
271 case types::UnconnectedLayerRemoval::ULR_UNKNOWN:
272 case types::UnconnectedLayerRemoval::ULR_KEEP:
275 case types::UnconnectedLayerRemoval::ULR_REMOVE:
278 case types::UnconnectedLayerRemoval::ULR_REMOVE_EXCEPT_START_AND_END:
283 "Unhandled case in FromProtoEnum<types::UnconnectedLayerRemoval>");
298 wxCHECK_MSG(
false, types::IslandRemovalMode::IRM_UNKNOWN,
299 "Unhandled case in ToProtoEnum<ISLAND_REMOVAL_MODE>");
309 case types::IslandRemovalMode::IRM_UNKNOWN:
316 "Unhandled case in FromProtoEnum<types::IslandRemovalMode>" );
330 wxCHECK_MSG(
false, types::ZoneFillMode::ZFM_UNKNOWN,
331 "Unhandled case in ToProtoEnum<ZONE_FILL_MODE>");
341 case types::ZoneFillMode::ZFM_UNKNOWN:
347 "Unhandled case in FromProtoEnum<types::ZoneFillMode>" );
363 wxCHECK_MSG(
false, types::ZoneBorderStyle::ZBS_UNKNOWN,
364 "Unhandled case in ToProtoEnum<ZONE_BORDER_DISPLAY_STYLE>");
376 case types::ZoneBorderStyle::ZBS_UNKNOWN:
382 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
393 return types::PlacementRuleSourceType::PRST_SHEET_NAME;
396 return types::PlacementRuleSourceType::PRST_COMPONENT_CLASS;
399 wxCHECK_MSG(
false, types::PlacementRuleSourceType::PRST_UNKNOWN,
400 "Unhandled case in ToProtoEnum<RULE_AREA_PLACEMENT_SOURCE_TYPE>");
410 case types::PlacementRuleSourceType::PRST_UNKNOWN:
411 case types::PlacementRuleSourceType::PRST_SHEET_NAME:
414 case types::PlacementRuleSourceType::PRST_COMPONENT_CLASS:
419 "Unhandled case in FromProtoEnum<types::PlacementRuleSourceType>" );
435 wxCHECK_MSG(
false, types::TeardropType::TDT_UNKNOWN,
436 "Unhandled case in ToProtoEnum<TEARDROP_TYPE>");
446 case types::TeardropType::TDT_UNKNOWN:
454 "Unhandled case in FromProtoEnum<types::ZoneHatchBorderMode>" );
470 wxCHECK_MSG(
false, types::DimensionTextBorderStyle::DTBS_UNKNOWN,
471 "Unhandled case in ToProtoEnum<DIM_TEXT_BORDER>");
481 case types::DimensionTextBorderStyle::DTBS_UNKNOWN:
489 "Unhandled case in FromProtoEnum<types::DimensionTextBorderStyle>" );
504 wxCHECK_MSG(
false, types::DimensionUnitFormat::DUF_UNKNOWN,
505 "Unhandled case in ToProtoEnum<DIM_UNITS_FORMAT>");
515 case types::DimensionUnitFormat::DUF_UNKNOWN:
522 "Unhandled case in FromProtoEnum<types::DimensionUnitFormat>" );
536 wxCHECK_MSG(
false, types::DimensionArrowDirection::DAD_UNKNOWN,
537 "Unhandled case in ToProtoEnum<DIM_ARROW_DIRECTION>");
548 case types::DimensionArrowDirection::DAD_UNKNOWN:
553 "Unhandled case in FromProtoEnum<types::DimensionArrowDirection>" );
575 wxCHECK_MSG(
false, types::DimensionPrecision::DP_UNKNOWN,
576 "Unhandled case in ToProtoEnum<DIM_PRECISION>");
592 case types::DimensionPrecision::DP_UNKNOWN:
600 "Unhandled case in FromProtoEnum<types::DimensionPrecision>" );
615 wxCHECK_MSG(
false, types::DimensionTextPosition::DTP_UNKNOWN,
616 "Unhandled case in ToProtoEnum<DIM_TEXT_POSITION>");
626 case types::DimensionTextPosition::DTP_UNKNOWN:
633 "Unhandled case in FromProtoEnum<types::DimensionTextPosition>" );
649 wxCHECK_MSG(
false, types::DimensionUnit::DU_UNKNOWN,
650 "Unhandled case in ToProtoEnum<DIM_UNITS_MODE>");
663 case types::DimensionUnit::DU_UNKNOWN:
668 "Unhandled case in FromProtoEnum<types::DimensionUnit>" );
683 wxCHECK_MSG(
false, commands::InactiveLayerDisplayMode::ILDM_NORMAL,
684 "Unhandled case in ToProtoEnum<HIGH_CONTRAST_MODE>");
696 case commands::InactiveLayerDisplayMode::ILDM_UNKNOWN:
701 "Unhandled case in FromProtoEnum<commands::InactiveLayerDisplayMode>" );
716 wxCHECK_MSG(
false, commands::NetColorDisplayMode::NCDM_UNKNOWN,
717 "Unhandled case in ToProtoEnum<NET_COLOR_MODE>");
729 case commands::NetColorDisplayMode::NCDM_UNKNOWN:
734 "Unhandled case in FromProtoEnum<commands::NetColorDisplayMode>" );
748 wxCHECK_MSG(
false, commands::RatsnestDisplayMode::RDM_UNKNOWN,
749 "Unhandled case in ToProtoEnum<RATSNEST_MODE>");
760 case commands::RatsnestDisplayMode::RDM_UNKNOWN:
765 "Unhandled case in FromProtoEnum<commands::RatsnestDisplayMode>" );
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)
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