#include <grid_combobox.h>
|
| 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, int, const wxGrid *, const wxString &, wxString *aNewVal) override |
|
void | ApplyEdit (int aRow, int aCol, wxGrid *aGrid) override |
|
void | Reset () override |
|
Definition at line 35 of file grid_combobox.h.
◆ GRID_CELL_COMBOBOX()
GRID_CELL_COMBOBOX::GRID_CELL_COMBOBOX |
( |
const wxArrayString & |
names | ) |
|
◆ ApplyEdit()
void GRID_CELL_COMBOBOX::ApplyEdit |
( |
int |
aRow, |
|
|
int |
aCol, |
|
|
wxGrid * |
aGrid |
|
) |
| |
|
override |
◆ BeginEdit()
void GRID_CELL_COMBOBOX::BeginEdit |
( |
int |
aRow, |
|
|
int |
aCol, |
|
|
wxGrid * |
aGrid |
|
) |
| |
|
override |
Definition at line 75 of file grid_combobox.cpp.
77 auto evtHandler = static_cast<wxGridCellEditorEvtHandler*>( m_control->GetEventHandler() );
80 evtHandler->SetInSetFocus(
true );
86 m_value = aGrid->GetTable()->GetValue( aRow, aCol );
90 #ifdef __WXOSX_COCOA__ 100 #if !defined(__WXGTK20__) 101 evtHandler->SetInSetFocus(
false );
void onComboDropDown(wxCommandEvent &aEvent)
void onComboCloseUp(wxCommandEvent &aEvent)
wxComboBox * Combo() const
References Combo(), m_value, onComboCloseUp(), and onComboDropDown().
◆ Clone()
wxGridCellEditor * GRID_CELL_COMBOBOX::Clone |
( |
| ) |
const |
|
override |
◆ Combo()
wxComboBox* GRID_CELL_COMBOBOX::Combo |
( |
| ) |
const |
|
inlineprotected |
◆ Create()
void GRID_CELL_COMBOBOX::Create |
( |
wxWindow * |
aParent, |
|
|
wxWindowID |
aId, |
|
|
wxEvtHandler * |
aEventHandler |
|
) |
| |
|
override |
Definition at line 49 of file grid_combobox.cpp.
51 m_control =
new wxComboBox( aParent, wxID_ANY, wxEmptyString,
52 wxDefaultPosition, wxDefaultSize,
m_names );
54 wxGridCellEditor::Create(aParent, aId, aEventHandler);
References m_names.
◆ EndEdit()
bool GRID_CELL_COMBOBOX::EndEdit |
( |
int |
, |
|
|
int |
, |
|
|
const wxGrid * |
, |
|
|
const wxString & |
, |
|
|
wxString * |
aNewVal |
|
) |
| |
|
override |
◆ GetValue()
wxString GRID_CELL_COMBOBOX::GetValue |
( |
| ) |
const |
|
override |
◆ onComboCloseUp()
void GRID_CELL_COMBOBOX::onComboCloseUp |
( |
wxCommandEvent & |
aEvent | ) |
|
|
protected |
Definition at line 143 of file grid_combobox.cpp.
145 auto evtHandler = static_cast<wxGridCellEditorEvtHandler*>( m_control->GetEventHandler() );
150 wxFocusEvent event( wxEVT_KILL_FOCUS, m_control->GetId() );
151 event.SetEventObject( m_control );
152 evtHandler->ProcessEvent( event );
Referenced by BeginEdit().
◆ onComboDropDown()
void GRID_CELL_COMBOBOX::onComboDropDown |
( |
wxCommandEvent & |
aEvent | ) |
|
|
protected |
Definition at line 133 of file grid_combobox.cpp.
135 auto evtHandler = static_cast<wxGridCellEditorEvtHandler*>( m_control->GetEventHandler() );
139 evtHandler->SetInSetFocus(
false );
Referenced by BeginEdit().
◆ Reset()
void GRID_CELL_COMBOBOX::Reset |
( |
| ) |
|
|
override |
◆ SetSize()
void GRID_CELL_COMBOBOX::SetSize |
( |
const wxRect & |
aRect | ) |
|
|
override |
Definition at line 62 of file grid_combobox.cpp.
67 #if defined( __WXMAC__ ) 71 Combo()->SetSize( rect, wxSIZE_ALLOW_MINUS_ONE );
wxComboBox * Combo() const
References Combo().
◆ wxDECLARE_NO_COPY_CLASS()
◆ m_names
wxArrayString GRID_CELL_COMBOBOX::m_names |
|
protected |
◆ m_value
wxString GRID_CELL_COMBOBOX::m_value |
|
protected |
The documentation for this class was generated from the following files: