X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1bf77ee556a5418059139305e9edb05bde9b8a1d..ba1e9d6cede4073faf42e3e290a030965a2205c3:/include/wx/mac/app.h diff --git a/include/wx/mac/app.h b/include/wx/mac/app.h index e65ee6ec2f..efc50cbea2 100644 --- a/include/wx/mac/app.h +++ b/include/wx/mac/app.h @@ -49,7 +49,6 @@ class WXDLLEXPORT wxApp: public wxAppBase virtual int MainLoop(); virtual void ExitMainLoop(); - virtual bool Initialized(); virtual bool Pending() ; virtual bool Dispatch() ; @@ -81,6 +80,7 @@ protected: // where overriden public: + static bool sm_isEmbedded; // Implementation virtual bool Initialize(int& argc, wxChar **argv); virtual void CleanUp(); @@ -143,6 +143,10 @@ public: void MacDoOneEvent() ; WXEVENTREF MacGetCurrentEvent() { return m_macCurrentEvent ; } void MacHandleOneEvent( WXEVENTREF ev ) ; + + // For embedded use. By default does nothing. + virtual void MacHandleUnhandledEvent( WXEVENTREF ev ); + #if !TARGET_CARBON virtual void MacHandleMenuSelect( int menuid , int menuitem ) ; virtual void MacHandleMouseUpEvent( WXEVENTREF ev ) ; @@ -170,6 +174,7 @@ public: virtual short MacHandleAEPDoc(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ; virtual short MacHandleAEOApp(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ; virtual short MacHandleAEQuit(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ; + virtual short MacHandleAERApp(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ; // in response of an open-document apple event virtual void MacOpenFile(const wxString &fileName) ; @@ -177,6 +182,8 @@ public: virtual void MacPrintFile(const wxString &fileName) ; // in response of a open-application apple event virtual void MacNewFile() ; + // in response of a reopen-application apple event + virtual void MacReopenApp() ; DECLARE_EVENT_TABLE() };