| 
    KiCad PCB EDA Suite
    
   | 
 
#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) | 
| 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 | 
| static std::map< ELECTRICAL_PINTYPE, struct pinTypeStruct > | g_pinElectricalTypes | 
| static std::map< GRAPHIC_PINSHAPE, struct pinShapeStruct > | g_pinShapes | 
| static std::map< PIN_ORIENTATION, struct pinShapeStruct > | g_pinOrientations | 
| static int | g_language = wxLANGUAGE_UNKNOWN | 
| BITMAPS ElectricalPinTypeGetBitmap | ( | ELECTRICAL_PINTYPE | aType | ) | 
Definition at line 221 of file pin_type.cpp.
References g_pinElectricalTypes, InitTables(), and INVALID_BITMAP.
Referenced by SCH_PIN::GetMenuImage(), InitTables(), and PINTYPE_COMBOBOX::PINTYPE_COMBOBOX().
| wxString ElectricalPinTypeGetText | ( | ELECTRICAL_PINTYPE | aType | ) | 
Definition at line 207 of file pin_type.cpp.
References g_language, g_pinElectricalTypes, InitTables(), and Pgm().
Referenced by SCH_PIN::GetElectricalTypeName(), SCH_PIN::getItemDescription(), SCH_PIN::GetMsgPanelInfo(), InitTables(), SCH_PIN::operator<<(), PINTYPE_COMBOBOX::PINTYPE_COMBOBOX(), and ERC_TESTER::TestPinToPin().
| void InitTables | ( | ) | 
Definition at line 81 of file pin_type.cpp.
References _, CLOCK, CLOCK_LOW, ELECTRICAL_PINTYPES_TOTAL, ElectricalPinTypeGetBitmap(), ElectricalPinTypeGetText(), FALLING_EDGE_CLOCK, g_language, g_orientationIcons, g_orientationNames, g_pinElectricalTypes, g_pinOrientations, g_pinShapes, g_shapeIcons, g_shapeNames, g_typeIcons, g_typeNames, PGM_BASE::GetSelectedLanguageIdentifier(), GRAPHIC_PINSHAPES_TOTAL, INHERIT, INPUT_LOW, INVERTED, INVERTED_CLOCK, LINE, NONLOGIC, OUTPUT_LOW, Pgm(), PIN_DOWN, PIN_LEFT, PIN_RIGHT, PIN_UP, pinorient_down, pinorient_left, pinorient_right, pinorient_up, PinOrientationGetBitmap(), PinOrientationName(), pinshape_active_low_input, pinshape_active_low_output, pinshape_clock_active_low, pinshape_clock_fall, pinshape_clock_invert, pinshape_clock_normal, pinshape_invert, pinshape_nonlogic, pinshape_normal, PinShapeGetBitmap(), PinShapeGetText(), pintype_3states, pintype_bidi, pintype_input, pintype_nic, pintype_noconnect, pintype_notspecif, pintype_opencoll, pintype_openemit, pintype_output, pintype_passive, pintype_powerinput, pintype_poweroutput, 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 ElectricalPinTypeGetBitmap(), ElectricalPinTypeGetText(), PinOrientationGetBitmap(), PinOrientationIcons(), PinOrientationName(), PinOrientationNames(), PinShapeGetBitmap(), PinShapeGetText(), PinShapeIcons(), PinShapeNames(), PinTypeIcons(), and PinTypeNames().
| PIN_ORIENTATION PinOrientationCode | ( | size_t | index | ) | 
Definition at line 63 of file pin_type.cpp.
Referenced by DIALOG_PIN_PROPERTIES::OnPropertiesChange(), and DIALOG_PIN_PROPERTIES::TransferDataFromWindow().
| BITMAPS PinOrientationGetBitmap | ( | PIN_ORIENTATION | aOrientation | ) | 
Definition at line 277 of file pin_type.cpp.
References g_pinOrientations, InitTables(), and INVALID_BITMAP.
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 70 of file pin_type.cpp.
Referenced by PIN_INFO_FORMATTER::Format(), and DIALOG_PIN_PROPERTIES::TransferDataToWindow().
| 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(), InitTables(), and SCH_PIN::operator<<().
| const wxArrayString & PinOrientationNames | ( | ) | 
Definition at line 189 of file pin_type.cpp.
References g_language, g_orientationNames, InitTables(), and Pgm().
Referenced by DIALOG_LIB_EDIT_PIN_TABLE::DIALOG_LIB_EDIT_PIN_TABLE(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), PIN_INFO_FORMATTER::Format(), and PIN_INFO_FORMATTER::UpdatePin().
| BITMAPS PinShapeGetBitmap | ( | GRAPHIC_PINSHAPE | aShape | ) | 
Definition at line 249 of file pin_type.cpp.
References g_pinShapes, InitTables(), and INVALID_BITMAP.
Referenced by InitTables(), PINSHAPE_COMBOBOX::PINSHAPE_COMBOBOX(), and DIALOG_SIM_MODEL< T >::updatePinAssignments().
| wxString PinShapeGetText | ( | GRAPHIC_PINSHAPE | aShape | ) | 
Definition at line 235 of file pin_type.cpp.
References g_language, g_pinShapes, InitTables(), and Pgm().
Referenced by SCH_PIN::getItemDescription(), SCH_PIN::GetMsgPanelInfo(), InitTables(), SCH_PIN::operator<<(), and PINSHAPE_COMBOBOX::PINSHAPE_COMBOBOX().
| 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_language, g_shapeNames, InitTables(), and Pgm().
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_INFO_FORMATTER::Format(), ALT_PIN_DATA_MODEL::GetValue(), SCH_PIN_TABLE_DATA_MODEL::GetValue(), ALT_PIN_DATA_MODEL::SetValue(), and PIN_INFO_FORMATTER::UpdatePin().
| 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_language, g_typeNames, InitTables(), and Pgm().
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_INFO_FORMATTER::Format(), ALT_PIN_DATA_MODEL::GetValue(), SCH_PIN_TABLE_DATA_MODEL::GetValue(), ALT_PIN_DATA_MODEL::SetValue(), and PIN_INFO_FORMATTER::UpdatePin().
      
  | 
  static | 
Definition at line 60 of file pin_type.cpp.
Referenced by ElectricalPinTypeGetText(), InitTables(), PinOrientationName(), PinOrientationNames(), PinShapeGetText(), PinShapeNames(), and PinTypeNames().
      
  | 
  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().
      
  | 
  static | 
Definition at line 55 of file pin_type.cpp.
Referenced by ElectricalPinTypeGetBitmap(), ElectricalPinTypeGetText(), and InitTables().
      
  | 
  static | 
Definition at line 57 of file pin_type.cpp.
Referenced by InitTables(), PinOrientationGetBitmap(), and PinOrientationName().
      
  | 
  static | 
Definition at line 56 of file pin_type.cpp.
Referenced by InitTables(), PinShapeGetBitmap(), and PinShapeGetText().
      
  | 
  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().