KiCad PCB EDA Suite
|
This class works around a bug in wxGrid where the first keystroke doesn't get sent through the validator if the editor wasn't already open. More...
#include <grid_text_helpers.h>
Public Member Functions | |
GRID_CELL_TEXT_EDITOR () | |
void | SetSize (const wxRect &aRect) override |
virtual void | SetValidator (const wxValidator &validator) override |
virtual void | StartingKey (wxKeyEvent &event) override |
Protected Attributes | |
std::unique_ptr< wxValidator > | m_validator |
This class works around a bug in wxGrid where the first keystroke doesn't get sent through the validator if the editor wasn't already open.
Definition at line 38 of file grid_text_helpers.h.
GRID_CELL_TEXT_EDITOR::GRID_CELL_TEXT_EDITOR | ( | ) |
Definition at line 31 of file grid_text_helpers.cpp.
|
override |
Definition at line 61 of file grid_text_helpers.cpp.
References WX_GRID::CellEditorTransformSizeRect().
|
overridevirtual |
Definition at line 36 of file grid_text_helpers.cpp.
References m_validator.
Referenced by FIELDS_GRID_TABLE::initGrid(), and PCB_FIELDS_GRID_TABLE::PCB_FIELDS_GRID_TABLE().
|
overridevirtual |
Definition at line 45 of file grid_text_helpers.cpp.
References m_validator.
|
protected |
Definition at line 49 of file grid_text_helpers.h.
Referenced by SetValidator(), and StartingKey().