52 m_checkerDialog( nullptr )
64 m_frame = getEditFrame<FOOTPRINT_EDIT_FRAME>();
77 auto libSelectedCondition =
87 auto libInferredCondition =
93 auto pinnedLibSelectedCondition =
99 auto unpinnedLibSelectedCondition =
105 auto fpSelectedCondition =
203 if( wizard->ShowModal(
nullptr,
m_frame ) )
206 FOOTPRINT* newFootprint = wizard->GetBuiltFootprint();
318 getEditFrame<FOOTPRINT_EDIT_FRAME>()->RevertFootprint();
347 newName +=
_(
"_copy" );
364 if(
frame->DeleteFootprintFromLibrary(
frame->GetTargetFPID(), true ) )
366 if(
frame->GetTargetFPID() ==
frame->GetLoadedFPID() )
367 frame->Clear_Pcb(
false );
369 frame->SyncLibraryTree(
true );
392 if( is_last_fp_from_brd )
430 if( currentNode && !currentNode->
m_Pinned )
444 if( currentNode && currentNode->
m_Pinned )
474 getEditFrame<FOOTPRINT_EDIT_FRAME>()->OnEditItemRequest(
footprint );
483 getEditFrame<FOOTPRINT_EDIT_FRAME>()->ShowPadPropertiesDialog(
nullptr );
538 if( ids.count( aItem->m_Uuid ) )
541 const_cast<KIID&>( aItem->m_Uuid ) =
KIID();
544 ids.insert( aItem->m_Uuid );
569 processItem(
group );
573 errors += duplicates;
589 wxString msg =
wxString::Format(
_(
"%d potential problems repaired." ), errors );
static TOOL_ACTION pinLibrary
bool HandleUnsavedChanges(wxWindow *aParent, const wxString &aMessage, const std::function< bool()> &aSaveFunction)
Display a dialog with Save, Cancel and Discard Changes buttons.
static TOOL_ACTION hideFootprintTree
const UTF8 & GetLibItemName() const
static TOOL_ACTION footprintProperties
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
void ForceRefresh()
Force a redraw.
static TOOL_ACTION repairFootprint
KIGFX::VIEW_CONTROLS * GetViewControls() const
Return a pointer to the #VIEW_CONTROLS instance used in the panel.
This file is part of the common library.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
static TOOL_ACTION checkFootprint
static TOOL_ACTION cleanupGraphics
A set of BOARD_ITEMs (i.e., without duplicates).
FOOTPRINT * CreateNewFootprint(const wxString &aFootprintName, bool aQuiet=false)
Creates a new footprint, at position 0,0.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
static TOOL_ACTION zoomFitScreen
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
static TOOL_ACTION unpinLibrary
static TOOL_ACTION showLayersManager
A logical library item identifier and consists of various portions much like a URI.
bool IsValid() const
Check if this LID_ID is valid.
static TOOL_ACTION createFootprint
static TOOL_ACTION saveCopyAs
static TOOL_ACTION cutFootprint
static TOOL_ACTION copyFootprint
bool HasCloseButton() const
virtual void Zoom_Automatique(bool aWarpPointer)
Redraw the screen with best zoom level and the best centering that shows all the page or the board.
void Dismiss() override
Dismisses the infobar and updates the containing layout and AUI manager (if one is provided).
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const override
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
VECTOR2< double > VECTOR2D
BOARD_DRC_ITEMS_PROVIDER is an implementation of the RC_ITEMS_PROVIDER interface which uses a BOARD i...
static TOOL_ACTION exportFootprint
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
wxString GetFullURI(const wxString &aLibNickname, bool aExpandEnvVars=true) const
Return the full URI of the library mapped to aLibNickname.
static TOOL_ACTION editFootprint
FOOTPRINTS & Footprints()
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
void ClearFlags(EDA_ITEM_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
FOOTPRINT * LoadFootprint(const LIB_ID &aFootprintId)
Attempt to load aFootprintId from the footprint library table.
Handle a list of polygons defining a copper zone.
virtual void SetCrossHairCursorPosition(const VECTOR2D &aPosition, bool aWarpView=true)=0
Move the graphic crosshair cursor to the requested position expressed in world coordinates.
Model class in the component selector Model-View-Adapter (mediated MVC) architecture.
static TOOL_ACTION importFootprint
bool Show(bool show) override
virtual FP_LIB_TABLE * PcbFootprintLibs(KIWAY &aKiway)
Return the table of footprint libraries.
int SetLibNickname(const UTF8 &aNickname)
Override the logical library name portion of the LIB_ID to aNickname.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
void SetContentModified(bool aModified=true)
A modified version of the wxInfoBar class that allows us to:
static TOOL_ACTION defaultPadProperties
static TOOL_ACTION showFootprintTree
static TOOL_ACTION saveAs
virtual void Update3DView(bool aMarkDirty, bool aRefresh, const wxString *aTitle=nullptr)
Update the 3D view, if the viewer is opened by this frame.
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...
A base class for most all the KiCad significant classes used in schematics and boards.
PCB_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
WX_INFOBAR * GetInfoBar()
static TOOL_ACTION pasteFootprint
void DisplayInfoMessage(wxWindow *aParent, const wxString &aMessage, const wxString &aExtraInfo)
Display an informational message box with aMessage.
virtual void ClearUndoRedoList()
Clear the undo and redo list using ClearUndoORRedoList()
static TOOL_ACTION deleteFootprint
bool FootprintExists(const wxString &aNickname, const wxString &aFootprintName)
Indicates whether or not the given footprint already exists in the given library.
static TOOL_ACTION revert
static TOOL_ACTION newFootprint