24#ifndef FIELDS_GRID_TABLE_H
25#define FIELDS_GRID_TABLE_H
42 std::function<
void( wxCommandEvent& )> aAddHandler ) :
49 void showPopupMenu( wxMenu& menu, wxGridEvent& aEvent )
override;
101 bool CanGetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override;
102 bool CanSetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override;
103 wxGridCellAttr*
GetAttr(
int aRow,
int aCol, wxGridCellAttr::wxAttrKind aKind )
override;
105 wxString
GetValue(
int aRow,
int aCol )
override;
108 void SetValue(
int aRow,
int aCol,
const wxString& aValue )
override;
151 std::unique_ptr<NUMERIC_EVALUATOR>
m_eval;
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxGridCellAttr * GetAttr(int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
wxString StringFromBool(bool aValue) const
bool GetValueAsBool(int aRow, int aCol) override
FIELD_VALIDATOR m_fieldNameValidator
bool CanSetValueAs(int aRow, int aCol, const wxString &aTypeName) override
void initGrid(WX_GRID *aGrid)
wxGridCellAttr * m_fieldNameAttr
int GetNumberRows() override
wxGridCellAttr * m_readOnlyAttr
FIELD_VALIDATOR m_urlValidator
~FIELDS_GRID_TABLE() override
bool CanGetValueAs(int aRow, int aCol, const wxString &aTypeName) override
wxGridCellAttr * m_colorAttr
wxGridCellAttr * m_nonUrlAttr
wxGridCellAttr * m_referenceAttr
FIELD_VALIDATOR m_referenceValidator
FIELD_VALIDATOR m_valueValidator
std::map< std::pair< int, int >, wxString > m_evalOriginal
bool IsEmptyCell(int row, int col) override
wxGridCellAttr * m_footprintAttr
wxGridCellAttr * m_boolAttr
int m_mandatoryFieldCount
wxGridCellAttr * m_fontAttr
wxGridCellAttr * m_urlAttr
wxGridCellAttr * m_valueAttr
wxGridCellAttr * m_hAlignAttr
wxGridCellAttr * m_orientationAttr
void SetValue(int aRow, int aCol, const wxString &aValue) override
wxGridCellAttr * m_vAlignAttr
wxGridCellAttr * m_filepathAttr
wxGridCellAttr * m_netclassAttr
void SetValueAsBool(int aRow, int aCol, bool aValue) override
int GetNumberCols() override
wxString GetValue(int aRow, int aCol) override
void onUnitsChanged(wxCommandEvent &aEvent)
std::unique_ptr< NUMERIC_EVALUATOR > m_eval
FIELD_VALIDATOR m_nonUrlValidator
FIELD_VALIDATOR m_filepathValidator
wxString GetColLabelValue(int aCol) override
bool BoolFromString(wxString aValue) const
FIELDS_GRID_TRICKS(WX_GRID *aGrid, DIALOG_SHIM *aDialog, EMBEDDED_FILES *aFiles, std::function< void(wxCommandEvent &)> aAddHandler)
void showPopupMenu(wxMenu &menu, wxGridEvent &aEvent) override
void doPopupSelection(wxCommandEvent &event) override
A text control validator used for validating the text allowed in fields.
Add mouse and command handling (such as cut, copy, and paste) to a WX_GRID instance.
Define a library symbol object.
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
Schematic editor (Eeschema) main window.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Custom text control validator definitions.