25using namespace std::placeholders;
56 GetSizer()->SetSizeHints(
this );
117 bool gen_rastnest =
false;
118 bool delete_all =
m_delAll->GetValue();
131 layers_filter = all_layers;
140 auto processConnectedItem =
154 processConnectedItem( zone, all_layers );
156 else if( zone->IsTeardropArea() )
159 processConnectedItem( zone, layers_filter );
164 processConnectedItem( zone, layers_filter );
171 if( delete_all || delete_shapes || delete_texts )
174 LSET drawing_layers_filter;
182 drawing_layers_filter &= layers_filter;
188 processItem( item, all_layers );
190 else if( delete_shapes )
195 processItem( item, drawing_layers_filter );
200 processItem( item, drawing_layers_filter );
203 else if( delete_texts )
206 processItem( item, layers_filter );
217 processConnectedItem( footprint, all_layers );
219 else if( footprint->IsLocked() )
222 processConnectedItem( footprint, layers_filter );
227 processConnectedItem( footprint, layers_filter );
238 processConnectedItem( track, all_layers );
243 processConnectedItem( track, layers_filter );
245 else if( track->IsLocked() )
248 processConnectedItem( track, layers_filter );
253 processConnectedItem( track, layers_filter );
258 commit.
Push(
_(
"Global Delete" ) );
BASE_SET & set(size_t pos)
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Revert the commit by restoring the modified items state.
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.
virtual bool IsLocked() const
Information pertinent to a Pcbnew printed circuit board.
const ZONES & Zones() const
const FOOTPRINTS & Footprints() const
const TRACKS & Tracks() const
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
void DeleteMARKERs()
Delete all MARKERS from the board.
const DRAWINGS & Drawings() const
COMMIT & Remove(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Notify observers that aItem has been removed.
Class DIALOG_GLOBAL_DELETION_BASE.
wxCheckBox * m_trackFilterUnlocked
wxCheckBox * m_trackFilterLocked
wxCheckBox * m_trackFilterVias
wxCheckBox * m_footprintFilterLocked
wxCheckBox * m_delBoardEdges
wxRadioBox * m_rbLayersOption
wxCheckBox * m_footprintFilterUnlocked
wxCheckBox * m_drawingFilterLocked
wxCheckBox * m_delDrawings
wxCheckBox * m_delFootprints
wxCheckBox * m_drawingFilterUnlocked
wxCheckBox * m_delMarkers
wxTextCtrl * m_textCtrlCurrLayer
wxCheckBox * m_delTeardrops
PCB_EDIT_FRAME * m_Parent
DIALOG_GLOBAL_DELETION(PCB_EDIT_FRAME *parent)
void onCheckDeleteDrawings(wxCommandEvent &event) override
void onCheckDeleteFootprints(wxCommandEvent &event) override
void SetCurrentLayer(int aLayer)
void onCheckDeleteBoardOutlines(wxCommandEvent &event) override
void onCheckDeleteTracks(wxCommandEvent &event) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
KICAD_T Type() const
Returns the type of object.
LSET is a set of PCB_LAYER_IDs.
static LSET AllNonCuMask()
Return a mask holding all layer minus CU layers.
static TOOL_ACTION selectionClear
Clear the current selection.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
void Compile_Ratsnest(bool aDisplayStatus)
Create the entire board ratsnest.
The main frame for Pcbnew.
Handle a list of polygons defining a copper zone.
This file is part of the common library.
PCB_LAYER_ID ToLAYER_ID(int aLayer)
Class that computes missing connections on a PCB.
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
@ PCB_TEXTBOX_T
class PCB_TEXTBOX, wrapped text on a layer
@ PCB_TEXT_T
class PCB_TEXT, text on a layer