]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/spinbutt.h
set eol-style and keywords properties on new files
[wxWidgets.git] / include / wx / cocoa / spinbutt.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/spinbutt.h
3 // Purpose: wxSpinButton class
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2003/07/14
7 // RCS-ID: $Id$
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __WX_COCOA_SPINBUTT_H__
13 #define __WX_COCOA_SPINBUTT_H__
14
15 // #include "wx/cocoa/NSStepper.h"
16
17 // ========================================================================
18 // wxSpinButton
19 // ========================================================================
20 class WXDLLIMPEXP_CORE wxSpinButton: public wxSpinButtonBase// , protected wxCocoaNSStepper
21 {
22 DECLARE_DYNAMIC_CLASS(wxSpinButton)
23 DECLARE_EVENT_TABLE()
24 // WX_DECLARE_COCOA_OWNER(NSStepper,NSControl,NSView)
25 // ------------------------------------------------------------------------
26 // initialization
27 // ------------------------------------------------------------------------
28 public:
29 wxSpinButton() { }
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)
35 {
36 Create(parent, winid, pos, size, style, name);
37 }
38
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();
45
46 // ------------------------------------------------------------------------
47 // Cocoa callbacks
48 // ------------------------------------------------------------------------
49 protected:
50 virtual void CocoaTarget_action();
51 // ------------------------------------------------------------------------
52 // Implementation
53 // ------------------------------------------------------------------------
54 public:
55 // Pure Virtuals
56 virtual int GetValue() const;
57 virtual void SetValue(int value);
58
59 // retrieve/change the range
60 virtual void SetRange(int minValue, int maxValue);
61 };
62
63 #endif
64 // __WX_COCOA_SPINBUTT_H__