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 thread_local std::vector< BITMAPS > g_typeIcons
 
static thread_local wxArrayString g_typeNames
 
static thread_local std::vector< BITMAPS > g_shapeIcons
 
static thread_local wxArrayString g_shapeNames
 
static thread_local std::vector< BITMAPS > g_orientationIcons
 
static thread_local wxArrayString g_orientationNames
 
static thread_local std::map< ELECTRICAL_PINTYPE, struct pinTypeStruct > g_pinElectricalTypes
 
static thread_local std::map< GRAPHIC_PINSHAPE, struct pinShapeStruct > g_pinShapes
 
static thread_local std::map< PIN_ORIENTATION, struct pinShapeStruct > g_pinOrientations
 
static thread_local 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 67 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 260 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

thread_local int g_language = wxLANGUAGE_UNKNOWN
static

◆ g_orientationIcons

thread_local std::vector<BITMAPS> g_orientationIcons
static

Definition at line 36 of file pin_type.cpp.

Referenced by InitTables(), and PinOrientationIcons().

◆ g_orientationNames

thread_local wxArrayString g_orientationNames
static

Definition at line 37 of file pin_type.cpp.

Referenced by InitTables(), and PinOrientationNames().

◆ g_pinElectricalTypes

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

Definition at line 52 of file pin_type.cpp.

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

◆ g_pinOrientations

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

Definition at line 54 of file pin_type.cpp.

Referenced by InitTables(), and PinOrientationName().

◆ g_pinShapes

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

Definition at line 53 of file pin_type.cpp.

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

◆ g_shapeIcons

thread_local std::vector<BITMAPS> g_shapeIcons
static

Definition at line 33 of file pin_type.cpp.

Referenced by InitTables(), and PinShapeIcons().

◆ g_shapeNames

thread_local wxArrayString g_shapeNames
static

Definition at line 34 of file pin_type.cpp.

Referenced by InitTables(), and PinShapeNames().

◆ g_typeIcons

thread_local std::vector<BITMAPS> g_typeIcons
static

Definition at line 30 of file pin_type.cpp.

Referenced by InitTables(), and PinTypeIcons().

◆ g_typeNames

thread_local wxArrayString g_typeNames
static

Definition at line 31 of file pin_type.cpp.

Referenced by InitTables(), and PinTypeNames().