KiCad PCB EDA Suite
|
#include <bitmaps.h>
#include <cstddef>
#include <core/arraydim.h>
#include <lib_pin.h>
#include "pgm_base.h"
Go to the source code of this file.
Classes | |
struct | pinTypeStruct |
struct | pinShapeStruct |
Macros | |
#define | PIN_ORIENTATION_CNT arrayDim( pin_orientation_codes ) |
Functions | |
wxString | PinOrientationName (unsigned aPinOrientationCode) |
int | PinOrientationCode (int index) |
int | PinOrientationIndex (int 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) |
Variables | |
static std::vector< BITMAPS > | g_typeIcons |
static wxArrayString | g_typeNames |
static std::vector< BITMAPS > | g_shapeIcons |
static wxArrayString | g_shapeNames |
static std::vector< BITMAPS > | g_orientationIcons |
static wxArrayString | g_orientationNames |
std::map< ELECTRICAL_PINTYPE, struct pinTypeStruct > | g_pinTypes |
int | g_pinTypesLanguage = wxLANGUAGE_UNKNOWN |
const std::map< GRAPHIC_PINSHAPE, struct pinShapeStruct > | pinShapes |
static const int | pin_orientation_codes [] |
static const BITMAPS | iconsPinsOrientations [] |
#define PIN_ORIENTATION_CNT arrayDim( pin_orientation_codes ) |
Definition at line 111 of file pin_type.cpp.
BITMAPS ElectricalPinTypeGetBitmap | ( | ELECTRICAL_PINTYPE | aType | ) |
Definition at line 267 of file pin_type.cpp.
References g_pinTypes, and INVALID_BITMAP.
Referenced by LIB_PIN::GetMenuImage(), InitTables(), and PinTypeComboBox::PinTypeComboBox().
wxString ElectricalPinTypeGetText | ( | ELECTRICAL_PINTYPE | aType | ) |
Definition at line 239 of file pin_type.cpp.
References _, g_pinTypes, g_pinTypesLanguage, Pgm(), 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 LIB_PIN::GetElectricalTypeName(), LIB_PIN::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), InitTables(), LIB_PIN::operator<<(), PinTypeComboBox::PinTypeComboBox(), and ERC_TESTER::TestPinToPin().
void InitTables | ( | ) |
Definition at line 163 of file pin_type.cpp.
References ELECTRICAL_PINTYPES_TOTAL, ElectricalPinTypeGetBitmap(), ElectricalPinTypeGetText(), g_orientationIcons, g_orientationNames, g_shapeIcons, g_shapeNames, g_typeIcons, g_typeNames, GRAPHIC_PINSHAPES_TOTAL, iconsPinsOrientations, PIN_ORIENTATION_CNT, PinOrientationName(), PinShapeGetBitmap(), and PinShapeGetText().
Referenced by PinOrientationIcons(), PinOrientationNames(), PinShapeIcons(), PinShapeNames(), PinTypeIcons(), and PinTypeNames().
int PinOrientationCode | ( | int | index | ) |
Definition at line 140 of file pin_type.cpp.
References PIN_ORIENTATION_CNT, pin_orientation_codes, and PIN_RIGHT.
Referenced by DIALOG_PIN_PROPERTIES::OnPropertiesChange(), PIN_TABLE_DATA_MODEL::SetValue(), and DIALOG_PIN_PROPERTIES::TransferDataFromWindow().
const std::vector< BITMAPS > & PinOrientationIcons | ( | ) |
Definition at line 230 of file pin_type.cpp.
References g_orientationIcons, and InitTables().
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), and DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES().
int PinOrientationIndex | ( | int | code | ) |
Definition at line 149 of file pin_type.cpp.
References PIN_ORIENTATION_CNT, and pin_orientation_codes.
Referenced by LIB_PIN::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), PIN_TABLE_DATA_MODEL::GetValue(), and DIALOG_PIN_PROPERTIES::TransferDataToWindow().
wxString PinOrientationName | ( | unsigned | aPinOrientationCode | ) |
Definition at line 118 of file pin_type.cpp.
References _, and PIN_ORIENTATION_CNT.
Referenced by LIB_PIN::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), InitTables(), and LIB_PIN::operator<<().
const wxArrayString & PinOrientationNames | ( | ) |
Definition at line 221 of file pin_type.cpp.
References g_orientationNames, and InitTables().
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), PIN_TABLE_DATA_MODEL::GetValue(), and PIN_TABLE_DATA_MODEL::SetValue().
BITMAPS PinShapeGetBitmap | ( | GRAPHIC_PINSHAPE | aShape | ) |
Definition at line 287 of file pin_type.cpp.
References INVALID_BITMAP, and pinShapes.
Referenced by InitTables(), PinShapeComboBox::PinShapeComboBox(), and DIALOG_SIM_MODEL< T_symbol, T_field >::updatePinAssignments().
wxString PinShapeGetText | ( | GRAPHIC_PINSHAPE | aShape | ) |
Definition at line 277 of file pin_type.cpp.
References pinShapes.
Referenced by LIB_PIN::GetItemDescription(), LIB_PIN::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), InitTables(), LIB_PIN::operator<<(), and PinShapeComboBox::PinShapeComboBox().
const std::vector< BITMAPS > & PinShapeIcons | ( | ) |
Definition at line 212 of file pin_type.cpp.
References g_shapeIcons, and InitTables().
Referenced by SCH_PIN_TABLE_DATA_MODEL::BuildAttrs(), DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), and DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES().
const wxArrayString & PinShapeNames | ( | ) |
Definition at line 203 of file pin_type.cpp.
References g_shapeNames, and InitTables().
Referenced by SCH_PIN_TABLE_DATA_MODEL::BuildAttrs(), DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), PIN_TABLE_DATA_MODEL::GetValue(), SCH_PIN_TABLE_DATA_MODEL::GetValue(), ALT_PIN_DATA_MODEL::GetValue(), PIN_TABLE_DATA_MODEL::SetValue(), and ALT_PIN_DATA_MODEL::SetValue().
const std::vector< BITMAPS > & PinTypeIcons | ( | ) |
Definition at line 194 of file pin_type.cpp.
References g_typeIcons, and InitTables().
Referenced by SCH_PIN_TABLE_DATA_MODEL::BuildAttrs(), DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), and DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES().
const wxArrayString & PinTypeNames | ( | ) |
Definition at line 185 of file pin_type.cpp.
References g_typeNames, and InitTables().
Referenced by SCH_PIN_TABLE_DATA_MODEL::BuildAttrs(), DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), PIN_TABLE_DATA_MODEL::GetValue(), SCH_PIN_TABLE_DATA_MODEL::GetValue(), ALT_PIN_DATA_MODEL::GetValue(), PIN_TABLE_DATA_MODEL::SetValue(), and ALT_PIN_DATA_MODEL::SetValue().
|
static |
Definition at line 39 of file pin_type.cpp.
Referenced by InitTables(), and PinOrientationIcons().
|
static |
Definition at line 40 of file pin_type.cpp.
Referenced by InitTables(), and PinOrientationNames().
std::map<ELECTRICAL_PINTYPE, struct pinTypeStruct> g_pinTypes |
Definition at line 50 of file pin_type.cpp.
Referenced by ElectricalPinTypeGetBitmap(), and ElectricalPinTypeGetText().
int g_pinTypesLanguage = wxLANGUAGE_UNKNOWN |
Definition at line 66 of file pin_type.cpp.
Referenced by ElectricalPinTypeGetText().
|
static |
Definition at line 36 of file pin_type.cpp.
Referenced by InitTables(), and PinShapeIcons().
|
static |
Definition at line 37 of file pin_type.cpp.
Referenced by InitTables(), and PinShapeNames().
|
static |
Definition at line 33 of file pin_type.cpp.
Referenced by InitTables(), and PinTypeIcons().
|
static |
Definition at line 34 of file pin_type.cpp.
Referenced by InitTables(), and PinTypeNames().
|
static |
Definition at line 102 of file pin_type.cpp.
Referenced by InitTables().
|
static |
Definition at line 91 of file pin_type.cpp.
Referenced by PinOrientationCode(), and PinOrientationIndex().
const std::map<GRAPHIC_PINSHAPE, struct pinShapeStruct> pinShapes |
Definition at line 77 of file pin_type.cpp.
Referenced by PinShapeGetBitmap(), and PinShapeGetText().