X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffecfa5aeb540b54914739dbb8603edbbd4c00a0..12b5f4b4d2d8a07962da7ba3b78c8c1ec2634a67:/src/palmos/spinbutt.cpp diff --git a/src/palmos/spinbutt.cpp b/src/palmos/spinbutt.cpp index e190fe1fe2..abd6314509 100644 --- a/src/palmos/spinbutt.cpp +++ b/src/palmos/spinbutt.cpp @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: palmos/spinbutt.cpp +// Name: src/palmos/spinbutt.cpp // Purpose: wxSpinButton -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,11 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "spinbutt.h" - #pragma implementation "spinbutbase.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -29,19 +24,15 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP -#include "wx/app.h" -#endif - #if wxUSE_SPINBTN #include "wx/spinbutt.h" -IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent) - -#if defined(__WIN95__) +#ifndef WX_PRECOMP + #include "wx/app.h" +#endif -#include "wx/msw/private.h" +IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent) // ============================================================================ // implementation @@ -64,7 +55,7 @@ wxBEGIN_FLAGS( wxSpinButtonStyle ) wxFLAGS_MEMBER(wxBORDER_RAISED) wxFLAGS_MEMBER(wxBORDER_STATIC) wxFLAGS_MEMBER(wxBORDER_NONE) - + // old style border flags wxFLAGS_MEMBER(wxSIMPLE_BORDER) wxFLAGS_MEMBER(wxSUNKEN_BORDER) @@ -104,7 +95,7 @@ wxEND_PROPERTIES_TABLE() wxBEGIN_HANDLERS_TABLE(wxSpinButton) wxEND_HANDLERS_TABLE() -wxCONSTRUCTOR_5( wxSpinButton , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle ) +wxCONSTRUCTOR_5( wxSpinButton , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle ) #else IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl) #endif @@ -155,24 +146,5 @@ void wxSpinButton::SetRange(int minVal, int maxVal) { } -bool wxSpinButton::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam, - WXWORD pos, WXHWND control) -{ - return false; -} - -bool wxSpinButton::MSWOnNotify(int WXUNUSED(idCtrl), WXLPARAM lParam, WXLPARAM *result) -{ - return false; -} - -bool wxSpinButton::MSWCommand(WXUINT WXUNUSED(cmd), WXWORD WXUNUSED(id)) -{ - return false; -} - -#endif // __WIN95__ - #endif - // wxUSE_SPINCTN - + // wxUSE_SPINBTN