37 bool aIsFootprintEditor ) :
46 if( aIsFootprintEditor )
61 GetSizer()->SetSizeHints(
this);
131 else if( !commit.
Empty() )
134 commit.
Push(
_(
"Cleanup Graphics" ) );
148 if( !item->GetLayerSet().test(
m_parentFrame->GetActiveLayer() ) )
149 m_parentFrame->SetActiveLayer( item->GetLayerSet().UIOrder().front() );
constexpr EDA_IU_SCALE pcbIUScale
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 for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
FOOTPRINT * GetFirstFootprint() const
Get the first footprint on the board or nullptr.
const DRAWINGS & Drawings() const
wxBoxSizer * m_toleranceSizer
wxStaticText * m_nettieHint
wxStaticText * m_toleranceUnits
wxCheckBox * m_mergePadsOpt
wxDataViewCtrl * m_changesDataView
wxCheckBox * m_createRectanglesOpt
wxStaticText * m_toleranceLabel
wxCheckBox * m_deleteRedundantOpt
wxTextCtrl * m_toleranceCtrl
wxCheckBox * m_fixBoardOutlines
DIALOG_CLEANUP_GRAPHICS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Cleanup Graphics"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
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={})
void CleanupBoard(bool aDryRun, std::vector< std::shared_ptr< CLEANUP_ITEM > > *aItemsList, bool aMergeRects, bool aDeleteRedundant, bool aMergePads, bool aFixBoardOutlines, int aTolerance)
the cleanup function.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
static KIID ToUUID(wxDataViewItem aItem)
static int s_defaultTolerance
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)