XString getFilenameWithoutPath(XString s) { int i = s.findRev('\\'); if (i == -1){ i = s.findRev('/'); } s = s.right(s.length() - i - 1); return s; }