51 wxArrayString netclassNames;
52 std::shared_ptr<NET_SETTINGS>& settings =
m_brd->GetDesignSettings().m_NetSettings;
54 netclassNames.push_back( settings->GetDefaultNetclass()->GetName() );
56 for(
const auto& [
name, netclass] : settings->GetNetclasses() )
57 netclassNames.push_back(
name );
125 if( !
m_brd->GetHighLightNetCodes().empty() )
162 while(
group && !
group->AsEdaItem()->IsSelected() )
220 m_reporter->Report(
_(
"Rebuilding connectivity..." ) );
234 m_reporter->Report(
_(
"Refilling all zones..." ) );
245 else if( !commit.
Empty() )
248 commit.
Push(
_(
"Board Cleanup" ) );
static TOOL_ACTION selectionClear
Clear the current selection.
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
virtual NETCLASS * GetEffectiveNetClass() const
Return the NETCLASS for this item.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
virtual PCB_LAYER_ID GetLayer() const
Return the primary layer this item is on.
wxCheckBox * m_cbRefillZones
wxChoice * m_netclassFilter
wxSimplebook * m_outputBook
PCB_LAYER_BOX_SELECTOR * m_layerFilter
wxCheckBox * m_layerFilterOpt
wxDataViewCtrl * m_changesDataView
wxCheckBox * m_netclassFilterOpt
DIALOG_CLEANUP_TRACKS_AND_VIAS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Cleanup Tracks and Vias"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
NET_SELECTOR * m_netFilter
wxCheckBox * m_deleteTracksInPadsOpt
wxCheckBox * m_selectedItemsFilter
wxCheckBox * m_deleteDanglingViasOpt
wxCheckBox * m_deleteUnconnectedOpt
wxCheckBox * m_cleanViasOpt
wxCheckBox * m_netFilterOpt
wxCheckBox * m_cleanShortCircuitOpt
wxCheckBox * m_mergeSegmOpt
wxStdDialogButtonSizer * m_sdbSizer
RC_TREE_MODEL * m_changesTreeModel
void OnNetclassFilterSelect(wxCommandEvent &aEvent) override
void OnSelectItem(wxDataViewEvent &event) override
std::vector< std::shared_ptr< CLEANUP_ITEM > > m_items
void OnCheckBox(wxCommandEvent &aEvent) override
WX_TEXT_CTRL_REPORTER * m_reporter
PCB_EDIT_FRAME * m_parentFrame
~DIALOG_CLEANUP_TRACKS_AND_VIAS()
void OnLeftDClickItem(wxMouseEvent &event) override
bool TransferDataFromWindow() override
void doCleanup(bool aDryRun)
bool TransferDataToWindow() override
void setupOKButtonLabel()
DIALOG_CLEANUP_TRACKS_AND_VIAS(PCB_EDIT_FRAME *parent)
void OnNetFilterSelect(wxCommandEvent &aEvent)
void OnLayerFilterSelect(wxCommandEvent &aEvent) override
bool Show(bool show) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
A set of EDA_ITEMs (i.e., without duplicates).
virtual EDA_GROUP * GetParentGroup() const
static LSET AllNonCuMask()
Return a mask holding all layer minus CU layers.
A collection of nets and the parameters used to route or test these nets.
bool ContainsNetclassWithName(const wxString &netclass) const
Determines if the given netclass name is a constituent of this (maybe aggregate) netclass.
The main frame for Pcbnew.
static KIID ToUUID(wxDataViewItem aItem)
void CleanupBoard(bool aDryRun, std::vector< std::shared_ptr< CLEANUP_ITEM > > *aItemsList, bool aCleanVias, bool aRemoveMisConnected, bool aMergeSegments, bool aDeleteUnconnected, bool aDeleteTracksinPad, bool aDeleteDanglingVias, REPORTER *aReporter=nullptr)
the cleanup function.
void SetFilter(const std::function< bool(BOARD_CONNECTED_ITEM *aItem)> &aFilter)
A wrapper for reporting to a wxTextCtrl object.
Class to handle a set of BOARD_ITEMs.