switched to using a real class instead of a namespace because of Mac base/GUI problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
59
src/common/stdpbase.cpp
Normal file
59
src/common/stdpbase.cpp
Normal file
@@ -0,0 +1,59 @@
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Name: common/stdpbase.cpp
|
||||
// Purpose: wxStandardPathsBase methods common to all ports
|
||||
// Author: Vadim Zeitlin
|
||||
// Modified by:
|
||||
// Created: 2004-10-19
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
|
||||
// License: wxWindows license
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// ============================================================================
|
||||
// declarations
|
||||
// ============================================================================
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// headers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// for compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#include "wx/stdpaths.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// module globals
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
static wxStandardPaths gs_stdPaths;
|
||||
|
||||
// ============================================================================
|
||||
// implementation
|
||||
// ============================================================================
|
||||
|
||||
/* static */
|
||||
wxStandardPaths& wxStandardPathsBase::Get()
|
||||
{
|
||||
return gs_stdPaths;
|
||||
}
|
||||
|
||||
wxStandardPathsBase::~wxStandardPathsBase()
|
||||
{
|
||||
// nothing to do here
|
||||
}
|
||||
|
||||
wxString wxStandardPathsBase::GetLocalDataDir() const
|
||||
{
|
||||
return GetDataDir();
|
||||
}
|
||||
|
||||
wxString wxStandardPathsBase::GetUserLocalDataDir() const
|
||||
{
|
||||
return GetUserDataDir();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user