- DECLARE_DYNAMIC_CLASS(wxPathList)
-
- public:
- void AddEnvList(const wxString& envVariable); // Adds all paths in environment variable
- void Add(const wxString& path);
- wxString FindValidPath(const wxString& filename); // Find the first full path
- // for which the file exists
- wxString FindAbsoluteValidPath(const wxString& filename); // Find the first full path
- // for which the file exists; ensure it's an absolute
- // path that gets returned.
- void EnsureFileAccessible(const wxString& path); // Given full path and filename,
- // add path to list
- bool Member(const wxString& path);
+public:
+ // Adds all paths in environment variable
+ void AddEnvList(const wxString& envVariable);
+
+ void Add(const wxString& path);
+ // Avoid compiler warning
+ wxNode *Add(const wxChar *s) { return wxStringList::Add(s); }
+ // Find the first full path for which the file exists
+ wxString FindValidPath(const wxString& filename);
+ // Find the first full path for which the file exists; ensure it's an
+ // absolute path that gets returned.
+ wxString FindAbsoluteValidPath(const wxString& filename);
+ // Given full path and filename, add path to list
+ void EnsureFileAccessible(const wxString& path);
+ // Returns TRUE if the path is in the list
+ bool Member(const wxString& path);
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxPathList)