33 bool aIsFootprintEditor ) :
35 m_parentFrame( aParent ),
36 m_isFootprintEditor( aIsFootprintEditor )
45 m_sdbSizerOK->SetLabel( aIsFootprintEditor ?
_(
"Update Footprint" ) :
_(
"Update PCB" ) );
48 GetSizer()->SetSizeHints(
this);
112 else if( !commit.
Empty() )
115 commit.
Push(
_(
"Graphics cleanup" ) );
static TOOL_ACTION selectionClear
Clear the current selection.
BOARD_ITEM * GetItem(const KIID &aID) const
Class DIALOG_CLEANUP_GRAPHICS_BASE.
void SetProvider(RC_ITEMS_PROVIDER *aProvider)
RC_TREE_MODEL * m_changesTreeModel
void Compile_Ratsnest(bool aDisplayStatus)
Create the entire board ratsnest.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
DIALOG_CLEANUP_GRAPHICS(PCB_BASE_FRAME *aParent, bool aIsFootprintEditor)
static KIID ToUUID(wxDataViewItem aItem)
void SetSeverities(int aSeverities)
Provide an abstract interface of a RC_ITEM* list manager.
void OnSelectItem(wxDataViewEvent &event) override
Classes used in Pcbnew, CvPcb and GerbView.
bool TransferDataFromWindow() override
void OnCheckBox(wxCommandEvent &anEvent) override
FOOTPRINT * GetFirstFootprint() const
Gets the first footprint on the board or nullptr.
void OnLeftDClickItem(wxMouseEvent &event) override
VECTOR_CLEANUP_ITEMS_PROVIDER is an implementation of the interface named RC_ITEMS_PROVIDER which use...
std::vector< std::shared_ptr< CLEANUP_ITEM > > m_items
PCB_BASE_FRAME * m_parentFrame
bool Show(bool show) override
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
bool Empty() const
Returns status of an item.
Information pertinent to a Pcbnew printed circuit board.
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 doCleanup(bool aDryRun)
wxCheckBox * m_createRectanglesOpt
wxCheckBox * m_deleteRedundantOpt
void FocusOnItem(BOARD_ITEM *aItem)
wxDataViewCtrl * m_changesDataView
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
~DIALOG_CLEANUP_GRAPHICS()
bool TransferDataToWindow() override