From: Michael Wetherell Date: Fri, 22 Apr 2005 13:22:14 +0000 (+0000) Subject: Add generic wxStandardPaths implementation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/46a2827311c50a8184bb98e2c1c049d17968fb5d Add generic wxStandardPaths implementation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/stdpaths.h b/include/wx/stdpaths.h index ed75f6e231..928bd38348 100644 --- a/include/wx/stdpaths.h +++ b/include/wx/stdpaths.h @@ -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