]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/stdpaths.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / os2 / stdpaths.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/stdpaths.h
3 // Purpose: wxStandardPaths for OS/2
4 // Author: Stefan Neis
5 // Modified by:
6 // Created: 2004-11-06
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
26 // explicitly yourself.
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
42 protected:
43 // Ctor is protected, use wxStandardPaths::Get() instead of instantiating
44 // objects of this class directly.
45 wxStandardPaths() { }
46
47 private:
48 static wxString m_prefix;
49 };
50
51 #endif // _WX_OS2_STDPATHS_H_