25#include <wx/generic/gridctrl.h> 
   28class wxStyledTextCtrl;
 
   29class wxStyledTextEvent;
 
   42    void SetSize( 
const wxRect& aRect ) 
override;
 
   44    virtual void SetValidator( 
const wxValidator& validator ) 
override;
 
   45    virtual void StartingKey( wxKeyEvent& event ) 
override;
 
 
   61    void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC, 
const wxRect& aRect, 
int aRow,
 
   62               int aCol, 
bool isSelected ) 
override;
 
   64    wxSize 
GetBestSize( wxGrid& 
grid, wxGridCellAttr& attr, wxDC& dc, 
int row, 
int col ) 
override;
 
 
   77    void Draw( wxGrid& aGrid, wxGridCellAttr& aAttr, wxDC& aDC, 
const wxRect& aRect, 
int aRow,
 
   78               int aCol, 
bool isSelected ) 
override;
 
   80    wxSize 
GetBestSize( wxGrid& 
grid, wxGridCellAttr& attr, wxDC& dc, 
int row, 
int col ) 
override;
 
 
   90    void SetSize( 
const wxRect& aRect ) 
override;
 
   91    void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler ) 
override;
 
   93    wxGridCellEditor* 
Clone()
 const override 
 
  101    void Show( 
bool aShow, wxGridCellAttr *aAttr = 
nullptr ) 
override;
 
  102    void BeginEdit( 
int aRow, 
int aCol, wxGrid* aGrid ) 
override;
 
  103    bool EndEdit( 
int aRow, 
int aCol, 
const wxGrid*, 
const wxString&, wxString* aNewVal ) 
override;
 
  104    void ApplyEdit( 
int aRow, 
int aCol, wxGrid* aGrid ) 
override;
 
 
wxSize GetBestSize(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
 
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
 
GRID_CELL_ESCAPED_TEXT_RENDERER()
 
void SetSize(const wxRect &aRect) override
 
void ApplyEdit(int aRow, int aCol, wxGrid *aGrid) override
 
void onFocusLoss(wxFocusEvent &aEvent)
 
void StartingKey(wxKeyEvent &event) override
 
std::function< void(wxStyledTextEvent &, SCINTILLA_TRICKS *)> m_onCharFn
 
GRID_CELL_STC_EDITOR(bool aIgnoreCase, bool aSingleLine, std::function< void(wxStyledTextEvent &, SCINTILLA_TRICKS *)> onCharFn)
 
bool EndEdit(int aRow, int aCol, const wxGrid *, const wxString &, wxString *aNewVal) override
 
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
 
wxString GetValue() const override
 
wxGridCellEditor * Clone() const override
 
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
 
void Show(bool aShow, wxGridCellAttr *aAttr=nullptr) override
 
wxStyledTextCtrl * stc_ctrl() const
 
SCINTILLA_TRICKS * m_scintillaTricks
 
std::unique_ptr< wxValidator > m_validator
 
void SetSize(const wxRect &aRect) override
 
virtual void StartingKey(wxKeyEvent &event) override
 
virtual void SetValidator(const wxValidator &validator) override
 
void Draw(wxGrid &aGrid, wxGridCellAttr &aAttr, wxDC &aDC, const wxRect &aRect, int aRow, int aCol, bool isSelected) override
 
GRID_CELL_TEXT_RENDERER()
 
wxSize GetBestSize(wxGrid &grid, wxGridCellAttr &attr, wxDC &dc, int row, int col) override
 
Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl instance.