]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/palmos/spinbutt.h
Changed wxHTML default font size for printing to be 12pt regardless
[wxWidgets.git] / include / wx / palmos / spinbutt.h
index 6e1931bfa36b4ed5f55ac5561ba31d75277934b7..e6cc319c4411e06bd5306c5964a0be119d1016f9 100644 (file)
@@ -1,32 +1,28 @@
 /////////////////////////////////////////////////////////////////////////////
 /////////////////////////////////////////////////////////////////////////////
-// Name:        wx/univ/spinbutt.h
+// Name:        wx/palmos/spinbutt.h
 // Purpose:     wxSpinButton class
 // Purpose:     wxSpinButton class
-// Author:      Julian Smart
+// Author:      William Osborne - minimal working wxPalmOS port
 // Modified by:
 // Modified by:
-// Created:     01/02/97
+// Created:     10/13/04
 // RCS-ID:      $Id$
 // RCS-ID:      $Id$
-// Copyright:   (c) Julian Smart
+// Copyright:   (c) William Osborne
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_SPINBUTT_H_
 #define _WX_SPINBUTT_H_
 
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #ifndef _WX_SPINBUTT_H_
 #define _WX_SPINBUTT_H_
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma interface "spinbutt.h"
-#endif
-
 #include "wx/control.h"
 #include "wx/event.h"
 
 #include "wx/control.h"
 #include "wx/event.h"
 
-class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase
+class WXDLLIMPEXP_CORE wxSpinButton : public wxSpinButtonBase
 {
 public:
     // construction
     wxSpinButton() { }
 
     wxSpinButton(wxWindow *parent,
 {
 public:
     // construction
     wxSpinButton() { }
 
     wxSpinButton(wxWindow *parent,
-                 wxWindowID id = -1,
+                 wxWindowID id = wxID_ANY,
                  const wxPoint& pos = wxDefaultPosition,
                  const wxSize& size = wxDefaultSize,
                  long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
                  const wxPoint& pos = wxDefaultPosition,
                  const wxSize& size = wxDefaultSize,
                  long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
@@ -38,7 +34,7 @@ public:
     virtual ~wxSpinButton();
 
     bool Create(wxWindow *parent,
     virtual ~wxSpinButton();
 
     bool Create(wxWindow *parent,
-                wxWindowID id = -1,
+                wxWindowID id = wxID_ANY,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
@@ -50,14 +46,8 @@ public:
     virtual void SetValue(int val);
     virtual void SetRange(int minVal, int maxVal);
 
     virtual void SetValue(int val);
     virtual void SetRange(int minVal, int maxVal);
 
-    // implementation
-    virtual bool MSWCommand(WXUINT param, WXWORD id);
-    virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
-    virtual bool MSWOnScroll(int orientation, WXWORD wParam,
-                             WXWORD pos, WXHWND control);
-
     // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
     // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
-    virtual bool AcceptsFocus() const { return FALSE; }
+    virtual bool AcceptsFocus() const { return false; }
 
 protected:
    virtual wxSize DoGetBestSize() const;
 
 protected:
    virtual wxSize DoGetBestSize() const;