|
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 | 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 Attributes | |
| 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 28 of file lib_table_notebook_panel.cpp.
References GetGrid().
|
static |
Definition at line 35 of file lib_table_notebook_panel.cpp.
References COL_ENABLED, COL_STATUS, COL_VISIBLE, grid, LIB_TABLE_NOTEBOOK_PANEL(), and PANEL_NOTEBOOK_BASE::SetClosable().
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::AddTable(), PANEL_FP_LIB_TABLE::AddTable(), and PANEL_SYM_LIB_TABLE::AddTable().
|
overridevirtual |
Reimplemented from PANEL_NOTEBOOK_BASE.
Definition at line 110 of file lib_table_notebook_panel.cpp.
References _, GetGrid(), HandleUnsavedChanges(), SaveTable(), and TableModified().
|
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::TransferDataFromWindow(), PANEL_FP_LIB_TABLE::TransferDataFromWindow(), and PANEL_SYM_LIB_TABLE::TransferDataFromWindow().
|
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(), and ~LIB_TABLE_NOTEBOOK_PANEL().
|
inline |
Definition at line 58 of file lib_table_notebook_panel.h.
References GetGrid().
Referenced by SaveTable(), and TableModified().
|
inlineinherited |
Definition at line 38 of file panel_notebook_base.h.
References m_projectTied.
| bool LIB_TABLE_NOTEBOOK_PANEL::SaveTable | ( | ) |
Definition at line 93 of file lib_table_notebook_panel.cpp.
References _, GetModel(), LIBRARY_ERROR::message, LIBRARY_TABLE::Save(), and LIB_TABLE_GRID_DATA_MODEL::Table().
Referenced by GetCanClose(), PANEL_DESIGN_BLOCK_LIB_TABLE::TransferDataFromWindow(), PANEL_FP_LIB_TABLE::TransferDataFromWindow(), and PANEL_SYM_LIB_TABLE::TransferDataFromWindow().
|
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 84 of file lib_table_notebook_panel.cpp.
References GetModel(), GLOBAL, LIBRARY_TABLE::Path(), and LIB_TABLE_GRID_DATA_MODEL::Table().
Referenced by GetCanClose(), PANEL_DESIGN_BLOCK_LIB_TABLE::TransferDataFromWindow(), PANEL_FP_LIB_TABLE::TransferDataFromWindow(), and PANEL_SYM_LIB_TABLE::TransferDataFromWindow().
|
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().