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)
 

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()

◆ PinOrientationCode()

PIN_ORIENTATION PinOrientationCode ( size_t index)

◆ PinOrientationIcons()

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

◆ PinOrientationIndex()

int PinOrientationIndex ( PIN_ORIENTATION code)

Definition at line 70 of file pin_type.cpp.

References index.

Referenced by PIN_INFO_FORMATTER::Format(), and DIALOG_PIN_PROPERTIES::TransferDataToWindow().

◆ PinOrientationName()

wxString PinOrientationName ( PIN_ORIENTATION aOrientation)

Definition at line 263 of file pin_type.cpp.

References g_language, g_pinOrientations, InitTables(), and Pgm().

Referenced by SCH_PIN::GetMsgPanelInfo(), and SCH_PIN::operator<<().

◆ 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(), 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().