KiCad PCB EDA Suite
LAYER_GRID_TABLE Class Reference
Inheritance diagram for LAYER_GRID_TABLE:

Public Member Functions

 LAYER_GRID_TABLE (int layerCount)
 
int GetNumberRows () override
 
int GetNumberCols () override
 
wxString GetColLabelValue (int aCol) override
 
wxString GetValue (int row, int col) override
 
void SetValue (int row, int col, const wxString &value) override
 
long GetValueAsLong (int row, int col) override
 
void SetValueAsLong (int row, int col, long value) override
 

Private Attributes

int m_layers [MAX_CU_LAYERS][2]
 
int m_layerCount
 

Detailed Description

Definition at line 38 of file dialog_swap_layers.cpp.

Constructor & Destructor Documentation

LAYER_GRID_TABLE::LAYER_GRID_TABLE ( int  layerCount)
inline

Definition at line 44 of file dialog_swap_layers.cpp.

44  : m_layerCount( layerCount )
45  { }

Member Function Documentation

wxString LAYER_GRID_TABLE::GetColLabelValue ( int  aCol)
inlineoverride

Definition at line 50 of file dialog_swap_layers.cpp.

51  {
52  switch( aCol )
53  {
54  case 0: return _( "Move items on:" );
55  case 1: return _( "To layer:" );
56  default: return wxEmptyString;
57  }
58  }
int LAYER_GRID_TABLE::GetNumberCols ( )
inlineoverride

Definition at line 48 of file dialog_swap_layers.cpp.

48 { return 2; }
int LAYER_GRID_TABLE::GetNumberRows ( )
inlineoverride

Definition at line 47 of file dialog_swap_layers.cpp.

References m_layerCount.

47 { return m_layerCount; }
wxString LAYER_GRID_TABLE::GetValue ( int  row,
int  col 
)
inlineoverride

Definition at line 60 of file dialog_swap_layers.cpp.

60 { return "undefined"; }
long LAYER_GRID_TABLE::GetValueAsLong ( int  row,
int  col 
)
inlineoverride

Definition at line 63 of file dialog_swap_layers.cpp.

64  {
65  return m_layers[ row ][ col ];
66  }
int m_layers[MAX_CU_LAYERS][2]
void LAYER_GRID_TABLE::SetValue ( int  row,
int  col,
const wxString &  value 
)
inlineoverride

Definition at line 61 of file dialog_swap_layers.cpp.

61 { }
void LAYER_GRID_TABLE::SetValueAsLong ( int  row,
int  col,
long  value 
)
inlineoverride

Definition at line 68 of file dialog_swap_layers.cpp.

69  {
70  m_layers[ row ][ col ] = value;
71  }
int m_layers[MAX_CU_LAYERS][2]

Member Data Documentation

int LAYER_GRID_TABLE::m_layerCount
private

Definition at line 41 of file dialog_swap_layers.cpp.

Referenced by GetNumberRows().

int LAYER_GRID_TABLE::m_layers[MAX_CU_LAYERS][2]
private

Definition at line 40 of file dialog_swap_layers.cpp.


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