|
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 39 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 401 of file zone_settings.cpp.
References m_frame, m_getLayersFunc, and onUnitsChanged().
|
override |
Definition at line 409 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 479 of file zone_settings.cpp.
References AddItem(), m_getLayersFunc, m_items, next(), and UNDEFINED_LAYER.
|
inlineoverride |
Definition at line 59 of file zone_layer_properties_grid.h.
Referenced by CanSetValueAs().
|
inlineoverride |
Definition at line 70 of file zone_layer_properties_grid.h.
References CanGetValueAs().
|
override |
Definition at line 513 of file zone_settings.cpp.
References m_items.
|
protectedinherited |
Definition at line 47 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 68 of file wx_grid.h.
References enhanceAttr(), and m_colAttrs.
Referenced by FIELDS_EDITOR_GRID_DATA_MODEL::GetAttr().
|
inlineoverride |
Definition at line 48 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 80 of file wx_grid.h.
References GROUP_SINGLETON, and GROUP_TYPE.
|
inline |
Definition at line 85 of file zone_layer_properties_grid.h.
References m_items.
|
inlineoverride |
Definition at line 46 of file zone_layer_properties_grid.h.
|
inlineoverride |
Definition at line 45 of file zone_layer_properties_grid.h.
References m_items.
|
override |
Definition at line 415 of file zone_settings.cpp.
References m_frame, m_items, VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 447 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 534 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 62 of file wx_grid.h.
References m_colAttrs.
|
override |
Definition at line 432 of file zone_settings.cpp.
References m_frame, m_items, VECTOR2< T >::x, and VECTOR2< T >::y.
|
override |
Definition at line 457 of file zone_settings.cpp.
References m_items, and ToLAYER_ID().
|
protectedinherited |
Definition at line 104 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 91 of file zone_layer_properties_grid.h.
Referenced by GetValue(), LAYER_PROPERTIES_GRID_TABLE(), SetValue(), and ~LAYER_PROPERTIES_GRID_TABLE().
|
private |
Definition at line 92 of file zone_layer_properties_grid.h.
Referenced by AppendRows(), and LAYER_PROPERTIES_GRID_TABLE().
|
private |
Definition at line 93 of file zone_layer_properties_grid.h.
Referenced by AddItem(), AppendRows(), DeleteRows(), GetItems(), GetNumberRows(), GetValue(), GetValueAsLong(), SetValue(), and SetValueAsLong().