46 m_centerMarkerOnIdle( nullptr )
62 { wxID_CANCEL,
_(
"Close" ) } } );
116 msg =
_(
"No footprint loaded." );
122 int aErrorCode,
const wxString& aMsg,
const VECTOR2I& aPt )
126 if( !aMsg.IsEmpty() )
127 drcItem->SetErrorMessage( drcItem->GetErrorText() + wxS(
" " ) + aMsg );
129 drcItem->SetItems( aItemA, aItemB, aItemC );
132 board->
Add( marker );
140 std::swap( aItemA, aItemB );
156 [&](
const wxString& aMsg )
163 [&](
const PAD* aPad,
int aErrorCode,
const wxString& aMsg )
165 errorHandler( aPad,
nullptr,
nullptr, aErrorCode, aMsg, aPad->
GetPosition() );
169 [&](
const PAD* aPadA,
const PAD* aPadB,
int aErrorCode,
const VECTOR2I& aPosition )
171 errorHandler( aPadA, aPadB,
nullptr, aErrorCode, wxEmptyString, aPosition );
177 [&](
const wxString& aMsg )
179 errorHandler( footprint,
nullptr,
nullptr,
DRCE_FOOTPRINT, aMsg, { 0, 0 } );
246 LSET violationLayers;
247 std::shared_ptr<RC_ITEM> rc_item = node->
m_RcItem;
277 if( a || b || c || d )
293 if( violationLayers.count() )
294 principalLayer = violationLayers.
Seq().front();
296 violationLayers.
set( principalLayer );
336 if( aEvent.GetEventObject() ==
m_showAll )
345 if( aEvent.IsChecked() )
347 else if( aEvent.GetEventObject() ==
m_showAll )
363 SetReturnCode( wxID_CANCEL );
373 wxCommandEvent
dummy;
void SetLayerVisible(int aLayer, bool isVisible)
BASE_SET & set(size_t pos)
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
Information pertinent to a Pcbnew printed circuit board.
LSET GetVisibleLayers() const
A proxy function that calls the correspondent function in m_BoardSettings.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
BOARD_ITEM * GetItem(const KIID &aID) const
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
void DeleteMARKERs()
Delete all MARKERS from the board.
bool Show(bool show) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
static std::shared_ptr< DRC_ITEM > Create(int aErrorCode)
Constructs a DRC_ITEM for the given error code.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
EDA_ITEM_FLAGS GetFlags() const
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1) override
Add a VIEW_ITEM to the view.
LSET is a set of PCB_LAYER_IDs.
static LSET AllLayersMask()
LSEQ Seq(const LSEQ &aSequence) const
Return an LSEQ from the union of this LSET and a desired sequence.
void SetMaximumNumber(int aMax)
Set the maximum number to be shown on the badge.
void UpdateNumber(int aNumber, SEVERITY aSeverity)
Update the number displayed on the badge.
VECTOR2I GetPosition() const override
static TOOL_ACTION selectionClear
Clear the current selection.
APPEARANCE_CONTROLS * GetAppearancePanel()
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
void FocusOnItem(BOARD_ITEM *aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
void SelectMarker(const MARKER_BASE *aMarker)
static RC_TREE_NODE * ToNode(wxDataViewItem aItem)
void Update(std::shared_ptr< RC_ITEMS_PROVIDER > aProvider, int aSeverities)
void DeleteItems(bool aCurrentOnly, bool aIncludeExclusions, bool aDeep)
Delete the current item or all items.
void DeleteCurrentItem(bool aDeep)
void CenterMarker(const MARKER_BASE *aMarker)
static KIID ToUUID(wxDataViewItem aItem)
std::shared_ptr< RC_ITEM > m_RcItem
int OutlineCount() const
Return the number of outlines in the set.
const std::function< void(const wxString &msg, BOARD_ITEM *itemA, BOARD_ITEM *itemB, const VECTOR2I &pt)> OUTLINE_ERROR_HANDLER
@ DRCE_MALFORMED_COURTYARD
@ DRCE_FOOTPRINT_TYPE_MISMATCH
#define MALFORMED_F_COURTYARD
#define MALFORMED_B_COURTYARD
PCB_LAYER_ID
A quick note on layer IDs:
std::vector< FAB_LAYER_COLOR > dummy
static int RPT_SEVERITY_ALL