KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FIELDS_GRID_TABLE< T > Class Template Reference

#include <fields_grid_table.h>

Inheritance diagram for FIELDS_GRID_TABLE< T >:

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 ()
 
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 row, int col, wxGridCellAttr::wxAttrKind kind) 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. More...
 

Protected Member Functions

void initGrid (WX_GRID *aGrid)
 
void onUnitsChanged (wxCommandEvent &aEvent)
 

Private Attributes

SCH_BASE_FRAMEm_frame
 
DIALOG_SHIMm_dialog
 
WX_GRIDm_grid
 
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

template<class T>
class FIELDS_GRID_TABLE< T >

Definition at line 77 of file fields_grid_table.h.

Constructor & Destructor Documentation

◆ FIELDS_GRID_TABLE() [1/4]

template<class T >
FIELDS_GRID_TABLE< T >::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_BASE_FRAME aFrame,
WX_GRID aGrid,
LIB_SYMBOL aSymbol 
)

Definition at line 130 of file fields_grid_table.cpp.

References FIELDS_GRID_TABLE< T >::initGrid().

◆ FIELDS_GRID_TABLE() [2/4]

template<class T >
FIELDS_GRID_TABLE< T >::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_EDIT_FRAME aFrame,
WX_GRID aGrid,
SCH_SYMBOL aSymbol 
)

Definition at line 151 of file fields_grid_table.cpp.

References FIELDS_GRID_TABLE< T >::initGrid().

◆ FIELDS_GRID_TABLE() [3/4]

template<class T >
FIELDS_GRID_TABLE< T >::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_EDIT_FRAME aFrame,
WX_GRID aGrid,
SCH_SHEET aSheet 
)

Definition at line 172 of file fields_grid_table.cpp.

References FIELDS_GRID_TABLE< T >::initGrid().

◆ FIELDS_GRID_TABLE() [4/4]

template<class T >
FIELDS_GRID_TABLE< T >::FIELDS_GRID_TABLE ( DIALOG_SHIM aDialog,
SCH_EDIT_FRAME aFrame,
WX_GRID aGrid,
SCH_LABEL_BASE aLabel 
)

Definition at line 192 of file fields_grid_table.cpp.

References FIELDS_GRID_TABLE< T >::initGrid().

◆ ~FIELDS_GRID_TABLE()

template<class T >
FIELDS_GRID_TABLE< T >::~FIELDS_GRID_TABLE

Definition at line 349 of file fields_grid_table.cpp.

Member Function Documentation

◆ BoolFromString()

template<class T >
bool FIELDS_GRID_TABLE< T >::BoolFromString ( wxString  aValue) const

Definition at line 983 of file fields_grid_table.cpp.

◆ CanGetValueAs()

template<class T >
bool FIELDS_GRID_TABLE< T >::CanGetValueAs ( int  aRow,
int  aCol,
const wxString &  aTypeName 
)
override

◆ CanSetValueAs()

template<class T >
bool FIELDS_GRID_TABLE< T >::CanSetValueAs ( int  aRow,
int  aCol,
const wxString &  aTypeName 
)
override

Definition at line 438 of file fields_grid_table.cpp.

◆ GetAttr()

◆ GetColLabelValue()

template<class T >
wxString FIELDS_GRID_TABLE< T >::GetColLabelValue ( int  aCol)
override

◆ GetNumberCols()

template<class T >
int FIELDS_GRID_TABLE< T >::GetNumberCols ( )
inlineoverride

Definition at line 91 of file fields_grid_table.h.

References FDC_COUNT.

◆ GetNumberRows()

◆ GetValue()

◆ GetValueAsBool()

template<class T >
bool FIELDS_GRID_TABLE< T >::GetValueAsBool ( int  aRow,
int  aCol 
)
override

Definition at line 694 of file fields_grid_table.cpp.

References FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_ITALIC, FDC_SHOW_NAME, and FDC_SHOWN.

◆ initGrid()

◆ IsEmptyCell()

template<class T >
bool FIELDS_GRID_TABLE< T >::IsEmptyCell ( int  row,
int  col 
)
inlineoverride

Definition at line 95 of file fields_grid_table.h.

◆ onUnitsChanged()

template<class T >
void FIELDS_GRID_TABLE< T >::onUnitsChanged ( wxCommandEvent &  aEvent)
protected

Definition at line 372 of file fields_grid_table.cpp.

◆ SetValue()

◆ SetValueAsBool()

template<class T >
void FIELDS_GRID_TABLE< T >::SetValueAsBool ( int  aRow,
int  aCol,
bool  aValue 
)
override

Definition at line 883 of file fields_grid_table.cpp.

References FDC_ALLOW_AUTOPLACE, FDC_BOLD, FDC_ITALIC, FDC_SHOW_NAME, and FDC_SHOWN.

◆ StringFromBool()

