X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a809b45d59f239fe74e3db70b92240c4b976089f..1ea9acd9aa1b0e5fa3f7bef3db4eca77822bfe35:/include/wx/stdpaths.h diff --git a/include/wx/stdpaths.h b/include/wx/stdpaths.h index 9f83385657..c4b3cb2b7b 100644 --- a/include/wx/stdpaths.h +++ b/include/wx/stdpaths.h @@ -12,6 +12,10 @@ #ifndef _WX_STDPATHS_H_ #define _WX_STDPATHS_H_ +#include "wx/defs.h" + +#if wxUSE_STDPATHS + #include "wx/string.h" // ---------------------------------------------------------------------------- @@ -91,7 +95,31 @@ protected: #include "wx/unix/stdpaths.h" #elif defined(__PALMOS__) #include "wx/palmos/stdpaths.h" +#else + +// ---------------------------------------------------------------------------- +// Minimal generic implementation +// ---------------------------------------------------------------------------- + +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 + #endif // _WX_STDPATHS_H_