45 for (
size_t i = 0; i <
path.length(); i++)
47 if (
path[i] ==
'\\' ||
path[i] ==
'/')
65 if (filename.find(
'.') == std::string::npos || filename.find(
".revisions") != std::string::npos)
66 return wxDIR_CONTINUE;
69 wxString extension = filename.substr(filename.rfind(
'.')+1).Lower();
76 if (filename.length() < 6 || (extension !=
"nscr" && extension !=
"nlyt" && extension !=
"npkp" && extension !=
"nhlp"))
77 return wxDIR_CONTINUE;
81 if (filename.length() < 6 || (extension !=
"nprc" && extension !=
"nlyt" && extension !=
"npkp" && extension !=
"nhlp"))
82 return wxDIR_CONTINUE;
86 if (filename.length() < 6)
87 return wxDIR_CONTINUE;
89 filespec =
"*.nscr;*.nprc;*.nlyt;*.ndat;*.npkp;*.nhlp;";
91 if (filespec.find(
"*."+extension+
";") == std::string::npos)
92 return wxDIR_CONTINUE;
96 if (filename.length() < 4)
97 return wxDIR_CONTINUE;
99 filespec =
"*.ndat;*.dat;*.xls;*.xlsx;*.ods;*.csv;*.txt;*.labx;*.ibw;*.jdx;*.jcm;*.dx;*.png;*.log;*.tex;*.pdf;*.m;*.cpp;*.cxx;*.c;*.hpp;*.hxx;*.h;*.xml;*.wav;*.diff;";
101 if (filespec.find(
"*."+extension +
";") == std::string::npos)
102 return wxDIR_CONTINUE;
106 if (filename.length() < 5)
107 return wxDIR_CONTINUE;
109 filespec =
"*.png;*.jpg;*.jpeg;*.eps;*.svg;*.gif;*.bmp;*.tif;*.tiff;";
111 if (filespec.find(
"*."+extension+
";") == std::string::npos)
112 return wxDIR_CONTINUE;
119 unsigned int ndepth = 0;
121 for (
size_t i = 0; i < filename.length(); i++)
123 if (filename[i] ==
'/' || filename[i] ==
'\\')
137 return wxDIR_CONTINUE;
152 if (dirname.find(
".revisions") != std::string::npos)
155 unsigned int ndepth = 0;
157 for (
size_t i = 0; i < dirname.length(); i++)
159 if (dirname[i] ==
'/' || dirname[i] ==
'\\')
180 return wxDIR_CONTINUE;
IconManager * iconManager
DirTraverser(wxTreeCtrl *therootNode, IconManager *theiconmanager, wxTreeItemId theid, const wxString &thepath, FileFilterType thefilespec)
Constuctor.
virtual wxDirTraverseResult OnDir(const wxString &dirname)
This method appends the folders found during traversing the directory to the file tree.
unsigned int ncurrentdepth
std::vector< wxTreeItemId > vcurrentnodes
virtual wxDirTraverseResult OnFile(const wxString &filename)
This method classifies the files found during traversing the directory and appends them to the tree,...
This class provides the needed functionalities for the file tree and the symbols tree.
int GetIconIndex(wxString iconInfo)