KiCad PCB EDA Suite
|
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_PRESENTATION & | m_layerPresentation |
WX_GRID & | m_grid |
LAYER_PAIR_SETTINGS & | m_layerPairSettings |
std::vector< std::unique_ptr< wxBitmap > > | m_swatches |
std::unique_ptr< WX_GRID_AUTOSIZER > | m_autosizer |
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.
|
strongprivate |
Enumerator | |
---|---|
ENABLED | |
SWATCH | |
LAYERNAMES | |
USERNAME |
Definition at line 327 of file sel_layer.cpp.
|
inline |
Definition at line 336 of file sel_layer.cpp.
References configureGrid(), ENABLED, fillGridFromStore(), LAYERNAMES, m_autosizer, m_grid, onEnableChanged(), onPairActivated(), onUserNameChanged(), SWATCH, and USERNAME.
|
inlineprivate |
Definition at line 409 of file sel_layer.cpp.
References ENABLED, m_grid, and USERNAME.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
|
inlineprivate |
Definition at line 421 of file sel_layer.cpp.
References fillRowFromLayerPair(), LAYER_PAIR_SETTINGS::GetLayerPairs(), m_grid, and m_layerPairSettings.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
|
inlineprivate |
Definition at line 435 of file sel_layer.cpp.
References LAYER_PRESENTATION::CreateLayerPairIcon(), ENABLED, LAYER_PAIR::GetLayerA(), LAYER_PAIR::GetLayerB(), LAYER_PAIR_INFO::GetLayerPair(), PCB_LAYER_PRESENTATION::getLayerPairName(), LAYER_PAIR_INFO::GetName(), LAYER_PAIR_INFO::IsEnabled(), KiIconScale(), LAYERNAMES, m_grid, m_layerPresentation, m_swatches, SWATCH, and USERNAME.
Referenced by fillGridFromStore(), and OnLayerPairAdded().
|
inline |
Definition at line 395 of file sel_layer.cpp.
References LAYER_PAIR_INFO::GetLayerPair(), LAYER_PAIR_SETTINGS::GetLayerPairs(), m_grid, m_layerPairSettings, and LAYER_PAIR_SETTINGS::RemoveLayerPair().
Referenced by SELECT_COPPER_LAYERS_PAIR_DIALOG::SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
inlineprivate |
Definition at line 472 of file sel_layer.cpp.
References LAYER_PAIR_SETTINGS::GetLayerPairs(), m_layerPairSettings, and LAYER_PAIR_INFO::SetEnabled().
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
|
inline |
Definition at line 382 of file sel_layer.cpp.
References LAYER_PAIR_SETTINGS::AddLayerPair(), fillRowFromLayerPair(), m_grid, and m_layerPairSettings.
Referenced by SELECT_COPPER_LAYERS_PAIR_DIALOG::SELECT_COPPER_LAYERS_PAIR_DIALOG().
|
inlineprivate |
Definition at line 478 of file sel_layer.cpp.
References LAYER_PAIR_INFO::GetLayerPair(), LAYER_PAIR_SETTINGS::GetLayerPairs(), m_layerPairSettings, and LAYER_PAIR_SETTINGS::SetCurrentLayerPair().
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
|
inlineprivate |
Definition at line 466 of file sel_layer.cpp.
References LAYER_PAIR_SETTINGS::GetLayerPairs(), m_layerPairSettings, and LAYER_PAIR_INFO::SetName().
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
|
private |
Definition at line 493 of file sel_layer.cpp.
Referenced by COPPER_LAYERS_PAIR_PRESETS_UI().
|
private |
Definition at line 487 of file sel_layer.cpp.
Referenced by configureGrid(), COPPER_LAYERS_PAIR_PRESETS_UI(), fillGridFromStore(), fillRowFromLayerPair(), OnDeleteSelectedLayerPairs(), and OnLayerPairAdded().
|
private |
Definition at line 488 of file sel_layer.cpp.
Referenced by fillGridFromStore(), OnDeleteSelectedLayerPairs(), onEnableChanged(), OnLayerPairAdded(), onPairActivated(), and onUserNameChanged().
|
private |
Definition at line 486 of file sel_layer.cpp.
Referenced by fillRowFromLayerPair().
|
private |
Definition at line 491 of file sel_layer.cpp.
Referenced by fillRowFromLayerPair().