KiCad PCB EDA Suite
|
#include <vector>
#include <sch_symbol.h>
#include <eda_draw_frame.h>
#include <lib_shape.h>
#include <macros.h>
Go to the source code of this file.
Functions | |
static bool | sort_by_pin_number (const LIB_PIN *ref, const LIB_PIN *tst) |
static void | CheckLibSymbolGraphics (LIB_SYMBOL *aSymbol, std::vector< wxString > &aMessages, EDA_DRAW_FRAME *aUnitsProvider) |
void | CheckLibSymbol (LIB_SYMBOL *aSymbol, std::vector< wxString > &aMessages, int aGridForPins, EDA_DRAW_FRAME *aUnitsProvider) |
Check a lib symbol to find incorrect settings Pins not on a valid grid Pins duplicated Conflict with pins at same location Incorrect Power Symbols illegal reference prefix (cannot ends by a digit or a '?') More... | |
void CheckLibSymbol | ( | LIB_SYMBOL * | aSymbol, |
std::vector< wxString > & | aMessages, | ||
int | aGridForPins, | ||
EDA_DRAW_FRAME * | aUnitsProvider | ||
) |
Check a lib symbol to find incorrect settings Pins not on a valid grid Pins duplicated Conflict with pins at same location Incorrect Power Symbols illegal reference prefix (cannot ends by a digit or a '?')
aSymbol | is the library symbol to check |
aMessages | is a room to store error messages |
aGridForPins | (in IU) is the grid to test pin positions ( >= 25 mils ) should be 25, 50 or 100 mils (convered to IUs) |
aUnitsProvider | a frame to format coordinates in messages |
Definition at line 49 of file symbol_checker.cpp.
References _, CheckLibSymbolGraphics(), LIB_SYMBOL::GetPins(), LIB_SYMBOL::GetReferenceField(), EDA_TEXT::GetText(), LIB_SYMBOL::GetUnitCount(), LIB_SYMBOL::GetUnitReference(), LIB_SYMBOL::HasConversion(), LIB_SYMBOL::IsPower(), UNITS_PROVIDER::MessageTextFromValue(), EDA_IU_SCALE::MilsToIU(), next(), pin, PT_POWER_IN, PT_POWER_OUT, schIUScale, and sort_by_pin_number().
Referenced by EE_INSPECTION_TOOL::CheckSymbol().
|
static |
Definition at line 345 of file symbol_checker.cpp.
References _, ARC, BEZIER, CIRCLE, LIB_SYMBOL::GetDrawItems(), EDA_SHAPE::GetEnd(), LIB_SHAPE::GetPosition(), EDA_SHAPE::GetRadius(), EDA_SHAPE::GetShape(), LIB_SHAPE_T, UNITS_PROVIDER::MessageTextFromValue(), POLY, RECTANGLE, EDA_SHAPE::SHAPE_T_asString(), UNIMPLEMENTED_FOR, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by CheckLibSymbol().
Definition at line 400 of file symbol_checker.cpp.
References LIB_ITEM::GetConvert(), LIB_PIN::GetNumber(), and LIB_ITEM::GetUnit().
Referenced by CheckLibSymbol().