KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FIELDS_GRID_TABLE Class Reference

#include <fields_grid_table.h>

Inheritance diagram for FIELDS_GRID_TABLE:
WX_GRID_TABLE_BASE

Public Member Functions

 FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_BASE_FRAME *aFrame, WX_GRID *aGrid, LIB_SYMBOL *aSymbol)
 
 FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_EDIT_FRAME *aFrame, WX_GRID *aGrid, SCH_SYMBOL *aSymbol)
 
 FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_EDIT_FRAME *aFrame, WX_GRID *aGrid, SCH_SHEET *aSheet)
 
 FIELDS_GRID_TABLE (DIALOG_SHIM *aDialog, SCH_EDIT_FRAME *aFrame, WX_GRID *aGrid, SCH_LABEL_BASE *aLabel)
 
 ~FIELDS_GRID_TABLE () override
 
int GetNumberRows () override
 
int GetNumberCols () override
 
wxString GetColLabelValue (int aCol) override
 
bool IsEmptyCell (int row, int col) override
 
bool CanGetValueAs (int aRow, int aCol, const wxString &aTypeName) override
 
bool CanSetValueAs (int aRow, int aCol, const wxString &aTypeName) override
 
wxGridCellAttr * GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
 
wxString GetValue (int aRow, int aCol) override
 
bool GetValueAsBool (int aRow, int aCol) override
 
void SetValue (int aRow, int aCol, const wxString &aValue) override
 
void SetValueAsBool (int aRow, int aCol, bool aValue) override
 
wxString StringFromBool (bool aValue) const
 
bool BoolFromString (wxString aValue) const
 

Public Attributes

elements
 STL member.
 

Protected Member Functions

void initGrid (WX_GRID *aGrid)
 
void onUnitsChanged (wxCommandEvent &aEvent)
 
wxGridCellAttr * enhanceAttr (wxGridCellAttr *aInputAttr, int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind)
 

Private Attributes

SCH_BASE_FRAMEm_frame
 
DIALOG_SHIMm_dialog
 
KICAD_T m_parentType
 
int m_mandatoryFieldCount
 
LIB_SYMBOLm_part
 
wxString m_symbolNetlist
 
wxString m_curdir
 
FIELD_VALIDATOR m_fieldNameValidator
 
FIELD_VALIDATOR m_referenceValidator
 
FIELD_VALIDATOR m_valueValidator
 
FIELD_VALIDATOR m_urlValidator
 
FIELD_VALIDATOR m_nonUrlValidator
 
FIELD_VALIDATOR m_filepathValidator
 
wxGridCellAttr * m_readOnlyAttr
 
wxGridCellAttr * m_fieldNameAttr
 
wxGridCellAttr * m_referenceAttr
 
wxGridCellAttr * m_valueAttr
 
wxGridCellAttr * m_footprintAttr
 
wxGridCellAttr * m_urlAttr
 
wxGridCellAttr * m_nonUrlAttr
 
wxGridCellAttr * m_filepathAttr
 
wxGridCellAttr * m_boolAttr
 
wxGridCellAttr * m_vAlignAttr
 
wxGridCellAttr * m_hAlignAttr
 
wxGridCellAttr * m_orientationAttr
 
wxGridCellAttr * m_netclassAttr
 
wxGridCellAttr * m_fontAttr
 
wxGridCellAttr * m_colorAttr
 
std::unique_ptr< NUMERIC_EVALUATORm_eval
 
std::map< std::pair< int, int >, wxString > m_evalOriginal
 

Detailed Description

Definition at line 75 of file fields_grid_table.h.

Constructor & Destructor Documentation

◆ FIELDS_GRID_TABLE() [1/4]

FIELDS_GRID_TABLE::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_BASE_FRAME aFrame,
WX_GRID aGrid,
LIB_SYMBOL aSymbol 
)

Definition at line 124 of file fields_grid_table.cpp.

References initGrid().

