Editor for wxGrid cells that adds a file/folder browser to the grid input field.
More...
#include <grid_text_button_helpers.h>
|
| GRID_CELL_PATH_EDITOR (DIALOG_SHIM *aParentDialog, WX_GRID *aGrid, wxString *aCurrentDir, bool aNormalize, const wxString &aNormalizeBasePath, std::function< wxString(WX_GRID *grid, int row)> aFileFilterFn, std::function< wxString(const wxString &)> aEmbedCallback=nullptr) |
| Constructor.
|
|
| GRID_CELL_PATH_EDITOR (DIALOG_SHIM *aParentDialog, WX_GRID *aGrid, wxString *aCurrentDir, const wxString &aFileFilter, bool aNormalize=false, const wxString &aNormalizeBasePath=wxEmptyString, std::function< wxString(const wxString &)> aEmbedCallback=nullptr) |
| Constructor.
|
|
wxGridCellEditor * | Clone () const override |
|
void | Create (wxWindow *aParent, wxWindowID aId, wxEvtHandler *aEventHandler) override |
|
wxString | GetValue () const override |
|
void | SetSize (const wxRect &aRect) override |
|
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 | Reset () override |
|
Editor for wxGrid cells that adds a file/folder browser to the grid input field.
Definition at line 146 of file grid_text_button_helpers.h.
◆ GRID_CELL_PATH_EDITOR() [1/2]
GRID_CELL_PATH_EDITOR::GRID_CELL_PATH_EDITOR |
( |
DIALOG_SHIM * | aParentDialog, |
|
|
WX_GRID * | aGrid, |
|
|
wxString * | aCurrentDir, |
|
|
bool | aNormalize, |
|
|
const wxString & | aNormalizeBasePath, |
|
|
std::function< wxString(WX_GRID *grid, int row)> | aFileFilterFn, |
|
|
std::function< wxString(const wxString &)> | aEmbedCallback = nullptr ) |
|
inline |
◆ GRID_CELL_PATH_EDITOR() [2/2]
GRID_CELL_PATH_EDITOR::GRID_CELL_PATH_EDITOR |
( |
DIALOG_SHIM * | aParentDialog, |
|
|
WX_GRID * | aGrid, |
|
|
wxString * | aCurrentDir, |
|
|
const wxString & | aFileFilter, |
|
|
bool | aNormalize = false, |
|
|
const wxString & | aNormalizeBasePath = wxEmptyString, |
|
|
std::function< wxString(const wxString &)> | aEmbedCallback = nullptr ) |
|
inline |
Constructor.
- Parameters
-
aCurrentDir | is current directory the path editor will open at |
aFileFilter | is the file extension(s) to filter by. If empty, the path editor will switch to folder mode instead of file. |
aNormalize | indicates whether to normalize the selected path (replace part of path with variables or relative path) |
aNormalizeBasePath | is the path to use when trying to base variables (generally current project path) |
Definition at line 183 of file grid_text_button_helpers.h.
References m_currentDir, m_dlg, m_embedCallback, m_fileFilter, m_grid, m_normalize, m_normalizeBasePath, and move.
◆ ApplyEdit()
void GRID_CELL_TEXT_BUTTON::ApplyEdit |
( |
int | aRow, |
|
|
int | aCol, |
|
|
wxGrid * | aGrid ) |
|
overrideinherited |
◆ BeginEdit()
void GRID_CELL_TEXT_BUTTON::BeginEdit |
( |
int | aRow, |
|
|
int | aCol, |
|
|
wxGrid * | aGrid ) |
|
overrideinherited |
◆ Clone()
wxGridCellEditor * GRID_CELL_PATH_EDITOR::Clone |
( |
| ) |
const |
|
inlineoverride |
◆ Combo()
wxComboCtrl * GRID_CELL_TEXT_BUTTON::Combo |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ Create()
void GRID_CELL_PATH_EDITOR::Create |
( |
wxWindow * | aParent, |
|
|
wxWindowID | aId, |
|
|
wxEvtHandler * | aEventHandler ) |
|
override |
◆ EndEdit()
bool GRID_CELL_TEXT_BUTTON::EndEdit |
( |
int | , |
|
|
int | , |
|
|
const wxGrid * | , |
|
|
const wxString & | , |
|
|
wxString * | aNewVal ) |
|
overrideinherited |
◆ GetValue()
wxString GRID_CELL_TEXT_BUTTON::GetValue |
( |
| ) |
const |
|
overrideinherited |
◆ Reset()
void GRID_CELL_TEXT_BUTTON::Reset |
( |
| ) |
|
|
overrideinherited |
◆ SetSize()
void GRID_CELL_TEXT_BUTTON::SetSize |
( |
const wxRect & | aRect | ) |
|
|
overrideinherited |
◆ StartingKey()
void GRID_CELL_TEXT_BUTTON::StartingKey |
( |
wxKeyEvent & | event | ) |
|
|
overrideinherited |
◆ wxDECLARE_NO_COPY_CLASS()
◆ m_currentDir
wxString* GRID_CELL_PATH_EDITOR::m_currentDir |
|
protected |
◆ m_dlg
◆ m_embedCallback
std::function<wxString( const wxString& )> GRID_CELL_PATH_EDITOR::m_embedCallback |
|
protected |
◆ m_fileFilter
wxString GRID_CELL_PATH_EDITOR::m_fileFilter |
|
protected |
◆ m_fileFilterFn
std::function<wxString( WX_GRID* aGrid, int aRow )> GRID_CELL_PATH_EDITOR::m_fileFilterFn |
|
protected |
◆ m_grid
WX_GRID* GRID_CELL_PATH_EDITOR::m_grid |
|
protected |
◆ m_normalize
bool GRID_CELL_PATH_EDITOR::m_normalize |
|
protected |
◆ m_normalizeBasePath
wxString GRID_CELL_PATH_EDITOR::m_normalizeBasePath |
|
protected |
◆ m_value
wxString GRID_CELL_TEXT_BUTTON::m_value |
|
protectedinherited |
The documentation for this class was generated from the following files: