]>
Commit | Line | Data |
---|---|---|
175bb578 | 1 | /////////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/os2/stdpaths.h |
175bb578 SN |
3 | // Purpose: wxStandardPaths for OS/2 |
4 | // Author: Stefan Neis | |
5 | // Modified by: | |
6 | // Created: 2004-11-06 | |
175bb578 SN |
7 | // Copyright: (c) 2004 Stefan Neis <Stefan.Neis@t-online.de> |
8 | // Licence: wxWindows licence | |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_OS2_STDPATHS_H_ | |
12 | #define _WX_OS2_STDPATHS_H_ | |
13 | ||
14 | // ---------------------------------------------------------------------------- | |
15 | // wxStandardPaths | |
16 | // ---------------------------------------------------------------------------- | |
17 | ||
18 | class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase | |
19 | { | |
20 | public: | |
21 | // set the program installation directory which is /usr/local by default | |
22 | // | |
23 | // The program directory can be determined automatically from argv[0], | |
24 | // this function is automatically called from application initialisation. | |
25 | // If you override the initialisation routine, you should call it | |
3103e8a9 | 26 | // explicitly yourself. |
175bb578 SN |
27 | static void SetInstallPrefix(const wxString& prefix); |
28 | ||
29 | // get the program installation prefix | |
30 | // | |
31 | // if the prefix had been previously by SetInstallPrefix, returns that | |
32 | // value, otherwise returns /usr/local if it failed | |
33 | wxString GetInstallPrefix() const; | |
34 | ||
35 | // implement base class pure virtuals | |
36 | virtual wxString GetConfigDir() const; | |
37 | virtual wxString GetUserConfigDir() const; | |
38 | virtual wxString GetDataDir() const; | |
39 | virtual wxString GetUserDataDir() const; | |
40 | virtual wxString GetPluginsDir() const; | |
41 | ||
38aae140 VZ |
42 | protected: |
43 | // Ctor is protected, use wxStandardPaths::Get() instead of instantiating | |
44 | // objects of this class directly. | |
45 | wxStandardPaths() { } | |
46 | ||
175bb578 SN |
47 | private: |
48 | static wxString m_prefix; | |
49 | }; | |
50 | ||
51 | #endif // _WX_OS2_STDPATHS_H_ |