|
KiCad PCB EDA Suite
|
Dialog to show and edit symbol library tables. More...
#include <panel_fp_lib_table.h>
Public Member Functions | |
| PANEL_FP_LIB_TABLE (DIALOG_EDIT_LIBRARY_TABLES *aParent, PROJECT *aProject) | |
| ~PANEL_FP_LIB_TABLE () override | |
| bool | TransferDataToWindow () override |
| bool | TransferDataFromWindow () override |
| void | AddTable (LIBRARY_TABLE *table, const wxString &aTitle, bool aClosable) |
Protected Attributes | |
| wxAuiNotebook * | m_notebook |
| STD_BITMAP_BUTTON * | m_append_button |
| SPLIT_BUTTON * | m_browseButton |
| STD_BITMAP_BUTTON * | m_move_up_button |
| STD_BITMAP_BUTTON * | m_move_down_button |
| STD_BITMAP_BUTTON * | m_delete_button |
| wxButton * | m_resetGlobal |
| wxButton * | m_migrate_libs_button |
| WX_GRID * | m_path_subs_grid |
Private Member Functions | |
| bool | verifyTables () |
| Trim important fields, removes blank row entries, and checks for duplicates. | |
| void | appendRowHandler (wxCommandEvent &event) override |
| void | browseLibrariesHandler (wxCommandEvent &event) |
| void | deleteRowHandler (wxCommandEvent &event) override |
| void | moveUpHandler (wxCommandEvent &event) override |
| void | moveDownHandler (wxCommandEvent &event) override |
| void | onMigrateLibraries (wxCommandEvent &event) override |
| void | onSizeGrid (wxSizeEvent &event) override |
| void | onPageChange (wxAuiNotebookEvent &event) override |
| void | onReset (wxCommandEvent &event) override |
| void | onNotebookPageCloseRequest (wxAuiNotebookEvent &aEvent) |
| void | adjustPathSubsGridColumns (int aWidth) |
| void | populateEnvironReadOnlyTable () |
| Populate the readonly environment variable table with names and values by examining all the full_uri columns. | |
| void | populatePluginList () |
| FP_LIB_TABLE_GRID_DATA_MODEL * | get_model (int aPage) const |
| FP_LIB_TABLE_GRID_DATA_MODEL * | cur_model () const |
| WX_GRID * | get_grid (int aPage) const |
| WX_GRID * | cur_grid () const |
Private Attributes | |
| PROJECT * | m_project |
| DIALOG_EDIT_LIBRARY_TABLES * | m_parent |
| wxArrayString | m_pluginChoices |
| wxString | m_lastProjectLibDir |
| std::map< PCB_IO_MGR::PCB_FILE_T, IO_BASE::IO_FILE_DESC > | m_supportedFpFiles |
Dialog to show and edit symbol library tables.
Definition at line 35 of file panel_fp_lib_table.h.
| PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE | ( | DIALOG_EDIT_LIBRARY_TABLES * | aParent, |
| PROJECT * | aProject ) |
Definition at line 242 of file panel_fp_lib_table.cpp.
References _, AddTable(), browseLibrariesHandler(), fileType(), FOOTPRINT, PGM_BASE::GetLibraryManager(), GLOBAL, JoinExtensions(), KiBitmapBundle(), PANEL_FP_LIB_TABLE_BASE::m_append_button, PANEL_FP_LIB_TABLE_BASE::m_browseButton, PANEL_FP_LIB_TABLE_BASE::m_delete_button, m_lastProjectLibDir, PANEL_FP_LIB_TABLE_BASE::m_move_down_button, PANEL_FP_LIB_TABLE_BASE::m_move_up_button, PANEL_FP_LIB_TABLE_BASE::m_notebook, m_parent, PANEL_FP_LIB_TABLE_BASE::m_path_subs_grid, m_pluginChoices, m_project, m_supportedFpFiles, onNotebookPageCloseRequest(), PANEL_FP_LIB_TABLE_BASE::PANEL_FP_LIB_TABLE_BASE(), Pgm(), populateEnvironReadOnlyTable(), populatePluginList(), PROJECT, PCB_IO_MGR::ShowType(), small_down, small_folder, small_plus, small_trash, small_up, LIBRARY_MANAGER::Table(), and table.
|
override |
Definition at line 322 of file panel_fp_lib_table.cpp.
References browseLibrariesHandler(), PANEL_FP_LIB_TABLE_BASE::m_browseButton, PANEL_FP_LIB_TABLE_BASE::m_path_subs_grid, and m_supportedFpFiles.
| void PANEL_FP_LIB_TABLE::AddTable | ( | LIBRARY_TABLE * | table, |
| const wxString & | aTitle, | ||
| bool | aClosable ) |
Definition at line 180 of file panel_fp_lib_table.cpp.
References LIB_TABLE_NOTEBOOK_PANEL::AddTable(), appendRowHandler(), COL_DESCR, COL_NICKNAME, COL_TYPE, COL_URI, PROJECT_PCB::FootprintLibAdapter(), get_grid(), GetAppSettings(), PATHS::GetDefaultUserFootprintsPath(), grid, m_lastProjectLibDir, PANEL_FP_LIB_TABLE_BASE::m_notebook, m_parent, m_pluginChoices, m_project, m_supportedFpFiles, and LIBRARY_TABLE::Path().
Referenced by PANEL_FP_LIB_TABLE().
|
private |
Definition at line 688 of file panel_fp_lib_table.cpp.
References PANEL_FP_LIB_TABLE_BASE::m_path_subs_grid.
Referenced by onSizeGrid(), and populateEnvironReadOnlyTable().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 412 of file panel_fp_lib_table.cpp.
References LIB_TABLE_GRID_TRICKS::AppendRowHandler(), and cur_grid().
Referenced by AddTable().
|
private |
Definition at line 537 of file panel_fp_lib_table.cpp.
References _, COL_ENABLED, COL_NICKNAME, COL_TYPE, COL_URI, cur_grid(), cur_model(), dummy, PCB_IO_MGR::FILE_TYPE_NONE, IO_BASE::IO_FILE_DESC::FileFilter(), fileType(), LIB_ID::FixIllegalChars(), GetAppSettings(), PGM_BASE::GetLocalEnvVariables(), PCB_IO_MGR::KICAD_SEXP, FILEEXT::KiCadFootprintLibPathExtension, IO_BASE::IO_FILE_DESC::m_IsFile, PCBNEW_SETTINGS::m_LastFootprintLibDir, m_lastProjectLibDir, PANEL_FP_LIB_TABLE_BASE::m_notebook, m_parent, m_project, m_supportedFpFiles, PCB_IO_MGR::NESTED_TABLE, NormalizePath(), OKOrCancelDialog(), path, Pgm(), PCB_IO_MGR::ShowType(), and UTF8::wx_str().
Referenced by PANEL_FP_LIB_TABLE(), and ~PANEL_FP_LIB_TABLE().
|
inlineprivate |
Definition at line 79 of file panel_fp_lib_table.h.
References get_grid(), and PANEL_FP_LIB_TABLE_BASE::m_notebook.
Referenced by appendRowHandler(), browseLibrariesHandler(), deleteRowHandler(), moveDownHandler(), moveUpHandler(), onMigrateLibraries(), onReset(), TransferDataFromWindow(), and TransferDataToWindow().
|
inlineprivate |
Definition at line 76 of file panel_fp_lib_table.h.
References get_model(), and PANEL_FP_LIB_TABLE_BASE::m_notebook.
Referenced by browseLibrariesHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 418 of file panel_fp_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::DeleteRowHandler().
|
private |
Definition at line 343 of file panel_fp_lib_table.cpp.
References LIB_TABLE_NOTEBOOK_PANEL::GetGrid(), and PANEL_FP_LIB_TABLE_BASE::m_notebook.
Referenced by AddTable(), cur_grid(), get_model(), onReset(), TransferDataToWindow(), and verifyTables().
|
private |
Definition at line 337 of file panel_fp_lib_table.cpp.
References get_grid().
Referenced by cur_model(), populateEnvironReadOnlyTable(), and TransferDataFromWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 430 of file panel_fp_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::MoveDownHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 424 of file panel_fp_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::MoveUpHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 437 of file panel_fp_lib_table.cpp.
References _, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, PCB_IO_MGR::ConvertLibrary(), cur_grid(), DisplayErrorMessage(), ExpandEnvVarSubstitutions(), WX_HTML_REPORT_BOX::Flush(), WX_HTML_REPORT_BOX::HasMessage(), IsOK(), PCB_IO_MGR::KICAD_SEXP, FILEEXT::KiCadFootprintLibPathExtension, m_parent, m_project, DIALOG_HTML_REPORTER::m_Reporter, NormalizePath(), LIBRARY_TABLE::ParseOptions(), Pgm(), DIALOG_SHIM::ShowModal(), and PCB_IO_MGR::ShowType().
|
private |
Definition at line 668 of file panel_fp_lib_table.cpp.
Referenced by PANEL_FP_LIB_TABLE().
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 766 of file panel_fp_lib_table.cpp.
References PANEL_FP_LIB_TABLE_BASE::m_notebook, and PANEL_FP_LIB_TABLE_BASE::m_resetGlobal.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 707 of file panel_fp_lib_table.cpp.
References _, COL_NICKNAME, LIBRARY_MANAGER::CreateGlobalTable(), cur_grid(), KIWAY::FACE_PCB, FOOTPRINT, PROJECT_PCB::FootprintLibAdapter(), get_grid(), GetAppSettings(), PATHS::GetDefaultUserFootprintsPath(), PGM_BASE::GetLibraryManager(), GLOBAL, grid, IsOK(), LIBRARY_MANAGER::LoadGlobalTables(), m_parent, m_pluginChoices, m_project, m_supportedFpFiles, Pgm(), LIBRARY_MANAGER::Table(), and table.
|
overrideprivatevirtual |
Reimplemented from PANEL_FP_LIB_TABLE_BASE.
Definition at line 699 of file panel_fp_lib_table.cpp.
References adjustPathSubsGridColumns().
|
private |
Populate the readonly environment variable table with names and values by examining all the full_uri columns.
Definition at line 836 of file panel_fp_lib_table.cpp.
References adjustPathSubsGridColumns(), COL_URI, get_model(), LIB_TABLE_GRID_DATA_MODEL::GetNumberRows(), LIB_TABLE_GRID_DATA_MODEL::GetValue(), ENV_VAR::GetVersionedEnvVarName(), PANEL_FP_LIB_TABLE_BASE::m_notebook, PANEL_FP_LIB_TABLE_BASE::m_path_subs_grid, and PROJECT_VAR_NAME.
Referenced by PANEL_FP_LIB_TABLE().
|
private |
Definition at line 367 of file panel_fp_lib_table.cpp.
References _, PCB_IO_MGR::PLUGIN_REGISTRY::Instance(), m_supportedFpFiles, and PCB_IO_MGR::NESTED_TABLE.
Referenced by PANEL_FP_LIB_TABLE().
|
override |
Definition at line 772 of file panel_fp_lib_table.cpp.
References _, cur_grid(), FOOTPRINT, get_model(), PANEL_NOTEBOOK_BASE::GetClosable(), PGM_BASE::GetLibraryManager(), GLOBAL, PANEL_FP_LIB_TABLE_BASE::m_notebook, m_parent, LIBRARY_ERROR::message, Pgm(), PROJECT, LIBRARY_TABLE::Save(), LIB_TABLE_NOTEBOOK_PANEL::SaveTable(), LIB_TABLE_GRID_DATA_MODEL::Table(), LIBRARY_MANAGER::Table(), LIB_TABLE_NOTEBOOK_PANEL::TableModified(), and verifyTables().
|
override |
Definition at line 349 of file panel_fp_lib_table.cpp.
References COL_VISIBLE, cur_grid(), get_grid(), grid, PANEL_FP_LIB_TABLE_BASE::m_notebook, and m_parent.
|
private |
Trim important fields, removes blank row entries, and checks for duplicates.
Definition at line 385 of file panel_fp_lib_table.cpp.
References get_grid(), grid, PANEL_FP_LIB_TABLE_BASE::m_notebook, and LIB_TABLE_GRID_TRICKS::VerifyTable().
Referenced by TransferDataFromWindow().
|
protectedinherited |
Definition at line 44 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_FP_LIB_TABLE_BASE(), and ~PANEL_FP_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 45 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_FP_LIB_TABLE_BASE(), and PANEL_FP_LIB_TABLE::~PANEL_FP_LIB_TABLE().
|
protectedinherited |
Definition at line 48 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_FP_LIB_TABLE_BASE(), and ~PANEL_FP_LIB_TABLE_BASE().
|
private |
Definition at line 86 of file panel_fp_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), and PANEL_FP_LIB_TABLE().
|
protectedinherited |
Definition at line 50 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE_BASE(), and ~PANEL_FP_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 47 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_FP_LIB_TABLE_BASE(), and ~PANEL_FP_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 46 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_FP_LIB_TABLE_BASE(), and ~PANEL_FP_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 43 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::AddTable(), PANEL_FP_LIB_TABLE::browseLibrariesHandler(), PANEL_FP_LIB_TABLE::cur_grid(), PANEL_FP_LIB_TABLE::cur_model(), PANEL_FP_LIB_TABLE::get_grid(), PANEL_FP_LIB_TABLE::onPageChange(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_FP_LIB_TABLE_BASE(), PANEL_FP_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_FP_LIB_TABLE::TransferDataFromWindow(), PANEL_FP_LIB_TABLE::TransferDataToWindow(), PANEL_FP_LIB_TABLE::verifyTables(), and ~PANEL_FP_LIB_TABLE_BASE().
|
private |
Definition at line 83 of file panel_fp_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), onMigrateLibraries(), onReset(), PANEL_FP_LIB_TABLE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 51 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::adjustPathSubsGridColumns(), PANEL_FP_LIB_TABLE::PANEL_FP_LIB_TABLE(), PANEL_FP_LIB_TABLE_BASE(), PANEL_FP_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_FP_LIB_TABLE::~PANEL_FP_LIB_TABLE(), and ~PANEL_FP_LIB_TABLE_BASE().
|
private |
Definition at line 84 of file panel_fp_lib_table.h.
Referenced by AddTable(), onReset(), and PANEL_FP_LIB_TABLE().
|
private |
Definition at line 82 of file panel_fp_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), onMigrateLibraries(), onReset(), and PANEL_FP_LIB_TABLE().
|
protectedinherited |
Definition at line 49 of file panel_fp_lib_table_base.h.
Referenced by PANEL_FP_LIB_TABLE::onPageChange(), PANEL_FP_LIB_TABLE_BASE(), and ~PANEL_FP_LIB_TABLE_BASE().
|
private |
Definition at line 89 of file panel_fp_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), onReset(), PANEL_FP_LIB_TABLE(), populatePluginList(), and ~PANEL_FP_LIB_TABLE().