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

#include <grid_combobox.h>

Inheritance diagram for GRID_CELL_COMBOBOX:

Public Member Functions

 GRID_CELL_COMBOBOX (const wxArrayString &names)
 
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 aRow, int aCol, const wxGrid *, const wxString &, wxString *aNewVal) override
 
void ApplyEdit (int aRow, int aCol, wxGrid *aGrid) override
 
void Reset () override
 

Protected Member Functions

wxComboBox * Combo () const
 
void onComboCloseUp (wxCommandEvent &aEvent)
 
void onComboDropDown (wxCommandEvent &aEvent)
 
 wxDECLARE_NO_COPY_CLASS (GRID_CELL_COMBOBOX)
 

Protected Attributes

wxArrayString m_names
 
wxString m_value
 

Detailed Description

Definition at line 35 of file grid_combobox.h.

Constructor & Destructor Documentation

◆ GRID_CELL_COMBOBOX()

GRID_CELL_COMBOBOX::GRID_CELL_COMBOBOX ( const wxArrayString &  names)

Definition at line 37 of file grid_combobox.cpp.

Member Function Documentation

◆ ApplyEdit()

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

Definition at line 128 of file grid_combobox.cpp.

References m_value.

◆ BeginEdit()

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

Definition at line 75 of file grid_combobox.cpp.

References Combo(), m_value, onComboCloseUp(), and onComboDropDown().

◆ Clone()

wxGridCellEditor * GRID_CELL_COMBOBOX::Clone ( ) const
override

Definition at line 43 of file grid_combobox.cpp.

References m_names.

◆ Combo()

wxComboBox * GRID_CELL_COMBOBOX::Combo ( ) const
inlineprotected

Definition at line 53 of file grid_combobox.h.

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

◆ Create()

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

Definition at line 49 of file grid_combobox.cpp.

References m_names.

◆ EndEdit()

bool GRID_CELL_COMBOBOX::EndEdit ( int  aRow,
int  aCol,
const wxGrid *  ,
const wxString &  ,
wxString *  aNewVal 
)
override

Definition at line 112 of file grid_combobox.cpp.

References Combo(), and m_value.

◆ GetValue()

wxString GRID_CELL_COMBOBOX::GetValue ( ) const
override

Definition at line 57 of file grid_combobox.cpp.

References Combo().

◆ onComboCloseUp()

void GRID_CELL_COMBOBOX::onComboCloseUp ( wxCommandEvent &  aEvent)
protected

Definition at line 149 of file grid_combobox.cpp.

Referenced by BeginEdit().

◆ onComboDropDown()

void GRID_CELL_COMBOBOX::onComboDropDown ( wxCommandEvent &  aEvent)
protected

Definition at line 139 of file grid_combobox.cpp.

Referenced by BeginEdit().

◆ Reset()

void GRID_CELL_COMBOBOX::Reset ( )
override

Definition at line 134 of file grid_combobox.cpp.

◆ SetSize()

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

Definition at line 62 of file grid_combobox.cpp.

References Combo().

◆ wxDECLARE_NO_COPY_CLASS()

GRID_CELL_COMBOBOX::wxDECLARE_NO_COPY_CLASS ( GRID_CELL_COMBOBOX  )
protected

Member Data Documentation

◆ m_names

wxArrayString GRID_CELL_COMBOBOX::m_names
protected

Definition at line 58 of file grid_combobox.h.

Referenced by Clone(), and Create().

◆ m_value

wxString GRID_CELL_COMBOBOX::m_value
protected

Definition at line 59 of file grid_combobox.h.

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


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