KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pin_type.cpp File Reference
#include <bitmaps.h>
#include <cstddef>
#include <magic_enum.hpp>
#include <sch_pin.h>
#include "pgm_base.h"

Go to the source code of this file.

Classes

struct  pinTypeStruct
 
struct  pinShapeStruct
 

Functions

PIN_ORIENTATION PinOrientationCode (size_t index)
 
int PinOrientationIndex (PIN_ORIENTATION code)
 
void InitTables ()
 
const wxArrayString & PinTypeNames ()
 
const std::vector< BITMAPS > & PinTypeIcons ()
 
const wxArrayString & PinShapeNames ()
 
const std::vector< BITMAPS > & PinShapeIcons ()
 
const wxArrayString & PinOrientationNames ()
 
const std::vector< BITMAPS > & PinOrientationIcons ()
 
wxString ElectricalPinTypeGetText (ELECTRICAL_PINTYPE aType)
 
BITMAPS ElectricalPinTypeGetBitmap (ELECTRICAL_PINTYPE aType)
 
wxString PinShapeGetText (GRAPHIC_PINSHAPE aShape)
 
BITMAPS PinShapeGetBitmap (GRAPHIC_PINSHAPE aShape)
 
wxString PinOrientationName (PIN_ORIENTATION aOrientation)
 
BITMAPS PinOrientationGetBitmap (PIN_ORIENTATION aOrientation)
 

Variables

static std::vector< BITMAPSg_typeIcons
 
static wxArrayString g_typeNames
 
static std::vector< BITMAPSg_shapeIcons
 
static wxArrayString g_shapeNames
 
static std::vector< BITMAPSg_orientationIcons
 
static wxArrayString g_orientationNames
 
static std::map< ELECTRICAL_PINTYPE, struct pinTypeStructg_pinElectricalTypes
 
static std::map< GRAPHIC_PINSHAPE, struct pinShapeStructg_pinShapes
 
static std::map< PIN_ORIENTATION, struct pinShapeStructg_pinOrientations
 
static int g_language = wxLANGUAGE_UNKNOWN
 

Function Documentation

◆ ElectricalPinTypeGetBitmap()

BITMAPS ElectricalPinTypeGetBitmap ( ELECTRICAL_PINTYPE  aType)

◆ ElectricalPinTypeGetText()

◆ InitTables()

void InitTables ( )

Definition at line 81 of file pin_type.cpp.

References _, CLOCK, CLOCK_LOW, ELECTRICAL_PINTYPES_TOTAL, ElectricalPinTypeGetBitmap(), ElectricalPinTypeGetText(), FALLING_EDGE_CLOCK, g_language, g_orientationIcons, g_orientationNames, g_pinElectricalTypes, g_pinOrientations, g_pinShapes, g_shapeIcons, g_shapeNames, g_typeIcons, g_typeNames, PGM_BASE::GetSelectedLanguageIdentifier(), GRAPHIC_PINSHAPES_TOTAL, INHERIT, INPUT_LOW, INVERTED, INVERTED_CLOCK, LINE, NONLOGIC, OUTPUT_LOW, Pgm(), PIN_DOWN, PIN_LEFT, PIN_RIGHT, PIN_UP, pinorient_down, pinorient_left, pinorient_right, pinorient_up, PinOrientationGetBitmap(), PinOrientationName(), pinshape_active_low_input, pinshape_active_low_output, pinshape_clock_active_low, pinshape_clock_fall, pinshape_clock_invert, pinshape_clock_normal, pinshape_invert, pinshape_nonlogic, pinshape_normal, PinShapeGetBitmap(), PinShapeGetText(), pintype_3states, pintype_bidi, pintype_input, pintype_nic, pintype_noconnect, pintype_notspecif, pintype_opencoll, pintype_openemit, pintype_output, pintype_passive, pintype_powerinput, pintype_poweroutput, PT_BIDI, PT_INPUT, PT_NC, PT_NIC, PT_OPENCOLLECTOR, PT_OPENEMITTER, PT_OUTPUT, PT_PASSIVE, PT_POWER_IN, PT_POWER_OUT, PT_TRISTATE, and PT_UNSPECIFIED.

Referenced by ElectricalPinTypeGetBitmap(), ElectricalPinTypeGetText(), PinOrientationGetBitmap(), PinOrientationIcons(), PinOrientationName(), PinOrientationNames(), PinShapeGetBitmap(), PinShapeGetText(), PinShapeIcons(), PinShapeNames(), PinTypeIcons(), and PinTypeNames().

◆ PinOrientationCode()

◆ PinOrientationGetBitmap()

BITMAPS PinOrientationGetBitmap ( PIN_ORIENTATION  aOrientation)

Definition at line 272 of file pin_type.cpp.

References g_pinOrientations, InitTables(), and INVALID_BITMAP.

Referenced by InitTables().

◆ PinOrientationIcons()

const std::vector< BITMAPS > & PinOrientationIcons ( )

◆ PinOrientationIndex()

int PinOrientationIndex ( PIN_ORIENTATION  code)

◆ PinOrientationName()

wxString PinOrientationName ( PIN_ORIENTATION  aOrientation)

◆ PinOrientationNames()

◆ PinShapeGetBitmap()

◆ PinShapeGetText()

◆ PinShapeIcons()

◆ PinShapeNames()

◆ PinTypeIcons()

◆ PinTypeNames()

Variable Documentation

◆ g_language

int g_language = wxLANGUAGE_UNKNOWN
static

◆ g_orientationIcons

std::vector<BITMAPS> g_orientationIcons
static

Definition at line 39 of file pin_type.cpp.

Referenced by InitTables(), and PinOrientationIcons().

◆ g_orientationNames

wxArrayString g_orientationNames
static

Definition at line 40 of file pin_type.cpp.

Referenced by InitTables(), and PinOrientationNames().

◆ g_pinElectricalTypes

std::map<ELECTRICAL_PINTYPE, struct pinTypeStruct> g_pinElectricalTypes
static

Definition at line 55 of file pin_type.cpp.

Referenced by ElectricalPinTypeGetBitmap(), ElectricalPinTypeGetText(), and InitTables().

◆ g_pinOrientations

std::map<PIN_ORIENTATION, struct pinShapeStruct> g_pinOrientations
static

Definition at line 57 of file pin_type.cpp.

Referenced by InitTables(), PinOrientationGetBitmap(), and PinOrientationName().

◆ g_pinShapes

std::map<GRAPHIC_PINSHAPE, struct pinShapeStruct> g_pinShapes
static

Definition at line 56 of file pin_type.cpp.

Referenced by InitTables(), PinShapeGetBitmap(), and PinShapeGetText().

◆ g_shapeIcons

std::vector<BITMAPS> g_shapeIcons
static

Definition at line 36 of file pin_type.cpp.

Referenced by InitTables(), and PinShapeIcons().

◆ g_shapeNames

wxArrayString g_shapeNames
static

Definition at line 37 of file pin_type.cpp.

Referenced by InitTables(), and PinShapeNames().

◆ g_typeIcons

std::vector<BITMAPS> g_typeIcons
static

Definition at line 33 of file pin_type.cpp.

Referenced by InitTables(), and PinTypeIcons().

◆ g_typeNames

wxArrayString g_typeNames
static

Definition at line 34 of file pin_type.cpp.

Referenced by InitTables(), and PinTypeNames().