37 bool aIsFootprintEditor ) :
39 m_parentFrame( aParent ),
40 m_isFootprintEditor( aIsFootprintEditor ),
41 m_tolerance( aParent, m_toleranceLabel, m_toleranceCtrl, m_toleranceUnits )
46 if( aIsFootprintEditor )
61 GetSizer()->SetSizeHints(
this);
131 else if( !commit.
Empty() )
134 commit.
Push(
_(
"Cleanup Graphics" ) );
constexpr EDA_IU_SCALE pcbIUScale
virtual void Push(const wxString &aMessage=wxEmptyString, 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.
const DRAWINGS & Drawings() const
bool Empty() const
Returns status of an item.
Class DIALOG_CLEANUP_GRAPHICS_BASE.
wxBoxSizer * m_toleranceSizer
wxStaticText * m_nettieHint
wxCheckBox * m_mergePadsOpt
wxDataViewCtrl * m_changesDataView
wxCheckBox * m_createRectanglesOpt
wxCheckBox * m_deleteRedundantOpt
wxCheckBox * m_fixBoardOutlines
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, bool aFixBoardOutlines, int aTolerance)
the cleanup function.
LSEQ UIOrder() const
Returns the copper, technical and user layers in the order shown in layer widget.
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)
virtual long long int GetValue()
Return the current value in Internal Units.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
static int s_defaultTolerance
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
constexpr int mmToIU(double mm) const