1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_SPINBUTT_H__
12 #define __WX_COCOA_SPINBUTT_H__
14 // #include "wx/cocoa/NSStepper.h"
16 // ========================================================================
18 // ========================================================================
19 class WXDLLIMPEXP_CORE wxSpinButton
: public wxSpinButtonBase
// , protected wxCocoaNSStepper
21 DECLARE_DYNAMIC_CLASS(wxSpinButton
)
23 // WX_DECLARE_COCOA_OWNER(NSStepper,NSControl,NSView)
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
29 wxSpinButton(wxWindow
*parent
, wxWindowID winid
= wxID_ANY
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= wxSP_VERTICAL
| wxSP_ARROW_KEYS
,
33 const wxString
& name
= wxSPIN_BUTTON_NAME
)
35 Create(parent
, winid
, pos
, size
, style
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID winid
= wxID_ANY
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= wxSP_HORIZONTAL
,
42 const wxString
& name
= wxSPIN_BUTTON_NAME
);
43 virtual ~wxSpinButton();
45 // ------------------------------------------------------------------------
47 // ------------------------------------------------------------------------
49 virtual void CocoaTarget_action();
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
55 virtual int GetValue() const;
56 virtual void SetValue(int value
);
58 // retrieve/change the range
59 virtual void SetRange(int minValue
, int maxValue
);
63 // __WX_COCOA_SPINBUTT_H__