25 #ifndef GRID_TEXT_BUTTON_HELPERS_H 26 #define GRID_TEXT_BUTTON_HELPERS_H 29 #include <wx/generic/gridctrl.h> 30 #include <wx/generic/grideditors.h> 45 void SetSize(
const wxRect& aRect )
override;
48 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
49 bool EndEdit(
int ,
int ,
const wxGrid* ,
const wxString& , wxString *aNewVal )
override;
50 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
51 void Reset()
override;
54 void SetValidator(
const wxValidator& validator );
58 wxComboCtrl*
Combo()
const {
return static_cast<wxComboCtrl*>( m_control ); }
61 wxScopedPtr< wxValidator > m_validator;
74 const wxString& aPreselect = wxEmptyString ) :
79 wxGridCellEditor*
Clone()
const override 84 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
96 const wxString& aPreselect = wxEmptyString ) :
101 wxGridCellEditor*
Clone()
const override 106 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
121 wxGridCellEditor*
Clone()
const override 126 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
151 const wxString& aExt,
bool aNormalize =
false,
152 wxString aNormalizeBasePath = wxEmptyString ) :
153 m_dlg( aParentDialog ),
161 wxGridCellEditor*
Clone()
const override 166 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
178 #endif // GRID_TEXT_BUTTON_HELPERS_H wxGridCellEditor * Clone() const override
void StartingKey(wxKeyEvent &event) override
wxString m_normalizeBasePath
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
wxDECLARE_NO_COPY_CLASS(GRID_CELL_TEXT_BUTTON)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SetSize(const wxRect &aRect) override
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
GRID_CELL_URL_EDITOR(DIALOG_SHIM *aParent)
wxComboCtrl * Combo() const
Editor for wxGrid cells that adds a file/folder browser to the grid input field.
wxGridCellEditor * Clone() const override
wxString GetValue() const override
GRID_CELL_SYMBOL_ID_EDITOR(DIALOG_SHIM *aParent, const wxString &aPreselect=wxEmptyString)
void ApplyEdit(int aRow, int aCol, wxGrid *aGrid) override
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
GRID_CELL_PATH_EDITOR(DIALOG_SHIM *aParentDialog, WX_GRID *aGrid, wxString *aCurrentDir, const wxString &aExt, bool aNormalize=false, wxString aNormalizeBasePath=wxEmptyString)
Constructor.
bool EndEdit(int, int, const wxGrid *, const wxString &, wxString *aNewVal) override
wxGridCellEditor * Clone() const override