]>
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"
33 #include "wx/filename.h"
35 #include "wx/stdpaths.h"
38 // ============================================================================
39 // wxStandardPaths implementation
40 // ============================================================================
42 // ----------------------------------------------------------------------------
44 // ----------------------------------------------------------------------------
46 wxString
wxStandardPaths::m_prefix
;
48 void wxStandardPaths::SetInstallPrefix(const wxString
& prefix
)
53 wxString
wxStandardPaths::GetInstallPrefix() const
55 if ( m_prefix
.empty() )
57 wxStandardPaths
*self
= wx_const_cast(wxStandardPaths
*, this);
59 self
->m_prefix
= _T("/usr/local");
64 // ----------------------------------------------------------------------------
66 // ----------------------------------------------------------------------------
68 wxString
wxStandardPaths::GetConfigDir() const
73 wxString
wxStandardPaths::GetUserConfigDir() const
75 return wxFileName::GetHomeDir();
78 wxString
wxStandardPaths::GetDataDir() const
80 return GetInstallPrefix() + _T("\\data");
83 wxString
wxStandardPaths::GetUserDataDir() const
85 return AppendAppName(wxFileName::GetHomeDir() + _T("\\."));
88 wxString
wxStandardPaths::GetPluginsDir() const
93 #endif // wxUSE_STDPATHS