removed USE_SHARED_LIBRARY(IES)
[wxWidgets.git] / src / stubs / spinbutt.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: spinbutt.cpp
3 // Purpose: wxSpinButton
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "spinbutt.h"
14 #endif
15
16 #include "wx/spinbutt.h"
17
18 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
19
20 wxSpinButton::wxSpinButton()
21 {
22 m_min = 0;
23 m_max = 100;
24 }
25
26 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
27 long style, const wxString& name)
28 {
29 SetName(name);
30
31 m_windowStyle = style;
32
33 SetParent(parent);
34
35 m_min = 0;
36 m_max = 100;
37
38 m_windowId = (id == -1) ? NewControlId() : id;
39
40 // TODO create spin button
41 return FALSE;
42 }
43
44 wxSpinButton::~wxSpinButton()
45 {
46 }
47
48 // Attributes
49 ////////////////////////////////////////////////////////////////////////////
50
51 int wxSpinButton::GetValue() const
52 {
53 // TODO
54 return 0;
55 }
56
57 void wxSpinButton::SetValue(int val)
58 {
59 // TODO
60 }
61
62 void wxSpinButton::SetRange(int minVal, int maxVal)
63 {
64 m_min = minVal;
65 m_max = maxVal;
66 // TODO
67 }
68
69 // Spin event
70 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
71
72 wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
73 wxScrollEvent(commandType, id)
74 {
75 }
76