KiCad PCB EDA Suite
|
#include <bitmaps.h>
#include <cstddef>
#include <core/arraydim.h>
#include <lib_pin.h>
#include <pin_type.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 112 of file pin_type.cpp.
BITMAPS ElectricalPinTypeGetBitmap | ( | ELECTRICAL_PINTYPE | aType | ) |
Definition at line 268 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 240 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(), PinTypeComboBox::PinTypeComboBox(), and ERC_TESTER::TestPinToPin().
void InitTables | ( | ) |
Definition at line 164 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 141 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 231 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 150 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 119 of file pin_type.cpp.
References _, and PIN_ORIENTATION_CNT.
Referenced by LIB_PIN::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), and InitTables().
const wxArrayString & PinOrientationNames | ( | ) |
Definition at line 222 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 288 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 278 of file pin_type.cpp.
References pinShapes.
Referenced by LIB_PIN::GetItemDescription(), LIB_PIN::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), InitTables(), and PinShapeComboBox::PinShapeComboBox().
const std::vector< BITMAPS > & PinShapeIcons | ( | ) |
Definition at line 213 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 204 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 195 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 186 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 40 of file pin_type.cpp.
Referenced by InitTables(), and PinOrientationIcons().
|
static |
Definition at line 41 of file pin_type.cpp.
Referenced by InitTables(), and PinOrientationNames().
std::map<ELECTRICAL_PINTYPE, struct pinTypeStruct> g_pinTypes |
Definition at line 51 of file pin_type.cpp.
Referenced by ElectricalPinTypeGetBitmap(), and ElectricalPinTypeGetText().
int g_pinTypesLanguage = wxLANGUAGE_UNKNOWN |
Definition at line 67 of file pin_type.cpp.
Referenced by ElectricalPinTypeGetText().
|
static |
Definition at line 37 of file pin_type.cpp.
Referenced by InitTables(), and PinShapeIcons().
|
static |
Definition at line 38 of file pin_type.cpp.
Referenced by InitTables(), and PinShapeNames().
|
static |
Definition at line 34 of file pin_type.cpp.
Referenced by InitTables(), and PinTypeIcons().
|
static |
Definition at line 35 of file pin_type.cpp.
Referenced by InitTables(), and PinTypeNames().
|
static |
Definition at line 103 of file pin_type.cpp.
Referenced by InitTables().
|
static |
Definition at line 92 of file pin_type.cpp.
Referenced by PinOrientationCode(), and PinOrientationIndex().
const std::map<GRAPHIC_PINSHAPE, struct pinShapeStruct> pinShapes |
Definition at line 78 of file pin_type.cpp.
Referenced by PinShapeGetBitmap(), and PinShapeGetText().