// 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
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
// -------------------------------
// 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
};
// ----------------------------------------------------------------------------
#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__)
// 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); }