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

#include <drc_re_layers_selection_combo.h>

Inheritance diagram for DRC_RE_LAYER_SELECTION_COMBO:

Public Member Functions

 DRC_RE_LAYER_SELECTION_COMBO (wxWindow *aParent, const std::vector< PCB_LAYER_ID > &aLayerIDs, const std::function< wxString(PCB_LAYER_ID)> &aNameGetter)
 
 ~DRC_RE_LAYER_SELECTION_COMBO ()
 
wxString GetSelectedItemsString ()
 
std::vector< PCB_LAYER_IDGetSelectedLayers ()
 
void SetItemsSelected (const std::vector< PCB_LAYER_ID > &aSelectedLayers)
 

Private Member Functions

void onPopupClose (wxCommandEvent &aEvent)
 
void onKeyDown (wxKeyEvent &aEvent)
 
void onMouseClick (wxMouseEvent &aEvent)
 

Private Attributes

DRC_RE_LAYER_SELECTION_CHOICE_POPUPm_popup
 
std::vector< PCB_LAYER_IDm_layerIDs
 
std::function< wxString(PCB_LAYER_ID)> m_nameGetter
 

Detailed Description

Definition at line 30 of file drc_re_layers_selection_combo.h.

Constructor & Destructor Documentation

◆ DRC_RE_LAYER_SELECTION_COMBO()

DRC_RE_LAYER_SELECTION_COMBO::DRC_RE_LAYER_SELECTION_COMBO ( wxWindow * aParent,
const std::vector< PCB_LAYER_ID > & aLayerIDs,
const std::function< wxString(PCB_LAYER_ID)> & aNameGetter )

◆ ~DRC_RE_LAYER_SELECTION_COMBO()

DRC_RE_LAYER_SELECTION_COMBO::~DRC_RE_LAYER_SELECTION_COMBO ( )

Definition at line 47 of file drc_re_layers_selection_combo.cpp.

References onKeyDown(), onMouseClick(), and onPopupClose().

Member Function Documentation

◆ GetSelectedItemsString()

wxString DRC_RE_LAYER_SELECTION_COMBO::GetSelectedItemsString ( )

Definition at line 55 of file drc_re_layers_selection_combo.cpp.

References m_popup.

◆ GetSelectedLayers()

std::vector< PCB_LAYER_ID > DRC_RE_LAYER_SELECTION_COMBO::GetSelectedLayers ( )

Definition at line 61 of file drc_re_layers_selection_combo.cpp.

References m_layerIDs, m_nameGetter, and m_popup.

◆ onKeyDown()

void DRC_RE_LAYER_SELECTION_COMBO::onKeyDown ( wxKeyEvent & aEvent)
private

◆ onMouseClick()

void DRC_RE_LAYER_SELECTION_COMBO::onMouseClick ( wxMouseEvent & aEvent)
private

◆ onPopupClose()

void DRC_RE_LAYER_SELECTION_COMBO::onPopupClose ( wxCommandEvent & aEvent)
private

◆ SetItemsSelected()

void DRC_RE_LAYER_SELECTION_COMBO::SetItemsSelected ( const std::vector< PCB_LAYER_ID > & aSelectedLayers)

Definition at line 67 of file drc_re_layers_selection_combo.cpp.

References m_nameGetter, and m_popup.

Member Data Documentation

◆ m_layerIDs

std::vector<PCB_LAYER_ID> DRC_RE_LAYER_SELECTION_COMBO::m_layerIDs
private

◆ m_nameGetter

std::function<wxString( PCB_LAYER_ID )> DRC_RE_LAYER_SELECTION_COMBO::m_nameGetter
private

◆ m_popup


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