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 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 48 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 63 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 203 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 171 of file grid_text_helpers.cpp.

References m_value, and stc_ctrl().

◆ Clone()

wxGridCellEditor * GRID_CELL_STC_EDITOR::Clone ( ) const
inlineoverride

Definition at line 56 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 187 of file grid_text_helpers.cpp.

References m_value, and stc_ctrl().

◆ GetValue()

wxString GRID_CELL_STC_EDITOR::GetValue ( ) const
override

Definition at line 118 of file grid_text_helpers.cpp.

References stc_ctrl().

◆ onFocusLoss()

void GRID_CELL_STC_EDITOR::onFocusLoss ( wxFocusEvent &  aEvent)
protected

Definition at line 209 of file grid_text_helpers.cpp.

References stc_ctrl().

Referenced by Create().

◆ Reset()

void GRID_CELL_STC_EDITOR::Reset ( )
inlineoverride

Definition at line 68 of file grid_text_helpers.h.

◆ Show()

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

Definition at line 162 of file grid_text_helpers.cpp.

References stc_ctrl().

◆ StartingKey()

void GRID_CELL_STC_EDITOR::StartingKey ( wxKeyEvent &  event)
override

Definition at line 124 of file grid_text_helpers.cpp.

References stc_ctrl().

◆ stc_ctrl()

wxStyledTextCtrl * GRID_CELL_STC_EDITOR::stc_ctrl ( ) const
protected

Definition at line 112 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 77 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 80 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 76 of file grid_text_helpers.h.

Referenced by Create().

◆ m_value

wxString GRID_CELL_STC_EDITOR::m_value
protected

Definition at line 78 of file grid_text_helpers.h.

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


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