]> git.saurik.com Git - wxWidgets.git/blame - include/wx/unix/stdpaths.h
Revert "Make wxMSW stack walking methods work with Unicode identifiers."
[wxWidgets.git] / include / wx / unix / stdpaths.h
CommitLineData
8a613d31
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/unix/stdpaths.h
3// Purpose: wxStandardPaths for Unix systems
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 2004-10-19
8a613d31
VZ
7// Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIX_STDPATHS_H_
12#define _WX_UNIX_STDPATHS_H_
13
14// ----------------------------------------------------------------------------
15// wxStandardPaths
16// ----------------------------------------------------------------------------
17
18class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase
19{
20public:
3abcfa9b
VZ
21 // tries to determine the installation prefix automatically (Linux only right
22 // now) and returns /usr/local if it failed
23 void DetectPrefix();
24
8a613d31
VZ
25 // set the program installation directory which is /usr/local by default
26 //
27 // under some systems (currently only Linux) the program directory can be
28 // determined automatically but for portable programs you should always set
3103e8a9 29 // it explicitly
8a613d31
VZ
30 void SetInstallPrefix(const wxString& prefix);
31
32 // get the program installation prefix
33 //
34 // if the prefix had been previously by SetInstallPrefix, returns that
3abcfa9b 35 // value, otherwise calls DetectPrefix()
8a613d31
VZ
36 wxString GetInstallPrefix() const;
37
38
39 // implement base class pure virtuals
ac7ad70d 40 virtual wxString GetExecutablePath() const;
8a613d31
VZ
41 virtual wxString GetConfigDir() const;
42 virtual wxString GetUserConfigDir() const;
43 virtual wxString GetDataDir() const;
44 virtual wxString GetLocalDataDir() const;
45 virtual wxString GetUserDataDir() const;
46 virtual wxString GetPluginsDir() const;
e0b3b9d0 47 virtual wxString GetLocalizedResourcesDir(const wxString& lang,
3af9f2de 48 ResourceCat category) const;
0ce52f3d
JS
49#ifndef __VMS
50 virtual wxString GetDocumentsDir() const;
51#endif
c320b3e3 52
38aae140
VZ
53protected:
54 // Ctor is protected, use wxStandardPaths::Get() instead of instantiating
55 // objects of this class directly.
56 wxStandardPaths() { }
57
c320b3e3
VZ
58private:
59 wxString m_prefix;
8a613d31
VZ
60};
61
62#endif // _WX_UNIX_STDPATHS_H_
63