1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_SPINBUTT_H__
13 #define __WX_COCOA_SPINBUTT_H__
15 // #include "wx/cocoa/NSStepper.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLIMPEXP_CORE wxSpinButton
: public wxSpinButtonBase
// , protected wxCocoaNSStepper
22 DECLARE_DYNAMIC_CLASS(wxSpinButton
)
24 // WX_DECLARE_COCOA_OWNER(NSStepper,NSControl,NSView)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxSpinButton(wxWindow
*parent
, wxWindowID winid
= wxID_ANY
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
34 const wxString
& name
= wxSPIN_BUTTON_NAME
)
36 Create(parent
, winid
, pos
, size
, style
, name
);
39 bool Create(wxWindow
*parent
, wxWindowID winid
= wxID_ANY
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
42 long style
= wxSP_HORIZONTAL
,
43 const wxString
& name
= wxSPIN_BUTTON_NAME
);
44 virtual ~wxSpinButton();
46 // ------------------------------------------------------------------------
48 // ------------------------------------------------------------------------
50 virtual void CocoaTarget_action();
51 // ------------------------------------------------------------------------
53 // ------------------------------------------------------------------------
56 virtual int GetValue() const;
57 virtual void SetValue(int value
);
59 // retrieve/change the range
60 virtual void SetRange(int minValue
, int maxValue
);
64 // __WX_COCOA_SPINBUTT_H__