| 
    KiCad PCB EDA Suite
    
   | 
 
  
Public Member Functions | |
| FIELDS_EDITOR_GRID_TRICKS (DIALOG_SYMBOL_FIELDS_TABLE *aParent, WX_GRID *aGrid, VIEW_CONTROLS_GRID_DATA_MODEL *aViewFieldsData, FIELDS_EDITOR_GRID_DATA_MODEL *aDataModel, EMBEDDED_FILES *aFiles) | |
| void | SetTooltipEnable (int aCol, bool aEnable=true) | 
| Enable the tooltip for a column.   | |
| bool | GetTooltipEnabled (int aCol) | 
| Query if the tooltip for a column is enabled.   | |
Protected Member Functions | |
| void | showPopupMenu (wxMenu &menu, wxGridEvent &aEvent) override | 
| void | doPopupSelection (wxCommandEvent &event) override | 
| void | init () | 
| Shared initialization for various ctors.   | |
| void | getSelectedArea () | 
| Puts the selected area into a sensible rectangle of m_sel_{row,col}_{start,count} above.   | |
| virtual 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 | isTextEntry (int aRow, int aCol) | 
| bool | isCheckbox (int aRow, int aCol) | 
| bool | isReadOnly (int aRow, int aCol) | 
| virtual 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 | |
| WX_GRID * | m_grid | 
| I don't own the grid, but he owns me.   | |
| int | m_sel_row_start | 
| int | m_sel_col_start | 
| int | m_sel_row_count | 
| int | m_sel_col_count | 
| std::function< void(wxCommandEvent &)> | m_addHandler | 
| std::bitset< GRIDTRICKS_MAX_COL > | m_tooltipEnabled | 
| bool | m_enableSingleClickEdit | 
| bool | m_multiCellEditEnabled | 
Private Attributes | |
| DIALOG_SYMBOL_FIELDS_TABLE * | m_dlg | 
| VIEW_CONTROLS_GRID_DATA_MODEL * | m_viewControlsDataModel | 
| FIELDS_EDITOR_GRID_DATA_MODEL * | m_dataModel | 
| EMBEDDED_FILES * | m_files | 
Definition at line 95 of file dialog_symbol_fields_table.cpp.
      
  | 
  inline | 
Definition at line 98 of file dialog_symbol_fields_table.cpp.
References GRID_TRICKS::GRID_TRICKS(), m_dataModel, m_dlg, m_files, and m_viewControlsDataModel.
      
  | 
  protectedvirtualinherited | 
Definition at line 846 of file grid_tricks.cpp.
References COL_SEP, isReadOnly(), isTextEntry(), m_grid, m_sel_col_count, m_sel_col_start, m_sel_row_count, m_sel_row_start, and ROW_SEP.
Referenced by doPopupSelection(), and onKeyDown().
      
  | 
  inlineoverrideprotectedvirtual | 
Reimplemented from GRID_TRICKS.
Definition at line 127 of file dialog_symbol_fields_table.cpp.
References GRID_TRICKS::doPopupSelection(), FRAME_FOOTPRINT_CHOOSER, GetAssociatedDocument(), GRIDTRICKS_FIRST_SHOWHIDE, m_dataModel, m_dlg, GRID_TRICKS::m_grid, m_viewControlsDataModel, MYID_SELECT_FOOTPRINT, MYID_SHOW_DATASHEET, PROJECT_SCH::SchSearchS(), and SHOW_FIELD_COLUMN.
      
  | 
  protectedinherited | 
Puts the selected area into a sensible rectangle of m_sel_{row,col}_{start,count} above.
Definition at line 288 of file grid_tricks.cpp.
References m_grid, m_sel_col_count, m_sel_col_start, m_sel_row_count, and m_sel_row_start.
Referenced by LIB_TABLE_GRID_TRICKS::onCharHook(), onGridCellLeftClick(), onKeyDown(), FP_GRID_TRICKS::paste_text(), SYMBOL_GRID_TRICKS::paste_text(), showPopupMenu(), and LIB_TABLE_GRID_TRICKS::showPopupMenu().
      
  | 
  inlineinherited | 
Query if the tooltip for a column is enabled.
| aCol | is the column to query | 
Definition at line 86 of file grid_tricks.h.
References m_tooltipEnabled.
      
  | 
  protectedvirtualinherited | 
Reimplemented in JOBS_GRID_TRICKS, and LIB_TABLE_GRID_TRICKS.
Definition at line 281 of file grid_tricks.cpp.
Referenced by onGridCellLeftDClick().
      
  | 
  protectedinherited | 
