Corrections for Mac OS X
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,25 +95,41 @@ bool wxApp::s_macSupportPCMenuShortcuts = true ;
|
|||||||
long wxApp::s_macAboutMenuItemId = wxID_ABOUT ;
|
long wxApp::s_macAboutMenuItemId = wxID_ABOUT ;
|
||||||
wxString wxApp::s_macHelpMenuTitleName = "&Help" ;
|
wxString wxApp::s_macHelpMenuTitleName = "&Help" ;
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandleODoc( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandleODoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandleODoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEODoc( (AppleEvent*) event , reply) ;
|
return wxTheApp->MacHandleAEODoc( (AppleEvent*) event , reply) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandleOApp( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandleOApp( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandleOApp( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEOApp( (AppleEvent*) event , reply ) ;
|
return wxTheApp->MacHandleAEOApp( (AppleEvent*) event , reply ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandlePDoc( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandlePDoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandlePDoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEPDoc( (AppleEvent*) event , reply ) ;
|
return wxTheApp->MacHandleAEPDoc( (AppleEvent*) event , reply ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandleQuit( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandleQuit( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandleQuit( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEQuit( (AppleEvent*) event , reply) ;
|
return wxTheApp->MacHandleAEQuit( (AppleEvent*) event , reply) ;
|
||||||
|
@@ -95,25 +95,41 @@ bool wxApp::s_macSupportPCMenuShortcuts = true ;
|
|||||||
long wxApp::s_macAboutMenuItemId = wxID_ABOUT ;
|
long wxApp::s_macAboutMenuItemId = wxID_ABOUT ;
|
||||||
wxString wxApp::s_macHelpMenuTitleName = "&Help" ;
|
wxString wxApp::s_macHelpMenuTitleName = "&Help" ;
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandleODoc( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandleODoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandleODoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEODoc( (AppleEvent*) event , reply) ;
|
return wxTheApp->MacHandleAEODoc( (AppleEvent*) event , reply) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandleOApp( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandleOApp( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandleOApp( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEOApp( (AppleEvent*) event , reply ) ;
|
return wxTheApp->MacHandleAEOApp( (AppleEvent*) event , reply ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandlePDoc( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandlePDoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandlePDoc( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEPDoc( (AppleEvent*) event , reply ) ;
|
return wxTheApp->MacHandleAEPDoc( (AppleEvent*) event , reply ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
|
||||||
|
pascal OSErr AEHandleQuit( const AppleEvent *event , AppleEvent *reply , long refcon )
|
||||||
|
#else
|
||||||
pascal OSErr AEHandleQuit( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
pascal OSErr AEHandleQuit( const AppleEvent *event , AppleEvent *reply , unsigned long refcon )
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
wxApp* app = (wxApp*) refcon ;
|
wxApp* app = (wxApp*) refcon ;
|
||||||
return wxTheApp->MacHandleAEQuit( (AppleEvent*) event , reply) ;
|
return wxTheApp->MacHandleAEQuit( (AppleEvent*) event , reply) ;
|
||||||
|
@@ -47,10 +47,6 @@
|
|||||||
class WXDLLEXPORT wxIcon;
|
class WXDLLEXPORT wxIcon;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const
|
bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -98,6 +94,11 @@ bool wxFileTypeImpl::GetDescription(wxString *desc) const
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxFileTypeImpl::Unassociate()
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
// extension -> file type
|
// extension -> file type
|
||||||
wxFileType *
|
wxFileType *
|
||||||
wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& e)
|
wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& e)
|
||||||
@@ -186,3 +187,10 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxArrayString& mimetypes)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxFileType *
|
||||||
|
wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo)
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( _T("TODO") );
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation "statusbr.h"
|
#pragma implementation "statbar.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -47,10 +47,6 @@
|
|||||||
class WXDLLEXPORT wxIcon;
|
class WXDLLEXPORT wxIcon;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const
|
bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -98,6 +94,11 @@ bool wxFileTypeImpl::GetDescription(wxString *desc) const
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxFileTypeImpl::Unassociate()
|
||||||
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
// extension -> file type
|
// extension -> file type
|
||||||
wxFileType *
|
wxFileType *
|
||||||
wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& e)
|
wxMimeTypesManagerImpl::GetFileTypeFromExtension(const wxString& e)
|
||||||
@@ -186,3 +187,10 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxArrayString& mimetypes)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxFileType *
|
||||||
|
wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo)
|
||||||
|
{
|
||||||
|
wxFAIL_MSG( _T("TODO") );
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef __GNUG__
|
#ifdef __GNUG__
|
||||||
#pragma implementation "statusbr.h"
|
#pragma implementation "statbar.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user