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 325 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 327 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

◆ fillRowFromLayerPair()

◆ OnDeleteSelectedLayerPairs()

void COPPER_LAYERS_PAIR_PRESETS_UI::OnDeleteSelectedLayerPairs ( )
inline

◆ onEnableChanged()

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

◆ OnLayerPairAdded()

void COPPER_LAYERS_PAIR_PRESETS_UI::OnLayerPairAdded ( const LAYER_PAIR aLayerPair)
inline

◆ onPairActivated()

void COPPER_LAYERS_PAIR_PRESETS_UI::onPairActivated ( int  aRow)
inlineprivate

◆ onUserNameChanged()

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

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 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: