40 m_markersProvider( nullptr ),
105 msg =
_(
"No footprint loaded." );
114 drcItem->SetErrorMessage( drcItem->GetErrorText() + wxS(
" " ) + aMsg );
115 drcItem->SetItems( aItemA, aItemB );
118 board->
Add( marker );
125 const std::function<void(
const wxString& msg )> typeWarning =
126 [&](
const wxString& aMsg )
130 drcItem->SetErrorMessage( drcItem->GetErrorText() + wxS(
" " ) + aMsg );
131 drcItem->SetItems( footprint );
134 board->
Add( marker );
138 const std::function<void(
const wxString& msg,
const wxPoint& position )> tstHoleInTHPad =
139 [&](
const wxString& aMsg,
const wxPoint& aPosition )
143 drcItem->SetErrorMessage( drcItem->GetErrorText() + wxS(
" " ) + aMsg );
144 drcItem->SetItems( footprint );
147 board->
Add( marker );
187 LSET violationLayers;
188 std::shared_ptr<RC_ITEM> rc_item = node->
m_RcItem;
215 if( a || b || c || d )
231 if( violationLayers.count() )
232 principalLayer = violationLayers.
Seq().front();
234 violationLayers.set( principalLayer );
274 if( aEvent.GetEventObject() ==
m_showAll )
283 if( aEvent.IsChecked() )
285 else if( aEvent.GetEventObject() ==
m_showAll )
308 SetReturnCode( wxID_CANCEL );
318 wxCommandEvent
dummy;
static TOOL_ACTION selectionClear
Clear the current selection.
BOARD_ITEM * GetItem(const KIID &aID) const
void DeleteItems(bool aCurrentOnly, bool aIncludeExclusions, bool aDeep)
Deletes the current item or all items.
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
#define MALFORMED_B_COURTYARD
void SetProvider(RC_ITEMS_PROVIDER *aProvider)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
#define MALFORMED_F_COURTYARD
void UpdateNumber(int aNumber, SEVERITY aSeverity)
Update the number displayed on the badge.
LSET GetVisibleLayers() const
A proxy function that calls the correspondent function in m_BoardSettings.
static KIID ToUUID(wxDataViewItem aItem)
virtual int GetCount(int aSeverity=-1) const =0
LSEQ Seq(const PCB_LAYER_ID *aWishListSequence, unsigned aCount) const
Return an LSEQ from the union of this LSET and a desired sequence.
APPEARANCE_CONTROLS * GetAppearancePanel()
void DeleteCurrentItem(bool aDeep)
void SetSeverities(int aSeverities)
Provide an abstract interface of a RC_ITEM* list manager.
static LIB_SYMBOL * dummy()
Used to draw a dummy shape when a LIB_SYMBOL is not found in library.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT) override
Adds an item to the container.
LSET is a set of PCB_LAYER_IDs.
std::shared_ptr< RC_ITEM > m_RcItem
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
static RC_TREE_NODE * ToNode(wxDataViewItem aItem)
BOARD_DRC_ITEMS_PROVIDER is an implementation of the RC_ITEMS_PROVIDER interface which uses a BOARD i...
static LSET AllLayersMask()
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
bool Show(bool show) override
void FocusOnItem(BOARD_ITEM *aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
EDA_ITEM_FLAGS GetFlags() const
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
Information pertinent to a Pcbnew printed circuit board.
PCB_LAYER_ID
A quick note on layer IDs:
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
const std::function< void(const wxString &msg, BOARD_ITEM *itemA, BOARD_ITEM *itemB, const wxPoint &pt)> OUTLINE_ERROR_HANDLER
void SetLayerVisible(LAYER_NUM aLayer, bool isVisible)
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1) override
Add a VIEW_ITEM to the view.
void SetMaximumNumber(int aMax)
Set the maximum number to be shown on the badge.
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.