]> git.saurik.com Git - wxWidgets.git/blob - src/stubs/spinbutt.cpp
* wxThread: new functions: wxThread::Pause/Resume, wxThread::GetThreadFromID
[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 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
20 #endif
21
22 wxSpinButton::wxSpinButton()
23 {
24 m_min = 0;
25 m_max = 100;
26 }
27
28 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
29 long style, const wxString& name)
30 {
31 SetName(name);
32
33 m_windowStyle = style;
34
35 SetParent(parent);
36
37 m_min = 0;
38 m_max = 100;
39
40 m_windowId = (id == -1) ? NewControlId() : id;
41
42 // TODO create spin button
43 return FALSE;
44 }
45
46 wxSpinButton::~wxSpinButton()
47 {
48 }
49
50 // Attributes
51 ////////////////////////////////////////////////////////////////////////////
52
53 int wxSpinButton::GetValue() const
54 {
55 // TODO
56 return 0;
57 }
58
59 void wxSpinButton::SetValue(int val)
60 {
61 // TODO
62 }
63
64 void wxSpinButton::SetRange(int minVal, int maxVal)
65 {
66 m_min = minVal;
67 m_max = maxVal;
68 // TODO
69 }
70
71 // Spin event
72 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
73
74 wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
75 wxScrollEvent(commandType, id)
76 {
77 }
78