20#ifndef GRID_COMBOBOX_H
21#define GRID_COMBOBOX_H
24#include <wx/combobox.h>
25#include <wx/generic/gridctrl.h>
26#include <wx/generic/grideditors.h>
38 wxGridCellEditor*
Clone()
const override;
39 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
43 void SetSize(
const wxRect& aRect )
override;
45 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
46 bool EndEdit(
int aRow,
int aCol,
const wxGrid*,
const wxString&, wxString* aNewVal )
override;
47 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
48 void Reset()
override;
51 wxComboBox*
Combo()
const {
return static_cast<wxComboBox*
>( m_control ); }
53 void onComboCloseUp( wxCommandEvent& aEvent );
54 void onComboDropDown( wxCommandEvent& aEvent );
bool EndEdit(int aRow, int aCol, const wxGrid *, const wxString &, wxString *aNewVal) override
GRID_CELL_COMBOBOX(const wxArrayString &names)
~GRID_CELL_COMBOBOX() override
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
wxString GetValue() const override
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
wxDECLARE_NO_COPY_CLASS(GRID_CELL_COMBOBOX)
wxComboBox * Combo() const
void SetSize(const wxRect &aRect) override
void ApplyEdit(int aRow, int aCol, wxGrid *aGrid) override
wxGridCellEditor * Clone() const override