![]() |
KiCad PCB EDA Suite
|
#include <fields_grid_table.h>
Public Member Functions | |
FIELDS_GRID_TRICKS (WX_GRID *aGrid, DIALOG_SHIM *aDialog) | |
void | SetTooltipEnable (int aCol, bool aEnable=true) |
Enable the tooltip for a column. More... | |
bool | GetTooltipEnabled (int aCol) |
Query if the tooltip for a column is enabled. More... | |
Protected Member Functions | |
virtual void | showPopupMenu (wxMenu &menu) override |
virtual void | doPopupSelection (wxCommandEvent &event) override |
void | getSelectedArea () |
Puts the selected area into a sensible rectangle of m_sel_{row,col}_{start,count} above. More... | |
void | onGridCellLeftClick (wxGridEvent &event) |
void | onGridCellLeftDClick (wxGridEvent &event) |
void | onGridCellRightClick (wxGridEvent &event) |
void | onGridLabelLeftClick (wxGridEvent &event) |
void | onGridLabelRightClick (wxGridEvent &event) |
void | onPopupSelection (wxCommandEvent &event) |
void | onKeyDown (wxKeyEvent &event) |
void | onCharHook (wxKeyEvent &event) |
void | onUpdateUI (wxUpdateUIEvent &event) |
void | onGridMotion (wxMouseEvent &event) |
virtual bool | handleDoubleClick (wxGridEvent &aEvent) |
bool | toggleCell (int aRow, int aCol, bool aPreserveSelection=false) |
bool | showEditor (int aRow, int aCol) |
virtual void | paste_clipboard () |
virtual void | paste_text (const wxString &cb_text) |
virtual void | cutcopy (bool doCopy, bool doDelete) |
Protected Attributes | |
DIALOG_SHIM * | m_dlg |
WX_GRID * | m_grid |
I don't own the grid, but he owns me. More... | |
int | m_sel_row_start |
int | m_sel_col_start |
int | m_sel_row_count |
int | m_sel_col_count |
std::bitset< GRIDTRICKS_MAX_COL > | m_tooltipEnabled |
Definition at line 38 of file fields_grid_table.h.
|
inline |
Definition at line 41 of file fields_grid_table.h.
|
protectedvirtualinherited |
Definition at line 687 of file grid_tricks.cpp.
References COL_SEP, GRID_TRICKS::m_grid, GRID_TRICKS::m_sel_col_count, GRID_TRICKS::m_sel_col_start, GRID_TRICKS::m_sel_row_count, GRID_TRICKS::m_sel_row_start, and ROW_SEP.
Referenced by GRID_TRICKS::doPopupSelection(), and GRID_TRICKS::onKeyDown().
|
overrideprotectedvirtual |
Reimplemented from GRID_TRICKS.
Definition at line 635 of file fields_grid_table.cpp.
References DATASHEET_FIELD, KIWAY_PLAYER::Destroy(), GRID_TRICKS::doPopupSelection(), FDC_VALUE, FOOTPRINT_FIELD, FRAME_FOOTPRINT_VIEWER_MODAL, GetAssociatedDocument(), KIWAY_HOLDER::Kiway(), m_dlg, GRID_TRICKS::m_grid, MYID_SELECT_FOOTPRINT, MYID_SHOW_DATASHEET, KIWAY::Player(), KIWAY_HOLDER::Prj(), and KIWAY_PLAYER::ShowModal().
|
protectedinherited |
Puts the selected area into a sensible rectangle of m_sel_{row,col}_{start,count} above.
Definition at line 205 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid, GRID_TRICKS::m_sel_col_count, GRID_TRICKS::m_sel_col_start, GRID_TRICKS::m_sel_row_count, and GRID_TRICKS::m_sel_row_start.
Referenced by GRID_TRICKS::onKeyDown(), and GRID_TRICKS::showPopupMenu().
|
inlineinherited |
Query if the tooltip for a column is enabled.
aCol | is the column to query |
Definition at line 79 of file grid_tricks.h.
References GRID_TRICKS::m_tooltipEnabled.
|
protectedvirtualinherited |
Reimplemented in FP_GRID_TRICKS.
Definition at line 198 of file grid_tricks.cpp.
Referenced by GRID_TRICKS::onGridCellLeftDClick().
|
protectedinherited |
Definition at line 365 of file grid_tricks.cpp.
References COL_SEP, WX_GRID::CommitPendingChanges(), GRID_TRICKS::m_grid, GRID_TRICKS::paste_text(), and ROW_SEP.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 149 of file grid_tricks.cpp.
References GRID_TRICKS::showEditor(), and GRID_TRICKS::toggleCell().
Referenced by GRID_TRICKS::GRID_TRICKS(), and GRID_TRICKS::onGridCellLeftDClick().
|
protectedinherited |
Definition at line 168 of file grid_tricks.cpp.
References GRID_TRICKS::handleDoubleClick(), and GRID_TRICKS::onGridCellLeftClick().
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 245 of file grid_tricks.cpp.
References GRID_TRICKS::showPopupMenu().
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 253 of file grid_tricks.cpp.
References WX_GRID::CommitPendingChanges(), and GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 261 of file grid_tricks.cpp.
References GRIDTRICKS_FIRST_SHOWHIDE, and GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 175 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid, and GRID_TRICKS::m_tooltipEnabled.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 396 of file grid_tricks.cpp.
References GRID_TRICKS::cutcopy(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::m_grid, GRID_TRICKS::paste_clipboard(), and GRID_TRICKS::toggleCell().
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 316 of file grid_tricks.cpp.
References GRID_TRICKS::doPopupSelection().
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 732 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedvirtualinherited |
Definition at line 567 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid, and GRID_TRICKS::paste_text().
Referenced by GRID_TRICKS::doPopupSelection(), and GRID_TRICKS::onKeyDown().
|
protectedvirtualinherited |
Reimplemented in FP_GRID_TRICKS, and SYMBOL_GRID_TRICKS.
Definition at line 589 of file grid_tricks.cpp.
References COL_SEP, GRID_TRICKS::m_grid, GRID_TRICKS::m_sel_col_count, GRID_TRICKS::m_sel_col_start, GRID_TRICKS::m_sel_row_count, GRID_TRICKS::m_sel_row_start, and ROW_SEP.
Referenced by GRID_TRICKS::onCharHook(), GRID_TRICKS::paste_clipboard(), SYMBOL_GRID_TRICKS::paste_text(), and FP_GRID_TRICKS::paste_text().
|
inlineinherited |
Enable the tooltip for a column.
The tooltip is read from the string contained in the cell data.
aCol | is the column to use |
aEnable | is true to enable the tooltip (default) |
Definition at line 68 of file grid_tricks.h.
References GRID_TRICKS::m_tooltipEnabled.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL().
|
protectedinherited |
Definition at line 114 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid, and WX_GRID::ShowEditorOnMouseUp().
Referenced by GRID_TRICKS::onGridCellLeftClick().
|
overrideprotectedvirtual |
Reimplemented from GRID_TRICKS.
Definition at line 616 of file fields_grid_table.cpp.
References _, DATASHEET_FIELD, FDC_VALUE, FOOTPRINT_FIELD, GRID_TRICKS::m_grid, MYID_SELECT_FOOTPRINT, MYID_SHOW_DATASHEET, and GRID_TRICKS::showPopupMenu().
|
protectedinherited |
Definition at line 71 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::onGridCellLeftClick(), and GRID_TRICKS::onKeyDown().
|
protected |
Definition at line 49 of file fields_grid_table.h.
Referenced by doPopupSelection().
|
protectedinherited |
I don't own the grid, but he owns me.
Definition at line 110 of file grid_tricks.h.
Referenced by GRID_TRICKS::cutcopy(), doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), GRID_TRICKS::doPopupSelection(), FP_GRID_TRICKS::doPopupSelection(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::onCharHook(), GRID_TRICKS::onGridLabelLeftClick(), GRID_TRICKS::onGridLabelRightClick(), GRID_TRICKS::onGridMotion(), GRID_TRICKS::onKeyDown(), GRID_TRICKS::onUpdateUI(), FP_GRID_TRICKS::optionsEditor(), GRID_TRICKS::paste_clipboard(), GRID_TRICKS::paste_text(), SYMBOL_GRID_TRICKS::paste_text(), FP_GRID_TRICKS::paste_text(), GRID_TRICKS::showEditor(), showPopupMenu(), FIELDS_EDITOR_GRID_TRICKS::showPopupMenu(), GRID_TRICKS::showPopupMenu(), FP_GRID_TRICKS::showPopupMenu(), and GRID_TRICKS::toggleCell().
|
protectedinherited |
Definition at line 117 of file grid_tricks.h.
Referenced by GRID_TRICKS::cutcopy(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::GRID_TRICKS(), GRID_TRICKS::paste_text(), and GRID_TRICKS::showPopupMenu().
|
protectedinherited |
Definition at line 115 of file grid_tricks.h.
Referenced by GRID_TRICKS::cutcopy(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::GRID_TRICKS(), and GRID_TRICKS::paste_text().
|
protectedinherited |
Definition at line 116 of file grid_tricks.h.
Referenced by GRID_TRICKS::cutcopy(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::GRID_TRICKS(), GRID_TRICKS::paste_text(), and GRID_TRICKS::showPopupMenu().
|
protectedinherited |
Definition at line 114 of file grid_tricks.h.
Referenced by GRID_TRICKS::cutcopy(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::GRID_TRICKS(), and GRID_TRICKS::paste_text().
|
protectedinherited |
Definition at line 119 of file grid_tricks.h.
Referenced by GRID_TRICKS::GetTooltipEnabled(), GRID_TRICKS::onGridMotion(), and GRID_TRICKS::SetTooltipEnable().