52 { wxID_APPLY,
_(
"Restore All Layers" ) },
53 { wxID_CANCEL,
_(
"Cancel" ) } } );
80 EndModal( wxID_APPLY );
102 via->SetRemoveUnconnected( aRemoveLayers );
112 pad->SetRemoveUnconnected( aRemoveLayers );
121 pad->SetRemoveUnconnected( aRemoveLayers );
134 for(
PAD*
pad : footprint->Pads() )
136 pad->SetRemoveUnconnected( aRemoveLayers );
151 via->SetRemoveUnconnected( aRemoveLayers );
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
@ pads_remove_unused_keep_bottom
FOOTPRINTS & Footprints()
Represent a set of changes (additions, deletions or modifications) of a data model (e....
COMMIT & Modify(EDA_ITEM *aItem)
Create an undo entry for an item that has been already modified.
virtual void Push(const wxString &aMessage=wxT("A commit"), int aFlags=0)=0
Revert the commit by restoring the modified items state.
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...
Class DIALOG_UNUSED_PAD_LAYERS_BASE.
wxCheckBox * m_cbPreservePads
wxCheckBox * m_cbSelectedOnly
void onApply(wxCommandEvent &event) override
void onOK(wxCommandEvent &event) override
const PCB_SELECTION & m_items
void updatePadsAndVias(bool aRemoveLayers)
Update layers of pads and vias aRemoveLayers = true to remove not connected layers false to set all l...
void syncImages(wxCommandEvent &aEvent) override
DIALOG_UNUSED_PAD_LAYERS(PCB_BASE_FRAME *aParent, const PCB_SELECTION &aItems, COMMIT &aCommit)
A base class for most all the KiCad significant classes used in schematics and boards.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
@ PCB_PAD_T
class PAD, a pad in a footprint