| 
    KiCad PCB EDA Suite
    
   | 
 
Class that manages the UI for the copper layer pair presets list based on an injected layer pair store. More...
Public Member Functions | |
| COPPER_LAYERS_PAIR_PRESETS_UI (WX_GRID &aGrid, PCB_LAYER_PRESENTATION &aPresentation, LAYER_PAIR_SETTINGS &aLayerPairSettings) | |
| void | OnLayerPairAdded (const LAYER_PAIR &aLayerPair) | 
| void | OnDeleteSelectedLayerPairs () | 
Private Types | |
| enum class | COLNUMS { ENABLED , SWATCH , LAYERNAMES , USERNAME } | 
Private Member Functions | |
| void | configureGrid () | 
| void | fillGridFromStore () | 
| void | fillRowFromLayerPair (int aRow, const LAYER_PAIR_INFO &aLayerPairInfo) | 
| void | onUserNameChanged (int aRow, const wxString &aNewValue) | 
| void | onEnableChanged (int aRow, bool aNewValue) | 
| void | onPairActivated (int aRow) | 
Private Attributes | |
| PCB_LAYER_PRESENTATION & | m_layerPresentation | 
| WX_GRID & | m_grid | 
| LAYER_PAIR_SETTINGS & | m_layerPairSettings | 
| std::vector< std::unique_ptr< wxBitmap > > | m_swatches | 
Class that manages the UI for the copper layer pair presets list based on an injected layer pair store.
Definition at line 325 of file sel_layer.cpp.
      
  | 
  strongprivate | 
| Enumerator | |
|---|---|
| ENABLED | |
| SWATCH | |
| LAYERNAMES | |
| USERNAME | |
Definition at line 327 of file sel_layer.cpp.
      
  | 
  inline | 
Definition at line 336 of file sel_layer.cpp.
References configureGrid(), ENABLED, fillGridFromStore(), LAYERNAMES, m_grid, m_layerPairSettings, m_layerPresentation, onEnableChanged(), onPairActivated(), onUserNameChanged(), SWATCH, and USERNAME.
      
  | 
  inlineprivate | 
Definition at line 401 of file sel_layer.cpp.
References ENABLED, m_grid, and USERNAME.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
      
  | 
  inlineprivate | 
Definition at line 412 of file sel_layer.cpp.
References fillRowFromLayerPair(), m_grid, and m_layerPairSettings.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
      
  | 
  inlineprivate | 
Definition at line 426 of file sel_layer.cpp.
References ENABLED, LAYER_PAIR::GetLayerA(), LAYER_PAIR::GetLayerB(), LAYER_PAIR_INFO::GetLayerPair(), LAYER_PAIR_INFO::GetName(), LAYER_PAIR_INFO::IsEnabled(), KiIconScale(), LAYERNAMES, m_grid, m_layerPresentation, m_swatches, SWATCH, and USERNAME.
Referenced by fillGridFromStore(), and OnLayerPairAdded().
      
  | 
  inline | 
Definition at line 388 of file sel_layer.cpp.
References LAYER_PAIR_INFO::GetLayerPair(), m_grid, and m_layerPairSettings.
      
  | 
  inlineprivate | 
Definition at line 463 of file sel_layer.cpp.
References m_layerPairSettings, and LAYER_PAIR_INFO::SetEnabled().
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
      
  | 
  inline | 
Definition at line 375 of file sel_layer.cpp.
References fillRowFromLayerPair(), m_grid, and m_layerPairSettings.
      
  | 
  inlineprivate | 
Definition at line 469 of file sel_layer.cpp.
References LAYER_PAIR_INFO::GetLayerPair(), and m_layerPairSettings.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
      
  | 
  inlineprivate | 
Definition at line 457 of file sel_layer.cpp.
References m_layerPairSettings, and LAYER_PAIR_INFO::SetName().
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
      
  | 
  private | 
Definition at line 478 of file sel_layer.cpp.
Referenced by configureGrid(), COPPER_LAYERS_PAIR_PRESETS_UI(), fillGridFromStore(), fillRowFromLayerPair(), OnDeleteSelectedLayerPairs(), and OnLayerPairAdded().
      
  | 
  private | 
Definition at line 479 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI(), fillGridFromStore(), OnDeleteSelectedLayerPairs(), onEnableChanged(), OnLayerPairAdded(), onPairActivated(), and onUserNameChanged().
      
  | 
  private | 
Definition at line 477 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI(), and fillRowFromLayerPair().
      
  | 
  private | 
Definition at line 482 of file sel_layer.cpp.
Referenced by fillRowFromLayerPair().