| 
    KiCad PCB EDA Suite
    
   | 
 
Class that manages the UI for the copper layer pair selection (left and right grids). More...
Public Member Functions | |
| COPPER_LAYERS_PAIR_SELECTION_UI (wxGrid &aLeftGrid, wxGrid &aRightGrid, PCB_LAYER_PRESENTATION &aPresentation, LAYER_PAIR_SETTINGS &aLayerPairSettings) | |
Private Types | |
| enum class | CU_LAYER_COLNUMS { SELECT = 0 , COLOR = 1 , LAYERNAME = 2 } | 
Private Member Functions | |
| void | configureGrid (wxGrid &aGrid) | 
| void | fillLayerGrid (wxGrid &aGrid) | 
| PCB_LAYER_ID | layerForRow (int aRow) | 
| int | rowForLayer (PCB_LAYER_ID aLayerId) | 
| void | onLeftGridRowSelected (int aRow) | 
| void | onRightGridRowSelected (int aRow) | 
| void | setCurrentSelection (int aLeftRow, int aRightRow) | 
| Set the current layer selection.   | |
Private Attributes | |
| PCB_LAYER_PRESENTATION & | m_layerPresentation | 
| LAYER_PAIR_SETTINGS & | m_layerPairSettings | 
| std::vector< PCB_LAYER_ID > | m_layersId | 
| wxGrid & | m_leftGrid | 
| wxGrid & | m_rightGrid | 
| int | m_leftCurrRow = -1 | 
| int | m_rightCurrRow = -1 | 
Class that manages the UI for the copper layer pair selection (left and right grids).
Definition at line 490 of file sel_layer.cpp.
      
  | 
  strongprivate | 
| Enumerator | |
|---|---|
| SELECT | |
| COLOR | |
| LAYERNAME | |
Definition at line 492 of file sel_layer.cpp.
      
  | 
  inline | 
Definition at line 500 of file sel_layer.cpp.
References configureGrid(), fillLayerGrid(), LAYER_PAIR::GetLayerA(), LAYER_PAIR::GetLayerB(), IsCopperLayer(), m_layerPairSettings, m_layerPresentation, m_layersId, m_leftGrid, m_rightGrid, onLeftGridRowSelected(), onRightGridRowSelected(), rowForLayer(), and setCurrentSelection().
      
  | 
  inlineprivate | 
Definition at line 540 of file sel_layer.cpp.
References SELECT.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
      
  | 
  inlineprivate | 
Definition at line 546 of file sel_layer.cpp.
References COLOR, color, LAYER_PCB_BACKGROUND, LAYERNAME, m_layerPresentation, and m_layersId.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
      
  | 
  inlineprivate | 
Definition at line 572 of file sel_layer.cpp.
References m_layersId.
Referenced by onLeftGridRowSelected(), and onRightGridRowSelected().
      
  | 
  inlineprivate | 
Definition at line 586 of file sel_layer.cpp.
References layerForRow(), m_layerPairSettings, m_rightCurrRow, and setCurrentSelection().
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
      
  | 
  inlineprivate | 
Definition at line 596 of file sel_layer.cpp.
References layerForRow(), m_layerPairSettings, m_leftCurrRow, and setCurrentSelection().
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
      
  | 
  inlineprivate | 
Definition at line 574 of file sel_layer.cpp.
References m_layersId.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
      
  | 
  inlineprivate | 
Set the current layer selection.
The layer pair must be copper layers that the selector this class was constructed with knows about.
Definition at line 612 of file sel_layer.cpp.
References COLOR, m_leftCurrRow, m_leftGrid, m_rightCurrRow, m_rightGrid, and SELECT.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), onLeftGridRowSelected(), and onRightGridRowSelected().
      
  | 
  private | 
Definition at line 642 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), onLeftGridRowSelected(), and onRightGridRowSelected().
      
  | 
  private | 
Definition at line 641 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and fillLayerGrid().
      
  | 
  private | 
Definition at line 643 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), fillLayerGrid(), layerForRow(), and rowForLayer().
      
  | 
  private | 
Definition at line 647 of file sel_layer.cpp.
Referenced by onRightGridRowSelected(), and setCurrentSelection().
      
  | 
  private | 
Definition at line 644 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and setCurrentSelection().
      
  | 
  private | 
Definition at line 648 of file sel_layer.cpp.
Referenced by onLeftGridRowSelected(), and setCurrentSelection().
      
  | 
  private | 
Definition at line 645 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and setCurrentSelection().