◆ FIELDS_GRID_TABLE() [2/4]

FIELDS_GRID_TABLE::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_EDIT_FRAME aFrame,
WX_GRID aGrid,
SCH_SYMBOL aSymbol 
)

Definition at line 143 of file fields_grid_table.cpp.

References initGrid().

◆ FIELDS_GRID_TABLE() [3/4]

FIELDS_GRID_TABLE::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_EDIT_FRAME aFrame,
WX_GRID aGrid,
SCH_SHEET aSheet 
)

Definition at line 162 of file fields_grid_table.cpp.

References initGrid().

◆ FIELDS_GRID_TABLE() [4/4]

FIELDS_GRID_TABLE::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_EDIT_FRAME aFrame,
WX_GRID aGrid,
SCH_LABEL_BASE aLabel 
)

Definition at line 180 of file fields_grid_table.cpp.

References initGrid().

◆ ~FIELDS_GRID_TABLE()

Member Function Documentation

◆ BoolFromString()

bool FIELDS_GRID_TABLE::BoolFromString ( wxString  aValue) const

Definition at line 953 of file fields_grid_table.cpp.

Referenced by SetValue().

◆ CanGetValueAs()

bool FIELDS_GRID_TABLE::CanGetValueAs ( int  aRow,
int  aCol,
const wxString &  aTypeName 
)
override

◆ CanSetValueAs()

bool FIELDS_GRID_TABLE::CanSetValueAs ( int  aRow,
int  aCol,
const wxString &  aTypeName 
)
override

Definition at line 419 of file fields_grid_table.cpp.

References CanGetValueAs().

◆ enhanceAttr()

wxGridCellAttr * WX_GRID_TABLE_BASE::enhanceAttr ( wxGridCellAttr *  aInputAttr,
int  aRow,
int  aCol,
wxGridCellAttr::wxAttrKind  aKind 
)
protectedinherited

◆ GetAttr()

◆ GetColLabelValue()

wxString FIELDS_GRID_TABLE::GetColLabelValue ( int  aCol)
override

◆ GetNumberCols()

int FIELDS_GRID_TABLE::GetNumberCols ( )
inlineoverride

Definition at line 89 of file fields_grid_table.h.

References FDC_COUNT.

◆ GetNumberRows()

◆ GetValue()

◆ GetValueAsBool()

bool FIELDS_GRID_TABLE::GetValueAsBool ( int  aRow,
int  aCol 
)
override

◆ initGrid()

◆ IsEmptyCell()

bool FIELDS_GRID_TABLE::IsEmptyCell ( int  row,
int  col 
)
inlineoverride

Definition at line 93 of file fields_grid_table.h.

◆ onUnitsChanged()

void FIELDS_GRID_TABLE::onUnitsChanged ( wxCommandEvent &  aEvent)
protected

Definition at line 356 of file fields_grid_table.cpp.

Referenced by initGrid(), and ~FIELDS_GRID_TABLE().

◆ SetValue()

void FIELDS_GRID_TABLE::SetValue ( int  aRow,
int  aCol,
const wxString &  aValue 
)
override

◆ SetValueAsBool()

void FIELDS_GRID_TABLE::SetValueAsBool ( int  aRow,
int  aCol,
bool  aValue 
)
override

◆ StringFromBool()

wxString FIELDS_GRID_TABLE::StringFromBool ( bool  aValue) const

Definition at line 944 of file fields_grid_table.cpp.

Referenced by GetValue().

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.

◆ m_boolAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_boolAttr
private

Definition at line 140 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_colorAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_colorAttr
private

Definition at line 146 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_curdir

wxString FIELDS_GRID_TABLE::m_curdir
private

Definition at line 123 of file fields_grid_table.h.

Referenced by initGrid().

◆ m_dialog

DIALOG_SHIM* FIELDS_GRID_TABLE::m_dialog
private

Definition at line 118 of file fields_grid_table.h.

Referenced by initGrid(), SetValue(), and SetValueAsBool().

