50std::map<ELECTRICAL_PINTYPE, struct pinTypeStruct>
g_pinTypes = {
77const std::map<GRAPHIC_PINSHAPE, struct pinShapeStruct>
pinShapes = {
111#define PIN_ORIENTATION_CNT arrayDim( pin_orientation_codes )
124 const wxString pin_orientation_names[] =
136 return pin_orientation_names[ aPinOrientationCode ];
261 wxCHECK_MSG( findIt !=
g_pinTypes.end(), wxT(
"???" ), wxT(
"Pin type not found!" ) );
263 return findIt->second.name;
273 return findIt->second.bitmap;
281 wxCHECK_MSG( findIt !=
pinShapes.end(), wxT(
"?" ), wxT(
"Pin type not found!" ) );
283 return findIt->second.name;
293 return findIt->second.bitmap;
BITMAPS
A list of all bitmap identifiers.
@ pinshape_clock_active_low
@ pinshape_active_low_input
@ pinshape_active_low_output
const std::vector< BITMAPS > & PinTypeIcons()
static const int pin_orientation_codes[]
wxString PinOrientationName(unsigned aPinOrientationCode)
BITMAPS PinShapeGetBitmap(GRAPHIC_PINSHAPE aShape)
int PinOrientationIndex(int code)
static const BITMAPS iconsPinsOrientations[]
const wxArrayString & PinTypeNames()
static std::vector< BITMAPS > g_orientationIcons
static std::vector< BITMAPS > g_typeIcons
wxString ElectricalPinTypeGetText(ELECTRICAL_PINTYPE aType)
const wxArrayString & PinShapeNames()
const std::vector< BITMAPS > & PinShapeIcons()
std::map< ELECTRICAL_PINTYPE, struct pinTypeStruct > g_pinTypes
static wxArrayString g_shapeNames
static wxArrayString g_typeNames
BITMAPS ElectricalPinTypeGetBitmap(ELECTRICAL_PINTYPE aType)
wxString PinShapeGetText(GRAPHIC_PINSHAPE aShape)
const wxArrayString & PinOrientationNames()
const std::map< GRAPHIC_PINSHAPE, struct pinShapeStruct > pinShapes
#define PIN_ORIENTATION_CNT
static std::vector< BITMAPS > g_shapeIcons
static wxArrayString g_orientationNames
int PinOrientationCode(int index)
const std::vector< BITMAPS > & PinOrientationIcons()
ELECTRICAL_PINTYPE
The symbol library pin object electrical types used in ERC tests.
@ PT_INPUT
usual pin input: must be connected
@ PT_NC
not connected (must be left open)
@ PT_TRISTATE
tris state bus pin
@ PT_NIC
not internally connected (may be connected to anything)
@ PT_BIDI
input or output (like port for a microprocessor)
@ PT_OPENEMITTER
pin type open emitter
@ PT_POWER_OUT
output of a regulator: intended to be connected to power input pins
@ PT_OPENCOLLECTOR
pin type open collector
@ PT_POWER_IN
power input (GND, VCC for ICs). Must be connected to a power output.
@ PT_UNSPECIFIED
unknown electrical properties: creates always a warning when connected
@ PT_PASSIVE
pin for passive symbols: must be connected, and can be connected to any pin
#define ELECTRICAL_PINTYPES_TOTAL
#define GRAPHIC_PINSHAPES_TOTAL
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.