![]() |
KiCad PCB EDA Suite
|
Public Member Functions | |
SYMBOL_GRID_TRICKS (DIALOG_EDIT_LIBRARY_TABLES *aParent, WX_GRID *aGrid) | |
Protected Member Functions | |
virtual void | paste_text (const wxString &cb_text) override |
handle specialized clipboard text, with leading "(sym_lib_table" or spreadsheet formatted text. More... | |
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 &ev) |
void | onUpdateUI (wxUpdateUIEvent &event) |
virtual bool | handleDoubleClick (wxGridEvent &aEvent) |
virtual void | showPopupMenu (wxMenu &menu) |
virtual void | doPopupSelection (wxCommandEvent &event) |
bool | toggleCell (int aRow, int aCol, bool aPreserveSelection=false) |
bool | showEditor (int aRow, int aCol) |
virtual void | paste_clipboard () |
virtual void | cutcopy (bool doCut) |
Protected Attributes | |
DIALOG_EDIT_LIBRARY_TABLES * | m_dialog |
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 |
Definition at line 112 of file panel_sym_lib_table.cpp.
|
inline |
Definition at line 115 of file panel_sym_lib_table.cpp.
|
protectedvirtualinherited |
Definition at line 586 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().
|
protectedvirtualinherited |
Reimplemented in FP_GRID_TRICKS, FIELDS_EDITOR_GRID_TRICKS, and FIELDS_GRID_TRICKS.
Definition at line 274 of file grid_tricks.cpp.
References GRID_TRICKS::cutcopy(), GRIDTRICKS_FIRST_SHOWHIDE, GRIDTRICKS_ID_COPY, GRIDTRICKS_ID_CUT, GRIDTRICKS_ID_PASTE, GRIDTRICKS_ID_SELECT, GRID_TRICKS::m_grid, and GRID_TRICKS::paste_clipboard().
Referenced by FIELDS_GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), FP_GRID_TRICKS::doPopupSelection(), and GRID_TRICKS::onPopupSelection().
|
protectedinherited |
Puts the selected area into a sensible rectangle of m_sel_{row,col}_{start,count} above.
Definition at line 167 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().
|
protectedvirtualinherited |
Reimplemented in FP_GRID_TRICKS.
Definition at line 160 of file grid_tricks.cpp.
Referenced by GRID_TRICKS::onGridCellLeftDClick().
|
protectedinherited |
Definition at line 134 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 153 of file grid_tricks.cpp.
References GRID_TRICKS::handleDoubleClick(), and GRID_TRICKS::onGridCellLeftClick().
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 207 of file grid_tricks.cpp.
References GRID_TRICKS::showPopupMenu().
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 215 of file grid_tricks.cpp.
References WX_GRID::CommitPendingChanges(), and GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 223 of file grid_tricks.cpp.
References GRIDTRICKS_FIRST_SHOWHIDE, and GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 310 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 268 of file grid_tricks.cpp.
References GRID_TRICKS::doPopupSelection().
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedinherited |
Definition at line 621 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::GRID_TRICKS().
|
protectedvirtualinherited |
Definition at line 471 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid, and GRID_TRICKS::paste_text().
Referenced by GRID_TRICKS::doPopupSelection(), and GRID_TRICKS::onKeyDown().
|
inlineoverrideprotectedvirtual |
handle specialized clipboard text, with leading "(sym_lib_table" or spreadsheet formatted text.
Reimplemented from GRID_TRICKS.
Definition at line 126 of file panel_sym_lib_table.cpp.
References LIB_TABLE_GRID::AppendRows(), LIB_TABLE::At(), LIB_TABLE_ROW::clone(), DisplayError(), LIB_TABLE::GetCount(), LIB_TABLE_GRID::GetNumberRows(), m_dialog, GRID_TRICKS::m_grid, SYMBOL_LIB_TABLE::Parse(), GRID_TRICKS::paste_text(), LIB_TABLE::rows, TO_UTF8, and IO_ERROR::What().
|
protectedinherited |
Definition at line 99 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid, and WX_GRID::ShowEditorOnMouseUp().
Referenced by GRID_TRICKS::onGridCellLeftClick().
|
protectedvirtualinherited |
Reimplemented in FP_GRID_TRICKS, FIELDS_EDITOR_GRID_TRICKS, and FIELDS_GRID_TRICKS.
Definition at line 238 of file grid_tricks.cpp.
References _, GRID_TRICKS::getSelectedArea(), GRIDTRICKS_ID_COPY, GRIDTRICKS_ID_CUT, GRIDTRICKS_ID_PASTE, GRIDTRICKS_ID_SELECT, GRID_TRICKS::m_grid, GRID_TRICKS::m_sel_col_count, and GRID_TRICKS::m_sel_row_count.
Referenced by GRID_TRICKS::onGridCellRightClick(), FIELDS_GRID_TRICKS::showPopupMenu(), FIELDS_EDITOR_GRID_TRICKS::showPopupMenu(), and FP_GRID_TRICKS::showPopupMenu().
|
protectedinherited |
Definition at line 56 of file grid_tricks.cpp.
References GRID_TRICKS::m_grid.
Referenced by GRID_TRICKS::onGridCellLeftClick(), and GRID_TRICKS::onKeyDown().
|
protected |
Definition at line 122 of file panel_sym_lib_table.cpp.
Referenced by paste_text().
|
protectedinherited |
I don't own the grid, but he owns me.
Definition at line 80 of file grid_tricks.h.
Referenced by GRID_TRICKS::cutcopy(), FIELDS_GRID_TRICKS::doPopupSelection(), GRID_TRICKS::doPopupSelection(), FIELDS_EDITOR_GRID_TRICKS::doPopupSelection(), FP_GRID_TRICKS::doPopupSelection(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::onGridLabelLeftClick(), GRID_TRICKS::onGridLabelRightClick(), GRID_TRICKS::onKeyDown(), GRID_TRICKS::onUpdateUI(), FP_GRID_TRICKS::optionsEditor(), GRID_TRICKS::paste_clipboard(), GRID_TRICKS::paste_text(), paste_text(), FP_GRID_TRICKS::paste_text(), GRID_TRICKS::showEditor(), FIELDS_GRID_TRICKS::showPopupMenu(), GRID_TRICKS::showPopupMenu(), FIELDS_EDITOR_GRID_TRICKS::showPopupMenu(), FP_GRID_TRICKS::showPopupMenu(), and GRID_TRICKS::toggleCell().
|
protectedinherited |
Definition at line 87 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 85 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 86 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 84 of file grid_tricks.h.
Referenced by GRID_TRICKS::cutcopy(), GRID_TRICKS::getSelectedArea(), GRID_TRICKS::GRID_TRICKS(), and GRID_TRICKS::paste_text().