36 m_parentFrame( aParentFrame ),
155 else if( !commit.
Empty() )
158 commit.
Push(
_(
"Board cleanup" ) );
virtual void Push(const wxString &aMessage=wxT("A commit"), 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...
BOARD_ITEM * GetItem(const KIID &aID) const
bool Empty() const
Returns status of an item.
Class DIALOG_CLEANUP_TRACKS_AND_VIAS_BASE.
wxDataViewCtrl * m_changesDataView
wxCheckBox * m_deleteTracksInPadsOpt
wxCheckBox * m_deleteDanglingViasOpt
wxCheckBox * m_deleteUnconnectedOpt
wxCheckBox * m_cleanViasOpt
wxCheckBox * m_cleanShortCircuitOpt
wxCheckBox * m_mergeSegmOpt
wxStdDialogButtonSizer * m_sdbSizer
RC_TREE_MODEL * m_changesTreeModel
void OnSelectItem(wxDataViewEvent &event) override
std::vector< std::shared_ptr< CLEANUP_ITEM > > m_items
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 OnCheckBox(wxCommandEvent &anEvent) override
void doCleanup(bool aDryRun)
bool TransferDataToWindow() override
void setupOKButtonLabel()
DIALOG_CLEANUP_TRACKS_AND_VIAS(PCB_EDIT_FRAME *parent)
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...
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
static TOOL_ACTION selectionClear
Clear the current selection.
PCBNEW_SETTINGS * GetPcbNewSettings() const
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.
void FocusOnItem(BOARD_ITEM *aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
The main frame for Pcbnew.
void Update(std::shared_ptr< RC_ITEMS_PROVIDER > aProvider, int aSeverities)
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.
A wrapper for reporting to a wxTextCtrl object.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.