1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/stdpaths.cpp
3 // Purpose: wxStandardPaths implementation for OS/2 systems
7 // Copyright: (c) 2004 Stefan Neis <Stefan.Neis@t-online.de>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
32 #include "wx/filename.h"
34 #include "wx/stdpaths.h"
37 // ============================================================================
38 // wxStandardPaths implementation
39 // ============================================================================
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
45 wxString wxStandardPaths
::m_prefix
;
47 void wxStandardPaths
::SetInstallPrefix(const wxString
& prefix
)
52 wxString wxStandardPaths
::GetInstallPrefix() const
54 if ( m_prefix
.empty() )
56 wxStandardPaths
*self
= const_cast<wxStandardPaths
*>(this);
58 self
->m_prefix
= wxT("/usr/local");
63 // ----------------------------------------------------------------------------
65 // ----------------------------------------------------------------------------
67 wxString wxStandardPaths
::GetConfigDir() const
72 wxString wxStandardPaths
::GetUserConfigDir() const
74 return wxFileName
::GetHomeDir();
77 wxString wxStandardPaths
::GetDataDir() const
79 return GetInstallPrefix() + wxT("\\data");
82 wxString wxStandardPaths
::GetUserDataDir() const
84 return AppendAppInfo(wxFileName
::GetHomeDir() + wxT("\\."));
87 wxString wxStandardPaths
::GetPluginsDir() const
92 #endif // wxUSE_STDPATHS