25using namespace std::placeholders;
 
   63    GetSizer()->SetSizeHints( 
this );
 
 
  127    bool gen_rastnest = 
false;
 
  128    bool delete_all = 
m_delAll->GetValue();
 
  141        layers_filter = all_layers;
 
  150    auto processConnectedItem =
 
  164            processConnectedItem( zone, all_layers );
 
  166        else if( zone->IsTeardropArea() )
 
  169                processConnectedItem( zone, layers_filter );
 
  174                processConnectedItem( zone, layers_filter );
 
  181    if( delete_all || delete_shapes || delete_texts )
 
  184        LSET drawing_layers_filter;
 
  192        drawing_layers_filter &= layers_filter;
 
  198                processItem( item, all_layers );
 
  200            else if( delete_shapes )
 
  205                        processItem( item, drawing_layers_filter );
 
  210                        processItem( item, drawing_layers_filter );
 
  213            else if( delete_texts )
 
  216                    processItem( item, layers_filter );
 
  227                processConnectedItem( footprint, all_layers );
 
  229            else if( footprint->IsLocked() )
 
  232                    processConnectedItem( footprint, layers_filter );
 
  237                    processConnectedItem( footprint, layers_filter );
 
  248                processConnectedItem( track, all_layers );
 
  252                if( track->IsLocked() )
 
  255                        processConnectedItem( track, layers_filter );
 
  260                        processConnectedItem( track, layers_filter );
 
  265                if( track->IsLocked() )
 
  268                        processConnectedItem( track, layers_filter );
 
  273                        processConnectedItem( track, layers_filter );
 
  282                if( pattern->GetBoardItems().empty() )
 
  288    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
 
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