35 bool aIsFootprintEditor ) :
37 m_parentFrame( aParent ),
38 m_isFootprintEditor( aIsFootprintEditor )
43 if( aIsFootprintEditor )
55 GetSizer()->SetSizeHints(
this);
121 else if( !commit.
Empty() )
124 commit.
Push(
_(
"Graphics 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...
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
Information pertinent to a Pcbnew printed circuit board.
BOARD_ITEM * GetItem(const KIID &aID) const
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
bool Empty() const
Returns status of an item.
Class DIALOG_CLEANUP_GRAPHICS_BASE.
wxStaticText * m_nettieHint
wxCheckBox * m_mergePadsOpt
wxDataViewCtrl * m_changesDataView
wxCheckBox * m_createRectanglesOpt
wxCheckBox * m_deleteRedundantOpt
PCB_BASE_FRAME * m_parentFrame
RC_TREE_MODEL * m_changesTreeModel
~DIALOG_CLEANUP_GRAPHICS()
bool TransferDataFromWindow() override
void doCleanup(bool aDryRun)
DIALOG_CLEANUP_GRAPHICS(PCB_BASE_FRAME *aParent, bool aIsFootprintEditor)
void OnCheckBox(wxCommandEvent &anEvent) override
void OnSelectItem(wxDataViewEvent &event) override
void OnLeftDClickItem(wxMouseEvent &event) override
std::vector< std::shared_ptr< CLEANUP_ITEM > > m_items
bool TransferDataToWindow() override
bool Show(bool show) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
void CleanupBoard(bool aDryRun, std::vector< std::shared_ptr< CLEANUP_ITEM > > *aItemsList, bool aMergeRects, bool aDeleteRedundant, bool aMergePads)
the cleanup function.
static TOOL_ACTION selectionClear
Clear the current selection.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
virtual PCB_LAYER_ID GetActiveLayer() const
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual void SetActiveLayer(PCB_LAYER_ID aLayer)
void Compile_Ratsnest(bool aDisplayStatus)
Create the entire board ratsnest.
void FocusOnItem(BOARD_ITEM *aItem, PCB_LAYER_ID aLayer=UNDEFINED_LAYER)
void Update(std::shared_ptr< RC_ITEMS_PROVIDER > aProvider, int aSeverities)
static KIID ToUUID(wxDataViewItem aItem)
wxFont GetInfoFont(wxWindow *aWindow)