#include <grid_text_button_helpers.h>
Definition at line 38 of file grid_text_button_helpers.h.
◆ GRID_CELL_TEXT_BUTTON()
GRID_CELL_TEXT_BUTTON::GRID_CELL_TEXT_BUTTON |
( |
| ) |
|
|
inline |
◆ ApplyEdit()
void GRID_CELL_TEXT_BUTTON::ApplyEdit |
( |
int |
aRow, |
|
|
int |
aCol, |
|
|
wxGrid * |
aGrid |
|
) |
| |
|
override |
◆ BeginEdit()
void GRID_CELL_TEXT_BUTTON::BeginEdit |
( |
int |
aRow, |
|
|
int |
aCol, |
|
|
wxGrid * |
aGrid |
|
) |
| |
|
override |
Definition at line 129 of file grid_text_button_helpers.cpp.
131 auto evtHandler = static_cast< wxGridCellEditorEvtHandler* >( m_control->GetEventHandler() );
134 evtHandler->SetInSetFocus(
true );
136 m_value = aGrid->GetTable()->GetValue( aRow, aCol );
wxComboCtrl * Combo() const
References Combo(), and m_value.
◆ Combo()
wxComboCtrl* GRID_CELL_TEXT_BUTTON::Combo |
( |
| ) |
const |
|
inlineprotected |
◆ EndEdit()
bool GRID_CELL_TEXT_BUTTON::EndEdit |
( |
int |
, |
|
|
int |
, |
|
|
const wxGrid * |
, |
|
|
const wxString & |
, |
|
|
wxString * |
aNewVal |
|
) |
| |
|
override |
◆ GetValue()
wxString GRID_CELL_TEXT_BUTTON::GetValue |
( |
| ) |
const |
|
override |
◆ Reset()
void GRID_CELL_TEXT_BUTTON::Reset |
( |
| ) |
|
|
override |
◆ SetSize()
void GRID_CELL_TEXT_BUTTON::SetSize |
( |
const wxRect & |
aRect | ) |
|
|
override |
Definition at line 59 of file grid_text_button_helpers.cpp.
63 #if defined( __WXMAC__ ) 65 #elif defined( __WXGTK__ ) 75 Combo()->SetSize( rect, wxSIZE_ALLOW_MINUS_ONE );
wxComboCtrl * Combo() const
References Combo().
◆ StartingKey()
void GRID_CELL_TEXT_BUTTON::StartingKey |
( |
wxKeyEvent & |
event | ) |
|
|
override |
Definition at line 79 of file grid_text_button_helpers.cpp.
89 wxTextEntry* textEntry = static_cast<wxTextEntry*>(
Combo() );
95 ch =
event.GetUnicodeKey();
100 #endif // wxUSE_UNICODE 102 ch =
event.GetKeyCode();
103 isPrintable = ch >= WXK_SPACE && ch < WXK_START;
110 textEntry->Remove( 0, 1 );
116 const long pos = textEntry->GetLastPosition();
117 textEntry->Remove( pos - 1, pos );
123 textEntry->WriteText( static_cast<wxChar>( ch ) );
wxComboCtrl * Combo() const
References Combo().
◆ wxDECLARE_NO_COPY_CLASS()
◆ m_value
wxString GRID_CELL_TEXT_BUTTON::m_value |
|
protected |
The documentation for this class was generated from the following files: