X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bf188f1add12abe2238d51d0568acc2a386e8051..ff1865910312d960737474a75a77737d5ce94864:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index b6db5db471..36e9e19790 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -65,6 +65,9 @@ public: // the virtual functions which may/must be overridden in the derived class // ----------------------------------------------------------------------- +#ifdef __DARWIN__ + virtual ~wxAppBase() { } +#endif // called during the program initialization, returning FALSE from here // prevents the program from continuing - it's a good place to create @@ -263,6 +266,16 @@ public: virtual void SetActive(bool isActive, wxWindow *lastFocus); #endif // wxUSE_GUI + // debugging support + // ----------------- + + // this function is called when an assert failure occurs, the base class + // version does the normal processing (i.e. shows the usual assert failure + // dialog box) +#ifdef __WXDEBUG__ + virtual void OnAssert(const wxChar *file, int line, const wxChar *msg); +#endif // __WXDEBUG__ + // implementation only from now on // ------------------------------- @@ -305,11 +318,6 @@ protected: // does any of our windows has focus? bool m_isActive; #endif // wxUSE_GUI - -#ifdef __WXMAC_X__ -public: - virtual ~wxAppBase() {} // Added min for Mac X -#endif }; // ---------------------------------------------------------------------------- @@ -323,8 +331,6 @@ public: #include "wx/motif/app.h" #elif defined(__WXMGL__) #include "wx/mgl/app.h" - #elif defined(__WXQT__) - #include "wx/qt/app.h" #elif defined(__WXGTK__) #include "wx/gtk/app.h" #elif defined(__WXMAC__) @@ -436,7 +442,7 @@ public: // be in your main program (e.g. hello.cpp). Now IMPLEMENT_APP should add this // code if required. -#if !wxUSE_GUI || defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__) +#if !wxUSE_GUI || defined(__WXMOTIF__) || defined(__WXGTK__) || defined(__WXPM__) || defined(__WXMGL__) #define IMPLEMENT_WXWIN_MAIN \ extern int wxEntry( int argc, char *argv[] ); \ int main(int argc, char *argv[]) { return wxEntry(argc, argv); }