◆ m_eval

std::unique_ptr<NUMERIC_EVALUATOR> FIELDS_GRID_TABLE::m_eval
private

Definition at line 148 of file fields_grid_table.h.

Referenced by initGrid(), and SetValue().

◆ m_evalOriginal

std::map< std::pair<int, int>, wxString > FIELDS_GRID_TABLE::m_evalOriginal
private

Definition at line 149 of file fields_grid_table.h.

Referenced by GetValue(), and SetValue().

◆ m_fieldNameAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_fieldNameAttr
private

Definition at line 133 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_fieldNameValidator

FIELD_VALIDATOR FIELDS_GRID_TABLE::m_fieldNameValidator
private

Definition at line 125 of file fields_grid_table.h.

Referenced by initGrid().

◆ m_filepathAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_filepathAttr
private

Definition at line 139 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_filepathValidator

FIELD_VALIDATOR FIELDS_GRID_TABLE::m_filepathValidator
private

Definition at line 130 of file fields_grid_table.h.

Referenced by initGrid().

◆ m_fontAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_fontAttr
private

Definition at line 145 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_footprintAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_footprintAttr
private

Definition at line 136 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_frame

SCH_BASE_FRAME* FIELDS_GRID_TABLE::m_frame
private

Definition at line 117 of file fields_grid_table.h.

Referenced by GetAttr(), GetValue(), initGrid(), SetValue(), and ~FIELDS_GRID_TABLE().

◆ m_hAlignAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_hAlignAttr
private

Definition at line 142 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_mandatoryFieldCount

int FIELDS_GRID_TABLE::m_mandatoryFieldCount
private

Definition at line 120 of file fields_grid_table.h.

Referenced by GetAttr(), and GetValue().

◆ m_netclassAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_netclassAttr
private

Definition at line 144 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_nonUrlAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_nonUrlAttr
private

Definition at line 138 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_nonUrlValidator

FIELD_VALIDATOR FIELDS_GRID_TABLE::m_nonUrlValidator
private

Definition at line 129 of file fields_grid_table.h.

Referenced by initGrid().

◆ m_orientationAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_orientationAttr
private

Definition at line 143 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_parentType

KICAD_T FIELDS_GRID_TABLE::m_parentType
private

Definition at line 119 of file fields_grid_table.h.

Referenced by GetAttr(), GetValue(), initGrid(), and SetValue().

◆ m_part

LIB_SYMBOL* FIELDS_GRID_TABLE::m_part
private

Definition at line 121 of file fields_grid_table.h.

Referenced by GetAttr().

◆ m_readOnlyAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_readOnlyAttr
private

Definition at line 132 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_referenceAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_referenceAttr
private

Definition at line 134 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_referenceValidator

FIELD_VALIDATOR FIELDS_GRID_TABLE::m_referenceValidator
private

Definition at line 126 of file fields_grid_table.h.

Referenced by initGrid().

◆ m_symbolNetlist

wxString FIELDS_GRID_TABLE::m_symbolNetlist
private

Definition at line 122 of file fields_grid_table.h.

Referenced by initGrid().

◆ m_urlAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_urlAttr
private

Definition at line 137 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_urlValidator

FIELD_VALIDATOR FIELDS_GRID_TABLE::m_urlValidator
private

Definition at line 128 of file fields_grid_table.h.

Referenced by initGrid().

◆ m_vAlignAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_vAlignAttr
private

Definition at line 141 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_valueAttr

wxGridCellAttr* FIELDS_GRID_TABLE::m_valueAttr
private

Definition at line 135 of file fields_grid_table.h.

Referenced by GetAttr(), initGrid(), and ~FIELDS_GRID_TABLE().

◆ m_valueValidator

FIELD_VALIDATOR FIELDS_GRID_TABLE::m_valueValidator
private

Definition at line 127 of file fields_grid_table.h.

Referenced by initGrid().


The documentation for this class was generated from the following files: