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

#include <zone_settings.h>

Inheritance diagram for LAYER_PROPERTIES_GRID_TABLE:
WX_GRID_TABLE_BASE

Public Member Functions

 LAYER_PROPERTIES_GRID_TABLE (PCB_BASE_FRAME *aFrame, std::function< LSET()> getLayers)
 
 ~LAYER_PROPERTIES_GRID_TABLE () override
 
int GetNumberRows () override
 
int GetNumberCols () override
 
wxString GetColLabelValue (int aCol) override
 
bool CanGetValueAs (int aRow, int aCol, const wxString &aTypeName) override
 
bool CanSetValueAs (int aRow, int aCol, const wxString &aTypeName) override
 
wxString GetValue (int aRow, int aCol) override
 
void SetValue (int aRow, int aCol, const wxString &aValue) override
 
long GetValueAsLong (int aRow, int aCol) override
 
void SetValueAsLong (int aRow, int aCol, long aValue) override
 
void AddItem (PCB_LAYER_ID aLayer, const ZONE_LAYER_PROPERTIES &aProps)
 
bool AppendRows (size_t aNumRows=1) override
 
bool DeleteRows (size_t aPos, size_t aNumRows) override
 
const std::vector< std::pair< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > > & GetItems ()
 
void SetColAttr (wxGridCellAttr *aAttr, int aCol) override
 
wxGridCellAttr * GetAttr (int aRow, int aCol, wxGridCellAttr::wxAttrKind aKind) override
 
virtual bool IsExpanderColumn (int aCol) const
 
virtual GROUP_TYPE GetGroupType (int aRow) const
 

Protected Member Functions

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

Protected Attributes

std::map< int, wxGridCellAttr * > m_colAttrs
 

Private Attributes

PCB_BASE_FRAMEm_frame
 
std::function< LSET()> m_getLayersFunc
 
std::vector< std::pair< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > > m_items
 

Detailed Description

Definition at line 265 of file zone_settings.h.

Constructor & Destructor Documentation

◆ LAYER_PROPERTIES_GRID_TABLE()

LAYER_PROPERTIES_GRID_TABLE::LAYER_PROPERTIES_GRID_TABLE ( PCB_BASE_FRAME * aFrame,
std::function< LSET()> getLayers )

Definition at line 378 of file zone_settings.cpp.

References m_frame, m_getLayersFunc, and onUnitsChanged().

◆ ~LAYER_PROPERTIES_GRID_TABLE()

LAYER_PROPERTIES_GRID_TABLE::~LAYER_PROPERTIES_GRID_TABLE ( )
override

Definition at line 386 of file zone_settings.cpp.

References m_frame, and onUnitsChanged().

Member Function Documentation

◆ AddItem()

void LAYER_PROPERTIES_GRID_TABLE::AddItem ( PCB_LAYER_ID aLayer,
const ZONE_LAYER_PROPERTIES & aProps )

Definition at line 444 of file zone_settings.cpp.

References m_items.

Referenced by AppendRows().

◆ AppendRows()

bool LAYER_PROPERTIES_GRID_TABLE::AppendRows ( size_t aNumRows = 1)
override

Definition at line 456 of file zone_settings.cpp.

References AddItem(), F_Cu, m_getLayersFunc, m_items, and next().

◆ CanGetValueAs()

bool LAYER_PROPERTIES_GRID_TABLE::CanGetValueAs ( int aRow,
int aCol,
const wxString & aTypeName )
inlineoverride

Definition at line 285 of file zone_settings.h.

Referenced by CanSetValueAs().

◆ CanSetValueAs()

bool LAYER_PROPERTIES_GRID_TABLE::CanSetValueAs ( int aRow,
int aCol,
const wxString & aTypeName )
inlineoverride

Definition at line 296 of file zone_settings.h.

References CanGetValueAs().

◆ DeleteRows()

bool LAYER_PROPERTIES_GRID_TABLE::DeleteRows ( size_t aPos,
size_t aNumRows )
override

Definition at line 488 of file zone_settings.cpp.

References m_items.

◆ enhanceAttr()

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

◆ GetAttr()

wxGridCellAttr * WX_GRID_TABLE_BASE::GetAttr ( int aRow,
int aCol,
wxGridCellAttr::wxAttrKind aKind )
inlineoverrideinherited

Definition at line 68 of file wx_grid.h.

References enhanceAttr(), and m_colAttrs.

◆ GetColLabelValue()

wxString LAYER_PROPERTIES_GRID_TABLE::GetColLabelValue ( int aCol)
inlineoverride

Definition at line 274 of file zone_settings.h.

References _.

◆ GetGroupType()

virtual GROUP_TYPE WX_GRID_TABLE_BASE::GetGroupType ( int aRow) const
inlinevirtualinherited

Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.

Definition at line 80 of file wx_grid.h.

References GROUP_SINGLETON, and GROUP_TYPE.

◆ GetItems()

const std::vector< std::pair< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > > & LAYER_PROPERTIES_GRID_TABLE::GetItems ( )
inline

Definition at line 311 of file zone_settings.h.

References m_items.

◆ GetNumberCols()

int LAYER_PROPERTIES_GRID_TABLE::GetNumberCols ( )
inlineoverride

Definition at line 272 of file zone_settings.h.

◆ GetNumberRows()

int LAYER_PROPERTIES_GRID_TABLE::GetNumberRows ( )
inlineoverride

Definition at line 271 of file zone_settings.h.

References m_items.

◆ GetValue()

wxString LAYER_PROPERTIES_GRID_TABLE::GetValue ( int aRow,
int aCol )
override

Definition at line 392 of file zone_settings.cpp.

References m_frame, m_items, VECTOR2< T >::x, and VECTOR2< T >::y.

◆ GetValueAsLong()

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

Definition at line 424 of file zone_settings.cpp.

References m_items.

◆ IsExpanderColumn()

virtual bool WX_GRID_TABLE_BASE::IsExpanderColumn ( int aCol) const
inlinevirtualinherited

Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.

Definition at line 79 of file wx_grid.h.

◆ onUnitsChanged()

void LAYER_PROPERTIES_GRID_TABLE::onUnitsChanged ( wxCommandEvent & aEvent)
protected

Definition at line 509 of file zone_settings.cpp.

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

◆ SetColAttr()

void WX_GRID_TABLE_BASE::SetColAttr ( wxGridCellAttr * aAttr,
int aCol )
inlineoverrideinherited

Definition at line 62 of file wx_grid.h.

References m_colAttrs.

◆ SetValue()

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

Definition at line 409 of file zone_settings.cpp.

References m_frame, m_items, VECTOR2< T >::x, and VECTOR2< T >::y.

◆ SetValueAsLong()

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

Definition at line 434 of file zone_settings.cpp.

References m_items, and ToLAYER_ID().

Member Data Documentation

◆ m_colAttrs

std::map<int, wxGridCellAttr*> WX_GRID_TABLE_BASE::m_colAttrs
protectedinherited

◆ m_frame

PCB_BASE_FRAME* LAYER_PROPERTIES_GRID_TABLE::m_frame
private

◆ m_getLayersFunc

std::function<LSET()> LAYER_PROPERTIES_GRID_TABLE::m_getLayersFunc
private

Definition at line 318 of file zone_settings.h.

Referenced by AppendRows(), and LAYER_PROPERTIES_GRID_TABLE().

◆ m_items

std::vector<std::pair<PCB_LAYER_ID, ZONE_LAYER_PROPERTIES> > LAYER_PROPERTIES_GRID_TABLE::m_items
private

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