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

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

#include <panel_fp_lib_table.h>

Inheritance diagram for PANEL_FP_LIB_TABLE:
PANEL_FP_LIB_TABLE_BASE

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_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_resetGlobal
 
wxButton * m_migrate_libs_button
 
WX_GRIDm_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_MODELget_model (int aPage) const
 
FP_LIB_TABLE_GRID_DATA_MODELcur_model () const
 
WX_GRIDget_grid (int aPage) const
 
WX_GRIDcur_grid () const
 

Private Attributes

PROJECTm_project
 
DIALOG_EDIT_LIBRARY_TABLESm_parent
 
wxArrayString m_pluginChoices
 
wxString m_lastProjectLibDir
 
std::map< PCB_IO_MGR::PCB_FILE_T, IO_BASE::IO_FILE_DESCm_supportedFpFiles
 

Detailed Description

Dialog to show and edit symbol library tables.

Definition at line 35 of file panel_fp_lib_table.h.

Constructor & Destructor Documentation

◆ PANEL_FP_LIB_TABLE()

◆ ~PANEL_FP_LIB_TABLE()

PANEL_FP_LIB_TABLE::~PANEL_FP_LIB_TABLE ( )
override

Member Function Documentation

◆ AddTable()

◆ adjustPathSubsGridColumns()

void PANEL_FP_LIB_TABLE::adjustPathSubsGridColumns ( int aWidth)
private

◆ appendRowHandler()

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

◆ browseLibrariesHandler()

◆ cur_grid()

◆ cur_model()

FP_LIB_TABLE_GRID_DATA_MODEL * PANEL_FP_LIB_TABLE::cur_model ( ) const
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().

◆ deleteRowHandler()

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

◆ get_grid()

WX_GRID * PANEL_FP_LIB_TABLE::get_grid ( int aPage) const
private

◆ get_model()

FP_LIB_TABLE_GRID_DATA_MODEL * PANEL_FP_LIB_TABLE::get_model ( int aPage) const
private

Definition at line 337 of file panel_fp_lib_table.cpp.

References get_grid().

Referenced by cur_model(), populateEnvironReadOnlyTable(), and TransferDataFromWindow().

◆ moveDownHandler()

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

◆ moveUpHandler()

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

◆ onMigrateLibraries()

◆ onNotebookPageCloseRequest()

void PANEL_FP_LIB_TABLE::onNotebookPageCloseRequest ( wxAuiNotebookEvent & aEvent)
private

Definition at line 668 of file panel_fp_lib_table.cpp.

Referenced by PANEL_FP_LIB_TABLE().

◆ onPageChange()

void PANEL_FP_LIB_TABLE::onPageChange ( wxAuiNotebookEvent & event)
overrideprivatevirtual

◆ onReset()

◆ onSizeGrid()

void PANEL_FP_LIB_TABLE::onSizeGrid ( wxSizeEvent & event)
overrideprivatevirtual

Reimplemented from PANEL_FP_LIB_TABLE_BASE.

Definition at line 699 of file panel_fp_lib_table.cpp.

References adjustPathSubsGridColumns().

◆ populateEnvironReadOnlyTable()

void PANEL_FP_LIB_TABLE::populateEnvironReadOnlyTable ( )
private

◆ populatePluginList()

void PANEL_FP_LIB_TABLE::populatePluginList ( )
private

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_FP_LIB_TABLE::TransferDataToWindow ( )
override

◆ verifyTables()

bool PANEL_FP_LIB_TABLE::verifyTables ( )
private

Trim important fields, removes blank row entries, and checks for duplicates.

Returns
bool - true if tables are OK, else false.

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().

Member Data Documentation

◆ m_append_button

STD_BITMAP_BUTTON* PANEL_FP_LIB_TABLE_BASE::m_append_button
protectedinherited

◆ m_browseButton

SPLIT_BUTTON* PANEL_FP_LIB_TABLE_BASE::m_browseButton
protectedinherited

◆ m_delete_button

STD_BITMAP_BUTTON* PANEL_FP_LIB_TABLE_BASE::m_delete_button
protectedinherited

◆ m_lastProjectLibDir

wxString PANEL_FP_LIB_TABLE::m_lastProjectLibDir
private

Definition at line 86 of file panel_fp_lib_table.h.

Referenced by AddTable(), browseLibrariesHandler(), and PANEL_FP_LIB_TABLE().

◆ m_migrate_libs_button

wxButton* PANEL_FP_LIB_TABLE_BASE::m_migrate_libs_button
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().

◆ m_move_down_button

STD_BITMAP_BUTTON* PANEL_FP_LIB_TABLE_BASE::m_move_down_button
protectedinherited

◆ m_move_up_button

STD_BITMAP_BUTTON* PANEL_FP_LIB_TABLE_BASE::m_move_up_button
protectedinherited

◆ m_notebook

◆ m_parent

◆ m_path_subs_grid

◆ m_pluginChoices

wxArrayString PANEL_FP_LIB_TABLE::m_pluginChoices
private

Definition at line 84 of file panel_fp_lib_table.h.

Referenced by AddTable(), onReset(), and PANEL_FP_LIB_TABLE().

◆ m_project

PROJECT* PANEL_FP_LIB_TABLE::m_project
private

◆ m_resetGlobal

wxButton* PANEL_FP_LIB_TABLE_BASE::m_resetGlobal
protectedinherited

◆ m_supportedFpFiles

std::map<PCB_IO_MGR::PCB_FILE_T, IO_BASE::IO_FILE_DESC> PANEL_FP_LIB_TABLE::m_supportedFpFiles
private

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