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

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_PRESENTATIONm_layerPresentation
 
LAYER_PAIR_SETTINGSm_layerPairSettings
 
std::vector< PCB_LAYER_IDm_layersId
 
wxGrid & m_leftGrid
 
wxGrid & m_rightGrid
 
int m_leftCurrRow = -1
 
int m_rightCurrRow = -1
 

Detailed Description

Class that manages the UI for the copper layer pair selection (left and right grids).

Definition at line 501 of file sel_layer.cpp.

Member Enumeration Documentation

◆ CU_LAYER_COLNUMS

Enumerator
SELECT 
COLOR 
LAYERNAME 

Definition at line 503 of file sel_layer.cpp.

Constructor & Destructor Documentation

◆ COPPER_LAYERS_PAIR_SELECTION_UI()

Member Function Documentation

◆ configureGrid()

void COPPER_LAYERS_PAIR_SELECTION_UI::configureGrid ( wxGrid &  aGrid)
inlineprivate

Definition at line 554 of file sel_layer.cpp.

References SELECT.

Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().

◆ fillLayerGrid()

void COPPER_LAYERS_PAIR_SELECTION_UI::fillLayerGrid ( wxGrid &  aGrid)
inlineprivate

◆ layerForRow()

PCB_LAYER_ID COPPER_LAYERS_PAIR_SELECTION_UI::layerForRow ( int  aRow)
inlineprivate

Definition at line 587 of file sel_layer.cpp.

References m_layersId.

Referenced by onLeftGridRowSelected(), and onRightGridRowSelected().

◆ onLeftGridRowSelected()

void COPPER_LAYERS_PAIR_SELECTION_UI::onLeftGridRowSelected ( int  aRow)
inlineprivate

◆ onRightGridRowSelected()

void COPPER_LAYERS_PAIR_SELECTION_UI::onRightGridRowSelected ( int  aRow)
inlineprivate

◆ rowForLayer()

int COPPER_LAYERS_PAIR_SELECTION_UI::rowForLayer ( PCB_LAYER_ID  aLayerId)
inlineprivate

Definition at line 589 of file sel_layer.cpp.

References m_layersId.

Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().

◆ setCurrentSelection()

void COPPER_LAYERS_PAIR_SELECTION_UI::setCurrentSelection ( int  aLeftRow,
int  aRightRow 
)
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 629 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().

Member Data Documentation

◆ m_layerPairSettings

LAYER_PAIR_SETTINGS& COPPER_LAYERS_PAIR_SELECTION_UI::m_layerPairSettings
private

◆ m_layerPresentation

PCB_LAYER_PRESENTATION& COPPER_LAYERS_PAIR_SELECTION_UI::m_layerPresentation
private

Definition at line 658 of file sel_layer.cpp.

Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and fillLayerGrid().

◆ m_layersId

std::vector<PCB_LAYER_ID> COPPER_LAYERS_PAIR_SELECTION_UI::m_layersId
private

◆ m_leftCurrRow

int COPPER_LAYERS_PAIR_SELECTION_UI::m_leftCurrRow = -1
private

Definition at line 664 of file sel_layer.cpp.

Referenced by onRightGridRowSelected(), and setCurrentSelection().

◆ m_leftGrid

wxGrid& COPPER_LAYERS_PAIR_SELECTION_UI::m_leftGrid
private

Definition at line 661 of file sel_layer.cpp.

Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and setCurrentSelection().

◆ m_rightCurrRow

int COPPER_LAYERS_PAIR_SELECTION_UI::m_rightCurrRow = -1
private

Definition at line 665 of file sel_layer.cpp.

Referenced by onLeftGridRowSelected(), and setCurrentSelection().

◆ m_rightGrid

wxGrid& COPPER_LAYERS_PAIR_SELECTION_UI::m_rightGrid
private

Definition at line 662 of file sel_layer.cpp.

Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and setCurrentSelection().


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