|
KiCad PCB EDA Suite
|
#include <lib_table_notebook_panel.h>
Public Member Functions | |
| LIB_TABLE_NOTEBOOK_PANEL (wxWindow *parent, wxWindowID id=wxID_ANY) | |
| ~LIB_TABLE_NOTEBOOK_PANEL () override | |
| bool | GetCanClose () override |
| WX_GRID * | GetGrid () |
| LIB_TABLE_GRID_DATA_MODEL * | GetModel () |
| bool | TableModified () |
| bool | SaveTable () |
| void | MarkDirty () |
| void | ClearDirty () |
| void | SetProjectTied (bool aYes) |
| bool | GetProjectTied () |
| void | SetClosable (bool aYes) |
| bool | GetClosable () const |
Static Public Member Functions | |
| static void | AddTable (wxAuiNotebook *aNotebook, const wxString &aTitle, bool aClosable) |
Private Member Functions | |
| void | onGridCellChanging (wxGridEvent &aEvent) |
Private Attributes | |
| wxString | m_baseTitle |
| bool | m_closable = false |
| bool | m_projectTied = false |
Definition at line 27 of file lib_table_notebook_panel.h.
|
inline |
Definition at line 30 of file lib_table_notebook_panel.h.
References PANEL_NOTEBOOK_BASE::PANEL_NOTEBOOK_BASE().
Referenced by AddTable().
|
override |
Definition at line 29 of file lib_table_notebook_panel.cpp.
References GetGrid(), and onGridCellChanging().
|
static |
Definition at line 38 of file lib_table_notebook_panel.cpp.
References COL_ENABLED, COL_STATUS, COL_VISIBLE, grid, LIB_TABLE_NOTEBOOK_PANEL(), m_baseTitle, onGridCellChanging(), and PANEL_NOTEBOOK_BASE::SetClosable().
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::AddTable(), PANEL_FP_LIB_TABLE::AddTable(), and PANEL_SYM_LIB_TABLE::AddTable().
| void LIB_TABLE_NOTEBOOK_PANEL::ClearDirty | ( | ) |
Definition at line 107 of file lib_table_notebook_panel.cpp.
References m_baseTitle.
Referenced by PANEL_SYM_LIB_TABLE::onReset(), and SaveTable().
|
overridevirtual |
Reimplemented from PANEL_NOTEBOOK_BASE.
Definition at line 183 of file lib_table_notebook_panel.cpp.
References _, GetGrid(), HandleUnsavedChanges(), SaveTable(), and TableModified().
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), and PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE().
|
inlineinherited |
Definition at line 41 of file panel_notebook_base.h.
References m_closable.
Referenced by WX_AUI_TAB_ART::DrawTab(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), and PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE().
|
inline |
Definition at line 38 of file lib_table_notebook_panel.h.
References grid.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::get_grid(), PANEL_FP_LIB_TABLE::get_grid(), PANEL_SYM_LIB_TABLE::get_grid(), GetCanClose(), GetModel(), onGridCellChanging(), and ~LIB_TABLE_NOTEBOOK_PANEL().
|
inline |
Definition at line 58 of file lib_table_notebook_panel.h.
References GetGrid().
Referenced by onGridCellChanging(), SaveTable(), and TableModified().
|
inlineinherited |
Definition at line 38 of file panel_notebook_base.h.
References m_projectTied.
| void LIB_TABLE_NOTEBOOK_PANEL::MarkDirty | ( | ) |
Definition at line 90 of file lib_table_notebook_panel.cpp.
References m_baseTitle.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::AddTable(), PANEL_FP_LIB_TABLE::AddTable(), PANEL_SYM_LIB_TABLE::AddTable(), and PANEL_SYM_LIB_TABLE::onReset().
|
private |
Definition at line 132 of file lib_table_notebook_panel.cpp.
References LIB_TABLE_GRID_DATA_MODEL::Adapter(), LIB_TABLE_GRID_DATA_MODEL::At(), LIBRARY_MANAGER_ADAPTER::CheckTableRow(), COL_OPTIONS, COL_STATUS, COL_TYPE, COL_URI, GetGrid(), GetModel(), and grid.
Referenced by AddTable(), and ~LIB_TABLE_NOTEBOOK_PANEL().
| bool LIB_TABLE_NOTEBOOK_PANEL::SaveTable | ( | ) |
Definition at line 163 of file lib_table_notebook_panel.cpp.
References _, ClearDirty(), GetModel(), LIBRARY_ERROR::message, LIBRARY_TABLE::Save(), and LIB_TABLE_GRID_DATA_MODEL::Table().
Referenced by GetCanClose().
|
inlineinherited |
Definition at line 40 of file panel_notebook_base.h.
References m_closable.
Referenced by LIB_TABLE_NOTEBOOK_PANEL::AddTable(), and KICAD_MANAGER_FRAME::OpenJobsFile().
|
inlineinherited |
Definition at line 37 of file panel_notebook_base.h.
References m_projectTied.
Referenced by KICAD_MANAGER_FRAME::OpenJobsFile().
| bool LIB_TABLE_NOTEBOOK_PANEL::TableModified | ( | ) |
Definition at line 123 of file lib_table_notebook_panel.cpp.
References GetModel(), GLOBAL, and LIB_TABLE_GRID_DATA_MODEL::Table().
Referenced by GetCanClose(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), and PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE().
|
private |
Definition at line 74 of file lib_table_notebook_panel.h.
Referenced by AddTable(), ClearDirty(), and MarkDirty().
|
privateinherited |
Definition at line 46 of file panel_notebook_base.h.
Referenced by GetClosable(), and SetClosable().
|
privateinherited |
Definition at line 47 of file panel_notebook_base.h.
Referenced by GetProjectTied(), and SetProjectTied().