25#ifndef GRID_TEXT_BUTTON_HELPERS_H
26#define GRID_TEXT_BUTTON_HELPERS_H
31#include <wx/generic/gridctrl.h>
32#include <wx/generic/grideditors.h>
47 void SetSize(
const wxRect& aRect )
override;
50 void BeginEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
51 bool EndEdit(
int ,
int ,
const wxGrid* ,
const wxString& , wxString *aNewVal )
override;
52 void ApplyEdit(
int aRow,
int aCol, wxGrid* aGrid )
override;
53 void Reset()
override;
56 void SetValidator(
const wxValidator& validator );
60 wxComboCtrl*
Combo()
const {
return static_cast<wxComboCtrl*
>( m_control ); }
63 std::unique_ptr< wxValidator > m_validator;
76 const wxString& aPreselect = wxEmptyString ) :
81 wxGridCellEditor*
Clone()
const override
86 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
98 const wxString& aPreselect = wxEmptyString ) :
104 wxGridCellEditor*
Clone()
const override
109 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
125 wxGridCellEditor*
Clone()
const override
130 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
156 const wxString& aExt,
bool aNormalize =
false,
157 const wxString& aNormalizeBasePath = wxEmptyString ) :
158 m_dlg( aParentDialog ),
166 wxGridCellEditor*
Clone()
const override
171 void Create( wxWindow* aParent, wxWindowID aId, wxEvtHandler* aEventHandler )
override;
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
GRID_CELL_FPID_EDITOR(DIALOG_SHIM *aParent, const wxString &aSymbolNetlist, const wxString &aPreselect=wxEmptyString)
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
wxGridCellEditor * Clone() const override
Editor for wxGrid cells that adds a file/folder browser to the grid input field.
wxGridCellEditor * Clone() const 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, const wxString &aNormalizeBasePath=wxEmptyString)
Constructor.
wxString m_normalizeBasePath
wxGridCellEditor * Clone() const override
GRID_CELL_SYMBOL_ID_EDITOR(DIALOG_SHIM *aParent, const wxString &aPreselect=wxEmptyString)
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
wxDECLARE_NO_COPY_CLASS(GRID_CELL_TEXT_BUTTON)
wxString GetValue() const override
wxComboCtrl * Combo() const
void StartingKey(wxKeyEvent &event) override
void BeginEdit(int aRow, int aCol, wxGrid *aGrid) override
bool EndEdit(int, int, const wxGrid *, const wxString &, wxString *aNewVal) override
void ApplyEdit(int aRow, int aCol, wxGrid *aGrid) override
void SetSize(const wxRect &aRect) override
SEARCH_STACK * m_searchStack
wxGridCellEditor * Clone() const override
void Create(wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override
GRID_CELL_URL_EDITOR(DIALOG_SHIM *aParent, SEARCH_STACK *aSearchStack=nullptr)
Look for files in a number of paths.