26 #ifndef SEARCH_STACK_H_ 27 #define SEARCH_STACK_H_ 29 #include <wx/filefn.h> 30 #include <wx/filename.h> 47 void Show(
const wxString& aPrefix )
const;
68 const wxString& aBaseDir );
72 #if 1 // might not be needed 74 if( wxFileName::FileExists( aFileName ) )
78 return wxPathList::FindValidPath( aFileName );
88 void AddPaths(
const wxString& aPaths,
int aIndex = -1 );
105 static int Split( wxArrayString* aResult,
const wxString& aPathString );
107 #if 1 // this function is so poorly designed it deserves not to exist. 119 const wxString
LastVisitedPath(
const wxString& aSubPathToSearch = wxEmptyString );
124 #endif // SEARCH_STACK_H_
wxString FindValidPath(const wxString &aFileName) const
void RemovePaths(const wxString &aPaths)
Remove the given path(s) from the library path list.
Look for files in a number of paths.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
static int Split(wxArrayString *aResult, const wxString &aPathString)
Separate aPathString into individual paths.
const wxString LastVisitedPath(const wxString &aSubPathToSearch=wxEmptyString)
A quirky function inherited from old code that seems to serve particular needs in the UI.
A PROJECT can hold stuff it knows nothing about, in the form of _ELEM derivatives.
void AddPaths(const wxString &aPaths, int aIndex=-1)
Insert or append path(s).
wxString FilenameWithRelativePathInSearchList(const wxString &aFullFilename, const wxString &aBaseDir)
Return the shortest possible path which can be use later to find a full path from this SEARCH_STACK.