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

#include <pcb_fields_grid_table.h>

Inheritance diagram for PCB_FIELDS_GRID_TABLE:
WX_GRID_TABLE_BASE

Public Member Functions

 PCB_FIELDS_GRID_TABLE (PCB_BASE_FRAME *aFrame, DIALOG_SHIM *aDialog)
 
 ~PCB_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 aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
 
wxString GetValue (int aRow, int aCol) override
 
bool GetValueAsBool (int aRow, int aCol) override
 
long GetValueAsLong (int aRow, int aCol) override
 
void SetValue (int aRow, int aCol, const wxString &aValue) override
 
void SetValueAsBool (int aRow, int aCol, bool aValue) override
 
void SetValueAsLong (int aRow, int aCol, long aValue) override
 

Public Attributes

elements
 STL member.
 

Protected Member Functions

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

Private Attributes

PCB_BASE_FRAMEm_frame
 
DIALOG_SHIMm_dialog
 
FIELD_VALIDATOR m_fieldNameValidator
 
FIELD_VALIDATOR m_referenceValidator
 
FIELD_VALIDATOR m_valueValidator
 
FIELD_VALIDATOR m_urlValidator
 
FIELD_VALIDATOR m_nonUrlValidator
 
wxGridCellAttr * m_readOnlyAttr
 
wxGridCellAttr * m_boolColAttr
 
wxGridCellAttr * m_orientationColAttr
 
wxGridCellAttr * m_layerColAttr
 
wxGridCellAttr * m_referenceAttr
 
wxGridCellAttr * m_valueAttr
 
wxGridCellAttr * m_footprintAttr
 
wxGridCellAttr * m_urlAttr
 
std::unique_ptr< NUMERIC_EVALUATORm_eval
 
std::map< std::pair< int, int >, wxString > m_evalOriginal
 

Detailed Description

Definition at line 57 of file pcb_fields_grid_table.h.

Constructor & Destructor Documentation

◆ PCB_FIELDS_GRID_TABLE()

◆ ~PCB_FIELDS_GRID_TABLE()

PCB_FIELDS_GRID_TABLE::~PCB_FIELDS_GRID_TABLE ( )

Member Function Documentation

◆ CanGetValueAs()

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

◆ CanSetValueAs()

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

Definition at line 220 of file pcb_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 PCB_FIELDS_GRID_TABLE::GetColLabelValue ( int  aCol)
override

◆ GetNumberCols()

int PCB_FIELDS_GRID_TABLE::GetNumberCols ( )
inlineoverride

Definition at line 64 of file pcb_fields_grid_table.h.

References PFC_COUNT.

◆ GetNumberRows()

int PCB_FIELDS_GRID_TABLE::GetNumberRows ( )
inlineoverride

◆ GetValue()

◆ GetValueAsBool()

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

◆ GetValueAsLong()

long PCB_FIELDS_GRID_TABLE::GetValueAsLong ( int  aRow,
int  aCol 
)
override

Definition at line 353 of file pcb_fields_grid_table.cpp.

References BOARD_ITEM::GetLayer(), and PFC_LAYER.

◆ IsEmptyCell()

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

Definition at line 68 of file pcb_fields_grid_table.h.

◆ onUnitsChanged()

void PCB_FIELDS_GRID_TABLE::onUnitsChanged ( wxCommandEvent &  aEvent)
protected

Definition at line 157 of file pcb_fields_grid_table.cpp.

Referenced by PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ SetValue()

◆ SetValueAsBool()

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

◆ SetValueAsLong()

void PCB_FIELDS_GRID_TABLE::SetValueAsLong ( int  aRow,
int  aCol,
long  aValue 
)
override

Member Data Documentation

◆ elements

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

STL member.

◆ m_boolColAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_boolColAttr
private

Definition at line 99 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_dialog

DIALOG_SHIM* PCB_FIELDS_GRID_TABLE::m_dialog
private

◆ m_eval

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

Definition at line 107 of file pcb_fields_grid_table.h.

Referenced by PCB_FIELDS_GRID_TABLE(), and SetValue().

◆ m_evalOriginal

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

Definition at line 108 of file pcb_fields_grid_table.h.

Referenced by GetValue(), and SetValue().

◆ m_fieldNameValidator

FIELD_VALIDATOR PCB_FIELDS_GRID_TABLE::m_fieldNameValidator
private

Definition at line 92 of file pcb_fields_grid_table.h.

◆ m_footprintAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_footprintAttr
private

Definition at line 104 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_frame

PCB_BASE_FRAME* PCB_FIELDS_GRID_TABLE::m_frame
private

◆ m_layerColAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_layerColAttr
private

Definition at line 101 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_nonUrlValidator

FIELD_VALIDATOR PCB_FIELDS_GRID_TABLE::m_nonUrlValidator
private

Definition at line 96 of file pcb_fields_grid_table.h.

Referenced by PCB_FIELDS_GRID_TABLE().

◆ m_orientationColAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_orientationColAttr
private

Definition at line 100 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_readOnlyAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_readOnlyAttr
private

Definition at line 98 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_referenceAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_referenceAttr
private

Definition at line 102 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_referenceValidator

FIELD_VALIDATOR PCB_FIELDS_GRID_TABLE::m_referenceValidator
private

Definition at line 93 of file pcb_fields_grid_table.h.

Referenced by PCB_FIELDS_GRID_TABLE().

◆ m_urlAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_urlAttr
private

Definition at line 105 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_urlValidator

FIELD_VALIDATOR PCB_FIELDS_GRID_TABLE::m_urlValidator
private

Definition at line 95 of file pcb_fields_grid_table.h.

Referenced by PCB_FIELDS_GRID_TABLE().

◆ m_valueAttr

wxGridCellAttr* PCB_FIELDS_GRID_TABLE::m_valueAttr
private

Definition at line 103 of file pcb_fields_grid_table.h.

Referenced by GetAttr(), PCB_FIELDS_GRID_TABLE(), and ~PCB_FIELDS_GRID_TABLE().

◆ m_valueValidator

FIELD_VALIDATOR PCB_FIELDS_GRID_TABLE::m_valueValidator
private

Definition at line 94 of file pcb_fields_grid_table.h.

Referenced by PCB_FIELDS_GRID_TABLE().


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