Add generic wxStandardPaths implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
28ceed839c
commit
46a2827311
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user