]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/mac/spinbutt.cpp
Added lots of files. Enough now so that all wxHTML samples link.
[wxWidgets.git] / src / mac / spinbutt.cpp
... / ...
CommitLineData
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
19IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
20#endif
21
22wxSpinButton::wxSpinButton()
23{
24 m_min = 0;
25 m_max = 100;
26}
27
28bool 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
46wxSpinButton::~wxSpinButton()
47{
48}
49
50// Attributes
51////////////////////////////////////////////////////////////////////////////
52
53int wxSpinButton::GetValue() const
54{
55 // TODO
56 return 0;
57}
58
59void wxSpinButton::SetValue(int val)
60{
61 // TODO
62}
63
64void wxSpinButton::SetRange(int minVal, int maxVal)
65{
66 m_min = minVal;
67 m_max = maxVal;
68 // TODO
69}
70
71// Spin event
72IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
73
74wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
75 wxScrollEvent(commandType, id)
76{
77}
78