template<class T >
wxString FIELDS_GRID_TABLE< T >::StringFromBool ( bool  aValue) const

Definition at line 973 of file fields_grid_table.cpp.

Member Data Documentation

◆ elements

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

STL member.

◆ m_boolAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_boolAttr
private

Definition at line 143 of file fields_grid_table.h.

◆ m_colorAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_colorAttr
private

Definition at line 149 of file fields_grid_table.h.

◆ m_curdir

template<class T >
wxString FIELDS_GRID_TABLE< T >::m_curdir
private

Definition at line 126 of file fields_grid_table.h.

◆ m_dialog

template<class T >
DIALOG_SHIM* FIELDS_GRID_TABLE< T >::m_dialog
private

Definition at line 120 of file fields_grid_table.h.

◆ m_eval

template<class T >
std::unique_ptr<NUMERIC_EVALUATOR> FIELDS_GRID_TABLE< T >::m_eval
private

Definition at line 151 of file fields_grid_table.h.

◆ m_evalOriginal

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

Definition at line 152 of file fields_grid_table.h.

◆ m_fieldNameAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_fieldNameAttr
private

Definition at line 136 of file fields_grid_table.h.

◆ m_fieldNameValidator

template<class T >
FIELD_VALIDATOR FIELDS_GRID_TABLE< T >::m_fieldNameValidator
private

Definition at line 128 of file fields_grid_table.h.

◆ m_filepathAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_filepathAttr
private

Definition at line 142 of file fields_grid_table.h.

◆ m_filepathValidator

template<class T >
FIELD_VALIDATOR FIELDS_GRID_TABLE< T >::m_filepathValidator
private

Definition at line 133 of file fields_grid_table.h.

◆ m_fontAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_fontAttr
private

Definition at line 148 of file fields_grid_table.h.

◆ m_footprintAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_footprintAttr
private

Definition at line 139 of file fields_grid_table.h.

◆ m_frame

template<class T >
SCH_BASE_FRAME* FIELDS_GRID_TABLE< T >::m_frame
private

Definition at line 119 of file fields_grid_table.h.

◆ m_grid

template<class T >
WX_GRID* FIELDS_GRID_TABLE< T >::m_grid
private

Definition at line 121 of file fields_grid_table.h.

◆ m_hAlignAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_hAlignAttr
private

Definition at line 145 of file fields_grid_table.h.

◆ m_mandatoryFieldCount

template<class T >
int FIELDS_GRID_TABLE< T >::m_mandatoryFieldCount
private

Definition at line 123 of file fields_grid_table.h.

◆ m_netclassAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_netclassAttr
private

Definition at line 147 of file fields_grid_table.h.

◆ m_nonUrlAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_nonUrlAttr
private

Definition at line 141 of file fields_grid_table.h.

◆ m_nonUrlValidator

template<class T >
FIELD_VALIDATOR FIELDS_GRID_TABLE< T >::m_nonUrlValidator
private

Definition at line 132 of file fields_grid_table.h.

◆ m_orientationAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_orientationAttr
private

Definition at line 146 of file fields_grid_table.h.

◆ m_parentType

template<class T >
KICAD_T FIELDS_GRID_TABLE< T >::m_parentType
private

Definition at line 122 of file fields_grid_table.h.

◆ m_part

template<class T >
LIB_SYMBOL* FIELDS_GRID_TABLE< T >::m_part
private

Definition at line 124 of file fields_grid_table.h.

◆ m_readOnlyAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_readOnlyAttr
private

Definition at line 135 of file fields_grid_table.h.

◆ m_referenceAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_referenceAttr
private

Definition at line 137 of file fields_grid_table.h.

◆ m_referenceValidator

template<class T >
FIELD_VALIDATOR FIELDS_GRID_TABLE< T >::m_referenceValidator
private

Definition at line 129 of file fields_grid_table.h.

◆ m_symbolNetlist

template<class T >
wxString FIELDS_GRID_TABLE< T >::m_symbolNetlist
private

Definition at line 125 of file fields_grid_table.h.

◆ m_urlAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_urlAttr
private

Definition at line 140 of file fields_grid_table.h.

◆ m_urlValidator

template<class T >
FIELD_VALIDATOR FIELDS_GRID_TABLE< T >::m_urlValidator
private

Definition at line 131 of file fields_grid_table.h.

◆ m_vAlignAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_vAlignAttr
private

Definition at line 144 of file fields_grid_table.h.

◆ m_valueAttr

template<class T >
wxGridCellAttr* FIELDS_GRID_TABLE< T >::m_valueAttr
private

Definition at line 138 of file fields_grid_table.h.

◆ m_valueValidator

template<class T >
FIELD_VALIDATOR FIELDS_GRID_TABLE< T >::m_valueValidator
private

Definition at line 130 of file fields_grid_table.h.


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