48 m_checkerDialog( nullptr )
60 m_frame = getEditFrame<FOOTPRINT_EDIT_FRAME>();
73 auto libSelectedCondition =
82 auto libInferredCondition =
88 auto pinnedLibSelectedCondition =
94 auto unpinnedLibSelectedCondition =
100 auto fpSelectedCondition =
112 #ifdef KICAD_SCRIPTING 200 FOOTPRINT* newFootprint = wizard->GetBuiltFootprint();
303 getEditFrame<FOOTPRINT_EDIT_FRAME>()->RevertFootprint();
332 newName +=
_(
"_copy" );
349 if(
frame->DeleteFootprintFromLibrary(
frame->GetTargetFPID(), true ) )
351 if(
frame->GetTargetFPID() ==
frame->GetLoadedFPID() )
352 frame->Clear_Pcb(
false );
354 frame->SyncLibraryTree(
true );
377 if( is_last_fp_from_brd )
415 if( currentNode && !currentNode->
m_Pinned )
429 if( currentNode && currentNode->
m_Pinned )
452 getEditFrame<FOOTPRINT_EDIT_FRAME>()->OnEditItemRequest(
footprint );
461 getEditFrame<FOOTPRINT_EDIT_FRAME>()->ShowPadPropertiesDialog(
nullptr );
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.
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.
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.
static TOOL_ACTION checkFootprint
static TOOL_ACTION cleanupGraphics
virtual void Update3DView(bool aReloadRequest, const wxString *aTitle=nullptr)
Update the 3D view, if the viewer is opened by this frame.
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
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
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.
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...
static TOOL_ACTION toggleFootprintTree
FOOTPRINT * GetFirstFootprint() const
Gets 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
const UTF8 & GetLibNickname() const
Return the logical library name portion of a LIB_ID.
FOOTPRINT * LoadFootprint(const LIB_ID &aFootprintId)
Attempt to load aFootprintId from the footprint library table.
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 void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
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.
FOOTPRINT * CreateNewFootprint(const wxString &aFootprintName)
Creates a new footprint, at position 0,0.
static TOOL_ACTION defaultPadProperties
static TOOL_ACTION saveAs
PCB_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
void ClearFlags(STATUS_FLAGS aMask=EDA_ITEM_ALL_FLAGS)
static TOOL_ACTION pasteFootprint
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