X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffecfa5aeb540b54914739dbb8603edbbd4c00a0..db60c20db8321d7fb0604e33fe7288ddb38c496e:/src/palmos/app.cpp?ds=inline diff --git a/src/palmos/app.cpp b/src/palmos/app.cpp index c66d9f24e5..b96a01e117 100644 --- a/src/palmos/app.cpp +++ b/src/palmos/app.cpp @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: app.cpp +// Name: src/palmos/app.cpp // Purpose: wxApp -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/08/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,10 +17,6 @@ // headers // --------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "app.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -29,6 +25,7 @@ #endif #ifndef WX_PRECOMP + #include "wx/dynarray.h" #include "wx/frame.h" #include "wx/app.h" #include "wx/utils.h" @@ -42,9 +39,7 @@ #include "wx/dialog.h" #include "wx/msgdlg.h" #include "wx/intl.h" - #include "wx/dynarray.h" #include "wx/wxchar.h" - #include "wx/icon.h" #include "wx/log.h" #endif @@ -68,8 +63,6 @@ // global variables // --------------------------------------------------------------------------- -extern wxList WXDLLEXPORT wxPendingDelete; - // NB: all "NoRedraw" classes must have the same names as the "normal" classes // with NR suffix - wxWindow::MSWCreate() supposes this const wxChar *wxCanvasClassName = wxT("wxWindowClass"); @@ -127,8 +120,8 @@ wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() info.versionMajor = baseInfo.versionMajor; info.versionMinor = baseInfo.versionMinor; info.os = baseInfo.os; - info.shortName = _T("msw"); - info.name = _T("wxMSW"); + info.shortName = _T("palmos"); + info.name = _T("wxPalmOS"); #ifdef __WXUNIVERSAL__ info.shortName << _T("univ"); info.name << _T("/wxUniversal"); @@ -193,7 +186,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv) // to create a window of this class is made. bool wxApp::RegisterWindowClasses() { - return TRUE; + return true; } // --------------------------------------------------------------------------- @@ -202,7 +195,7 @@ bool wxApp::RegisterWindowClasses() bool wxApp::UnregisterWindowClasses() { - bool retval = TRUE; + bool retval = true; return retval; } @@ -268,7 +261,7 @@ void wxApp::WakeUpIdle() void wxApp::OnEndSession(wxCloseEvent& WXUNUSED(event)) { if (GetTopWindow()) - GetTopWindow()->Close(TRUE); + GetTopWindow()->Close(true); } // Default behaviour: close the application with prompts. The @@ -278,7 +271,7 @@ void wxApp::OnQueryEndSession(wxCloseEvent& event) if (GetTopWindow()) { if (!GetTopWindow()->Close(!event.CanVeto())) - event.Veto(TRUE); + event.Veto(true); } }