derive wxStandardPathsCF from Unix wxStandardPaths implementation to make it possible to return it from wxGUIAppTraits::GetStandardPaths()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -18,11 +18,21 @@ struct __CFURL;
 | 
				
			|||||||
typedef const __CFURL * wxCFURLRef;
 | 
					typedef const __CFURL * wxCFURLRef;
 | 
				
			||||||
typedef __CFBundle * wxCFBundleRef;
 | 
					typedef __CFBundle * wxCFBundleRef;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// we inherit the GUI CF-based wxStandardPaths implementation from the Unix one
 | 
				
			||||||
 | 
					// used for console programs if possible (i.e. if we're under a Unix system at
 | 
				
			||||||
 | 
					// all)
 | 
				
			||||||
 | 
					#if defined(__UNIX__)
 | 
				
			||||||
 | 
					    #include "wx/unix/stdpaths.h"
 | 
				
			||||||
 | 
					    #define wxStandardPathsCFBase wxStandardPaths
 | 
				
			||||||
 | 
					#else
 | 
				
			||||||
 | 
					    #define wxStandardPathsCFBase wxStandardPathsBase
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ----------------------------------------------------------------------------
 | 
					// ----------------------------------------------------------------------------
 | 
				
			||||||
// wxStandardPaths
 | 
					// wxStandardPaths
 | 
				
			||||||
// ----------------------------------------------------------------------------
 | 
					// ----------------------------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class WXDLLIMPEXP_BASE wxStandardPathsCF : public wxStandardPathsBase
 | 
					class WXDLLIMPEXP_BASE wxStandardPathsCF : public wxStandardPathsCFBase
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
    wxStandardPathsCF();
 | 
					    wxStandardPathsCF();
 | 
				
			||||||
@@ -54,14 +64,4 @@ protected:
 | 
				
			|||||||
    wxCFBundleRef m_bundle;
 | 
					    wxCFBundleRef m_bundle;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// If using UNIX (i.e. darwin) then use UNIX standard paths
 | 
					 | 
				
			||||||
#if defined(__UNIX__)
 | 
					 | 
				
			||||||
#include "wx/unix/stdpaths.h"
 | 
					 | 
				
			||||||
#else
 | 
					 | 
				
			||||||
// If compiling wxMac for CarbonLib then we are wxStandardPaths
 | 
					 | 
				
			||||||
class WXDLLIMPEXP_BASE wxStandardPaths: public wxStandardPathsCF
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
};
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#endif // _WX_MAC_STDPATHS_H_
 | 
					#endif // _WX_MAC_STDPATHS_H_
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user