Shared initialization for various ctors.
Definition at line 62 of file grid_tricks.cpp.
References GRIDTRICKS_FIRST_ID, GRIDTRICKS_LAST_ID, m_grid, m_sel_col_count, m_sel_col_start, m_sel_row_count, m_sel_row_start, onCharHook(), onGridCellLeftClick(), onGridCellLeftDClick(), onGridCellRightClick(), onGridLabelLeftClick(), onGridLabelRightClick(), onGridMotion(), onKeyDown(), onPopupSelection(), and onUpdateUI().
Referenced by GRID_TRICKS().
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
Definition at line 116 of file grid_tricks.cpp.
References m_grid.
Referenced by cutcopy(), paste_text(), showEditor(), and showPopupMenu().
      
  | 
  protectedinherited | 
Definition at line 95 of file grid_tricks.cpp.
References editor, and m_grid.
Referenced by cutcopy(), and showPopupMenu().
      
  | 
  protectedinherited | 
Definition at line 473 of file grid_tricks.cpp.
References COL_SEP, dummy, m_addHandler, m_grid, paste_text(), ROW_SEP, and ROW_SEP_R.
Referenced by init(), and LIB_TABLE_GRID_TRICKS::onCharHook().
      
  | 
  protectedvirtualinherited | 
Reimplemented in SYMBOL_GRID_TRICKS.
Definition at line 202 of file grid_tricks.cpp.
References getSelectedArea(), m_enableSingleClickEdit, m_grid, m_sel_row_count, m_sel_row_start, showEditor(), and toggleCell().
Referenced by init(), SYMBOL_GRID_TRICKS::onGridCellLeftClick(), and onGridCellLeftDClick().
      
  | 
  protectedinherited | 
Definition at line 251 of file grid_tricks.cpp.
References handleDoubleClick(), and onGridCellLeftClick().
Referenced by init().
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
      
  | 
  protectedinherited | 
Definition at line 344 of file grid_tricks.cpp.
References GRIDTRICKS_FIRST_SHOWHIDE, and m_grid.
Referenced by init().
      
  | 
  protectedinherited | 
Definition at line 258 of file grid_tricks.cpp.
References m_grid, and m_tooltipEnabled.
Referenced by init().
      
  | 
  protectedinherited | 
Definition at line 540 of file grid_tricks.cpp.
References cutcopy(), end, getSelectedArea(), m_grid, paste_clipboard(), and toggleCell().
Referenced by init(), and SCINTILLA_TRICKS::onCharHook().
      
  | 
  protectedinherited | 
Definition at line 424 of file grid_tricks.cpp.
References doPopupSelection().
Referenced by init().
      
  | 
  protectedinherited | 
      
  | 
  protectedvirtualinherited | 
Definition at line 698 of file grid_tricks.cpp.
References m_grid, paste_text(), and text.
Referenced by doPopupSelection(), and onKeyDown().
      
  | 
  protectedvirtualinherited | 
Reimplemented in DESIGN_BLOCK_GRID_TRICKS, FP_GRID_TRICKS, and SYMBOL_GRID_TRICKS.
Definition at line 727 of file grid_tricks.cpp.
References COL_SEP, dummy, isReadOnly(), m_addHandler, m_grid, m_multiCellEditEnabled, m_sel_col_count, m_sel_col_start, m_sel_row_count, m_sel_row_start, and ROW_SEP.
Referenced by onCharHook(), LIB_TABLE_GRID_TRICKS::onCharHook(), paste_clipboard(), DESIGN_BLOCK_GRID_TRICKS::paste_text(), FP_GRID_TRICKS::paste_text(), and SYMBOL_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 75 of file grid_tricks.h.
References m_tooltipEnabled.
Referenced by PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL(), and SYMBOL_GRID_TRICKS::SYMBOL_GRID_TRICKS().
      
  | 
  protectedinherited | 
Definition at line 162 of file grid_tricks.cpp.
References isReadOnly(), m_grid, m_sel_col_count, m_sel_col_start, m_sel_row_count, and m_sel_row_start.
Referenced by onGridCellLeftClick().
      
  | 
  inlineoverrideprotectedvirtual | 
Reimplemented from GRID_TRICKS.
Definition at line 109 of file dialog_symbol_fields_table.cpp.
References _, DATASHEET, FOOTPRINT, GetCanonicalFieldName(), m_dataModel, GRID_TRICKS::m_grid, MYID_SELECT_FOOTPRINT, MYID_SHOW_DATASHEET, and GRID_TRICKS::showPopupMenu().
      
  | 
  protectedvirtualinherited | 
Reimplemented in FP_GRID_TRICKS.
Definition at line 122 of file grid_tricks.cpp.
References isCheckbox(), and m_grid.
Referenced by onGridCellLeftClick(), onKeyDown(), and FP_GRID_TRICKS::toggleCell().
      
  | 
  protectedinherited | 
Definition at line 137 of file grid_tricks.h.
Referenced by GRID_TRICKS(), GRID_TRICKS(), onCharHook(), and paste_text().
      
  | 
  private | 
Definition at line 183 of file dialog_symbol_fields_table.cpp.
Referenced by doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS(), and showPopupMenu().
      
  | 
  private | 
