X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d483c9b752524c3808a1ca7e52713898f2094f9..82bf63a08ca2c5e2d500557550449cad219991c9:/interface/app.h diff --git a/interface/app.h b/interface/app.h index d23bbd2153..cf79e46a12 100644 --- a/interface/app.h +++ b/interface/app.h @@ -33,11 +33,6 @@ protected: public: - /** - Constructor. - */ - wxAppConsole(); - /** Destructor. */ @@ -88,7 +83,7 @@ public: e.g. for the file names or configuration file keys. By default, returns the same string as GetAppName(). - @wxsince{2.9.0} + @since 2.9.0 */ wxString GetAppDisplayName() const; @@ -134,7 +129,7 @@ public: By default, returns the same string as GetVendorName(). - @wxsince{2.9.0} + @since 2.9.0 */ const wxString& GetVendorDisplayName() const; @@ -165,32 +160,42 @@ public: static bool IsMainLoopRunning(); /** - Mac specific. Called in response of an "open-application" Apple event. + Called in response of an "open-application" Apple event. Override this to create a new document in your app. + + @onlyfor{wxmac} */ virtual void MacNewFile(); /** - Mac specific. Called in response of an "open-document" Apple event. + Called in response of an "open-document" Apple event. You need to override this method in order to open a document file after the user double clicked on it or if the document file was dropped on either the running application or the application icon in Finder. + + @onlyfor{wxmac} */ virtual void MacOpenFile(const wxString& fileName); /** - Mac specific. Called in response of a "get-url" Apple event. + Called in response of a "get-url" Apple event. + + @onlyfor{wxmac} */ virtual void MacOpenURL(const wxString& url); /** - Mac specific. Called in response of a "print-document" Apple event. + Called in response of a "print-document" Apple event. + + @onlyfor{wxmac} */ virtual void MacPrintFile(const wxString& fileName); /** - Mac specific. Called in response of a "reopen-application" Apple event. + Called in response of a "reopen-application" Apple event. + + @onlyfor{wxmac} */ virtual void MacReopenApp(); @@ -198,8 +203,7 @@ public: Called by wxWidgets on creation of the application. Override this if you wish to provide your own (environment-dependent) main loop. - @returns Returns 0 under X, and the wParam of the WM_QUIT message under - Windows. + @return 0 under X, and the wParam of the WM_QUIT message under Windows. */ virtual int MainLoop(); @@ -560,6 +564,8 @@ public: return CWinApp::PreTranslateMessage(msg); } @endcode + + @onlyfor{wxmsw} */ bool ProcessMessage(WXMSG* msg); @@ -658,7 +664,7 @@ public: This is used in headers to create a forward declaration of the wxGetApp() function implemented by IMPLEMENT_APP(). - It creates the declaration @a className wxGetApp(void). + It creates the declaration className& wxGetApp(). @header{wx/app.h}