X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffecfa5aeb540b54914739dbb8603edbbd4c00a0..7532f691fb4cb045edd09d4c988727a0d5f7bd4c:/src/palmos/evtloop.cpp?ds=sidebyside diff --git a/src/palmos/evtloop.cpp b/src/palmos/evtloop.cpp index 36b0cf43db..3de13673dc 100644 --- a/src/palmos/evtloop.cpp +++ b/src/palmos/evtloop.cpp @@ -1,10 +1,10 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: palmos/evtloop.cpp +// Name: src/palmos/evtloop.cpp // Purpose: implements wxEventLoop for Palm OS -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10.14.04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // License: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "evtloop.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -50,6 +46,11 @@ WX_DEFINE_OBJARRAY(wxMsgArray); #endif // wxUSE_THREADS +#include +#include +#include +#include + // ---------------------------------------------------------------------------- // helper class // ---------------------------------------------------------------------------- @@ -104,7 +105,7 @@ void wxEventLoop::ProcessMessage(WXMSG *msg) bool wxEventLoop::PreProcessMessage(WXMSG *msg) { - return false; + return false; } // ---------------------------------------------------------------------------- @@ -123,19 +124,19 @@ int wxEventLoop::Run() do { wxTheApp && wxTheApp->ProcessIdle(); - + EvtGetEvent(&event, evtWaitForever); if (SysHandleEvent(&event)) continue; - + if (MenuHandleEvent(0, &event, &error)) continue; - + FrmDispatchEvent(&event); - } while (event.eType != appStopEvent); - + } while (event.eType != appStopEvent); + return 0; } @@ -154,7 +155,7 @@ void wxEventLoop::Exit(int rc) bool wxEventLoop::Pending() const { - return false; + return false; } bool wxEventLoop::Dispatch()