]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/spinbutt.h
using Run of base class
[wxWidgets.git] / include / wx / cocoa / spinbutt.h
CommitLineData
768d9ec8
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/spinbutt.h
3// Purpose: wxSpinButton class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/07/14
768d9ec8 7// Copyright: (c) 2003 David Elliott
1b88201f 8// Licence: wxWindows licence
768d9ec8
DE
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef __WX_COCOA_SPINBUTT_H__
12#define __WX_COCOA_SPINBUTT_H__
13
14// #include "wx/cocoa/NSStepper.h"
15
16// ========================================================================
17// wxSpinButton
18// ========================================================================
53a2db12 19class WXDLLIMPEXP_CORE wxSpinButton: public wxSpinButtonBase// , protected wxCocoaNSStepper
768d9ec8
DE
20{
21 DECLARE_DYNAMIC_CLASS(wxSpinButton)
22 DECLARE_EVENT_TABLE()
23// WX_DECLARE_COCOA_OWNER(NSStepper,NSControl,NSView)
24// ------------------------------------------------------------------------
25// initialization
26// ------------------------------------------------------------------------
27public:
28 wxSpinButton() { }
1b88201f 29 wxSpinButton(wxWindow *parent, wxWindowID winid = wxID_ANY,
768d9ec8
DE
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)
34 {
35 Create(parent, winid, pos, size, style, name);
36 }
37
1b88201f 38 bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
768d9ec8
DE
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
4930046b 41 long style = wxSP_HORIZONTAL,
768d9ec8
DE
42 const wxString& name = wxSPIN_BUTTON_NAME);
43 virtual ~wxSpinButton();
44
45// ------------------------------------------------------------------------
46// Cocoa callbacks
47// ------------------------------------------------------------------------
48protected:
11573ad8 49 virtual void CocoaTarget_action();
768d9ec8
DE
50// ------------------------------------------------------------------------
51// Implementation
52// ------------------------------------------------------------------------
53public:
54 // Pure Virtuals
11573ad8
DE
55 virtual int GetValue() const;
56 virtual void SetValue(int value);
768d9ec8
DE
57
58 // retrieve/change the range
11573ad8 59 virtual void SetRange(int minValue, int maxValue);
768d9ec8
DE
60};
61
1b88201f
WS
62#endif
63 // __WX_COCOA_SPINBUTT_H__