KiCad PCB EDA Suite
|
Hold a record identifying a library accessed by the appropriate footprint library PLUGIN object in the FP_LIB_TABLE. More...
#include <fp_lib_table.h>
Public Types | |
typedef IO_MGR::PCB_FILE_T | LIB_T |
Public Member Functions | |
FP_LIB_TABLE_ROW (const wxString &aNick, const wxString &aURI, const wxString &aType, const wxString &aOptions, const wxString &aDescr=wxEmptyString) | |
FP_LIB_TABLE_ROW () | |
bool | operator== (const FP_LIB_TABLE_ROW &aRow) const |
bool | operator!= (const FP_LIB_TABLE_ROW &aRow) const |
const wxString | GetType () const override |
return the type of footprint library table represented by this row. More... | |
void | SetType (const wxString &aType) override |
Change the type represented by this row. More... | |
bool | operator== (const LIB_TABLE_ROW &r) const |
bool | operator!= (const LIB_TABLE_ROW &r) const |
const wxString & | GetNickName () const |
void | SetNickName (const wxString &aNickName) |
Change the logical name of this library, useful for an editor. More... | |
bool | GetIsLoaded () const |
void | SetLoaded (bool aLoaded) |
Mark the row as being a loaded library. More... | |
bool | GetIsEnabled () const |
void | SetEnabled (bool aEnabled=true) |
Change the enabled status of this library. More... | |
bool | GetIsVisible () const |
void | SetVisible (bool aVisible=true) |
virtual bool | Refresh () |
virtual bool | SupportsSettingsDialog () const |
virtual void | ShowSettingsDialog (wxWindow *aParent) const |
const wxString | GetFullURI (bool aSubstituted=false) const |
Return the full location specifying URI for the LIB, either in original UI form or in environment variable expanded form. More... | |
void | SetFullURI (const wxString &aFullURI) |
Change the full URI for the library. More... | |
const wxString & | GetOptions () const |
Return the options string, which may hold a password or anything else needed to instantiate the underlying library plugin. More... | |
void | SetOptions (const wxString &aOptions) |
Change the library options strings. More... | |
const wxString & | GetDescr () const |
Return the description of the library referenced by this row. More... | |
void | SetDescr (const wxString &aDescr) |
Change the description of the library referenced by this row. More... | |
LIB_TABLE * | GetParent () const |
void | SetParent (LIB_TABLE *aParent) |
std::mutex & | GetMutex () |
const STRING_UTF8_MAP * | GetProperties () const |
Return the constant #PROPERTIES for this library (LIB_TABLE_ROW). More... | |
void | Format (OUTPUTFORMATTER *out, int nestLevel) const |
Serialize this object as utf8 text to an OUTPUTFORMATTER, and tries to make it look good using multiple lines and indentation. More... | |
LIB_TABLE_ROW * | clone () const |
Protected Member Functions | |
FP_LIB_TABLE_ROW (const FP_LIB_TABLE_ROW &aRow) | |
Private Member Functions | |
virtual LIB_TABLE_ROW * | do_clone () const override |
void | setPlugin (PLUGIN *aPlugin) |
void | setProperties (STRING_UTF8_MAP *aProperties) |
Private Attributes | |
PLUGIN::RELEASER | plugin |
LIB_T | type |
wxString | nickName |
wxString | uri_user |
what user entered from UI or loaded from disk More... | |
wxString | options |
wxString | description |
bool | enabled = true |
Whether the LIB_TABLE_ROW is enabled. More... | |
bool | visible = true |
Whether the LIB_TABLE_ROW is visible in choosers. More... | |
bool | m_loaded = false |
Whether the LIB_TABLE_ROW is loaded. More... | |
LIB_TABLE * | m_parent |
Pointer to the table this row lives in (maybe null) More... | |
std::unique_ptr< STRING_UTF8_MAP > | properties |
std::mutex | m_loadMutex |
Friends | |
class | FP_LIB_TABLE |
Hold a record identifying a library accessed by the appropriate footprint library PLUGIN object in the FP_LIB_TABLE.
Definition at line 40 of file fp_lib_table.h.
Definition at line 43 of file fp_lib_table.h.
|
inline |
Definition at line 45 of file fp_lib_table.h.
References SetType().
|
inline |
Definition at line 52 of file fp_lib_table.h.
Referenced by do_clone().
|
inlineprotected |
Definition at line 72 of file fp_lib_table.h.
|
inlineinherited |
Definition at line 206 of file lib_table_base.h.
References LIB_TABLE_ROW::do_clone().
Referenced by new_clone(), SYMBOL_GRID_TRICKS::paste_text(), and FP_GRID_TRICKS::paste_text().
|
inlineoverrideprivatevirtual |
Implements LIB_TABLE_ROW.
Definition at line 79 of file fp_lib_table.h.
References FP_LIB_TABLE_ROW().
|
inherited |
Serialize this object as utf8 text to an OUTPUTFORMATTER, and tries to make it look good using multiple lines and indentation.
out | is an OUTPUTFORMATTER |
nestLevel | is the indentation level to base all lines of the output. Actual indentation will be 2 spaces for each nestLevel. |
Definition at line 71 of file lib_table_base.cpp.
References LIB_TABLE_ROW::GetDescr(), LIB_TABLE_ROW::GetFullURI(), LIB_TABLE_ROW::GetIsEnabled(), LIB_TABLE_ROW::GetIsVisible(), LIB_TABLE_ROW::GetNickName(), LIB_TABLE_ROW::GetOptions(), LIB_TABLE_ROW::GetType(), OUTPUTFORMATTER::Print(), and OUTPUTFORMATTER::Quotew().
|
inlineinherited |
Return the description of the library referenced by this row.
Definition at line 177 of file lib_table_base.h.
References LIB_TABLE_ROW::description.
Referenced by LIB_TABLE_ROW::Format(), LIB_TABLE::GetDescription(), LIB_TABLE_GRID::GetValue(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::GetValue(), FP_TREE_SYNCHRONIZING_ADAPTER::GetValue(), SCH_EDIT_FRAME::LoadSheetFromFile(), and DIALOG_FOOTPRINT_ASSOCIATIONS::TransferDataToWindow().
|
inherited |
Return the full location specifying URI for the LIB, either in original UI form or in environment variable expanded form.
aSubstituted | Tells if caller wanted the substituted form, else not. |
Definition at line 60 of file lib_table_base.cpp.
References ExpandEnvVarSubstitutions(), and LIB_TABLE_ROW::uri_user.
Referenced by EXPORTER_STEP::buildFootprint3DShapes(), SYMBOL_LIB_TABLE::CreateSymbolLib(), FOOTPRINT_EDIT_FRAME::DeleteFootprintFromLibrary(), SYMBOL_LIB_TABLE::DeleteSymbol(), SYMBOL_LIB_TABLE::DeleteSymbolLib(), SYMBOL_VIEWER_FRAME::DisplayLibInfos(), FOOTPRINT_EDIT_FRAME::DuplicateFootprint(), SYMBOL_LIB_TABLE::EnumerateSymbolLib(), SCH_EDITOR_CONTROL::ExportSymbolsToLibrary(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), FP_LIB_TABLE::FootprintDelete(), FP_LIB_TABLE::FootprintEnumerate(), FP_LIB_TABLE::FootprintExists(), FP_LIB_TABLE::FootprintLibCreate(), FP_LIB_TABLE::FootprintLibDelete(), FP_LIB_TABLE::FootprintLoad(), FP_LIB_TABLE::FootprintSave(), LIB_TABLE_ROW::Format(), FP_LIB_TABLE::GenerateTimestamp(), FP_LIB_TABLE::GetEnumeratedFootprint(), LIB_TABLE::GetFullURI(), SYMBOL_LIBRARY_MANAGER::GetLibraryHash(), LIB_TABLE_GRID::GetValue(), idf_export_footprint(), FP_LIB_TABLE::IsFootprintLibWritable(), SYMBOL_LIB_TABLE::IsSymbolLibWritable(), SYMBOL_EDIT_FRAME::KiwayMailIn(), SYMBOL_VIEWER_FRAME::KiwayMailIn(), RENDER_3D_RAYTRACE::load3DModels(), RENDER_3D_OPENGL::load3dModels(), FP_LIB_TABLE::LoadGlobalTable(), SYMBOL_LIB_TABLE::LoadGlobalTable(), SCH_EDIT_FRAME::LoadSheetFromFile(), SYMBOL_LIB_TABLE::LoadSymbol(), SYMBOL_LIB_TABLE::LoadSymbolLib(), FP_LIB_TABLE::PrefetchLib(), SYMBOL_LIB_TABLE_ROW::Refresh(), PCB::IFACE::SaveFileAs(), FOOTPRINT_EDIT_FRAME::SaveFootprint(), SYMBOL_LIBRARY_MANAGER::SaveLibrary(), SYMBOL_LIB_TABLE::SaveSymbol(), PCB_BASE_FRAME::setFPWatcher(), SCH_BASE_FRAME::setSymWatcher(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), and PANEL_FP_PROPERTIES_3D_MODEL::validateModelExists().
|
inlineinherited |
Definition at line 122 of file lib_table_base.h.
References LIB_TABLE_ROW::enabled.
Referenced by LIB_TABLE::findRow(), LIB_TABLE_ROW::Format(), LIB_TABLE::GetLogicalLibs(), LIB_TABLE_GRID::GetValue(), LIB_TABLE_GRID::GetValueAsBool(), SYMBOL_LIB_TABLE_ROW::SYMBOL_LIB_TABLE_ROW(), and PANEL_SYM_LIB_TABLE::verifyTables().
|
inlineinherited |
Definition at line 112 of file lib_table_base.h.
References LIB_TABLE_ROW::m_loaded.
Referenced by SYMBOL_LIB_TABLE::IsSymbolLibLoaded().
|
inlineinherited |
Definition at line 129 of file lib_table_base.h.
References LIB_TABLE_ROW::visible.
Referenced by SYMBOL_TREE_MODEL_ADAPTER::AddLibraries(), LIB_TABLE_ROW::Format(), LIB_TABLE_GRID::GetValue(), LIB_TABLE_GRID::GetValueAsBool(), SCH_BASE_FRAME::PickSymbolFromLibTree(), and SYMBOL_VIEWER_FRAME::ReCreateLibList().
|
inlineinherited |
Definition at line 188 of file lib_table_base.h.
References LIB_TABLE_ROW::m_loadMutex.
Referenced by SYMBOL_LIB_TABLE::LoadSymbol(), and SYMBOL_LIB_TABLE::LoadSymbolLib().
|
inlineinherited |
Definition at line 102 of file lib_table_base.h.
References LIB_TABLE_ROW::nickName.
Referenced by BOOST_AUTO_TEST_CASE(), LIB_TABLE_GRID::ContainsNickname(), PCB_EDIT_FRAME::ExportFootprintsToLibrary(), FP_LIB_TABLE::FootprintLoad(), LIB_TABLE_ROW::Format(), LIB_TABLE::GetLogicalLibs(), LIB_TABLE_GRID::GetValue(), LIB_TABLE::InsertRow(), SYMBOL_EDIT_FRAME::KiwayMailIn(), FOOTPRINT_EDIT_FRAME::KiwayMailIn(), FP_LIB_TABLE::LoadGlobalTable(), SYMBOL_LIB_TABLE::LoadGlobalTable(), SYMBOL_LIB_TABLE::LoadSymbol(), SYMBOL_LIB_TABLE::LoadSymbolLib(), SYMBOL_GRID_TRICKS::optionsEditor(), FP_GRID_TRICKS::optionsEditor(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), LIB_TABLE::RemoveRow(), and PANEL_SYM_LIB_TABLE::verifyTables().
|
inlineinherited |
Return the options string, which may hold a password or anything else needed to instantiate the underlying library plugin.
Definition at line 167 of file lib_table_base.h.
References LIB_TABLE_ROW::options.
Referenced by SYMBOL_LIB_TABLE::EnumerateSymbolLib(), LIB_TABLE_ROW::Format(), LIB_TABLE_GRID::GetValue(), SCH_EDIT_FRAME::LoadSheetFromFile(), SYMBOL_LIB_TABLE::LoadSymbolLib(), SYMBOL_GRID_TRICKS::optionsEditor(), and FP_GRID_TRICKS::optionsEditor().
|
inlineinherited |
Definition at line 184 of file lib_table_base.h.
References LIB_TABLE_ROW::m_parent.
Referenced by SYMBOL_LIB_TABLE_ROW::Refresh().
|
inlineinherited |
Return the constant #PROPERTIES for this library (LIB_TABLE_ROW).
These are the "options" in a table.
Definition at line 194 of file lib_table_base.h.
References LIB_TABLE_ROW::properties.
Referenced by SYMBOL_LIB_TABLE::CreateSymbolLib(), SYMBOL_LIB_TABLE::DeleteSymbol(), SYMBOL_LIB_TABLE::DeleteSymbolLib(), SYMBOL_LIB_TABLE::EnumerateSymbolLib(), FP_LIB_TABLE::FootprintDelete(), FP_LIB_TABLE::FootprintEnumerate(), FP_LIB_TABLE::FootprintExists(), FP_LIB_TABLE::FootprintLibCreate(), FP_LIB_TABLE::FootprintLibDelete(), FP_LIB_TABLE::FootprintLoad(), FP_LIB_TABLE::FootprintSave(), FP_LIB_TABLE::GetEnumeratedFootprint(), SYMBOL_LIB_TABLE::LoadSymbol(), SYMBOL_LIB_TABLE::LoadSymbolLib(), FP_LIB_TABLE::PrefetchLib(), SYMBOL_LIB_TABLE_ROW::Refresh(), and SYMBOL_LIB_TABLE::SaveSymbol().
|
inlineoverridevirtual |
return the type of footprint library table represented by this row.
Implements LIB_TABLE_ROW.
Definition at line 64 of file fp_lib_table.h.
References IO_MGR::ShowType(), and type.
|
inline |
Definition at line 59 of file fp_lib_table.h.
|
inlineinherited |
Definition at line 97 of file lib_table_base.h.
bool FP_LIB_TABLE_ROW::operator== | ( | const FP_LIB_TABLE_ROW & | aRow | ) | const |
Definition at line 51 of file fp_lib_table.cpp.
References LIB_TABLE_ROW::operator==(), and type.
|
inherited |
Definition at line 96 of file lib_table_base.cpp.
References LIB_TABLE_ROW::description, LIB_TABLE_ROW::enabled, LIB_TABLE_ROW::nickName, LIB_TABLE_ROW::options, LIB_TABLE_ROW::uri_user, and LIB_TABLE_ROW::visible.
Referenced by operator==(), and SYMBOL_LIB_TABLE_ROW::operator==().
|
inlinevirtualinherited |
Reimplemented in SYMBOL_LIB_TABLE_ROW.
Definition at line 133 of file lib_table_base.h.
Referenced by LIB_TABLE_GRID_TRICKS::doPopupSelection().
|
inlineinherited |
Change the description of the library referenced by this row.
Definition at line 182 of file lib_table_base.h.
References LIB_TABLE_ROW::description.
Referenced by LIB_TABLE_GRID::SetValue().
|
inlineinherited |
Change the enabled status of this library.
Definition at line 127 of file lib_table_base.h.
References LIB_TABLE_ROW::enabled.
Referenced by LIB_TABLE_GRID::SetValue(), LIB_TABLE_GRID::SetValueAsBool(), and SYMBOL_LIB_TABLE_ROW::SYMBOL_LIB_TABLE_ROW().
|
inherited |
Change the full URI for the library.
Definition at line 54 of file lib_table_base.cpp.
References LIB_TABLE_ROW::uri_user.
Referenced by SYMBOL_EDIT_FRAME::addLibTableEntry(), LIB_TABLE_ROW::LIB_TABLE_ROW(), SYMBOL_EDIT_FRAME::replaceLibTableEntry(), PCB::IFACE::SaveFileAs(), and LIB_TABLE_GRID::SetValue().
|
inlineinherited |
Mark the row as being a loaded library.
Definition at line 117 of file lib_table_base.h.
References LIB_TABLE_ROW::m_loaded.
Referenced by SYMBOL_LIB_TABLE::EnumerateSymbolLib(), SYMBOL_LIB_TABLE::LoadSymbolLib(), and SYMBOL_LIB_TABLE_ROW::Refresh().
|
inlineinherited |
Change the logical name of this library, useful for an editor.
Definition at line 107 of file lib_table_base.h.
References LIB_TABLE_ROW::nickName.
Referenced by SYMBOL_EDIT_FRAME::addLibTableEntry(), and LIB_TABLE_GRID::SetValue().
|
inherited |
Change the library options strings.
Definition at line 107 of file lib_table_base.cpp.
References LIB_TABLE_ROW::options, LIB_TABLE::ParseOptions(), LIB_TABLE_ROW::setProperties(), and TO_UTF8.
Referenced by SYMBOL_LIB_TABLE::EnumerateSymbolLib(), LIB_TABLE_ROW::LIB_TABLE_ROW(), SYMBOL_LIB_TABLE::LoadSymbolLib(), SYMBOL_GRID_TRICKS::optionsEditor(), FP_GRID_TRICKS::optionsEditor(), and LIB_TABLE_GRID::SetValue().
|
inlineinherited |
Definition at line 186 of file lib_table_base.h.
References LIB_TABLE_ROW::m_parent.
Referenced by LIB_TABLE::InsertRow(), and PANEL_SYM_LIB_TABLE::verifyTables().
|
inlineprivate |
Definition at line 84 of file fp_lib_table.h.
References plugin, and PLUGIN::RELEASER::set().
Referenced by FP_LIB_TABLE::FindRow().
|
privateinherited |
Definition at line 48 of file lib_table_base.cpp.
References LIB_TABLE_ROW::properties.
Referenced by LIB_TABLE_ROW::SetOptions().
|
overridevirtual |
Change the type represented by this row.
Implements LIB_TABLE_ROW.
Definition at line 57 of file fp_lib_table.cpp.
References IO_MGR::EnumFromStr(), IO_MGR::KICAD_SEXP, plugin, PLUGIN::RELEASER::release(), and type.
Referenced by FP_LIB_TABLE_ROW().
|
inlineinherited |
Definition at line 131 of file lib_table_base.h.
References LIB_TABLE_ROW::visible.
Referenced by LIB_TABLE_GRID::SetValue(), and LIB_TABLE_GRID::SetValueAsBool().
|
inlinevirtualinherited |
Reimplemented in SYMBOL_LIB_TABLE_ROW.
Definition at line 148 of file lib_table_base.h.
Referenced by LIB_TABLE_GRID_TRICKS::doPopupSelection().
|
inlinevirtualinherited |
Reimplemented in SYMBOL_LIB_TABLE_ROW.
Definition at line 146 of file lib_table_base.h.
Referenced by LIB_TABLE_GRID_TRICKS::showPopupMenu().
|
friend |
Definition at line 89 of file fp_lib_table.h.
|
privateinherited |
Definition at line 238 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetDescr(), LIB_TABLE_ROW::operator==(), and LIB_TABLE_ROW::SetDescr().
|
privateinherited |
Whether the LIB_TABLE_ROW is enabled.
Definition at line 240 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetIsEnabled(), LIB_TABLE_ROW::operator==(), and LIB_TABLE_ROW::SetEnabled().
|
privateinherited |
Whether the LIB_TABLE_ROW is loaded.
Definition at line 242 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetIsLoaded(), and LIB_TABLE_ROW::SetLoaded().
|
privateinherited |
Definition at line 247 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetMutex().
|
privateinherited |
Pointer to the table this row lives in (maybe null)
Definition at line 243 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetParent(), and LIB_TABLE_ROW::SetParent().
|
privateinherited |
Definition at line 235 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetNickName(), LIB_TABLE_ROW::operator==(), and LIB_TABLE_ROW::SetNickName().
|
privateinherited |
Definition at line 237 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetOptions(), LIB_TABLE_ROW::operator==(), and LIB_TABLE_ROW::SetOptions().
|
private |
Definition at line 91 of file fp_lib_table.h.
Referenced by FP_LIB_TABLE::FindRow(), FP_LIB_TABLE::FootprintDelete(), FP_LIB_TABLE::FootprintEnumerate(), FP_LIB_TABLE::FootprintExists(), FP_LIB_TABLE::FootprintLibCreate(), FP_LIB_TABLE::FootprintLibDelete(), FP_LIB_TABLE::FootprintLoad(), FP_LIB_TABLE::FootprintSave(), FP_LIB_TABLE::GenerateTimestamp(), FP_LIB_TABLE::GetEnumeratedFootprint(), FP_LIB_TABLE::IsFootprintLibWritable(), FP_LIB_TABLE::PrefetchLib(), setPlugin(), and SetType().
|
privateinherited |
Definition at line 245 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetProperties(), LIB_TABLE_ROW::LIB_TABLE_ROW(), and LIB_TABLE_ROW::setProperties().
|
private |
Definition at line 92 of file fp_lib_table.h.
Referenced by FP_LIB_TABLE::FindRow(), GetType(), operator==(), and SetType().
|
privateinherited |
what user entered from UI or loaded from disk
Definition at line 236 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetFullURI(), LIB_TABLE_ROW::operator==(), and LIB_TABLE_ROW::SetFullURI().
|
privateinherited |
Whether the LIB_TABLE_ROW is visible in choosers.
Definition at line 241 of file lib_table_base.h.
Referenced by LIB_TABLE_ROW::GetIsVisible(), LIB_TABLE_ROW::operator==(), and LIB_TABLE_ROW::SetVisible().