stdpaths.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef _WX_OS2_STDPATHS_H_
  11. #define _WX_OS2_STDPATHS_H_
  12. // ----------------------------------------------------------------------------
  13. // wxStandardPaths
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase
  16. {
  17. public:
  18. // set the program installation directory which is /usr/local by default
  19. //
  20. // The program directory can be determined automatically from argv[0],
  21. // this function is automatically called from application initialisation.
  22. // If you override the initialisation routine, you should call it
  23. // explicitly yourself.
  24. static void SetInstallPrefix(const wxString& prefix);
  25. // get the program installation prefix
  26. //
  27. // if the prefix had been previously by SetInstallPrefix, returns that
  28. // value, otherwise returns /usr/local if it failed
  29. wxString GetInstallPrefix() const;
  30. // implement base class pure virtuals
  31. virtual wxString GetConfigDir() const;
  32. virtual wxString GetUserConfigDir() const;
  33. virtual wxString GetDataDir() const;
  34. virtual wxString GetUserDataDir() const;
  35. virtual wxString GetPluginsDir() const;
  36. protected:
  37. // Ctor is protected, use wxStandardPaths::Get() instead of instantiating
  38. // objects of this class directly.
  39. wxStandardPaths() { }
  40. private:
  41. static wxString m_prefix;
  42. };
  43. #endif // _WX_OS2_STDPATHS_H_