36 for(
unsigned i=0; i<aSrc.GetCount(); ++i )
74 for(
unsigned i =0; i<paths.GetCount(); ++i )
110 wxWindow* parent =
Pgm().
App().GetTopWindow();
115 dlg.
MessageSet(
_(
"The following libraries were not found:" ) );
123 wxWindow* parent =
Pgm().
App().GetTopWindow();
158 if( !prjPath.IsEmpty() )
164 tbl->
Load( fn.GetFullPath() );
169 msg.Printf(
_(
"Error loading the symbol library table '%s'." ), fn.GetFullPath() );
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
void MessageSet(const wxString &message)
Add a message (in bold) to message list.
void ListSet(const wxString &aList)
Add a list of items.
Hold an error message and may be used when throwing exceptions containing meaningful error messages.
virtual const wxString What() const
A composite of Problem() and Where()
void Load(const wxString &aFileName)
Load the library table using the path defined by aFileName aFallBackTable.
virtual wxApp & App()
Returns a bare naked wxApp which may come from wxPython, SINGLE_TOP, or kicad.exe.
static SYMBOL_LIB_TABLE * SchSymbolLibTable(PROJECT *aProject)
Accessor for project symbol library table.
static SEARCH_STACK * SchSearchS(PROJECT *aProject)
Accessor for Eeschema search stack.
static SYMBOL_LIBS * SchLibs(PROJECT *aProject)
Container for project specific data.
virtual void SetElem(PROJECT::ELEM aIndex, _ELEM *aElem)
virtual _ELEM * GetElem(PROJECT::ELEM aIndex)
Get and set the elements for this project.
virtual const wxString AbsolutePath(const wxString &aFileName) const
Fix up aFileName if it is relative to the project's directory to be an absolute path and filename.
virtual const wxString GetProjectDirectory() const
Return the full path of the project DIRECTORY.
Look for files in a number of paths.
static int Split(wxArrayString *aResult, const wxString &aPathString)
Separate aPathString into individual paths.
void AddPaths(const wxString &aPaths, int aIndex=-1)
Insert or append path(s).
A collection of SYMBOL_LIB objects.
PROJECT::ELEM ProjectElementType() override
void LoadAllLibraries(PROJECT *aProject, bool aShowProgress=true)
Load all of the project's libraries into this container, which should be cleared before calling it.
static void GetLibNamesAndPaths(PROJECT *aProject, wxString *aPaths, wxArrayString *aNames=nullptr)
static SYMBOL_LIB_TABLE & GetGlobalLibTable()
static const wxString & GetSymbolLibTableFileName()
PROJECT::ELEM ProjectElementType() override
An 8 bit string that is assuredly encoded in UTF8, and supplies special conversion support to and fro...
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
void DisplayErrorMessage(wxWindow *aParent, const wxString &aText, const wxString &aExtraInfo)
Display an error message with aMessage.
This file is part of the common library.
PGM_BASE & Pgm()
The global Program "get" accessor.
#define PROJECT_VAR_NAME
A variable name whose value holds the current project directory.
static void add_search_paths(SEARCH_STACK *aDst, const SEARCH_STACK &aSrc, int aIndex)
static std::mutex s_symbolTableMutex
A filename or source description, a problem input line, a line number, a byte offset,...
std::string inputLine
problem line of input [say, from a LINE_READER].
Definition for symbol library class.