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;
152 const wxString& aExt,
bool aNormalize =
false,
153 const wxString& aNormalizeBasePath = wxEmptyString ) :
154 m_dlg( aParentDialog ),
162 wxGridCellEditor*
Clone()
const override 167 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
179 #endif // GRID_TEXT_BUTTON_HELPERS_H GRID_CELL_PATH_EDITOR(DIALOG_SHIM *aParentDialog, WX_GRID *aGrid, wxString *aCurrentDir, const wxString &aExt, bool aNormalize=false, const wxString &aNormalizeBasePath=wxEmptyString)
Constructor.
wxGridCellEditor * Clone() const override
SEARCH_STACK * m_searchStack
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)
Look for files in a number of paths.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
GRID_CELL_URL_EDITOR(DIALOG_SHIM *aParent, SEARCH_STACK *aSearchStack=nullptr)
void SetSize(const wxRect &aRect) override
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
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
bool EndEdit(int, int, const wxGrid *, const wxString &, wxString *aNewVal) override
wxGridCellEditor * Clone() const override