KiCad PCB EDA Suite
|
Editor for wxGrid cells that adds a file/folder browser to the grid input field. More...
#include <grid_text_button_helpers.h>
Public Member Functions | |
GRID_CELL_PATH_EDITOR (DIALOG_SHIM *aParentDialog, WX_GRID *aGrid, wxString *aCurrentDir, const wxString &aExt, bool aNormalize=false, const wxString &aNormalizeBasePath=wxEmptyString) | |
Constructor. More... | |
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 |
Protected Member Functions | |
wxComboCtrl * | Combo () const |
wxDECLARE_NO_COPY_CLASS (GRID_CELL_TEXT_BUTTON) | |
Protected Attributes | |
DIALOG_SHIM * | m_dlg |
WX_GRID * | m_grid |
wxString * | m_currentDir |
wxString | m_ext |
bool | m_normalize |
wxString | m_normalizeBasePath |
wxString | m_value |
Editor for wxGrid cells that adds a file/folder browser to the grid input field.
Definition at line 141 of file grid_text_button_helpers.h.
|
inline |
Constructor.
aCurrentDir | is current directory the path editor will open at |
aExt | 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 155 of file grid_text_button_helpers.h.
|
overrideinherited |
Definition at line 160 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::m_value.
|
overrideinherited |
Definition at line 130 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::Combo(), and GRID_CELL_TEXT_BUTTON::m_value.
|
inlineoverride |
Definition at line 166 of file grid_text_button_helpers.h.
References m_currentDir, m_dlg, m_ext, and m_grid.
|
inlineprotectedinherited |
Definition at line 60 of file grid_text_button_helpers.h.
Referenced by GRID_CELL_TEXT_BUTTON::BeginEdit(), GRID_CELL_FPID_EDITOR::Create(), GRID_CELL_URL_EDITOR::Create(), Create(), GRID_CELL_TEXT_BUTTON::EndEdit(), GRID_CELL_TEXT_BUTTON::GetValue(), GRID_CELL_TEXT_BUTTON::Reset(), GRID_CELL_TEXT_BUTTON::SetSize(), and GRID_CELL_TEXT_BUTTON::StartingKey().
|
override |
Definition at line 476 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::Combo(), m_currentDir, m_dlg, m_ext, m_grid, m_normalize, and m_normalizeBasePath.
|
overrideinherited |
Definition at line 144 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::Combo(), and GRID_CELL_TEXT_BUTTON::m_value.
|
overrideinherited |
Definition at line 54 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::Combo().
|
overrideinherited |
Definition at line 166 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::Combo(), and GRID_CELL_TEXT_BUTTON::m_value.
|
overrideinherited |
Definition at line 60 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::Combo().
|
overrideinherited |
Definition at line 80 of file grid_text_button_helpers.cpp.
References GRID_CELL_TEXT_BUTTON::Combo().
|
protectedinherited |
|
protected |
Definition at line 176 of file grid_text_button_helpers.h.
|
protected |
Definition at line 174 of file grid_text_button_helpers.h.
|
protected |
Definition at line 177 of file grid_text_button_helpers.h.
|
protected |
Definition at line 175 of file grid_text_button_helpers.h.
|
protected |
Definition at line 178 of file grid_text_button_helpers.h.
Referenced by Create().
|
protected |
Definition at line 179 of file grid_text_button_helpers.h.
Referenced by Create().
|
protectedinherited |
Definition at line 66 of file grid_text_button_helpers.h.
Referenced by GRID_CELL_TEXT_BUTTON::ApplyEdit(), GRID_CELL_TEXT_BUTTON::BeginEdit(), GRID_CELL_TEXT_BUTTON::EndEdit(), and GRID_CELL_TEXT_BUTTON::Reset().