24#ifndef GRID_COMBOBOX_H
25#define GRID_COMBOBOX_H
28#include <wx/combobox.h>
29#include <wx/generic/gridctrl.h>
30#include <wx/generic/grideditors.h>
42 wxGridCellEditor*
Clone()
const override;
43 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
47 void SetSize(
const wxRect& aRect )
override;
49 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
50 bool EndEdit(
int aRow,
int aCol,
const wxGrid*,
const wxString&, wxString* aNewVal )
override;
51 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
52 void Reset()
override;
55 wxComboBox*
Combo()
const {
return static_cast<wxComboBox*
>( m_control ); }
57 void onComboCloseUp( wxCommandEvent& aEvent );
58 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