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

#include <grid_text_helpers.h>

Inheritance diagram for GRID_CELL_STC_EDITOR:

Public Member Functions

 GRID_CELL_STC_EDITOR (bool aIgnoreCase, std::function< void(wxStyledTextEvent &, SCINTILLA_TRICKS *)> onCharFn)
 
void SetSize (const wxRect &aRect) override
 
void Create (wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
 
wxGridCellEditor * Clone () const override
 
wxString GetValue () const override
 
void StartingKey (wxKeyEvent &event) override
 
void Show (bool aShow, wxGridCellAttr *aAttr=nullptr) override
 
void BeginEdit (int aRow, int aCol, wxGrid *aGrid) override
 
bool EndEdit (int aRow, int aCol, const wxGrid *, const wxString &, wxString *aNewVal) override
 
void ApplyEdit (int aRow, int aCol, wxGrid *aGrid) override
 
void Reset () override
 

Protected Member Functions

void onFocusLoss (wxFocusEvent &aEvent)
 
wxStyledTextCtrl * stc_ctrl () const
 

Protected Attributes

SCINTILLA_TRICKSm_scintillaTricks
 
bool m_ignoreCase
 
wxString m_value
 
std::function< void(wxStyledTextEvent &, SCINTILLA_TRICKS *)> m_onCharFn
 

Detailed Description

Definition at line 69 of file grid_text_helpers.h.

Constructor & Destructor Documentation

◆ GRID_CELL_STC_EDITOR()

GRID_CELL_STC_EDITOR::GRID_CELL_STC_EDITOR ( bool  aIgnoreCase,
std::function< void(wxStyledTextEvent &, SCINTILLA_TRICKS *)>  onCharFn 
)

Definition at line 110 of file grid_text_helpers.cpp.

Member Function Documentation

◆ ApplyEdit()

void GRID_CELL_STC_EDITOR::ApplyEdit ( int  aRow,
int  aCol,
wxGrid *  aGrid 
)
override

Definition at line 266 of file grid_text_helpers.cpp.

References m_value.

◆ BeginEdit()

void GRID_CELL_STC_EDITOR::BeginEdit ( int  aRow,
int  aCol,
wxGrid *  aGrid 
)
override

Definition at line 234 of file grid_text_helpers.cpp.

References m_value, and stc_ctrl().

◆ Clone()

wxGridCellEditor * GRID_CELL_STC_EDITOR::Clone ( ) const
inlineoverride

Definition at line 78 of file grid_text_helpers.h.

References m_ignoreCase, and m_onCharFn.

◆ Create()

void GRID_CELL_STC_EDITOR::Create ( wxWindow *  aParent,
wxWindowID  aId,
wxEvtHandler *  aEventHandler 
)
override

◆ EndEdit()

bool GRID_CELL_STC_EDITOR::EndEdit ( int  aRow,
int  aCol,
const wxGrid *  ,
const wxString &  ,
wxString *  aNewVal 
)
override

Definition at line 250 of file grid_text_helpers.cpp.

References m_value, and stc_ctrl().

◆ GetValue()

wxString GRID_CELL_STC_EDITOR::GetValue ( ) const
override

Definition at line 181 of file grid_text_helpers.cpp.

References stc_ctrl().

◆ onFocusLoss()

void GRID_CELL_STC_EDITOR::onFocusLoss ( wxFocusEvent &  aEvent)
protected

Definition at line 272 of file grid_text_helpers.cpp.

References stc_ctrl().

Referenced by Create().

◆ Reset()

void GRID_CELL_STC_EDITOR::Reset ( )
inlineoverride

Definition at line 90 of file grid_text_helpers.h.

◆ SetSize()

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

Definition at line 119 of file grid_text_helpers.cpp.

References WX_GRID::CellEditorTransformSizeRect().

◆ Show()

void GRID_CELL_STC_EDITOR::Show ( bool  aShow,
wxGridCellAttr *  aAttr = nullptr 
)
override

Definition at line 225 of file grid_text_helpers.cpp.

References stc_ctrl().

◆ StartingKey()

void GRID_CELL_STC_EDITOR::StartingKey ( wxKeyEvent &  event)
override

Definition at line 187 of file grid_text_helpers.cpp.

References stc_ctrl().

◆ stc_ctrl()

wxStyledTextCtrl * GRID_CELL_STC_EDITOR::stc_ctrl ( ) const
protected

Definition at line 175 of file grid_text_helpers.cpp.

Referenced by BeginEdit(), Create(), EndEdit(), GetValue(), onFocusLoss(), Show(), and StartingKey().

Member Data Documentation

◆ m_ignoreCase

bool GRID_CELL_STC_EDITOR::m_ignoreCase
protected

Definition at line 99 of file grid_text_helpers.h.

Referenced by Clone(), and Create().

◆ m_onCharFn

std::function<void( wxStyledTextEvent&, SCINTILLA_TRICKS* )> GRID_CELL_STC_EDITOR::m_onCharFn
protected

Definition at line 102 of file grid_text_helpers.h.

Referenced by Clone(), and Create().

◆ m_scintillaTricks

SCINTILLA_TRICKS* GRID_CELL_STC_EDITOR::m_scintillaTricks
protected

Definition at line 98 of file grid_text_helpers.h.

Referenced by Create().

◆ m_value

wxString GRID_CELL_STC_EDITOR::m_value
protected

Definition at line 100 of file grid_text_helpers.h.

Referenced by ApplyEdit(), BeginEdit(), and EndEdit().


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