24 #ifndef FIELDS_GRID_TABLE_H 25 #define FIELDS_GRID_TABLE_H 91 bool CanGetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override;
92 bool CanSetValueAs(
int aRow,
int aCol,
const wxString& aTypeName )
override;
93 wxGridCellAttr*
GetAttr(
int row,
int col, wxGridCellAttr::wxAttrKind kind )
override;
95 wxString
GetValue(
int aRow,
int aCol )
override;
98 void SetValue(
int aRow,
int aCol,
const wxString &aValue )
override;
139 #endif // FIELDS_GRID_TABLE_H bool BoolFromString(wxString aValue) const
virtual void showPopupMenu(wxMenu &menu) override
int GetNumberRows() override
bool CanSetValueAs(int aRow, int aCol, const wxString &aTypeName) override
Implementation of conversion functions that require both schematic and board internal units.
Add mouse and command handling (such as cut, copy, and paste) to a WX_GRID instance.
wxGridCellAttr * m_referenceAttr
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxString GetColLabelValue(int aCol) override
FIELDS_GRID_TABLE(DIALOG_SHIM *aDialog, SCH_BASE_FRAME *aFrame, WX_GRID *aGrid, LIB_PART *aPart)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
int m_mandatoryFieldCount
wxGridCellAttr * m_readOnlyAttr
wxGridCellAttr * m_filepathAttr
wxString StringFromBool(bool aValue) const
FIELDS_GRID_TRICKS(WX_GRID *aGrid, DIALOG_SHIM *aDialog)
wxGridCellAttr * m_hAlignAttr
SCH_FIELD_VALIDATOR m_referenceValidator
bool IsEmptyCell(int row, int col) override
Definitions of control validators for schematic dialogs.
wxString GetValue(int aRow, int aCol) override
SCH_FIELD_VALIDATOR m_fieldNameValidator
bool CanGetValueAs(int aRow, int aCol, const wxString &aTypeName) override
wxGridCellAttr * m_boolAttr
Define a library symbol object.
Custom validator that verifies that a string defines a valid LIB_ID.
wxGridCellAttr * GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) override
wxGridCellAttr * m_fieldNameAttr
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
wxGridCellAttr * m_urlAttr
SCH_FIELD_VALIDATOR m_valueValidator
void initGrid(DIALOG_SHIM *aDialog, WX_GRID *aGrid)
bool GetValueAsBool(int aRow, int aCol) override
wxGridCellAttr * m_vAlignAttr
void SetValue(int aRow, int aCol, const wxString &aValue) override
wxGridCellAttr * m_orientationAttr
SCH_FIELD_VALIDATOR m_filepathValidator
wxGridCellAttr * m_valueAttr
LIB_ID_VALIDATOR m_libIdValidator
SCH_FIELD_VALIDATOR m_urlValidator
wxGridCellAttr * m_nonUrlAttr
A text control validator used for validating the text allowed in library and schematic component fiel...
void SetValueAsBool(int aRow, int aCol, bool aValue) override
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
wxGridCellAttr * m_footprintAttr
int GetNumberCols() override
virtual void doPopupSelection(wxCommandEvent &event) override
Custom text control validator definitions.
SCH_FIELD_VALIDATOR m_nonUrlValidator