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, DESIGN_BLOCK_LIB_TABLE *aGlobalTable, const wxString &aGlobalTblPath, DESIGN_BLOCK_LIB_TABLE *aProjectTable, const wxString &aProjectTblPath, const wxString &aProjectBasePath) | |
~PANEL_DESIGN_BLOCK_LIB_TABLE () override | |
Protected Attributes | |
wxNotebook * | m_notebook |
wxPanel * | m_global_panel |
WX_GRID * | m_global_grid |
wxPanel * | m_project_panel |
WX_GRID * | m_project_grid |
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 | TransferDataFromWindow () override |
bool | verifyTables () |
Trim important fields, removes blank row entries, and checks for duplicates. | |
void | OnUpdateUI (wxUpdateUIEvent &event) override |
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 | 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 * | global_model () const |
DESIGN_BLOCK_LIB_TABLE_GRID * | project_model () const |
DESIGN_BLOCK_LIB_TABLE_GRID * | cur_model () const |
Private Attributes | |
DESIGN_BLOCK_LIB_TABLE * | m_globalTable |
DESIGN_BLOCK_LIB_TABLE * | m_projectTable |
PROJECT * | m_project |
wxString | m_projectBasePath |
DIALOG_EDIT_LIBRARY_TABLES * | m_parent |
WX_GRID * | m_cur_grid |
wxString | m_lastProjectLibDir |
std::map< DESIGN_BLOCK_IO_MGR::DESIGN_BLOCK_FILE_T, IO_BASE::IO_FILE_DESC > | m_supportedDesignBlockFiles |
Static Private Attributes | |
static size_t | m_pageNdx = 0 |
Dialog to show and edit symbol library tables.
Definition at line 36 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, | ||
DESIGN_BLOCK_LIB_TABLE * | aGlobalTable, | ||
const wxString & | aGlobalTblPath, | ||
DESIGN_BLOCK_LIB_TABLE * | aProjectTable, | ||
const wxString & | aProjectTblPath, | ||
const wxString & | aProjectBasePath ) |
Definition at line 219 of file panel_design_block_lib_table.cpp.
References _, browseLibrariesHandler(), COL_DESCR, COL_ENABLED, COL_NICKNAME, COL_TYPE, COL_URI, COL_VISIBLE, fileType(), GetAppSettings(), PATHS::GetDefaultUserDesignBlocksPath(), grid, KiBitmapBundle(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_append_button, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_browseButton, m_cur_grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_delete_button, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_global_grid, m_globalTable, KICAD_SETTINGS::m_lastDesignBlockLibDir, 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_pageNdx, m_parent, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_path_subs_grid, m_project, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_project_grid, m_projectBasePath, m_projectTable, m_supportedDesignBlockFiles, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), populateEnvironReadOnlyTable(), populatePluginList(), DESIGN_BLOCK_IO_MGR::ShowType(), small_down, small_folder, small_plus, small_trash, and small_up.
|
override |
Definition at line 409 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_global_grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_path_subs_grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_project_grid, and m_supportedDesignBlockFiles.
|
private |
Definition at line 955 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 608 of file panel_design_block_lib_table.cpp.
References COL_NICKNAME, and m_cur_grid.
|
private |
Definition at line 822 of file panel_design_block_lib_table.cpp.
References _, COL_NICKNAME, COL_TYPE, COL_URI, 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, m_cur_grid, IO_BASE::IO_FILE_DESC::m_IsFile, KICAD_SETTINGS::m_lastDesignBlockLibDir, m_lastProjectLibDir, m_pageNdx, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_project_grid, m_projectBasePath, 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 83 of file panel_design_block_lib_table.h.
References m_cur_grid.
Referenced by browseLibrariesHandler(), moveDownHandler(), moveUpHandler(), and verifyTables().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 619 of file panel_design_block_lib_table.cpp.
References m_cur_grid.
|
inlineprivate |
Definition at line 73 of file panel_design_block_lib_table.h.
References PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_global_grid.
Referenced by populateEnvironReadOnlyTable(), TransferDataFromWindow(), and verifyTables().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 702 of file panel_design_block_lib_table.cpp.
References cur_model(), m_cur_grid, and LIB_TABLE::m_rows.
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 685 of file panel_design_block_lib_table.cpp.
References cur_model(), m_cur_grid, and LIB_TABLE::m_rows.
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 720 of file panel_design_block_lib_table.cpp.
References _, COL_NICKNAME, COL_OPTIONS, COL_TYPE, COL_URI, DESIGN_BLOCK_IO_MGR::ConvertLibrary(), DisplayErrorMessage(), ExpandEnvVarSubstitutions(), IsOK(), DESIGN_BLOCK_IO_MGR::KICAD_SEXP, FILEEXT::KiCadDesignBlockLibPathExtension, m_cur_grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_global_grid, m_parent, m_project, NormalizePath(), LIB_TABLE::ParseOptions(), Pgm(), and DESIGN_BLOCK_IO_MGR::ShowType().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 966 of file panel_design_block_lib_table.cpp.
References adjustPathSubsGridColumns().
|
overrideprivatevirtual |
Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.
Definition at line 601 of file panel_design_block_lib_table.cpp.
References m_cur_grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_global_grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook, m_pageNdx, and PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_project_grid.
|
private |
Populate the readonly environment variable table with names and values by examining all the full_uri columns.
Definition at line 1004 of file panel_design_block_lib_table.cpp.
References adjustPathSubsGridColumns(), COL_URI, ENV_VAR::GetVersionedEnvVarName(), global_model(), DESIGN_BLOCK_LIB_TABLE::GlobalPathEnvVariableName(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_path_subs_grid, project_model(), and PROJECT_VAR_NAME.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 432 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().
|
inlineprivate |
Definition at line 78 of file panel_design_block_lib_table.h.
References PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_project_grid.
Referenced by populateEnvironReadOnlyTable(), TransferDataFromWindow(), and verifyTables().
|
overrideprivate |
Definition at line 974 of file panel_design_block_lib_table.cpp.
References global_model(), m_cur_grid, m_globalTable, m_parent, m_projectTable, project_model(), and verifyTables().
|
private |
Trim important fields, removes blank row entries, and checks for duplicates.
Definition at line 448 of file panel_design_block_lib_table.cpp.
References _, COL_NICKNAME, COL_URI, COL_VISIBLE, cur_model(), LIB_ID::FindIllegalLibraryNameChar(), LIB_TABLE_ROW::GetIsEnabled(), LIB_TABLE_ROW::GetNickName(), global_model(), m_cur_grid, PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_notebook, m_parent, project_model(), DESIGN_BLOCK_LIB_TABLE_ROW::Refresh(), LIB_TABLE_ROW::SetParent(), table, and IO_ERROR::What().
Referenced by TransferDataFromWindow().
|
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().
|
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::~PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 96 of file panel_design_block_lib_table.h.
Referenced by appendRowHandler(), browseLibrariesHandler(), cur_model(), deleteRowHandler(), moveDownHandler(), moveUpHandler(), onMigrateLibraries(), OnUpdateUI(), PANEL_DESIGN_BLOCK_LIB_TABLE(), TransferDataFromWindow(), and verifyTables().
|
protectedinherited |
Definition at line 52 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::global_model(), PANEL_DESIGN_BLOCK_LIB_TABLE::onMigrateLibraries(), PANEL_DESIGN_BLOCK_LIB_TABLE::OnUpdateUI(), 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 44 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
private |
Definition at line 89 of file panel_design_block_lib_table.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE(), and TransferDataFromWindow().
|
private |
Definition at line 100 of file panel_design_block_lib_table.h.
Referenced by browseLibrariesHandler(), and PANEL_DESIGN_BLOCK_LIB_TABLE().
|
protectedinherited |
Definition at line 53 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 51 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 50 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::OnUpdateUI(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), and PANEL_DESIGN_BLOCK_LIB_TABLE::verifyTables().
|
staticprivate |
Definition at line 97 of file panel_design_block_lib_table.h.
Referenced by browseLibrariesHandler(), OnUpdateUI(), and PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 94 of file panel_design_block_lib_table.h.
Referenced by onMigrateLibraries(), PANEL_DESIGN_BLOCK_LIB_TABLE(), TransferDataFromWindow(), and verifyTables().
|
protectedinherited |
Definition at line 54 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 91 of file panel_design_block_lib_table.h.
Referenced by onMigrateLibraries(), and PANEL_DESIGN_BLOCK_LIB_TABLE().
|
protectedinherited |
Definition at line 47 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE::browseLibrariesHandler(), PANEL_DESIGN_BLOCK_LIB_TABLE::OnUpdateUI(), PANEL_DESIGN_BLOCK_LIB_TABLE::PANEL_DESIGN_BLOCK_LIB_TABLE(), PANEL_DESIGN_BLOCK_LIB_TABLE_BASE(), PANEL_DESIGN_BLOCK_LIB_TABLE::project_model(), and PANEL_DESIGN_BLOCK_LIB_TABLE::~PANEL_DESIGN_BLOCK_LIB_TABLE().
|
protectedinherited |
Definition at line 46 of file panel_design_block_lib_table_base.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE_BASE().
|
private |
Definition at line 92 of file panel_design_block_lib_table.h.
Referenced by browseLibrariesHandler(), and PANEL_DESIGN_BLOCK_LIB_TABLE().
|
private |
Definition at line 90 of file panel_design_block_lib_table.h.
Referenced by PANEL_DESIGN_BLOCK_LIB_TABLE(), and TransferDataFromWindow().
|
private |
Definition at line 103 of file panel_design_block_lib_table.h.
Referenced by browseLibrariesHandler(), PANEL_DESIGN_BLOCK_LIB_TABLE(), populatePluginList(), and ~PANEL_DESIGN_BLOCK_LIB_TABLE().