KiCad PCB EDA Suite
|
#include <wx/arrstr.h>
#include <vector>
Go to the source code of this file.
Macros | |
#define | ELECTRICAL_PINTYPES_TOTAL ( static_cast<int>( ELECTRICAL_PINTYPE::PT_LAST_OPTION ) + 1 ) |
#define | GRAPHIC_PINSHAPES_TOTAL ( static_cast<int>( GRAPHIC_PINSHAPE::LAST_OPTION ) + 1 ) |
Enumerations | |
enum class | ELECTRICAL_PINTYPE { PT_INPUT , PT_OUTPUT , PT_BIDI , PT_TRISTATE , PT_PASSIVE , PT_NIC , PT_UNSPECIFIED , PT_POWER_IN , PT_POWER_OUT , PT_OPENCOLLECTOR , PT_OPENEMITTER , PT_NC , PT_LAST_OPTION = PT_NC } |
The symbol library pin object electrical types used in ERC tests. More... | |
enum class | GRAPHIC_PINSHAPE { LINE , INVERTED , CLOCK , INVERTED_CLOCK , INPUT_LOW , CLOCK_LOW , OUTPUT_LOW , FALLING_EDGE_CLOCK , NONLOGIC , LAST_OPTION = NONLOGIC } |
Functions | |
wxString | PinShapeGetText (GRAPHIC_PINSHAPE shape) |
BITMAPS | PinShapeGetBitmap (GRAPHIC_PINSHAPE shape) |
wxString | ElectricalPinTypeGetText (ELECTRICAL_PINTYPE) |
BITMAPS | ElectricalPinTypeGetBitmap (ELECTRICAL_PINTYPE) |
wxString | PinOrientationName (unsigned aPinOrientationCode) |
int | PinOrientationCode (int index) |
int | PinOrientationIndex (int code) |
const wxArrayString & | PinTypeNames () |
const std::vector< BITMAPS > & | PinTypeIcons () |
const wxArrayString & | PinShapeNames () |
const std::vector< BITMAPS > & | PinShapeIcons () |
const wxArrayString & | PinOrientationNames () |
const std::vector< BITMAPS > & | PinOrientationIcons () |
#define ELECTRICAL_PINTYPES_TOTAL ( static_cast<int>( ELECTRICAL_PINTYPE::PT_LAST_OPTION ) + 1 ) |
Definition at line 53 of file pin_type.h.
#define GRAPHIC_PINSHAPES_TOTAL ( static_cast<int>( GRAPHIC_PINSHAPE::LAST_OPTION ) + 1 ) |
Definition at line 70 of file pin_type.h.
|
strong |
The symbol library pin object electrical types used in ERC tests.
Definition at line 35 of file pin_type.h.
|
strong |
Enumerator | |
---|---|
LINE | |
INVERTED | |
CLOCK | |
INVERTED_CLOCK | |
INPUT_LOW | |
CLOCK_LOW | |
OUTPUT_LOW | |
FALLING_EDGE_CLOCK | |
NONLOGIC | |
LAST_OPTION | this is the sentinel value, must be set to last enum value |
Definition at line 55 of file pin_type.h.
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().
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 | shape | ) |
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 | shape | ) |
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().