34 bool aIsFootprintEditor ) :
36 m_parentFrame( aParent ),
37 m_isFootprintEditor( aIsFootprintEditor )
46 m_sdbSizerOK->SetLabel( aIsFootprintEditor ?
_(
"Update Footprint" ) :
_(
"Update PCB" ) );
49 GetSizer()->SetSizeHints(
this);
113 else if( !commit.
Empty() )
116 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
Get the first footprint on the board or nullptr.
void OnLeftDClickItem(wxMouseEvent &event) override
An implementation of the interface named RC_ITEMS_PROVIDER which uses a vector of pointers to CLEANUP...
std::vector< std::shared_ptr< CLEANUP_ITEM > > m_items
PCB_BASE_FRAME * m_parentFrame
bool Show(bool show) override
void FocusOnItem(BOARD_ITEM *aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
bool Empty() const
Returns status of an item.
Information pertinent to a Pcbnew printed circuit board.
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...
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
wxDataViewCtrl * m_changesDataView
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
~DIALOG_CLEANUP_GRAPHICS()
bool TransferDataToWindow() override