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, LSET forbiddenLayers)
 
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
 
int m_value
 

Detailed Description

Definition at line 55 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,
LSET  forbiddenLayers 
)

Definition at line 106 of file grid_layer_box_helpers.cpp.

Member Function Documentation

◆ ApplyEdit()

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

Definition at line 225 of file grid_layer_box_helpers.cpp.

References m_value.

◆ BeginEdit()

◆ Clone()

wxGridCellEditor * GRID_CELL_LAYER_SELECTOR::Clone ( ) const
override

Definition at line 114 of file grid_layer_box_helpers.cpp.

References 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 77 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 250 of file grid_layer_box_helpers.cpp.

Referenced by BeginEdit().

◆ onComboDropDown()

void GRID_CELL_LAYER_SELECTOR::onComboDropDown ( wxCommandEvent &  aEvent)
protected

Definition at line 237 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 151 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 82 of file grid_layer_box_helpers.h.

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

◆ m_mask

LSET GRID_CELL_LAYER_SELECTOR::m_mask
protected

Definition at line 83 of file grid_layer_box_helpers.h.

Referenced by Clone(), and Create().

◆ m_value

int GRID_CELL_LAYER_SELECTOR::m_value
protected

Definition at line 84 of file grid_layer_box_helpers.h.

Referenced by ApplyEdit(), BeginEdit(), EndEdit(), and Reset().


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