|
KiCad PCB EDA Suite
|
Dialog to show and edit symbol library tables. More...
#include <panel_design_block_lib_table.h>
Public Member Functions | |
| PANEL_DESIGN_BLOCK_LIB_TABLE (DIALOG_EDIT_LIBRARY_TABLES *aParent, PROJECT *aProject) | |
| ~PANEL_DESIGN_BLOCK_LIB_TABLE () 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_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 | 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 () |
| DESIGN_BLOCK_LIB_TABLE_GRID_DATA_MODEL * | get_model (int aPage) const |
| DESIGN_BLOCK_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< DESIGN_BLOCK_IO_MGR::DESIGN_BLOCK_FILE_T, IO_BASE::IO_FILE_DESC > | m_supportedDesignBlockFiles |
Dialog to show and edit symbol library tables.
Definition at line 37 of file panel_design_block_lib_table.h.
| PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE | ( | DIALOG_EDIT_LIBRARY_TABLES * | aParent, |
| PROJECT * | aProject ) |
Definition at line 308 of file panel_design_block_lib_table.cpp.
References _, AddTable(), browseLibrariesHandler(), DESIGN_BLOCK, fileType(), PGM_BASE::GetLibraryManager(), GLOBAL, JoinExtensions(), KiBitmapBundle(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_append_button, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_browseButton, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_delete_button, m_lastProjectLibDir, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_migrate_libs_button, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_move_down_button, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_move_up_button, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook, m_parent, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_path_subs_grid, m_pluginChoices, m_project, m_supportedDesignBlockFiles, onNotebookPageCloseRequest(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), Pgm(), populateEnvironReadOnlyTable(), populatePluginList(), PROJECT, DESIGN_BLOCK_IO_MGR::ShowType(), small_down, small_folder, small_plus, small_trash, small_up, LIBRARY_MANAGER::Table(), and table.
|
override |
Definition at line 393 of file panel_design_block_lib_table.cpp.
References browseLibrariesHandler(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_browseButton, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_path_subs_grid, and m_supportedDesignBlockFiles.
| void PANEL_DESIGN_BLOCK_LIB_TABLE::AddTable | ( | LIBRARY_TABLE * | table, |
| const wxString & | aTitle, | ||
| bool | aClosable ) |
Definition at line 248 of file panel_design_block_lib_table.cpp.
References LIB_TABLE_NOTEBOOK_PANEL::AddTable(), COL_DESCR, COL_NICKNAME, COL_TYPE, COL_URI, get_grid(), GetAppSettings(), PATHS::GetDefaultUserDesignBlocksPath(), grid, m_lastProjectLibDir, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook, m_parent, m_pluginChoices, m_project, m_supportedDesignBlockFiles, and table.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 727 of file panel_design_block_lib_table.cpp.
References PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_path_subs_grid.
Referenced by onSizeGrid(), and populateEnvironReadOnlyTable().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 465 of file panel_design_block_lib_table.cpp.
References LIB_TABLE_GRID_TRICKS::AppendRowHandler(), and cur_grid().
|
private |
Definition at line 603 of file panel_design_block_lib_table.cpp.
References _, COL_ENABLED, COL_NICKNAME, COL_TYPE, COL_URI, cur_grid(), cur_model(), dummy, DESIGN_BLOCK_IO_MGR::FILE_TYPE_NONE, IO_BASE::IO_FILE_DESC::FileFilter(), fileType(), LIB_ID::FixIllegalChars(), GetAppSettings(), PGM_BASE::GetLocalEnvVariables(), DESIGN_BLOCK_IO_MGR::KICAD_SEXP, FILEEXT::KiCadDesignBlockLibPathExtension, IO_BASE::IO_FILE_DESC::m_IsFile, KICAD_SETTINGS::m_lastDesignBlockLibDir, m_lastProjectLibDir, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook, m_parent, m_project, m_supportedDesignBlockFiles, NormalizePath(), OKOrCancelDialog(), path, Pgm(), DESIGN_BLOCK_IO_MGR::ShowType(), and UTF8::wx_str().
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE().
|
inlineprivate |
Definition at line 76 of file panel_design_block_lib_table.h.
References get_grid(), and PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook.
Referenced by appendRowHandler(), browseLibrariesHandler(), deleteRowHandler(), moveDownHandler(), moveUpHandler(), onMigrateLibraries(), and TransferDataFromWindow().
|
inlineprivate |
Definition at line 73 of file panel_design_block_lib_table.h.
References get_model(), and PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook.
Referenced by browseLibrariesHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 471 of file panel_design_block_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::DeleteRowHandler().
|
private |
Definition at line 432 of file panel_design_block_lib_table.cpp.
References LIB_TABLE_NOTEBOOK_PANEL::GetGrid(), and PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook.
Referenced by AddTable(), cur_grid(), get_model(), and verifyTables().
|
private |
Definition at line 426 of file panel_design_block_lib_table.cpp.
References get_grid().
Referenced by cur_model(), populateEnvironReadOnlyTable(), and TransferDataFromWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 483 of file panel_design_block_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::MoveDownHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 477 of file panel_design_block_lib_table.cpp.
References cur_grid(), and LIB_TABLE_GRID_TRICKS::MoveUpHandler().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 510 of file panel_design_block_lib_table.cpp.
References _, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, DESIGN_BLOCK_IO_MGR::ConvertLibrary(), cur_grid(), DisplayErrorMessage(), ExpandEnvVarSubstitutions(), IsOK(), DESIGN_BLOCK_IO_MGR::KICAD_SEXP, FILEEXT::KiCadDesignBlockLibPathExtension, m_parent, m_project, NormalizePath(), LIBRARY_TABLE::ParseOptions(), Pgm(), and DESIGN_BLOCK_IO_MGR::ShowType().
|
private |
Definition at line 489 of file panel_design_block_lib_table.cpp.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 738 of file panel_design_block_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 810 of file panel_design_block_lib_table.cpp.
References adjustPathSubsGridColumns(), COL_URI, get_model(), LIB_TABLE_GRID_DATA_MODEL::GetNumberRows(), LIB_TABLE_GRID_DATA_MODEL::GetValue(), ENV_VAR::GetVersionedEnvVarName(), DESIGN_BLOCK_LIBRARY_ADAPTER::GlobalPathEnvVariableName(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_path_subs_grid, and PROJECT_VAR_NAME.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 411 of file panel_design_block_lib_table.cpp.
References DESIGN_BLOCK_IO_MGR::FindPlugin(), DESIGN_BLOCK_IO_MGR::KICAD_SEXP, and m_supportedDesignBlockFiles.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE().
|
override |
Definition at line 746 of file panel_design_block_lib_table.cpp.
References _, cur_grid(), DESIGN_BLOCK, get_model(), PANEL_NOTEBOOK_BASE::GetClosable(), PGM_BASE::GetLibraryManager(), GLOBAL, PANEL_DESIGN_BLOCK_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().
|
private |
Trim important fields, removes blank row entries, and checks for duplicates.
Definition at line 438 of file panel_design_block_lib_table.cpp.
References get_grid(), grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook, and LIB_TABLE_GRID_TRICKS::VerifyTable().
Referenced by TransferDataFromWindow().
|
protectedinherited |
Definition at line 44 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 45 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), and PANEL_DESIGN_BLOCK_LIB_TABLE::~PANEL_DESIGN_BLOCK_LIB_TABLE().
|
protectedinherited |
Definition at line 48 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
private |
Definition at line 83 of file panel_design_block_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), and PANEL_DESIGN_BLOCK_LIB_TABLE().
|
protectedinherited |
Definition at line 49 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 47 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 46 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
protectedinherited |
Definition at line 43 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::AddTable(), PANEL_DESIGN_BLOCK_LIB_TABLE::browseLibrariesHandler(), PANEL_DESIGN_BLOCK_LIB_TABLE::cur_grid(), PANEL_DESIGN_BLOCK_LIB_TABLE::cur_model(), PANEL_DESIGN_BLOCK_LIB_TABLE::get_grid(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), PANEL_DESIGN_BLOCK_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_DESIGN_BLOCK_LIB_TABLE::TransferDataFromWindow(), and PANEL_DESIGN_BLOCK_LIB_TABLE::verifyTables().
|
private |
Definition at line 80 of file panel_design_block_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), onMigrateLibraries(), PANEL_DESIGN_BLOCK_LIB_TABLE(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 50 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::adjustPathSubsGridColumns(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), PANEL_DESIGN_BLOCK_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_DESIGN_BLOCK_LIB_TABLE::~PANEL_DESIGN_BLOCK_LIB_TABLE(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
private |
Definition at line 81 of file panel_design_block_lib_table.h.
Referenced by AddTable(), and PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 79 of file panel_design_block_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), onMigrateLibraries(), and PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 86 of file panel_design_block_lib_table.h.
Referenced by AddTable(), browseLibrariesHandler(), PANEL_DESIGN_BLOCK_LIB_TABLE(), populatePluginList(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE().