37 if (this->GetWatchedPathsCount())
41 this->AddTree(wxFileName(
vDefaultPaths[i] +
"/"), wxFSW_EVENT_ALL,
"*");
45 wxFileSystemWatcher::Add(wxFileName(iter->second +
"/"));
58 if (iter->second == path.GetPath())
65 return wxFileSystemWatcher::Add(wxFileName(path.GetPath() +
"/"), events);
77 if (iter == iter_found)
79 if (iter->second == path.GetPath())
86 return wxFileSystemWatcher::Remove(wxFileName(path.GetPath() +
"/"));
std::vector< std::string > vDefaultPaths
std::map< wxString, wxString > mWatchedFiles
bool isDefaultPath(const wxFileName &path)
bool Remove(const wxFileName &path)
bool Add(const wxFileName &path, int events=wxFSW_EVENT_ALL)
bool SetDefaultPaths(const std::vector< std::string > &vPaths)
std::string replacePathSeparator(const std::string &)
This function replaces the Windows style path sparators to UNIX style.