24#ifndef FIELDS_GRID_TABLE_H
25#define FIELDS_GRID_TABLE_H
42 std::function<
void( wxCommandEvent& )> aAddHandler ) :
48 virtual void showPopupMenu( wxMenu& menu, wxGridEvent& aEvent )
override;
100 bool CanGetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override;
101 bool CanSetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override;
102 wxGridCellAttr*
GetAttr(
int row,
int col, wxGridCellAttr::wxAttrKind kind )
override;
104 wxString
GetValue(
int aRow,
int aCol )
override;
107 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...
wxString GetValue(int aRow, int aCol) override
wxGridCellAttr * m_nonUrlAttr
wxGridCellAttr * m_readOnlyAttr
wxGridCellAttr * m_vAlignAttr
bool CanSetValueAs(int aRow, int aCol, const wxString &aTypeName) override
wxGridCellAttr * m_netclassAttr
int GetNumberCols() override
bool GetValueAsBool(int aRow, int aCol) override
void onUnitsChanged(wxCommandEvent &aEvent)
FIELD_VALIDATOR m_referenceValidator
wxGridCellAttr * m_boolAttr
int m_mandatoryFieldCount
wxString GetColLabelValue(int aCol) override
wxGridCellAttr * m_footprintAttr
FIELD_VALIDATOR m_filepathValidator
wxGridCellAttr * m_filepathAttr
std::unique_ptr< NUMERIC_EVALUATOR > m_eval
wxGridCellAttr * m_orientationAttr
void SetValue(int aRow, int aCol, const wxString &aValue) override
wxGridCellAttr * m_fontAttr
FIELD_VALIDATOR m_nonUrlValidator
wxGridCellAttr * m_referenceAttr
wxGridCellAttr * m_colorAttr
bool CanGetValueAs(int aRow, int aCol, const wxString &aTypeName) override
FIELD_VALIDATOR m_urlValidator
bool IsEmptyCell(int row, int col) override
wxGridCellAttr * GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) override
wxString StringFromBool(bool aValue) const
std::map< std::pair< int, int >, wxString > m_evalOriginal
wxGridCellAttr * m_urlAttr
void SetValueAsBool(int aRow, int aCol, bool aValue) override
int GetNumberRows() override
bool BoolFromString(wxString aValue) const
wxGridCellAttr * m_valueAttr
void initGrid(WX_GRID *aGrid)
wxGridCellAttr * m_fieldNameAttr
wxGridCellAttr * m_hAlignAttr
FIELD_VALIDATOR m_valueValidator
FIELD_VALIDATOR m_fieldNameValidator
virtual void showPopupMenu(wxMenu &menu, wxGridEvent &aEvent) override
FIELDS_GRID_TRICKS(WX_GRID *aGrid, DIALOG_SHIM *aDialog, std::function< void(wxCommandEvent &)> aAddHandler)
virtual 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.
Definitions of control validators for schematic dialogs.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Custom text control validator definitions.