Definition at line 181 of file dialog_symbol_fields_table.cpp.
Referenced by doPopupSelection(), and FIELDS_EDITOR_GRID_TRICKS().
      
  | 
  protectedinherited | 
Definition at line 141 of file grid_tricks.h.
Referenced by GRID_TRICKS(), JOBS_GRID_TRICKS::JOBS_GRID_TRICKS(), and onGridCellLeftClick().
      
  | 
  private | 
Definition at line 184 of file dialog_symbol_fields_table.cpp.
Referenced by FIELDS_EDITOR_GRID_TRICKS().
      
  | 
  protectedinherited | 
I don't own the grid, but he owns me.
Definition at line 128 of file grid_tricks.h.
Referenced by cutcopy(), CURSORS_GRID_TRICKS::doPopupSelection(), EMBEDDED_FILES_GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), FIELDS_GRID_TRICKS::doPopupSelection(), doPopupSelection(), JOBS_GRID_TRICKS::doPopupSelection(), LIB_FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), LIB_TABLE_GRID_TRICKS::doPopupSelection(), MEASUREMENTS_GRID_TRICKS::doPopupSelection(), PLUGINS_GRID_TRICKS::doPopupSelection(), SIGNALS_GRID_TRICKS::doPopupSelection(), VIEW_CONTROLS_GRID_TRICKS::doPopupSelection(), FIELDS_GRID_TRICKS::getFieldRow(), getSelectedArea(), GRID_TRICKS(), GRID_TRICKS(), JOBS_GRID_TRICKS::handleDoubleClick(), init(), isCheckbox(), isReadOnly(), isTextEntry(), LIB_TABLE_GRID_TRICKS::LIB_TABLE_GRID_TRICKS(), LIB_TABLE_GRID_TRICKS::LIB_TABLE_GRID_TRICKS(), onCharHook(), LIB_TABLE_GRID_TRICKS::onCharHook(), onGridCellLeftClick(), SYMBOL_GRID_TRICKS::onGridCellLeftClick(), onGridLabelLeftClick(), onGridLabelRightClick(), onGridMotion(), onKeyDown(), onUpdateUI(), DESIGN_BLOCK_GRID_TRICKS::optionsEditor(), FP_GRID_TRICKS::optionsEditor(), SYMBOL_GRID_TRICKS::optionsEditor(), paste_clipboard(), DESIGN_BLOCK_GRID_TRICKS::paste_text(), FP_GRID_TRICKS::paste_text(), paste_text(), SYMBOL_GRID_TRICKS::paste_text(), showEditor(), CURSORS_GRID_TRICKS::showPopupMenu(), FIELDS_EDITOR_GRID_TRICKS::showPopupMenu(), FIELDS_GRID_TRICKS::showPopupMenu(), showPopupMenu(), JOBS_GRID_TRICKS::showPopupMenu(), LIB_FIELDS_EDITOR_GRID_TRICKS::showPopupMenu(), LIB_TABLE_GRID_TRICKS::showPopupMenu(), MEASUREMENTS_GRID_TRICKS::showPopupMenu(), PLUGINS_GRID_TRICKS::showPopupMenu(), SIGNALS_GRID_TRICKS::showPopupMenu(), and toggleCell().
      
  | 
  protectedinherited | 
Definition at line 142 of file grid_tricks.h.
Referenced by GRID_TRICKS(), JOBS_GRID_TRICKS::JOBS_GRID_TRICKS(), paste_text(), and showPopupMenu().
      
  | 
  protectedinherited | 
Definition at line 135 of file grid_tricks.h.
Referenced by cutcopy(), getSelectedArea(), init(), paste_text(), showEditor(), and showPopupMenu().
      
  | 
  protectedinherited | 
Definition at line 133 of file grid_tricks.h.
Referenced by cutcopy(), getSelectedArea(), init(), paste_text(), showEditor(), and showPopupMenu().
      
  | 
  protectedinherited | 
Definition at line 134 of file grid_tricks.h.
Referenced by cutcopy(), LIB_TABLE_GRID_TRICKS::doPopupSelection(), getSelectedArea(), init(), onGridCellLeftClick(), paste_text(), showEditor(), showPopupMenu(), and LIB_TABLE_GRID_TRICKS::showPopupMenu().
      
  | 
  protectedinherited | 
Definition at line 132 of file grid_tricks.h.
Referenced by cutcopy(), LIB_TABLE_GRID_TRICKS::doPopupSelection(), getSelectedArea(), init(), onGridCellLeftClick(), paste_text(), showEditor(), showPopupMenu(), and LIB_TABLE_GRID_TRICKS::showPopupMenu().
      
  | 
  protectedinherited | 
Definition at line 139 of file grid_tricks.h.
Referenced by GetTooltipEnabled(), onGridMotion(), and SetTooltipEnable().
      
  | 
  private | 
Definition at line 182 of file dialog_symbol_fields_table.cpp.
Referenced by doPopupSelection(), and FIELDS_EDITOR_GRID_TRICKS().