X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4055ed8281971e3d35bf04177193c27043d42ed1..472eec8a0391538e4dcf7f7c6c4f4d44c8383616:/include/wx/palmos/app.h?ds=inline diff --git a/include/wx/palmos/app.h b/include/wx/palmos/app.h index d9527d5771..4289b470c2 100644 --- a/include/wx/palmos/app.h +++ b/include/wx/palmos/app.h @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: app.h +// Name: wx/palmos/app.h // Purpose: wxApp class -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/17/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -12,18 +12,14 @@ #ifndef _WX_APP_H_ #define _WX_APP_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "app.h" -#endif - #include "wx/event.h" #include "wx/icon.h" -class WXDLLIMPEXP_CORE wxFrame; -class WXDLLIMPEXP_CORE wxWindow; -class WXDLLIMPEXP_CORE wxApp; -class WXDLLIMPEXP_CORE wxKeyEvent; -class WXDLLIMPEXP_BASE wxLog; +class WXDLLIMPEXP_FWD_CORE wxFrame; +class WXDLLIMPEXP_FWD_CORE wxWindow; +class WXDLLIMPEXP_FWD_CORE wxApp; +class WXDLLIMPEXP_FWD_CORE wxKeyEvent; +class WXDLLIMPEXP_FWD_BASE wxLog; // Represents the application. Derive OnInit and declare // a new App object to start application @@ -46,7 +42,6 @@ public: virtual int GetPrintMode() const { return m_printMode; } // implementation only - void OnIdle(wxIdleEvent& event); void OnEndSession(wxCloseEvent& event); void OnQueryEndSession(wxCloseEvent& event); @@ -54,13 +49,6 @@ public: virtual bool OnExceptionInMainLoop(); #endif // wxUSE_EXCEPTIONS - // deprecated functions, use wxEventLoop directly instead -#if WXWIN_COMPATIBILITY_2_4 - wxDEPRECATED( void DoMessage(WXMSG *pMsg) ); - wxDEPRECATED( bool DoMessage() ); - wxDEPRECATED( bool ProcessMessage(WXMSG* pMsg) ); -#endif // WXWIN_COMPATIBILITY_2_4 - protected: int m_printMode; // wxPRINT_WINDOWS, wxPRINT_POSTSCRIPT @@ -100,16 +88,21 @@ extern int WXDLLEXPORT wxEntry(); #define IMPLEMENT_WXWIN_MAIN \ + \ + extern "C" { \ + \ uint32_t PilotMain(uint16_t cmd, MemPtr cmdPBP, uint16_t launchFlags) \ { \ switch (cmd) { \ - case sysAppLaunchCmdNormalLaunch: \ + case 0 /* sysAppLaunchCmdNormalLaunch */ : \ wxEntry(); \ break; \ default: \ break; \ } \ - return errNone; \ + return 0 /* errNone */ ; \ + } \ + \ } #endif // _WX_APP_H_