25 using namespace std::placeholders;
54 GetSizer()->SetSizeHints(
this );
66 if( dlg.ShowModal() == wxID_OK )
115 bool gen_rastnest =
false;
120 bool delete_all =
false;
124 if( !
IsOK( GetParent(),
_(
"Are you sure you want to delete the entire board?" ) ) )
129 else if( !
IsOK( GetParent(),
_(
"Are you sure you want to delete the selected items?" ) ) )
144 auto item = board->
GetArea( area_index );
148 if( delete_all || layers_filter[item->GetLayer()] )
155 item = board->
GetArea( area_index );
162 if( delete_all || delete_shapes || delete_texts )
165 LSET del_text_layers = layers_filter;
176 masque_layer &= layers_filter;
187 if( !delete_shapes || !masque_layer[layer] )
198 if( !delete_texts || !del_text_layers[layer] )
219 if( !layers_filter[footprint->GetLayer()] )
223 commit.
Remove( footprint );
246 if( ( track->GetLayerSet() & layers_filter ) == 0 )
255 commit.
Push( wxT(
"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
int LAYER_NUM
This can be replaced with int and removed.
ZONE * GetArea(int index) const
Return the Zone at a given index.
void onCheckDeleteBoardOutlines(wxCommandEvent &event) override
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
class PCB_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.
wxCheckBox * m_trackFilterUnlocked
wxCheckBox * m_drawingFilterLocked
Information pertinent to a Pcbnew printed circuit board.
void SetCurrentLayer(LAYER_NUM aLayer)
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
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 PCB_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