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 501 of file sel_layer.cpp.
|
strongprivate |
Enumerator | |
---|---|
SELECT | |
COLOR | |
LAYERNAME |
Definition at line 503 of file sel_layer.cpp.
|
inline |
Definition at line 511 of file sel_layer.cpp.
References configureGrid(), fillLayerGrid(), LAYER_PAIR_SETTINGS::GetCurrentLayerPair(), LAYER_PAIR::GetLayerA(), LAYER_PAIR::GetLayerB(), PCB_LAYER_PRESENTATION::getOrderedEnabledLayers(), IsCopperLayer(), m_layerPairSettings, m_layerPresentation, m_layersId, m_leftGrid, m_rightGrid, onLeftGridRowSelected(), onRightGridRowSelected(), rowForLayer(), and setCurrentSelection().
|
inlineprivate |
Definition at line 554 of file sel_layer.cpp.
References SELECT.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
|
inlineprivate |
Definition at line 560 of file sel_layer.cpp.
References color, COLOR, PCB_LAYER_PRESENTATION::getLayerColor(), PCB_LAYER_PRESENTATION::getLayerName(), LAYER_PCB_BACKGROUND, LAYERNAME, m_layerPresentation, m_layersId, and KIGFX::COLOR4D::ToColour().
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
|
inlineprivate |
Definition at line 587 of file sel_layer.cpp.
References m_layersId.
Referenced by onLeftGridRowSelected(), and onRightGridRowSelected().
|
inlineprivate |
Definition at line 603 of file sel_layer.cpp.
References layerForRow(), m_layerPairSettings, m_rightCurrRow, LAYER_PAIR_SETTINGS::SetCurrentLayerPair(), and setCurrentSelection().
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
|
inlineprivate |
Definition at line 613 of file sel_layer.cpp.
References layerForRow(), m_layerPairSettings, m_leftCurrRow, LAYER_PAIR_SETTINGS::SetCurrentLayerPair(), and setCurrentSelection().
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI().
|
inlineprivate |
Definition at line 589 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 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().
|
private |
Definition at line 659 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), onLeftGridRowSelected(), and onRightGridRowSelected().
|
private |
Definition at line 658 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and fillLayerGrid().
|
private |
Definition at line 660 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), fillLayerGrid(), layerForRow(), and rowForLayer().
|
private |
Definition at line 664 of file sel_layer.cpp.
Referenced by onRightGridRowSelected(), and setCurrentSelection().
|
private |
Definition at line 661 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and setCurrentSelection().
|
private |
Definition at line 665 of file sel_layer.cpp.
Referenced by onLeftGridRowSelected(), and setCurrentSelection().
|
private |
Definition at line 662 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_SELECTION_UI(), and setCurrentSelection().