62 void OnSize( wxSizeEvent& aEvent )
override;
63 void OnCharHook( wxKeyEvent& aEvent )
override;
66 void OnUpdateUI( wxUpdateUIEvent& aEvent )
override;
67 void OnCancel( wxCommandEvent& aEvent )
override;
70 void OnAddRow( wxCommandEvent& aEvent )
override;
71 void OnDeleteRow( wxCommandEvent& aEvent )
override;
DIALOG_FP_EDIT_PAD_TABLE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Pad Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void setPadFromGridCell(PAD &aPad, int aRowId, COLS aCol)
PAD * getPadForRow(int aRowId) const
void OnCellChanged(wxGridEvent &aEvent) override
DIALOG_FP_EDIT_PAD_TABLE(PCB_BASE_FRAME *aParent, FOOTPRINT *aFootprint)
void OnCharHook(wxKeyEvent &aEvent) override
void fillGridRow(int aRowId, PAD *aPad)
void CaptureOriginalPadState()
void OnSelectCell(wxGridEvent &aEvent) override
void InitColumnProportions()
void setRowNullableEditors(int aRowId) const
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
void restoreOriginalPadData()
void OnImportButtonClick(wxCommandEvent &aEvent) override
std::vector< PAD * > m_rowPads
bool m_accepted
Set when the changes are committed on OK.
void OnExportButtonClick(wxCommandEvent &aEvent) override
std::map< PAD *, PAD_SNAPSHOT > m_originalPads
void OnDeleteRow(wxCommandEvent &aEvent) override
std::vector< int > m_minColWidths
void OnSize(wxSizeEvent &aEvent) override
void restorePadFromSnapshot(PAD &aPad, const PAD_SNAPSHOT &aSnap) const
~DIALOG_FP_EDIT_PAD_TABLE() override
void OnCancel(wxCommandEvent &aEvent) override
void RestoreOriginalPadState()
std::vector< double > m_colProportions
std::unique_ptr< UNITS_PROVIDER > m_unitsProvider
void OnUpdateUI(wxUpdateUIEvent &aEvent) override
std::vector< PAD * > m_removedPads
void OnAddRow(wxCommandEvent &aEvent) override
A PADSTACK defines the characteristics of a single or multi-layer pad, in the IPC sense of the word.
const wxString & GetNumber() const
VECTOR2I GetCenter() const override
This defaults to the center of the bounding box if not overridden.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
DIALOG_FP_EDIT_PAD_TABLE::COLS COLS
PAD_ATTRIB
The set of pad shapes, used with PAD::{Set,Get}Attribute().
@ PTH
Plated through hole pad.
PAD_SHAPE
The set of pad shapes, used with PAD::{Set,Get}Shape()
int StrNumCmp(const wxString &aString1, const wxString &aString2, bool aIgnoreCase)
Compare two strings with alphanumerical content.
bool operator()(const PAD *a, const PAD *b) const
VECTOR2< int32_t > VECTOR2I