21using namespace std::placeholders;
59 GetSizer()->SetSizeHints(
this );
123 bool gen_rastnest =
false;
124 bool delete_all =
m_delAll->GetValue();
137 layers_filter = all_layers;
146 auto processConnectedItem =
160 processConnectedItem( zone, all_layers );
162 else if( zone->IsTeardropArea() )
165 processConnectedItem( zone, layers_filter );
170 processConnectedItem( zone, layers_filter );
177 if( delete_all || delete_shapes || delete_texts )
180 LSET drawing_layers_filter;
188 drawing_layers_filter &= layers_filter;
194 processItem( item, all_layers );
196 else if( delete_shapes )
201 processItem( item, drawing_layers_filter );
206 processItem( item, drawing_layers_filter );
209 else if( delete_texts )
212 processItem( item, layers_filter );
223 processConnectedItem( footprint, all_layers );
225 else if( footprint->IsLocked() )
228 processConnectedItem( footprint, layers_filter );
233 processConnectedItem( footprint, layers_filter );
244 processConnectedItem( track, all_layers );
248 if( track->IsLocked() )
251 processConnectedItem( track, layers_filter );
256 processConnectedItem( track, layers_filter );
261 if( track->IsLocked() )
264 processConnectedItem( track, layers_filter );
269 processConnectedItem( track, layers_filter );
278 if( pattern->GetBoardItems().empty() )
284 commit.
Push(
_(
"Global Delete" ) );
static TOOL_ACTION selectionClear
Clear the current selection.
BASE_SET & set(size_t pos)
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
bool IsLocked() const override
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
Information pertinent to a Pcbnew printed circuit board.
const GENERATORS & Generators() const
void CompileRatsnest()
Rebuild the entire board ratsnest.
const ZONES & Zones() const
const FOOTPRINTS & Footprints() const
const TRACKS & Tracks() const
void DeleteMARKERs()
Delete all MARKERS from the board.
const DRAWINGS & Drawings() const
COMMIT & Remove(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Remove a new item from the model.
wxCheckBox * m_trackFilterUnlocked
wxCheckBox * m_trackFilterLocked
wxCheckBox * m_viaFilterUnlocked
wxCheckBox * m_viaFilterLocked
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
wxCheckBox * m_delTeardrops
DIALOG_GLOBAL_DELETION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Delete Items"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
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 OptOut(wxWindow *aWindow)
Opt out of control state saving.
void SetupStandardButtons(std::map< int, wxString > aLabels={})
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.
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