KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GRID_CELL_TEXT_EDITOR Class Reference

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>

Inheritance diagram for GRID_CELL_TEXT_EDITOR:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GRID_CELL_TEXT_EDITOR()

GRID_CELL_TEXT_EDITOR::GRID_CELL_TEXT_EDITOR ( )

Definition at line 31 of file grid_text_helpers.cpp.

Member Function Documentation

◆ SetSize()

void GRID_CELL_TEXT_EDITOR::SetSize ( const wxRect &  aRect)
override

Definition at line 61 of file grid_text_helpers.cpp.

References WX_GRID::CellEditorTransformSizeRect().

◆ SetValidator()

void GRID_CELL_TEXT_EDITOR::SetValidator ( const wxValidator &  validator)
overridevirtual

◆ StartingKey()

void GRID_CELL_TEXT_EDITOR::StartingKey ( wxKeyEvent &  event)
overridevirtual

Definition at line 45 of file grid_text_helpers.cpp.

References m_validator.

Member Data Documentation

◆ m_validator

std::unique_ptr<wxValidator> GRID_CELL_TEXT_EDITOR::m_validator
protected

Definition at line 49 of file grid_text_helpers.h.

Referenced by SetValidator(), and StartingKey().


The documentation for this class was generated from the following files: