|
KiCad PCB EDA Suite
|
Dialog to show and edit symbol library tables. More...
#include <panel_sym_lib_table.h>
Public Member Functions | |
| PANEL_SYM_LIB_TABLE (DIALOG_EDIT_LIBRARY_TABLES *aParent, PROJECT *m_project) | |
| virtual | ~PANEL_SYM_LIB_TABLE () |
| 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 |
| STD_BITMAP_BUTTON * | m_browse_button |
| 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_convertLegacy |
| WX_GRID * | m_path_subs_grid |
Private Member Functions | |
| bool | verifyTables () |
| Trim important fields, removes blank row entries, and checks for duplicates. | |
| void | browseLibrariesHandler (wxCommandEvent &event) override |
| void | appendRowHandler (wxCommandEvent &event) override |
| void | deleteRowHandler (wxCommandEvent &event) override |
| void | moveUpHandler (wxCommandEvent &event) override |
| void | moveDownHandler (wxCommandEvent &event) override |
| void | onSizeGrid (wxSizeEvent &event) override |
| void | adjustPathSubsGridColumns (int aWidth) |
| void | onConvertLegacyLibraries (wxCommandEvent &event) override |
| void | onNotebookPageCloseRequest (wxAuiNotebookEvent &aEvent) |
| void | onPageChange (wxAuiNotebookEvent &event) override |
| void | onReset (wxCommandEvent &event) override |
| void | populateEnvironReadOnlyTable () |
| Populate the readonly environment variable table with names and values by examining all the full_uri columns. | |
| SYMBOL_LIB_TABLE_GRID_DATA_MODEL * | get_model (int aPage) const |
| SYMBOL_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 |
Dialog to show and edit symbol library tables.
Definition at line 35 of file panel_sym_lib_table.h.
| PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE | ( | DIALOG_EDIT_LIBRARY_TABLES * | aParent, |
| PROJECT * | m_project ) |
Definition at line 268 of file panel_sym_lib_table.cpp.
References _, AddTable(), PGM_BASE::GetLibraryManager(), GLOBAL, KiBitmapBundle(), PANEL_SYM_LIB_TABLE_BASE::m_append_button, PANEL_SYM_LIB_TABLE_BASE::m_browse_button, PANEL_SYM_LIB_TABLE_BASE::m_delete_button, m_lastProjectLibDir, PANEL_SYM_LIB_TABLE_BASE::m_move_down_button, PANEL_SYM_LIB_TABLE_BASE::m_move_up_button, PANEL_SYM_LIB_TABLE_BASE::m_notebook, m_parent, PANEL_SYM_LIB_TABLE_BASE::m_path_subs_grid, m_pluginChoices, m_project, onNotebookPageCloseRequest(), PANEL_SYM_LIB_TABLE_BASE::PANEL_SYM_LIB_TABLE_BASE(), Pgm(), populateEnvironReadOnlyTable(), PROJECT, SCH_IO_MGR::ShowType(), small_down, small_folder, small_plus, small_trash, small_up, SYMBOL, LIBRARY_MANAGER::Table(), and table.
|
virtual |
Definition at line 319 of file panel_sym_lib_table.cpp.
References PANEL_SYM_LIB_TABLE_BASE::m_path_subs_grid.
| void PANEL_SYM_LIB_TABLE::AddTable | ( | LIBRARY_TABLE * | table, |
| const wxString & | aTitle, | ||
| bool | aClosable ) |
Definition at line 206 of file panel_sym_lib_table.cpp.
References LIB_TABLE_NOTEBOOK_PANEL::AddTable(), appendRowHandler(), COL_DESCR, COL_NICKNAME, COL_TYPE, COL_URI, get_grid(), GetAppSettings(), PATHS::GetDefaultUserSymbolsPath(), grid, m_lastProjectLibDir, PANEL_SYM_LIB_TABLE_BASE::m_notebook, m_parent, m_pluginChoices, m_project, PROJECT_SCH::SymbolLibAdapter(), and table.
Referenced by PANEL_SYM_LIB_TABLE().
|
private |
Definition at line 812 of file panel_sym_lib_table.cpp.
References PANEL_SYM_LIB_TABLE_BASE::m_path_subs_grid.
Referenced by onSizeGrid(), and populateEnvironReadOnlyTable().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 488 of file panel_sym_lib_table.cpp.
References LIB_TABLE_GRID_TRICKS::AppendRowHandler(), and cur_grid().
Referenced by AddTable().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 376 of file panel_sym_lib_table.cpp.
References _, COL_ENABLED, COL_NICKNAME, COL_TYPE, COL_URI, cur_grid(), cur_model(), dummy, IO_BASE::IO_FILE_DESC::FileFilter(), fileType(), LIB_ID::FixIllegalChars(), formatWildcardExt(), GetAppSettings(), PGM_BASE::GetLocalEnvVariables(), SCH_IO_MGR::GuessPluginTypeFromLibPath(), IO_BASE::IO_FILE_DESC::m_FileExtensions, m_lastProjectLibDir, EESCHEMA_SETTINGS::m_lastSymbolLibDir, PANEL_SYM_LIB_TABLE_BASE::m_notebook, m_project, NormalizePath(), OKOrCancelDialog(), path, Pgm(), and SCH_IO_MGR::ShowType().
|
inlineprivate |
Definition at line 77 of file panel_sym_lib_table.h.
References get_grid(), and PANEL_SYM_LIB_TABLE_BASE::m_notebook.
Referenced by appendRowHandler(), browseLibrariesHandler(), deleteRowHandler(), moveDownHandler(), moveUpHandler(), onConvertLegacyLibraries(), onReset(), TransferDataFromWindow(), and TransferDataToWindow().
|
inlineprivate |
Definition at line 74 of file panel_sym_lib_table.h.
References get_model(), and PANEL_SYM_LIB_TABLE_BASE::m_notebook.
Referenced by browseLibrariesHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 494 of file panel_sym_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::DeleteRowHandler().
|
private |
Definition at line 334 of file panel_sym_lib_table.cpp.
References LIB_TABLE_NOTEBOOK_PANEL::GetGrid(), and PANEL_SYM_LIB_TABLE_BASE::m_notebook.
Referenced by AddTable(), cur_grid(), get_model(), onReset(), and verifyTables().
|
private |
Definition at line 328 of file panel_sym_lib_table.cpp.
References get_grid().
Referenced by cur_model(), populateEnvironReadOnlyTable(), and TransferDataFromWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 506 of file panel_sym_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::MoveDownHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 500 of file panel_sym_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::MoveUpHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 597 of file panel_sym_lib_table.cpp.
References _, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, SCH_IO_MGR::ConvertLibrary(), cur_grid(), DisplayErrorMessage(), ExpandEnvVarSubstitutions(), IsOK(), m_parent, m_project, NormalizePath(), LIBRARY_TABLE::ParseOptions(), Pgm(), and SCH_IO_MGR::ShowType().
|
private |
Definition at line 577 of file panel_sym_lib_table.cpp.
Referenced by PANEL_SYM_LIB_TABLE().
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 571 of file panel_sym_lib_table.cpp.
References PANEL_SYM_LIB_TABLE_BASE::m_notebook, and PANEL_SYM_LIB_TABLE_BASE::m_resetGlobal.
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 512 of file panel_sym_lib_table.cpp.
References _, COL_NICKNAME, LIBRARY_MANAGER::CreateGlobalTable(), cur_grid(), KIWAY::FACE_SCH, get_grid(), GetAppSettings(), PATHS::GetDefaultUserSymbolsPath(), PGM_BASE::GetLibraryManager(), GLOBAL, grid, IsOK(), LIBRARY_MANAGER::LoadGlobalTables(), m_parent, m_pluginChoices, Pgm(), SYMBOL, PROJECT_SCH::SymbolLibAdapter(), LIBRARY_MANAGER::Table(), and table.
|
overrideprivatevirtual |
Reimplemented from PANEL_SYM_LIB_TABLE_BASE.
Definition at line 823 of file panel_sym_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 753 of file panel_sym_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_SYM_LIB_TABLE_BASE::m_notebook, PANEL_SYM_LIB_TABLE_BASE::m_path_subs_grid, and PROJECT_VAR_NAME.
Referenced by PANEL_SYM_LIB_TABLE().
|
override |
Definition at line 691 of file panel_sym_lib_table.cpp.
References _, cur_grid(), get_model(), PANEL_NOTEBOOK_BASE::GetClosable(), PGM_BASE::GetLibraryManager(), GLOBAL, PANEL_SYM_LIB_TABLE_BASE::m_notebook, m_parent, LIBRARY_ERROR::message, Pgm(), PROJECT, LIBRARY_TABLE::Save(), LIB_TABLE_NOTEBOOK_PANEL::SaveTable(), SYMBOL, LIB_TABLE_GRID_DATA_MODEL::Table(), LIBRARY_MANAGER::Table(), LIB_TABLE_NOTEBOOK_PANEL::TableModified(), and verifyTables().
|
override |
Definition at line 340 of file panel_sym_lib_table.cpp.
References cur_grid(), and m_parent.
|
private |
Trim important fields, removes blank row entries, and checks for duplicates.
Definition at line 349 of file panel_sym_lib_table.cpp.
References get_grid(), grid, PANEL_SYM_LIB_TABLE_BASE::m_notebook, and LIB_TABLE_GRID_TRICKS::VerifyTable().
Referenced by TransferDataFromWindow().
|
protectedinherited |
Definition at line 43 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), PANEL_SYM_LIB_TABLE_BASE(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 44 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), PANEL_SYM_LIB_TABLE_BASE(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 49 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE_BASE(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 47 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), PANEL_SYM_LIB_TABLE_BASE(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
private |
Definition at line 84 of file panel_sym_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), and PANEL_SYM_LIB_TABLE().
|
protectedinherited |
Definition at line 46 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), PANEL_SYM_LIB_TABLE_BASE(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 45 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), PANEL_SYM_LIB_TABLE_BASE(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 42 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::AddTable(), PANEL_SYM_LIB_TABLE::browseLibrariesHandler(), PANEL_SYM_LIB_TABLE::cur_grid(), PANEL_SYM_LIB_TABLE::cur_model(), PANEL_SYM_LIB_TABLE::get_grid(), PANEL_SYM_LIB_TABLE::onPageChange(), PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), PANEL_SYM_LIB_TABLE_BASE(), PANEL_SYM_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_SYM_LIB_TABLE::TransferDataFromWindow(), PANEL_SYM_LIB_TABLE::verifyTables(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
private |
Definition at line 81 of file panel_sym_lib_table.h.
Referenced by AddTable(), onConvertLegacyLibraries(), onReset(), PANEL_SYM_LIB_TABLE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 50 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::adjustPathSubsGridColumns(), PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), PANEL_SYM_LIB_TABLE_BASE(), PANEL_SYM_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_SYM_LIB_TABLE::~PANEL_SYM_LIB_TABLE(), and ~PANEL_SYM_LIB_TABLE_BASE().
|
private |
Definition at line 82 of file panel_sym_lib_table.h.
Referenced by AddTable(), onReset(), and PANEL_SYM_LIB_TABLE().
|
private |
Definition at line 80 of file panel_sym_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), onConvertLegacyLibraries(), and PANEL_SYM_LIB_TABLE().
|
protectedinherited |
Definition at line 48 of file panel_sym_lib_table_base.h.
Referenced by PANEL_SYM_LIB_TABLE::onPageChange(), PANEL_SYM_LIB_TABLE_BASE(), and ~PANEL_SYM_LIB_TABLE_BASE().