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

#include <grid_layer_box_helpers.h>

Inheritance diagram for GRID_CELL_LAYER_SELECTOR:

Public Member Functions

 GRID_CELL_LAYER_SELECTOR (PCB_BASE_FRAME *aFrame, const LSET &forbiddenLayers, bool aShowNonActivated=false)
 
wxGridCellEditor * Clone () const override
 
void Create (wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
 
wxString GetValue () const override
 
void SetSize (const wxRect &aRect) override
 
void BeginEdit (int aRow, int aCol, wxGrid *aGrid) override
 
bool EndEdit (int, int, const wxGrid *, const wxString &, wxString *newval) override
 
void ApplyEdit (int aRow, int aCol, wxGrid *aGrid) override
 
void Reset () override
 

Protected Member Functions

void onComboDropDown (wxCommandEvent &aEvent)
 
void onComboCloseUp (wxCommandEvent &aEvent)
 
PCB_LAYER_BOX_SELECTORLayerBox () const
 
 wxDECLARE_NO_COPY_CLASS (GRID_CELL_LAYER_SELECTOR)
 

Protected Attributes

PCB_BASE_FRAMEm_frame
 
LSET m_mask
 
bool m_showNonActivated
 
int m_value
 

Detailed Description

Definition at line 58 of file grid_layer_box_helpers.h.

Constructor & Destructor Documentation

◆ GRID_CELL_LAYER_SELECTOR()

GRID_CELL_LAYER_SELECTOR::GRID_CELL_LAYER_SELECTOR ( PCB_BASE_FRAME * aFrame,
const LSET & forbiddenLayers,
bool aShowNonActivated = false )

Definition at line 108 of file grid_layer_box_helpers.cpp.

References m_frame, m_mask, m_showNonActivated, and m_value.

Referenced by Clone(), and wxDECLARE_NO_COPY_CLASS().

Member Function Documentation

◆ ApplyEdit()

void GRID_CELL_LAYER_SELECTOR::ApplyEdit ( int aRow,
int aCol,
wxGrid * aGrid )
override

Definition at line 231 of file grid_layer_box_helpers.cpp.

References m_value.

◆ BeginEdit()

◆ Clone()

wxGridCellEditor * GRID_CELL_LAYER_SELECTOR::Clone ( ) const
override

Definition at line 118 of file grid_layer_box_helpers.cpp.

References GRID_CELL_LAYER_SELECTOR(), m_frame, and m_mask.

◆ Create()

void GRID_CELL_LAYER_SELECTOR::Create ( wxWindow * aParent,
wxWindowID aId,
wxEvtHandler * aEventHandler )
override

◆ EndEdit()

bool GRID_CELL_LAYER_SELECTOR::EndEdit ( int ,
int ,
const wxGrid * ,
const wxString & ,
wxString * newval )
override

◆ GetValue()

wxString GRID_CELL_LAYER_SELECTOR::GetValue ( ) const
override

◆ LayerBox()

PCB_LAYER_BOX_SELECTOR * GRID_CELL_LAYER_SELECTOR::LayerBox ( ) const
inlineprotected

Definition at line 81 of file grid_layer_box_helpers.h.

Referenced by BeginEdit(), Create(), EndEdit(), GetValue(), Reset(), and SetSize().

◆ onComboCloseUp()

void GRID_CELL_LAYER_SELECTOR::onComboCloseUp ( wxCommandEvent & aEvent)
protected

Definition at line 256 of file grid_layer_box_helpers.cpp.

Referenced by BeginEdit().

◆ onComboDropDown()

void GRID_CELL_LAYER_SELECTOR::onComboDropDown ( wxCommandEvent & aEvent)
protected

Definition at line 243 of file grid_layer_box_helpers.cpp.

Referenced by BeginEdit().

◆ Reset()

void GRID_CELL_LAYER_SELECTOR::Reset ( )
override

◆ SetSize()

void GRID_CELL_LAYER_SELECTOR::SetSize ( const wxRect & aRect)
override

Definition at line 156 of file grid_layer_box_helpers.cpp.

References LayerBox().

◆ wxDECLARE_NO_COPY_CLASS()

GRID_CELL_LAYER_SELECTOR::wxDECLARE_NO_COPY_CLASS ( GRID_CELL_LAYER_SELECTOR )
protected

Member Data Documentation

◆ m_frame

PCB_BASE_FRAME* GRID_CELL_LAYER_SELECTOR::m_frame
protected

Definition at line 86 of file grid_layer_box_helpers.h.

Referenced by BeginEdit(), Clone(), Create(), GetValue(), and GRID_CELL_LAYER_SELECTOR().

◆ m_mask

LSET GRID_CELL_LAYER_SELECTOR::m_mask
protected

Definition at line 87 of file grid_layer_box_helpers.h.

Referenced by BeginEdit(), Clone(), Create(), and GRID_CELL_LAYER_SELECTOR().

◆ m_showNonActivated

bool GRID_CELL_LAYER_SELECTOR::m_showNonActivated
protected

Definition at line 88 of file grid_layer_box_helpers.h.

Referenced by Create(), and GRID_CELL_LAYER_SELECTOR().

◆ m_value

int GRID_CELL_LAYER_SELECTOR::m_value
protected

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