KiCad PCB EDA Suite
|
#include "tools/ee_inspection_tool.h"
#include <sch_symbol.h>
#include <id.h>
#include <kiway.h>
#include <kiplatform/ui.h>
#include <confirm.h>
#include <string_utils.h>
#include <gal/graphics_abstraction_layer.h>
#include <tool/conditional_menu.h>
#include <tool/selection_conditions.h>
#include <tools/ee_actions.h>
#include <tools/ee_selection_tool.h>
#include <tools/ee_selection.h>
#include <sim/simulator_frame.h>
#include <sch_edit_frame.h>
#include <symbol_edit_frame.h>
#include <symbol_viewer_frame.h>
#include <symbol_lib_table.h>
#include <eda_doc.h>
#include <sch_marker.h>
#include <project.h>
#include <project_sch.h>
#include <dialogs/html_message_box.h>
#include <dialogs/dialog_erc.h>
#include <dialogs/dialog_book_reporter.h>
#include <widgets/wx_html_report_box.h>
#include <widgets/symbol_diff_widget.h>
#include <math/util.h>
Go to the source code of this file.
Functions | |
void | CheckLibSymbol (LIB_SYMBOL *aSymbol, std::vector< wxString > &aMessages, int aGridForPins, UNITS_PROVIDER *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 '?') | |
void CheckLibSymbol | ( | LIB_SYMBOL * | aSymbol, |
std::vector< wxString > & | aMessages, | ||
int | aGridForPins, | ||
UNITS_PROVIDER * | 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 159 of file symbol_checker.cpp.
References _, CheckDuplicatePins(), CheckLibSymbolGraphics(), SCH_ITEM::GetBodyStyleDescription(), LIB_SYMBOL::GetPins(), LIB_SYMBOL::GetReferenceField(), EDA_TEXT::GetText(), LIB_SYMBOL::GetUnitCount(), LIB_SYMBOL::HasAlternateBodyStyle(), LIB_SYMBOL::IsPower(), UNITS_PROVIDER::MessageTextFromValue(), EDA_IU_SCALE::MilsToIU(), pin, PT_POWER_IN, PT_POWER_OUT, schIUScale, and sort_by_pin_number().
Referenced by EE_INSPECTION_TOOL::CheckSymbol().