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

#include <drc_re_layers_selection_choice_popup.h>

Inheritance diagram for DRC_RE_LAYER_SELECTION_CHOICE_POPUP:

Public Member Functions

 DRC_RE_LAYER_SELECTION_CHOICE_POPUP ()=default
 
void Init () override
 
bool Create (wxWindow *aParent) override
 
wxWindow * GetControl () override
 
void SetStringValue (const wxString &value) override
 
wxString GetStringValue () const override
 
wxString GetSelectedItemsString ()
 
std::vector< PCB_LAYER_IDGetSelectedLayers (const std::vector< PCB_LAYER_ID > &aAllLayerIds, const std::function< wxString(PCB_LAYER_ID)> &nameGetter)
 
void SetSelections (const std::vector< PCB_LAYER_ID > &aLayerIDs, const std::function< wxString(PCB_LAYER_ID)> &aNameGetter)
 
void PopulateWithLayerIDs (const std::vector< PCB_LAYER_ID > &aLayerIDs, const std::function< wxString(PCB_LAYER_ID)> &aNameGetter)
 

Private Member Functions

void populate (const wxArrayString &items)
 

Private Attributes

wxCheckListBox * m_checkListBox
 
wxString m_selectedItemsString
 

Detailed Description

Definition at line 31 of file drc_re_layers_selection_choice_popup.h.

Constructor & Destructor Documentation

◆ DRC_RE_LAYER_SELECTION_CHOICE_POPUP()

DRC_RE_LAYER_SELECTION_CHOICE_POPUP::DRC_RE_LAYER_SELECTION_CHOICE_POPUP ( )
default

Member Function Documentation

◆ Create()

bool DRC_RE_LAYER_SELECTION_CHOICE_POPUP::Create ( wxWindow * aParent)
override

Definition at line 35 of file drc_re_layers_selection_choice_popup.cpp.

References m_checkListBox.

◆ GetControl()

wxWindow * DRC_RE_LAYER_SELECTION_CHOICE_POPUP::GetControl ( )
override

Definition at line 42 of file drc_re_layers_selection_choice_popup.cpp.

References m_checkListBox.

◆ GetSelectedItemsString()

wxString DRC_RE_LAYER_SELECTION_CHOICE_POPUP::GetSelectedItemsString ( )

Definition at line 67 of file drc_re_layers_selection_choice_popup.cpp.

References m_checkListBox, and SetStringValue().

Referenced by GetSelectedLayers().

◆ GetSelectedLayers()

std::vector< PCB_LAYER_ID > DRC_RE_LAYER_SELECTION_CHOICE_POPUP::GetSelectedLayers ( const std::vector< PCB_LAYER_ID > & aAllLayerIds,
const std::function< wxString(PCB_LAYER_ID)> & nameGetter )

Definition at line 88 of file drc_re_layers_selection_choice_popup.cpp.

References GetSelectedItemsString().

◆ GetStringValue()

wxString DRC_RE_LAYER_SELECTION_CHOICE_POPUP::GetStringValue ( ) const
override

Definition at line 54 of file drc_re_layers_selection_choice_popup.cpp.

References m_selectedItemsString.

◆ Init()

void DRC_RE_LAYER_SELECTION_CHOICE_POPUP::Init ( )
override

Definition at line 29 of file drc_re_layers_selection_choice_popup.cpp.

References m_checkListBox.

◆ populate()

void DRC_RE_LAYER_SELECTION_CHOICE_POPUP::populate ( const wxArrayString & items)
private

Definition at line 60 of file drc_re_layers_selection_choice_popup.cpp.

References m_checkListBox.

Referenced by PopulateWithLayerIDs().

◆ PopulateWithLayerIDs()

void DRC_RE_LAYER_SELECTION_CHOICE_POPUP::PopulateWithLayerIDs ( const std::vector< PCB_LAYER_ID > & aLayerIDs,
const std::function< wxString(PCB_LAYER_ID)> & aNameGetter )

Definition at line 138 of file drc_re_layers_selection_choice_popup.cpp.

References populate().

◆ SetSelections()

void DRC_RE_LAYER_SELECTION_CHOICE_POPUP::SetSelections ( const std::vector< PCB_LAYER_ID > & aLayerIDs,
const std::function< wxString(PCB_LAYER_ID)> & aNameGetter )

Definition at line 112 of file drc_re_layers_selection_choice_popup.cpp.

References index, and m_checkListBox.

◆ SetStringValue()

void DRC_RE_LAYER_SELECTION_CHOICE_POPUP::SetStringValue ( const wxString & value)
override

Definition at line 48 of file drc_re_layers_selection_choice_popup.cpp.

References m_selectedItemsString.

Referenced by GetSelectedItemsString().

Member Data Documentation

◆ m_checkListBox

wxCheckListBox* DRC_RE_LAYER_SELECTION_CHOICE_POPUP::m_checkListBox
private

◆ m_selectedItemsString

wxString DRC_RE_LAYER_SELECTION_CHOICE_POPUP::m_selectedItemsString
private

Definition at line 63 of file drc_re_layers_selection_choice_popup.h.

Referenced by GetStringValue(), and SetStringValue().


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