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

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_PRESENTATIONm_layerPresentation
 
WX_GRIDm_grid
 
LAYER_PAIR_SETTINGSm_layerPairSettings
 
std::vector< std::unique_ptr< wxBitmap > > m_swatches
 
std::unique_ptr< WX_GRID_AUTOSIZERm_autosizer
 

Detailed Description

Class that manages the UI for the copper layer pair presets list based on an injected layer pair store.

Definition at line 326 of file sel_layer.cpp.

Member Enumeration Documentation

◆ COLNUMS

enum class COPPER_LAYERS_PAIR_PRESETS_UI::COLNUMS
strongprivate
Enumerator
ENABLED 
SWATCH 
LAYERNAMES 
USERNAME 

Definition at line 328 of file sel_layer.cpp.

Constructor & Destructor Documentation

◆ COPPER_LAYERS_PAIR_PRESETS_UI()

COPPER_LAYERS_PAIR_PRESETS_UI::COPPER_LAYERS_PAIR_PRESETS_UI ( WX_GRID & aGrid,
PCB_LAYER_PRESENTATION & aPresentation,
LAYER_PAIR_SETTINGS & aLayerPairSettings )
inline

Member Function Documentation

◆ configureGrid()

void COPPER_LAYERS_PAIR_PRESETS_UI::configureGrid ( )
inlineprivate

Definition at line 409 of file sel_layer.cpp.

References ENABLED, m_grid, and USERNAME.

Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().

◆ fillGridFromStore()

void COPPER_LAYERS_PAIR_PRESETS_UI::fillGridFromStore ( )
inlineprivate

Definition at line 421 of file sel_layer.cpp.

References fillRowFromLayerPair(), m_grid, and m_layerPairSettings.

Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().

◆ fillRowFromLayerPair()

void COPPER_LAYERS_PAIR_PRESETS_UI::fillRowFromLayerPair ( int aRow,
const LAYER_PAIR_INFO & aLayerPairInfo )
inlineprivate

◆ OnDeleteSelectedLayerPairs()

void COPPER_LAYERS_PAIR_PRESETS_UI::OnDeleteSelectedLayerPairs ( )
inline

Definition at line 396 of file sel_layer.cpp.

References LAYER_PAIR_INFO::GetLayerPair(), m_grid, and m_layerPairSettings.

◆ onEnableChanged()

void COPPER_LAYERS_PAIR_PRESETS_UI::onEnableChanged ( int aRow,
bool aNewValue )
inlineprivate

Definition at line 472 of file sel_layer.cpp.

References m_layerPairSettings, and LAYER_PAIR_INFO::SetEnabled().

Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().

◆ OnLayerPairAdded()

void COPPER_LAYERS_PAIR_PRESETS_UI::OnLayerPairAdded ( const LAYER_PAIR & aLayerPair)
inline

Definition at line 383 of file sel_layer.cpp.

References fillRowFromLayerPair(), m_grid, and m_layerPairSettings.

◆ onPairActivated()

void COPPER_LAYERS_PAIR_PRESETS_UI::onPairActivated ( int aRow)
inlineprivate

Definition at line 478 of file sel_layer.cpp.

References LAYER_PAIR_INFO::GetLayerPair(), and m_layerPairSettings.

Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().

◆ onUserNameChanged()

void COPPER_LAYERS_PAIR_PRESETS_UI::onUserNameChanged ( int aRow,
const wxString & aNewValue )
inlineprivate

Definition at line 466 of file sel_layer.cpp.

References m_layerPairSettings, and LAYER_PAIR_INFO::SetName().

Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().

Member Data Documentation

◆ m_autosizer

std::unique_ptr<WX_GRID_AUTOSIZER> COPPER_LAYERS_PAIR_PRESETS_UI::m_autosizer
private

Definition at line 493 of file sel_layer.cpp.

Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().

◆ m_grid

WX_GRID& COPPER_LAYERS_PAIR_PRESETS_UI::m_grid
private

◆ m_layerPairSettings

LAYER_PAIR_SETTINGS& COPPER_LAYERS_PAIR_PRESETS_UI::m_layerPairSettings
private

◆ m_layerPresentation

PCB_LAYER_PRESENTATION& COPPER_LAYERS_PAIR_PRESETS_UI::m_layerPresentation
private

Definition at line 486 of file sel_layer.cpp.

Referenced by COPPER_LAYERS_PAIR_PRESETS_UI(), and fillRowFromLayerPair().

◆ m_swatches

std::vector<std::unique_ptr<wxBitmap> > COPPER_LAYERS_PAIR_PRESETS_UI::m_swatches
private

Definition at line 491 of file sel_layer.cpp.

Referenced by fillRowFromLayerPair().


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