]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/spinbutt.h
Avoid warnings in the Objective-C uniquifying code when running in GC mode.
[wxWidgets.git] / include / wx / palmos / spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_SPINBUTT_H_
13 #define _WX_SPINBUTT_H_
14
15 #include "wx/control.h"
16 #include "wx/event.h"
17
18 class WXDLLEXPORT wxSpinButton : public wxSpinButtonBase
19 {
20 public:
21 // construction
22 wxSpinButton() { }
23
24 wxSpinButton(wxWindow *parent,
25 wxWindowID id = wxID_ANY,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
29 const wxString& name = wxSPIN_BUTTON_NAME)
30 {
31 Create(parent, id, pos, size, style, name);
32 }
33
34 virtual ~wxSpinButton();
35
36 bool Create(wxWindow *parent,
37 wxWindowID id = wxID_ANY,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = wxSP_VERTICAL | wxSP_ARROW_KEYS,
41 const wxString& name = wxSPIN_BUTTON_NAME);
42
43
44 // accessors
45 virtual int GetValue() const;
46 virtual void SetValue(int val);
47 virtual void SetRange(int minVal, int maxVal);
48
49 // a wxSpinButton can't do anything useful with focus, only wxSpinCtrl can
50 virtual bool AcceptsFocus() const { return false; }
51
52 protected:
53 virtual wxSize DoGetBestSize() const;
54
55 private:
56 DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinButton)
57 };
58
59 #endif
60 // _WX_SPINBUTT_H_