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

#include <grid_color_swatch_helpers.h>

Inheritance diagram for GRID_CELL_COLOR_SELECTOR:

Public Member Functions

 GRID_CELL_COLOR_SELECTOR (wxWindow *aParent, wxGrid *aGrid)
 
wxGridCellEditor * Clone () const override
 
void Create (wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
 
wxString GetValue () const 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

 wxDECLARE_NO_COPY_CLASS (GRID_CELL_COLOR_SELECTOR)
 

Protected Attributes

wxWindow * m_parent
 
wxGrid * m_grid
 
KIGFX::COLOR4D m_value
 

Detailed Description

Definition at line 68 of file grid_color_swatch_helpers.h.

Constructor & Destructor Documentation

◆ GRID_CELL_COLOR_SELECTOR()

GRID_CELL_COLOR_SELECTOR::GRID_CELL_COLOR_SELECTOR ( wxWindow * aParent,
wxGrid * aGrid )

Definition at line 128 of file grid_color_swatch_helpers.cpp.

References m_grid, m_parent, m_value, and UNSPECIFIED.

Referenced by Clone(), and wxDECLARE_NO_COPY_CLASS().

Member Function Documentation

◆ ApplyEdit()

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

Definition at line 194 of file grid_color_swatch_helpers.cpp.

References GetValue().

◆ BeginEdit()

void GRID_CELL_COLOR_SELECTOR::BeginEdit ( int aRow,
int aCol,
wxGrid * aGrid )
override

◆ Clone()

wxGridCellEditor * GRID_CELL_COLOR_SELECTOR::Clone ( ) const
override

Definition at line 136 of file grid_color_swatch_helpers.cpp.

References GRID_CELL_COLOR_SELECTOR(), m_grid, and m_parent.

◆ Create()

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

Definition at line 142 of file grid_color_swatch_helpers.cpp.

◆ EndEdit()

bool GRID_CELL_COLOR_SELECTOR::EndEdit ( int row,
int col,
const wxGrid * grid,
const wxString & oldval,
wxString * newval )
override

Definition at line 184 of file grid_color_swatch_helpers.cpp.

References GetValue(), and grid.

◆ GetValue()

wxString GRID_CELL_COLOR_SELECTOR::GetValue ( ) const
override

Definition at line 152 of file grid_color_swatch_helpers.cpp.

References m_value.

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

◆ Reset()

void GRID_CELL_COLOR_SELECTOR::Reset ( )
override

Definition at line 200 of file grid_color_swatch_helpers.cpp.

◆ wxDECLARE_NO_COPY_CLASS()

GRID_CELL_COLOR_SELECTOR::wxDECLARE_NO_COPY_CLASS ( GRID_CELL_COLOR_SELECTOR )
protected

Member Data Documentation

◆ m_grid

wxGrid* GRID_CELL_COLOR_SELECTOR::m_grid
protected

Definition at line 85 of file grid_color_swatch_helpers.h.

Referenced by BeginEdit(), Clone(), and GRID_CELL_COLOR_SELECTOR().

◆ m_parent

wxWindow* GRID_CELL_COLOR_SELECTOR::m_parent
protected

Definition at line 84 of file grid_color_swatch_helpers.h.

Referenced by BeginEdit(), Clone(), and GRID_CELL_COLOR_SELECTOR().

◆ m_value

KIGFX::COLOR4D GRID_CELL_COLOR_SELECTOR::m_value
protected

Definition at line 86 of file grid_color_swatch_helpers.h.

Referenced by BeginEdit(), GetValue(), and GRID_CELL_COLOR_SELECTOR().


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