KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_DESIGN_BLOCK_LIB_TABLE Class Reference

Dialog to show and edit symbol library tables. More...

#include <panel_design_block_lib_table.h>

Inheritance diagram for PANEL_DESIGN_BLOCK_LIB_TABLE:
PANEL_DESIGN_BLOCK_LIB_TABLE_BASE

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_GRIDm_global_grid
 
wxPanel * m_project_panel
 
WX_GRIDm_project_grid
 
STD_BITMAP_BUTTONm_append_button
 
SPLIT_BUTTONm_browseButton
 
STD_BITMAP_BUTTONm_move_up_button
 
STD_BITMAP_BUTTONm_move_down_button
 
STD_BITMAP_BUTTONm_delete_button
 
wxButton * m_migrate_libs_button
 
WX_GRIDm_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_GRIDglobal_model () const
 
DESIGN_BLOCK_LIB_TABLE_GRIDproject_model () const
 
DESIGN_BLOCK_LIB_TABLE_GRIDcur_model () const
 

Private Attributes

DESIGN_BLOCK_LIB_TABLEm_globalTable
 
DESIGN_BLOCK_LIB_TABLEm_projectTable
 
PROJECTm_project
 
wxString m_projectBasePath
 
DIALOG_EDIT_LIBRARY_TABLESm_parent
 
WX_GRIDm_cur_grid
 
wxString m_lastProjectLibDir
 
std::map< DESIGN_BLOCK_IO_MGR::DESIGN_BLOCK_FILE_T, IO_BASE::IO_FILE_DESCm_supportedDesignBlockFiles
 

Static Private Attributes

static size_t m_pageNdx = 0
 

Detailed Description

Dialog to show and edit symbol library tables.

Definition at line 36 of file panel_design_block_lib_table.h.

Constructor & Destructor Documentation

◆ PANEL_DESIGN_BLOCK_LIB_TABLE()

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 )

◆ ~PANEL_DESIGN_BLOCK_LIB_TABLE()

Member Function Documentation

◆ adjustPathSubsGridColumns()

void PANEL_DESIGN_BLOCK_LIB_TABLE::adjustPathSubsGridColumns ( int aWidth)
private

◆ appendRowHandler()

void PANEL_DESIGN_BLOCK_LIB_TABLE::appendRowHandler ( wxCommandEvent & event)
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.

◆ browseLibrariesHandler()

◆ cur_model()

DESIGN_BLOCK_LIB_TABLE_GRID * PANEL_DESIGN_BLOCK_LIB_TABLE::cur_model ( ) const
inlineprivate

◆ deleteRowHandler()

void PANEL_DESIGN_BLOCK_LIB_TABLE::deleteRowHandler ( wxCommandEvent & event)
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.

◆ global_model()

DESIGN_BLOCK_LIB_TABLE_GRID * PANEL_DESIGN_BLOCK_LIB_TABLE::global_model ( ) const
inlineprivate

◆ moveDownHandler()

void PANEL_DESIGN_BLOCK_LIB_TABLE::moveDownHandler ( wxCommandEvent & event)
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.

◆ moveUpHandler()

void PANEL_DESIGN_BLOCK_LIB_TABLE::moveUpHandler ( wxCommandEvent & event)
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.

◆ onMigrateLibraries()

◆ onSizeGrid()

void PANEL_DESIGN_BLOCK_LIB_TABLE::onSizeGrid ( wxSizeEvent & event)
overrideprivatevirtual

Reimplemented from PANEL_DESIGN_BLOCK_LIB_TABLE_BASE.

Definition at line 966 of file panel_design_block_lib_table.cpp.

References adjustPathSubsGridColumns().

◆ OnUpdateUI()

void PANEL_DESIGN_BLOCK_LIB_TABLE::OnUpdateUI ( wxUpdateUIEvent & event)
overrideprivatevirtual

◆ populateEnvironReadOnlyTable()

void PANEL_DESIGN_BLOCK_LIB_TABLE::populateEnvironReadOnlyTable ( )
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().

◆ populatePluginList()

void PANEL_DESIGN_BLOCK_LIB_TABLE::populatePluginList ( )
private

◆ project_model()

DESIGN_BLOCK_LIB_TABLE_GRID * PANEL_DESIGN_BLOCK_LIB_TABLE::project_model ( ) const
inlineprivate

◆ TransferDataFromWindow()

bool PANEL_DESIGN_BLOCK_LIB_TABLE::TransferDataFromWindow ( )
overrideprivate

◆ verifyTables()

bool PANEL_DESIGN_BLOCK_LIB_TABLE::verifyTables ( )
private

Member Data Documentation

◆ m_append_button

STD_BITMAP_BUTTON* PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_append_button
protectedinherited

◆ m_browseButton

◆ m_cur_grid

◆ m_delete_button

STD_BITMAP_BUTTON* PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_delete_button
protectedinherited

◆ m_global_grid

◆ m_global_panel

wxPanel* PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_global_panel
protectedinherited

◆ m_globalTable

DESIGN_BLOCK_LIB_TABLE* PANEL_DESIGN_BLOCK_LIB_TABLE::m_globalTable
private

◆ m_lastProjectLibDir

wxString PANEL_DESIGN_BLOCK_LIB_TABLE::m_lastProjectLibDir
private

◆ m_migrate_libs_button

wxButton* PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_migrate_libs_button
protectedinherited

◆ m_move_down_button

STD_BITMAP_BUTTON* PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_move_down_button
protectedinherited

◆ m_move_up_button

STD_BITMAP_BUTTON* PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_move_up_button
protectedinherited

◆ m_notebook

◆ m_pageNdx

size_t PANEL_DESIGN_BLOCK_LIB_TABLE::m_pageNdx = 0
staticprivate

◆ m_parent

DIALOG_EDIT_LIBRARY_TABLES* PANEL_DESIGN_BLOCK_LIB_TABLE::m_parent
private

◆ m_path_subs_grid

◆ m_project

PROJECT* PANEL_DESIGN_BLOCK_LIB_TABLE::m_project
private

◆ m_project_grid

◆ m_project_panel

wxPanel* PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::m_project_panel
protectedinherited

◆ m_projectBasePath

wxString PANEL_DESIGN_BLOCK_LIB_TABLE::m_projectBasePath
private

◆ m_projectTable

DESIGN_BLOCK_LIB_TABLE* PANEL_DESIGN_BLOCK_LIB_TABLE::m_projectTable
private

◆ m_supportedDesignBlockFiles

std::map<DESIGN_BLOCK_IO_MGR::DESIGN_BLOCK_FILE_T, IO_BASE::IO_FILE_DESC> PANEL_DESIGN_BLOCK_LIB_TABLE::m_supportedDesignBlockFiles
private

The documentation for this class was generated from the following files: