]> git.saurik.com Git - wxWidgets.git/commitdiff
Add generic wxStandardPaths implementation
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 22 Apr 2005 13:22:14 +0000 (13:22 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Fri, 22 Apr 2005 13:22:14 +0000 (13:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/stdpaths.h

index ed75f6e2316ab81431c74693d1f9c5501d84c723..928bd383487ca67f0d3f95a7a869f57e178d9a30 100644 (file)
@@ -95,6 +95,28 @@ protected:
     #include "wx/unix/stdpaths.h"
 #elif defined(__PALMOS__)
     #include "wx/palmos/stdpaths.h"
+#else
+
+// ----------------------------------------------------------------------------
+// Minimal generic implemenatation
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase
+{
+public:
+    void SetInstallPrefix(const wxString& prefix) { m_prefix = prefix; }
+    wxString GetInstallPrefix() const { return m_prefix; }
+    virtual wxString GetConfigDir() const { return m_prefix; }
+    virtual wxString GetUserConfigDir() const { return m_prefix; }
+    virtual wxString GetDataDir() const { return m_prefix; }
+    virtual wxString GetLocalDataDir() const { return m_prefix; }
+    virtual wxString GetUserDataDir() const { return m_prefix; }
+    virtual wxString GetPluginsDir() const { return m_prefix; }
+
+private:
+    wxString m_prefix;
+};
+
 #endif
 
 #endif // wxUSE_STDPATHS