1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/unix/stdpaths.h
3 // Purpose: wxStandardPaths for Unix systems
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIX_STDPATHS_H_
13 #define _WX_UNIX_STDPATHS_H_
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_BASE wxStandardPaths
: public wxStandardPathsBase
22 // tries to determine the installation prefix automatically (Linux only right
23 // now) and returns /usr/local if it failed
26 // set the program installation directory which is /usr/local by default
28 // under some systems (currently only Linux) the program directory can be
29 // determined automatically but for portable programs you should always set
31 void SetInstallPrefix(const wxString
& prefix
);
33 // get the program installation prefix
35 // if the prefix had been previously by SetInstallPrefix, returns that
36 // value, otherwise calls DetectPrefix()
37 wxString
GetInstallPrefix() const;
40 // implement base class pure virtuals
41 virtual wxString
GetExecutablePath() const;
42 virtual wxString
GetConfigDir() const;
43 virtual wxString
GetUserConfigDir() const;
44 virtual wxString
GetDataDir() const;
45 virtual wxString
GetLocalDataDir() const;
46 virtual wxString
GetUserDataDir() const;
47 virtual wxString
GetPluginsDir() const;
48 virtual wxString
GetLocalizedResourcesDir(const wxChar
*lang
,
49 ResourceCat category
) const;
55 #endif // _WX_UNIX_STDPATHS_H_