OSX regrouping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -63,19 +63,6 @@
|
||||
#include "wx/fontmap.h"
|
||||
#endif // wxUSE_FONTMAP
|
||||
|
||||
#if defined(__DARWIN__) && defined(_MSL_USING_MW_C_HEADERS) && _MSL_USING_MW_C_HEADERS
|
||||
// For MacTypes.h for Debugger function
|
||||
#include <CoreFoundation/CFBase.h>
|
||||
#endif
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
#ifdef __DARWIN__
|
||||
#include <CoreServices/CoreServices.h>
|
||||
#else
|
||||
#include "wx/mac/private.h" // includes mac headers
|
||||
#endif
|
||||
#endif // __WXMAC__
|
||||
|
||||
#ifdef __WXDEBUG__
|
||||
#if wxUSE_STACKWALKER
|
||||
#include "wx/stackwalk.h"
|
||||
|
@@ -62,7 +62,7 @@ bool wxDir::HasFiles(const wxString& spec) const
|
||||
}
|
||||
|
||||
// we have a (much) faster version for Unix
|
||||
#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || defined(__WXMAC__) || defined(__EMX__) || defined(__WINE__)
|
||||
#if (defined(__CYGWIN__) && defined(__WINDOWS__)) || !defined(__UNIX_LIKE__) || ( defined(__WXMAC__) && !wxOSX_USE_IPHONE) || defined(__EMX__) || defined(__WINE__)
|
||||
|
||||
bool wxDir::HasSubDirs(const wxString& spec) const
|
||||
{
|
||||
|
@@ -364,7 +364,7 @@ bool wxDocument::OnSaveDocument(const wxString& file)
|
||||
Modify(false);
|
||||
SetFilename(file);
|
||||
SetDocumentSaved(true);
|
||||
#ifdef __WXMAC__
|
||||
#if defined( __WXOSX_MAC__ ) && wxOSX_USE_CARBON
|
||||
wxFileName fn(file) ;
|
||||
fn.MacSetDefaultTypeAndCreator() ;
|
||||
#endif
|
||||
|
@@ -1035,7 +1035,7 @@ bool wxFileConfig::Flush(bool /* bCurrentOnly */)
|
||||
|
||||
ResetDirty();
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
#if defined( __WXOSX_MAC__ ) && wxOSX_USE_CARBON
|
||||
m_fnLocalFile.MacSetTypeAndCreator('TEXT', 'ttxt');
|
||||
#endif // __WXMAC__
|
||||
|
||||
|
@@ -1657,7 +1657,7 @@ wxString wxGetOSDirectory()
|
||||
wxChar buf[256];
|
||||
GetWindowsDirectory(buf, 256);
|
||||
return wxString(buf);
|
||||
#elif defined(__WXMAC__) && !defined(__WXOSX_IPHONE__)
|
||||
#elif defined(__WXMAC__) && wxOSX_USE_CARBON
|
||||
return wxMacFindFolder(kOnSystemDisk, 'macs', false);
|
||||
#else
|
||||
return wxEmptyString;
|
||||
|
@@ -1068,7 +1068,7 @@ wxString wxFileName::GetTempDir()
|
||||
// default
|
||||
#if defined(__DOS__) || defined(__OS2__)
|
||||
dir = _T(".");
|
||||
#elif defined(__WXMAC__) && !defined(__WXOSX_IPHONE__)
|
||||
#elif defined(__WXMAC__) && wxOSX_USE_CARBON
|
||||
dir = wxMacFindFolder(short(kOnSystemDisk), kTemporaryFolderType, kCreateFolder);
|
||||
#else
|
||||
dir = _T("/tmp");
|
||||
@@ -2383,7 +2383,7 @@ wxString wxFileName::GetHumanReadableSize(const wxString &failmsg, int precision
|
||||
// Mac-specific functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if defined( __WXMAC__ ) && !defined( __WXOSX_IPHONE__ )
|
||||
#if defined( __WXOSX_MAC__ ) && wxOSX_USE_CARBON
|
||||
|
||||
const short kMacExtensionMaxLength = 16 ;
|
||||
class MacDefaultExtensionRecord
|
||||
|
@@ -181,7 +181,7 @@ wxIcon wxIconBundle::GetIcon(const wxSize& size) const
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __WXMAC__
|
||||
#if defined( __WXMAC__ ) && wxOSX_USE_CARRBON
|
||||
return wxIcon(iconBest.GetHICON(), size);
|
||||
#else
|
||||
return iconBest;
|
||||
|
@@ -48,7 +48,7 @@
|
||||
// implementation classes:
|
||||
#if defined(__WXMSW__)
|
||||
#include "wx/msw/mimetype.h"
|
||||
#elif defined(__WXMAC__)
|
||||
#elif ( defined(__WXMAC__) && wxOSX_USE_CARBON )
|
||||
#include "wx/osx/mimetype.h"
|
||||
#elif defined(__WXPM__) || defined (__EMX__)
|
||||
#include "wx/os2/mimetype.h"
|
||||
|
@@ -212,7 +212,7 @@ wxDialog *wxNativePrintFactory::CreatePrintSetupDialog( wxWindow *parent,
|
||||
|
||||
wxDCImpl* wxNativePrintFactory::CreatePrinterDCImpl( wxPrinterDC *owner, const wxPrintData& data )
|
||||
{
|
||||
#if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXUNIVERSAL__)
|
||||
#if defined(__WXGTK__) || defined(__WXMOTIF__) || ( defined(__WXUNIVERSAL__) && !defined(__WXMAC__) )
|
||||
return new wxPostScriptDCImpl( owner, data );
|
||||
#else
|
||||
return new wxPrinterDCImpl( owner, data );
|
||||
|
Reference in New Issue
Block a user