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

#include <fp_text_grid_table.h>

Inheritance diagram for FP_TEXT_GRID_TABLE:

Public Member Functions

 FP_TEXT_GRID_TABLE (PCB_BASE_FRAME *aFrame, DIALOG_SHIM *aDialog)
 
 ~FP_TEXT_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
 
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. More...
 

Protected Member Functions

void onUnitsChanged (wxCommandEvent &aEvent)
 

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 56 of file fp_text_grid_table.h.

Constructor & Destructor Documentation

◆ FP_TEXT_GRID_TABLE()

◆ ~FP_TEXT_GRID_TABLE()

FP_TEXT_GRID_TABLE::~FP_TEXT_GRID_TABLE ( )

Member Function Documentation

◆ CanGetValueAs()

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

◆ CanSetValueAs()

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

Definition at line 185 of file fp_text_grid_table.cpp.

References CanGetValueAs().

◆ GetAttr()

◆ GetColLabelValue()

wxString FP_TEXT_GRID_TABLE::GetColLabelValue ( int  aCol)
override

◆ GetNumberCols()

int FP_TEXT_GRID_TABLE::GetNumberCols ( )
inlineoverride

Definition at line 63 of file fp_text_grid_table.h.

References FPT_COUNT.

◆ GetNumberRows()

int FP_TEXT_GRID_TABLE::GetNumberRows ( )
inlineoverride

◆ GetValue()

◆ GetValueAsBool()

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

◆ GetValueAsLong()

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

Definition at line 321 of file fp_text_grid_table.cpp.

References FPT_LAYER, and BOARD_ITEM::GetLayer().

◆ IsEmptyCell()

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

Definition at line 67 of file fp_text_grid_table.h.

◆ onUnitsChanged()

void FP_TEXT_GRID_TABLE::onUnitsChanged ( wxCommandEvent &  aEvent)
protected

Definition at line 124 of file fp_text_grid_table.cpp.

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

◆ SetValue()

◆ SetValueAsBool()

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

◆ SetValueAsLong()

void FP_TEXT_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* FP_TEXT_GRID_TABLE::m_boolColAttr
private

Definition at line 98 of file fp_text_grid_table.h.

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

◆ m_dialog

DIALOG_SHIM* FP_TEXT_GRID_TABLE::m_dialog
private

Definition at line 89 of file fp_text_grid_table.h.

Referenced by FP_TEXT_GRID_TABLE().

◆ m_eval

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

Definition at line 106 of file fp_text_grid_table.h.

Referenced by FP_TEXT_GRID_TABLE(), and SetValue().

◆ m_evalOriginal

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

Definition at line 107 of file fp_text_grid_table.h.

Referenced by GetValue(), and SetValue().

◆ m_fieldNameValidator

FIELD_VALIDATOR FP_TEXT_GRID_TABLE::m_fieldNameValidator
private

Definition at line 91 of file fp_text_grid_table.h.

◆ m_footprintAttr

wxGridCellAttr* FP_TEXT_GRID_TABLE::m_footprintAttr
private

Definition at line 103 of file fp_text_grid_table.h.

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

◆ m_frame

PCB_BASE_FRAME* FP_TEXT_GRID_TABLE::m_frame
private

Definition at line 88 of file fp_text_grid_table.h.

Referenced by FP_TEXT_GRID_TABLE(), GetValue(), SetValue(), and ~FP_TEXT_GRID_TABLE().

◆ m_layerColAttr

wxGridCellAttr* FP_TEXT_GRID_TABLE::m_layerColAttr
private

Definition at line 100 of file fp_text_grid_table.h.

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

◆ m_nonUrlValidator

FIELD_VALIDATOR FP_TEXT_GRID_TABLE::m_nonUrlValidator
private

Definition at line 95 of file fp_text_grid_table.h.

Referenced by FP_TEXT_GRID_TABLE().

◆ m_orientationColAttr

wxGridCellAttr* FP_TEXT_GRID_TABLE::m_orientationColAttr
private

Definition at line 99 of file fp_text_grid_table.h.

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

◆ m_readOnlyAttr

wxGridCellAttr* FP_TEXT_GRID_TABLE::m_readOnlyAttr
private

Definition at line 97 of file fp_text_grid_table.h.

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

◆ m_referenceAttr

wxGridCellAttr* FP_TEXT_GRID_TABLE::m_referenceAttr
private

Definition at line 101 of file fp_text_grid_table.h.

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

◆ m_referenceValidator

FIELD_VALIDATOR FP_TEXT_GRID_TABLE::m_referenceValidator
private

Definition at line 92 of file fp_text_grid_table.h.

Referenced by FP_TEXT_GRID_TABLE().

◆ m_urlAttr

wxGridCellAttr* FP_TEXT_GRID_TABLE::m_urlAttr
private

Definition at line 104 of file fp_text_grid_table.h.

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

◆ m_urlValidator

FIELD_VALIDATOR FP_TEXT_GRID_TABLE::m_urlValidator
private

Definition at line 94 of file fp_text_grid_table.h.

Referenced by FP_TEXT_GRID_TABLE().

◆ m_valueAttr

wxGridCellAttr* FP_TEXT_GRID_TABLE::m_valueAttr
private

Definition at line 102 of file fp_text_grid_table.h.

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

◆ m_valueValidator

FIELD_VALIDATOR FP_TEXT_GRID_TABLE::m_valueValidator
private

Definition at line 93 of file fp_text_grid_table.h.

Referenced by FP_TEXT_GRID_TABLE().


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