]>
git.saurik.com Git - wxWidgets.git/blob - src/os2/stdpaths.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: unix/stdpaths.cpp
3 // Purpose: wxStandardPaths implementation for OS/2 systems
8 // Copyright: (c) 2004 Stefan Neis <Stefan.Neis@t-online.de>
9 // License: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // for compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
31 #include "wx/filename.h"
33 #include "wx/stdpaths.h"
36 // ============================================================================
37 // wxStandardPaths implementation
38 // ============================================================================
40 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
44 wxString
wxStandardPaths::m_prefix
;
46 void wxStandardPaths::SetInstallPrefix(const wxString
& prefix
)
51 wxString
wxStandardPaths::GetInstallPrefix() const
53 if ( m_prefix
.empty() )
55 wxStandardPaths
*self
= wx_const_cast(wxStandardPaths
*, this);
57 self
->m_prefix
= _T("/usr/local");
62 // ----------------------------------------------------------------------------
64 // ----------------------------------------------------------------------------
66 wxString
wxStandardPaths::GetConfigDir() const
71 wxString
wxStandardPaths::GetUserConfigDir() const
73 return wxFileName::GetHomeDir();
76 wxString
wxStandardPaths::GetDataDir() const
78 return GetInstallPrefix() + _T("\\data");
81 wxString
wxStandardPaths::GetUserDataDir() const
83 return AppendAppName(wxFileName::GetHomeDir() + _T("\\."));
86 wxString
wxStandardPaths::GetPluginsDir() const