|
KiCad PCB EDA Suite
|
#include <zone_layer_properties_grid.h>
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 |
| virtual bool | HasUndoStateSerialization () const |
| Optional identity-based serialization for the host dialog's Ctrl+Z/Ctrl+Y. | |
| virtual wxString | SerializeUndoState () const |
| virtual void | RestoreUndoState (const wxString &aState) |
| void | Clear () override |
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_FRAME * | m_frame |
| std::function< LSET()> | m_getLayersFunc |
| std::vector< std::pair< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > > | m_items |
Definition at line 35 of file zone_layer_properties_grid.h.
| LAYER_PROPERTIES_GRID_TABLE::LAYER_PROPERTIES_GRID_TABLE | ( | PCB_BASE_FRAME * | aFrame, |
| std::function< LSET()> | getLayers ) |
Definition at line 397 of file zone_settings.cpp.
References m_frame, m_getLayersFunc, and onUnitsChanged().
|
override |
Definition at line 405 of file zone_settings.cpp.
References m_frame, and onUnitsChanged().
| void LAYER_PROPERTIES_GRID_TABLE::AddItem | ( | PCB_LAYER_ID | aLayer, |
| const ZONE_LAYER_PROPERTIES & | aProps ) |
|
override |
Definition at line 475 of file zone_settings.cpp.
References AddItem(), m_getLayersFunc, m_items, next(), and UNDEFINED_LAYER.
|
inlineoverride |
Definition at line 55 of file zone_layer_properties_grid.h.
Referenced by CanSetValueAs().
|
inlineoverride |
Definition at line 66 of file zone_layer_properties_grid.h.
References CanGetValueAs().
|
override |
Definition at line 509 of file zone_settings.cpp.
References m_items.
|
protectedinherited |
Definition at line 43 of file wx_grid.cpp.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), FIELDS_GRID_TABLE::GetAttr(), LAYERS_GRID_TABLE::GetAttr(), LIB_TABLE_GRID_DATA_MODEL::GetAttr(), PCB_FIELDS_GRID_TABLE::GetAttr(), SCH_PIN_TABLE_DATA_MODEL::GetAttr(), and GetAttr().
|
inlineoverrideinherited |
Definition at line 64 of file wx_grid.h.
References enhanceAttr(), and m_colAttrs.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineoverride |
Definition at line 44 of file zone_layer_properties_grid.h.
References _.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
Definition at line 76 of file wx_grid.h.
References GROUP_SINGLETON, and GROUP_TYPE.
|
inline |
Definition at line 81 of file zone_layer_properties_grid.h.
References m_items.
|
inlineoverride |
Definition at line 42 of file zone_layer_properties_grid.h.
|
inlineoverride |
Definition at line 41 of file zone_layer_properties_grid.h.
References m_items.
|
override |
Definition at line 411 of file zone_settings.cpp.
References m_frame, m_items, VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 443 of file zone_settings.cpp.
References m_items.
|
inlinevirtualinherited |
Optional identity-based serialization for the host dialog's Ctrl+Z/Ctrl+Y.
The dialog's generic grid undo snapshots cells by (row, col) position, which is wrong for tables whose rows can regroup/sort/reorder. A table that returns true here is asked to serialize and restore its own state by stable identity instead.
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL, and LIB_FIELDS_EDITOR_GRID_DATA_MODEL.
|
protected |
Definition at line 530 of file zone_settings.cpp.
Referenced by LAYER_PROPERTIES_GRID_TABLE(), and ~LAYER_PROPERTIES_GRID_TABLE().
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL.
|
inlinevirtualinherited |
Reimplemented in FIELDS_EDITOR_GRID_DATA_MODEL.
|
inlineoverrideinherited |
Definition at line 58 of file wx_grid.h.
References m_colAttrs.
|
override |
Definition at line 428 of file zone_settings.cpp.
References m_frame, m_items, VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 453 of file zone_settings.cpp.
References m_items, and ToLAYER_ID().
|
protectedinherited |
Definition at line 100 of file wx_grid.h.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr(), GetAttr(), LIB_FIELDS_EDITOR_GRID_DATA_MODEL::RemoveColumn(), SetColAttr(), and ~WX_GRID_TABLE_BASE().
|
private |
Definition at line 87 of file zone_layer_properties_grid.h.
Referenced by GetValue(), LAYER_PROPERTIES_GRID_TABLE(), SetValue(), and ~LAYER_PROPERTIES_GRID_TABLE().
|
private |
Definition at line 88 of file zone_layer_properties_grid.h.
Referenced by AppendRows(), and LAYER_PROPERTIES_GRID_TABLE().
|
private |
Definition at line 89 of file zone_layer_properties_grid.h.
Referenced by AddItem(), AppendRows(), DeleteRows(), GetItems(), GetNumberRows(), GetValue(), GetValueAsLong(), SetValue(), and SetValueAsLong().