KiCad PCB EDA Suite
|
#include <bitmaps.h>
#include <cstddef>
#include <core/arraydim.h>
#include <magic_enum.hpp>
#include <lib_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< 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 BITMAPS | iconsPinsOrientations [] |
std::map< PIN_ORIENTATION, struct pinShapeStruct > | pinOrientations |
BITMAPS ElectricalPinTypeGetBitmap | ( | ELECTRICAL_PINTYPE | aType | ) |
Definition at line 235 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 207 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 131 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, PinOrientationGetBitmap(), PinOrientationName(), PinShapeGetBitmap(), and PinShapeGetText().
Referenced by PinOrientationIcons(), PinOrientationNames(), PinShapeIcons(), PinShapeNames(), PinTypeIcons(), and PinTypeNames().
PIN_ORIENTATION PinOrientationCode | ( | size_t | index | ) |
Definition at line 113 of file pin_type.cpp.
Referenced by DIALOG_PIN_PROPERTIES::OnPropertiesChange(), PIN_TABLE_DATA_MODEL::SetValue(), and DIALOG_PIN_PROPERTIES::TransferDataFromWindow().
BITMAPS PinOrientationGetBitmap | ( | PIN_ORIENTATION | aOrientation | ) |
Definition at line 275 of file pin_type.cpp.
References INVALID_BITMAP, and pinOrientations.
Referenced by InitTables().
const std::vector< BITMAPS > & PinOrientationIcons | ( | ) |
Definition at line 198 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 | ( | PIN_ORIENTATION | code | ) |
Definition at line 120 of file pin_type.cpp.
Referenced by PIN_TABLE_DATA_MODEL::GetValue(), and DIALOG_PIN_PROPERTIES::TransferDataToWindow().
wxString PinOrientationName | ( | PIN_ORIENTATION | aOrientation | ) |
Definition at line 265 of file pin_type.cpp.
References pinOrientations.
Referenced by LIB_PIN::GetMsgPanelInfo(), SCH_PIN::GetMsgPanelInfo(), InitTables(), and LIB_PIN::operator<<().
const wxArrayString & PinOrientationNames | ( | ) |
Definition at line 189 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 255 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 245 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 180 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 171 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 162 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 153 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 94 of file pin_type.cpp.
std::map<PIN_ORIENTATION, struct pinShapeStruct> pinOrientations |
Definition at line 104 of file pin_type.cpp.
Referenced by PinOrientationGetBitmap(), and PinOrientationName().
const std::map<GRAPHIC_PINSHAPE, struct pinShapeStruct> pinShapes |
Definition at line 78 of file pin_type.cpp.
Referenced by PinShapeGetBitmap(), and PinShapeGetText().