25 using namespace std::placeholders;
55 GetSizer()->SetSizeHints(
this );
102 bool gen_rastnest =
false;
111 if( !
IsOK(
this,
_(
"Are you sure you want to delete the entire board?" ) ) )
116 else if( !
IsOK(
this,
_(
"Are you sure you want to delete the selected items?" ) ) )
130 auto item = pcb->
GetArea( area_index );
134 if( delAll || layers_filter[item->GetLayer()] )
141 item = pcb->
GetArea( area_index );
148 if( delAll || delDrawings || delTexts )
151 LSET del_text_layers = layers_filter;
162 masque_layer &= layers_filter;
173 if( !delDrawings || !masque_layer[layer] )
193 if( !delTexts || !del_text_layers[layer] )
214 if( !layers_filter[footprint->GetLayer()] )
218 commit.
Remove( footprint );
241 if( ( track->GetLayerSet() & layers_filter ) == 0 )
250 commit.
Push(
"Global delete" );
static TOOL_ACTION selectionClear
Clear the current selection.
wxCheckBox * m_footprintFilterUnlocked
wxRadioBox * m_rbLayersOption
wxCheckBox * m_trackFilterLocked
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
void Compile_Ratsnest(bool aDisplayStatus)
Create the entire board ratsnest.
wxCheckBox * m_trackFilterVias
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...
DIALOG_GLOBAL_DELETION(PCB_EDIT_FRAME *parent)
wxCheckBox * m_delDrawings
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
Class that computes missing connections on a PCB.
Class DIALOG_GLOBAL_DELETION_BASE.
static LSET AllNonCuMask()
Return a mask holding all layer minus CU layers.
class PCB_TEXT, text on a layer
wxCheckBox * m_delBoardEdges
ZONE * GetArea(int index) const
Return the Zone at a given index.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
class TRACK, a track segment (segment on a copper layer)
wxCheckBox * m_delMarkers
LSET is a set of PCB_LAYER_IDs.
wxTextCtrl * m_textCtrlCurrLayer
void DeleteMARKERs()
Delete all MARKERS from the board.
FOOTPRINTS & Footprints()
wxCheckBox * m_drawingFilterUnlocked
wxCheckBox * m_footprintFilterLocked
void onCheckDeleteFootprints(wxCommandEvent &event) override
COMMIT & Remove(EDA_ITEM *aItem)
Notify observers that aItem has been removed.
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...
int LAYER_NUM
This can be replaced with int and removed.
wxCheckBox * m_trackFilterUnlocked
wxCheckBox * m_drawingFilterLocked
Information pertinent to a Pcbnew printed circuit board.
void SetCurrentLayer(LAYER_NUM aLayer)
The main frame for Pcbnew.
virtual void Push(const wxString &aMessage=wxT("A commit"), bool aCreateUndoEntry=true, bool aSetDirtyBit=true) override
Revert the commit by restoring the modified items state.
void onCheckDeleteDrawings(wxCommandEvent &event) override
class VIA, a via (like a track segment on a copper layer)
PCB_EDIT_FRAME * m_Parent
class PCB_SHAPE, a segment not on copper layers
bool IsOK(wxWindow *aParent, const wxString &aMessage)
Display a yes/no dialog with aMessage and returns the user response.
PCB_LAYER_ID ToLAYER_ID(int aLayer)
wxCheckBox * m_delFootprints
void onCheckDeleteTracks(wxCommandEvent &event) override