KiCad PCB EDA Suite
|
Display a layer list in a wxBitmapComboBox. More...
#include <layer_box_selector.h>
Public Member Functions | |
LAYER_BOX_SELECTOR (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr) | |
~LAYER_BOX_SELECTOR () override | |
int | GetLayerSelection () const |
int | SetLayerSelection (int layer) |
virtual void | Resync ()=0 |
bool | SetLayersHotkeys (bool value) |
Protected Member Functions | |
virtual bool | isLayerEnabled (int aLayer) const =0 |
Return true if the layer id is enabled (i.e. is it should be displayed). | |
Protected Attributes | |
bool | m_layerhotkeys |
Display a layer list in a wxBitmapComboBox.
Definition at line 54 of file layer_box_selector.h.
LAYER_BOX_SELECTOR::LAYER_BOX_SELECTOR | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition, | ||
const wxSize & | size = wxDefaultSize, | ||
int | n = 0, | ||
const wxString | choices[] = nullptr ) |
Definition at line 50 of file layer_box_selector.cpp.
References LAYER_SELECTOR::LAYER_SELECTOR().
Referenced by GBR_LAYER_BOX_SELECTOR::GBR_LAYER_BOX_SELECTOR(), and PCB_LAYER_BOX_SELECTOR::PCB_LAYER_BOX_SELECTOR().
|
override |
Definition at line 62 of file layer_box_selector.cpp.
int LAYER_BOX_SELECTOR::GetLayerSelection | ( | ) | const |
Definition at line 71 of file layer_box_selector.cpp.
References UNDEFINED_LAYER.
Referenced by GRID_CELL_LAYER_SELECTOR::EndEdit().
|
protectedpure virtualinherited |
Return true if the layer id is enabled (i.e. is it should be displayed).
Implemented in GBR_LAYER_BOX_SELECTOR, and PCB_LAYER_BOX_SELECTOR.
|
pure virtual |
Implemented in GBR_LAYER_BOX_SELECTOR, and PCB_LAYER_BOX_SELECTOR.
int LAYER_BOX_SELECTOR::SetLayerSelection | ( | int | layer | ) |
Definition at line 80 of file layer_box_selector.cpp.
Referenced by GRID_CELL_LAYER_SELECTOR::BeginEdit(), and GRID_CELL_LAYER_SELECTOR::Reset().
|
inherited |
Definition at line 43 of file layer_box_selector.cpp.
References m_layerhotkeys.
Referenced by GRID_CELL_LAYER_SELECTOR::Create().
|
protectedinherited |
Definition at line 47 of file layer_box_selector.h.
Referenced by GBR_LAYER_BOX_SELECTOR::GBR_LAYER_BOX_SELECTOR(), LAYER_SELECTOR(), PCB_LAYER_BOX_SELECTOR::Resync(), and SetLayersHotkeys().