24#ifndef FIELDS_GRID_TABLE_H 
   25#define FIELDS_GRID_TABLE_H 
   43                        std::vector<EMBEDDED_FILES*> aFilesStack,
 
   44                        std::function<
void( wxCommandEvent& )> aAddHandler ) :
 
 
   53    void showPopupMenu( wxMenu& menu, wxGridEvent& aEvent ) 
override;
 
 
   92                       LIB_SYMBOL* aSymbol, std::vector<EMBEDDED_FILES*> aFilesStack = {} );
 
  113    bool CanGetValueAs( 
int aRow, 
int aCol, 
const wxString& aTypeName ) 
override;
 
  114    bool CanSetValueAs( 
int aRow, 
int aCol, 
const wxString& aTypeName ) 
override;
 
  115    wxGridCellAttr* 
GetAttr( 
int aRow, 
int aCol, wxGridCellAttr::wxAttrKind aKind ) 
override;
 
  117    wxString 
GetValue( 
int aRow, 
int aCol ) 
override;
 
  120    void SetValue( 
int aRow, 
int aCol, 
const wxString& aValue ) 
override;
 
  154    void SwapRows( 
size_t a, 
size_t b );
 
  203    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
 
std::vector< bool > m_isInherited
 
bool IsInherited(size_t aRow) const
 
SCH_FIELD * GetField(FIELD_T aFieldId)
 
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 getColumnCount() const
 
int GetNumberRows() override
 
void push_back(const SCH_FIELD &field)
 
wxGridCellAttr * m_readOnlyAttr
 
int GetMandatoryRowCount() const
 
FIELDS_GRID_TABLE(DIALOG_SHIM *aDialog, SCH_BASE_FRAME *aFrame, WX_GRID *aGrid, LIB_SYMBOL *aSymbol, std::vector< EMBEDDED_FILES * > aFilesStack={})
 
FIELD_VALIDATOR m_urlValidator
 
~FIELDS_GRID_TABLE() override
 
bool CanGetValueAs(int aRow, int aCol, const wxString &aTypeName) override
 
wxGridCellAttr * m_colorAttr
 
wxGridCellAttr * m_nonUrlAttr
 
bool EraseRow(size_t row)
 
wxGridCellAttr * m_referenceAttr
 
FIELD_VALIDATOR m_referenceValidator
 
FIELD_VALIDATOR m_valueValidator
 
std::map< std::pair< int, int >, wxString > m_evalOriginal
 
int getVisibleRowCount() const
 
bool IsEmptyCell(int row, int col) override
 
wxGridCellAttr * m_footprintAttr
 
wxGridCellAttr * m_boolAttr
 
void SetFieldInherited(size_t aRow, const SCH_FIELD &aParent)
 
std::vector< EMBEDDED_FILES * > m_filesStack
 
int GetFieldRow(FIELD_T aFieldId)
 
bool BoolFromString(const wxString &aValue) const
 
wxGridCellAttr * m_fontAttr
 
const SCH_FIELD & ParentField(size_t row) const
 
wxGridCellAttr * m_urlAttr
 
wxGridCellAttr * m_valueAttr
 
wxGridCellAttr * m_hAlignAttr
 
void AddInheritedField(const SCH_FIELD &aParent)
 
wxGridCellAttr * m_orientationAttr
 
void SetValue(int aRow, int aCol, const wxString &aValue) override
 
wxGridCellAttr * m_vAlignAttr
 
wxGridCellAttr * m_filepathAttr
 
SCH_FIELD & getField(int aRow)
 
wxGridCellAttr * m_netclassAttr
 
void emplace_back(const SCH_FIELD &field)
 
void SetValueAsBool(int aRow, int aCol, bool aValue) override
 
int GetNumberCols() override
 
wxString GetValue(int aRow, int aCol) override
 
void SwapRows(size_t a, size_t b)
 
void onUnitsChanged(wxCommandEvent &aEvent)
 
std::unique_ptr< NUMERIC_EVALUATOR > m_eval
 
std::vector< SCH_FIELD > m_parentFields
 
FIELD_VALIDATOR m_nonUrlValidator
 
FIELD_VALIDATOR m_filepathValidator
 
wxString GetColLabelValue(int aCol) override
 
FIELDS_GRID_TRICKS(WX_GRID *aGrid, DIALOG_SHIM *aDialog, std::vector< EMBEDDED_FILES * > aFilesStack, std::function< void(wxCommandEvent &)> aAddHandler)
 
void showPopupMenu(wxMenu &menu, wxGridEvent &aEvent) override
 
int getFieldRow(FIELD_T aFieldId)
 
std::vector< EMBEDDED_FILES * > m_filesStack
 
void doPopupSelection(wxCommandEvent &event) override
 
A text control validator used for validating the text allowed in fields.
 
GRID_TRICKS(WX_GRID *aGrid)
 
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.
 
@ FDC_SYMBOL_EDITOR_COUNT
 
FIELD_T
The set of all field indices assuming an array like sequence that a SCH_COMPONENT or LIB_PART can hol...
 
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
 
Custom text control validator definitions.