Completed sync of BASE_CMN_SRC between PalmOS and bakefiles. Missing features (stdpaths) added and buildable.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-02-25 09:44:49 +00:00
parent f5b14075b4
commit a809b45d59
4 changed files with 72 additions and 34 deletions

View File

@@ -82,9 +82,7 @@ public:
// wxStandardPaths object is normally the same for wxBase and wxGUI
// except in the case of wxMac and wxCocoa
#ifndef __WXPALMOS__
virtual wxStandardPathsBase& GetStandardPaths();
#endif
// functions abstracting differences between GUI and console modes
// ------------------------------------------------------------------------

View File

@@ -0,0 +1,35 @@
///////////////////////////////////////////////////////////////////////////////
// Name: wx/palmos/stdpaths.h
// Purpose: wxStandardPaths for PalmOS systems
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 2005-02-25
// RCS-ID: $Id$
// Copyright: (c) 2005 Wlodzimierz Skiba
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_PALMOS_STDPATHS_H_
#define _WX_PALMOS_STDPATHS_H_
// ----------------------------------------------------------------------------
// wxStandardPaths
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase
{
public:
void SetInstallPrefix(const wxString& prefix) { m_prefix = prefix; }
wxString GetInstallPrefix() const { return m_prefix; }
virtual wxString GetConfigDir() const { return m_prefix; }
virtual wxString GetUserConfigDir() const { return m_prefix; }
virtual wxString GetDataDir() const { return m_prefix; }
virtual wxString GetLocalDataDir() const { return m_prefix; }
virtual wxString GetUserDataDir() const { return m_prefix; }
virtual wxString GetPluginsDir() const { return m_prefix; }
private:
wxString m_prefix;
};
#endif // _WX_PALMOS_STDPATHS_H_

View File

@@ -89,6 +89,8 @@ protected:
#include "wx/os2/stdpaths.h"
#elif defined(__UNIX__)
#include "wx/unix/stdpaths.h"
#elif defined(__PALMOS__)
#include "wx/palmos/stdpaths.h"
#endif
#endif // _WX_STDPATHS_H_